diff --git a/.gitignore b/.gitignore index f390d12..bfd3685 100644 --- a/.gitignore +++ b/.gitignore @@ -41,3 +41,4 @@ yarn-error.log* next-env.d.ts /src/generated/prisma +prisma/generated/ diff --git a/README.md b/README.md index 3d2d9e8..f75c634 100644 --- a/README.md +++ b/README.md @@ -25,9 +25,44 @@ - Кэширование данных для быстрой работы - Адаптивный дизайн в стиле платформы +## База данных и инициализация + +### 🛠 Команды для работы с БД + +- `npm run db:seed` - Инициализация БД (создание админа и категорий) +- `npm run db:reset` - Полный сброс БД и пересоздание данных +- `npm run postinstall` - Генерация Prisma Client + +### 👤 Администратор по умолчанию + +При первом запуске автоматически создается админ: +- **Логин**: `admin` +- **Пароль**: `admin123` +- **Email**: `admin@sferav.com` + +⚠️ **Обязательно смените пароль после первого входа!** + +### 📂 Категории товаров + +Автоматически создается 20 базовых категорий: +- Одежда и обувь, Косметика и парфюмерия, Дом и сад +- Детские товары, Спорт и отдых, Электроника +- И другие популярные категории... + +### 🔄 Автоматическая инициализация + +База данных инициализируется автоматически при: +- Первом запуске приложения +- Запуске команды `npm run db:seed` +- Сбросе БД через `npm run db:reset` + +Система умно проверяет существующие данные и не создает дубликаты. + ## Структура проекта - `src/app/wb-warehouse/` - Страница склада WB +- `prisma/seed.js` - Скрипт инициализации БД +- `src/lib/seed-init.ts` - Автоматическая инициализация - `src/components/wb-warehouse/` - Компоненты интерфейса склада - `src/services/wildberries-service.ts` - Интеграция с API WB diff --git a/prisma/generated/client/client.d.ts b/prisma/generated/client/client.d.ts deleted file mode 100644 index bc20c6c..0000000 --- a/prisma/generated/client/client.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./index" \ No newline at end of file diff --git a/prisma/generated/client/client.js b/prisma/generated/client/client.js deleted file mode 100644 index 72afab7..0000000 --- a/prisma/generated/client/client.js +++ /dev/null @@ -1,4 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! -/* eslint-disable */ -module.exports = { ...require('.') } \ No newline at end of file diff --git a/prisma/generated/client/default.d.ts b/prisma/generated/client/default.d.ts deleted file mode 100644 index bc20c6c..0000000 --- a/prisma/generated/client/default.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./index" \ No newline at end of file diff --git a/prisma/generated/client/default.js b/prisma/generated/client/default.js deleted file mode 100644 index 72afab7..0000000 --- a/prisma/generated/client/default.js +++ /dev/null @@ -1,4 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! -/* eslint-disable */ -module.exports = { ...require('.') } \ No newline at end of file diff --git a/prisma/generated/client/edge.d.ts b/prisma/generated/client/edge.d.ts deleted file mode 100644 index 274b8fa..0000000 --- a/prisma/generated/client/edge.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./default" \ No newline at end of file diff --git a/prisma/generated/client/edge.js b/prisma/generated/client/edge.js deleted file mode 100644 index 528a042..0000000 --- a/prisma/generated/client/edge.js +++ /dev/null @@ -1,597 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! -/* eslint-disable */ - -Object.defineProperty(exports, "__esModule", { value: true }); - -const { - PrismaClientKnownRequestError, - PrismaClientUnknownRequestError, - PrismaClientRustPanicError, - PrismaClientInitializationError, - PrismaClientValidationError, - getPrismaClient, - sqltag, - empty, - join, - raw, - skip, - Decimal, - Debug, - objectEnumValues, - makeStrictEnum, - Extensions, - warnOnce, - defineDmmfProperty, - Public, - getRuntime, - createParam, -} = require('./runtime/edge.js') - - -const Prisma = {} - -exports.Prisma = Prisma -exports.$Enums = {} - -/** - * Prisma Client JS version: 6.12.0 - * Query Engine version: 8047c96bbd92db98a2abc7c9323ce77c02c89dbc - */ -Prisma.prismaVersion = { - client: "6.12.0", - engine: "8047c96bbd92db98a2abc7c9323ce77c02c89dbc" -} - -Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError; -Prisma.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError -Prisma.PrismaClientRustPanicError = PrismaClientRustPanicError -Prisma.PrismaClientInitializationError = PrismaClientInitializationError -Prisma.PrismaClientValidationError = PrismaClientValidationError -Prisma.Decimal = Decimal - -/** - * Re-export of sql-template-tag - */ -Prisma.sql = sqltag -Prisma.empty = empty -Prisma.join = join -Prisma.raw = raw -Prisma.validator = Public.validator - -/** -* Extensions -*/ -Prisma.getExtensionContext = Extensions.getExtensionContext -Prisma.defineExtension = Extensions.defineExtension - -/** - * Shorthand utilities for JSON filtering - */ -Prisma.DbNull = objectEnumValues.instances.DbNull -Prisma.JsonNull = objectEnumValues.instances.JsonNull -Prisma.AnyNull = objectEnumValues.instances.AnyNull - -Prisma.NullTypes = { - DbNull: objectEnumValues.classes.DbNull, - JsonNull: objectEnumValues.classes.JsonNull, - AnyNull: objectEnumValues.classes.AnyNull -} - - - - - -/** - * Enums - */ -exports.Prisma.TransactionIsolationLevel = makeStrictEnum({ - ReadUncommitted: 'ReadUncommitted', - ReadCommitted: 'ReadCommitted', - RepeatableRead: 'RepeatableRead', - Serializable: 'Serializable' -}); - -exports.Prisma.UserScalarFieldEnum = { - id: 'id', - phone: 'phone', - avatar: 'avatar', - managerName: 'managerName', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' -}; - -exports.Prisma.AdminScalarFieldEnum = { - id: 'id', - username: 'username', - password: 'password', - email: 'email', - isActive: 'isActive', - lastLogin: 'lastLogin', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SmsCodeScalarFieldEnum = { - id: 'id', - code: 'code', - phone: 'phone', - expiresAt: 'expiresAt', - isUsed: 'isUsed', - attempts: 'attempts', - maxAttempts: 'maxAttempts', - createdAt: 'createdAt', - userId: 'userId' -}; - -exports.Prisma.OrganizationScalarFieldEnum = { - id: 'id', - inn: 'inn', - kpp: 'kpp', - name: 'name', - fullName: 'fullName', - ogrn: 'ogrn', - ogrnDate: 'ogrnDate', - type: 'type', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - address: 'address', - addressFull: 'addressFull', - status: 'status', - actualityDate: 'actualityDate', - registrationDate: 'registrationDate', - liquidationDate: 'liquidationDate', - managementName: 'managementName', - managementPost: 'managementPost', - opfCode: 'opfCode', - opfFull: 'opfFull', - opfShort: 'opfShort', - okato: 'okato', - oktmo: 'oktmo', - okpo: 'okpo', - okved: 'okved', - phones: 'phones', - emails: 'emails', - employeeCount: 'employeeCount', - revenue: 'revenue', - taxSystem: 'taxSystem', - dadataData: 'dadataData' -}; - -exports.Prisma.ApiKeyScalarFieldEnum = { - id: 'id', - marketplace: 'marketplace', - apiKey: 'apiKey', - isActive: 'isActive', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - validationData: 'validationData', - organizationId: 'organizationId' -}; - -exports.Prisma.CounterpartyRequestScalarFieldEnum = { - id: 'id', - status: 'status', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - senderId: 'senderId', - receiverId: 'receiverId', - message: 'message' -}; - -exports.Prisma.CounterpartyScalarFieldEnum = { - id: 'id', - createdAt: 'createdAt', - organizationId: 'organizationId', - counterpartyId: 'counterpartyId' -}; - -exports.Prisma.MessageScalarFieldEnum = { - id: 'id', - content: 'content', - type: 'type', - voiceUrl: 'voiceUrl', - voiceDuration: 'voiceDuration', - fileUrl: 'fileUrl', - fileName: 'fileName', - fileSize: 'fileSize', - fileType: 'fileType', - isRead: 'isRead', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - senderId: 'senderId', - senderOrganizationId: 'senderOrganizationId', - receiverOrganizationId: 'receiverOrganizationId' -}; - -exports.Prisma.ServiceScalarFieldEnum = { - id: 'id', - name: 'name', - description: 'description', - price: 'price', - imageUrl: 'imageUrl', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' -}; - -exports.Prisma.SupplyScalarFieldEnum = { - id: 'id', - name: 'name', - description: 'description', - price: 'price', - quantity: 'quantity', - unit: 'unit', - category: 'category', - status: 'status', - date: 'date', - supplier: 'supplier', - minStock: 'minStock', - currentStock: 'currentStock', - imageUrl: 'imageUrl', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' -}; - -exports.Prisma.CategoryScalarFieldEnum = { - id: 'id', - name: 'name', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.ProductScalarFieldEnum = { - id: 'id', - name: 'name', - article: 'article', - description: 'description', - price: 'price', - quantity: 'quantity', - categoryId: 'categoryId', - brand: 'brand', - color: 'color', - size: 'size', - weight: 'weight', - dimensions: 'dimensions', - material: 'material', - images: 'images', - mainImage: 'mainImage', - isActive: 'isActive', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' -}; - -exports.Prisma.CartScalarFieldEnum = { - id: 'id', - organizationId: 'organizationId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.CartItemScalarFieldEnum = { - id: 'id', - cartId: 'cartId', - productId: 'productId', - quantity: 'quantity', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.FavoritesScalarFieldEnum = { - id: 'id', - organizationId: 'organizationId', - productId: 'productId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.EmployeeScalarFieldEnum = { - id: 'id', - firstName: 'firstName', - lastName: 'lastName', - middleName: 'middleName', - birthDate: 'birthDate', - avatar: 'avatar', - passportPhoto: 'passportPhoto', - passportSeries: 'passportSeries', - passportNumber: 'passportNumber', - passportIssued: 'passportIssued', - passportDate: 'passportDate', - address: 'address', - position: 'position', - department: 'department', - hireDate: 'hireDate', - salary: 'salary', - status: 'status', - phone: 'phone', - email: 'email', - telegram: 'telegram', - whatsapp: 'whatsapp', - emergencyContact: 'emergencyContact', - emergencyPhone: 'emergencyPhone', - organizationId: 'organizationId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.EmployeeScheduleScalarFieldEnum = { - id: 'id', - date: 'date', - status: 'status', - hoursWorked: 'hoursWorked', - notes: 'notes', - employeeId: 'employeeId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.WildberriesSupplyScalarFieldEnum = { - id: 'id', - organizationId: 'organizationId', - deliveryDate: 'deliveryDate', - status: 'status', - totalAmount: 'totalAmount', - totalItems: 'totalItems', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.WildberriesSupplyCardScalarFieldEnum = { - id: 'id', - supplyId: 'supplyId', - nmId: 'nmId', - vendorCode: 'vendorCode', - title: 'title', - brand: 'brand', - price: 'price', - discountedPrice: 'discountedPrice', - quantity: 'quantity', - selectedQuantity: 'selectedQuantity', - selectedMarket: 'selectedMarket', - selectedPlace: 'selectedPlace', - sellerName: 'sellerName', - sellerPhone: 'sellerPhone', - deliveryDate: 'deliveryDate', - mediaFiles: 'mediaFiles', - selectedServices: 'selectedServices', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.LogisticsScalarFieldEnum = { - id: 'id', - fromLocation: 'fromLocation', - toLocation: 'toLocation', - priceUnder1m3: 'priceUnder1m3', - priceOver1m3: 'priceOver1m3', - description: 'description', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' -}; - -exports.Prisma.SupplyOrderScalarFieldEnum = { - id: 'id', - partnerId: 'partnerId', - deliveryDate: 'deliveryDate', - status: 'status', - totalAmount: 'totalAmount', - totalItems: 'totalItems', - fulfillmentCenterId: 'fulfillmentCenterId', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' -}; - -exports.Prisma.SupplyOrderItemScalarFieldEnum = { - id: 'id', - supplyOrderId: 'supplyOrderId', - productId: 'productId', - quantity: 'quantity', - price: 'price', - totalPrice: 'totalPrice', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SupplySupplierScalarFieldEnum = { - id: 'id', - name: 'name', - contactName: 'contactName', - phone: 'phone', - market: 'market', - address: 'address', - place: 'place', - telegram: 'telegram', - organizationId: 'organizationId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SortOrder = { - asc: 'asc', - desc: 'desc' -}; - -exports.Prisma.NullableJsonNullValueInput = { - DbNull: Prisma.DbNull, - JsonNull: Prisma.JsonNull -}; - -exports.Prisma.JsonNullValueInput = { - JsonNull: Prisma.JsonNull -}; - -exports.Prisma.QueryMode = { - default: 'default', - insensitive: 'insensitive' -}; - -exports.Prisma.NullsOrder = { - first: 'first', - last: 'last' -}; - -exports.Prisma.JsonNullValueFilter = { - DbNull: Prisma.DbNull, - JsonNull: Prisma.JsonNull, - AnyNull: Prisma.AnyNull -}; -exports.OrganizationType = exports.$Enums.OrganizationType = { - FULFILLMENT: 'FULFILLMENT', - SELLER: 'SELLER', - LOGIST: 'LOGIST', - WHOLESALE: 'WHOLESALE' -}; - -exports.MarketplaceType = exports.$Enums.MarketplaceType = { - WILDBERRIES: 'WILDBERRIES', - OZON: 'OZON' -}; - -exports.CounterpartyRequestStatus = exports.$Enums.CounterpartyRequestStatus = { - PENDING: 'PENDING', - ACCEPTED: 'ACCEPTED', - REJECTED: 'REJECTED', - CANCELLED: 'CANCELLED' -}; - -exports.MessageType = exports.$Enums.MessageType = { - TEXT: 'TEXT', - VOICE: 'VOICE', - IMAGE: 'IMAGE', - FILE: 'FILE' -}; - -exports.EmployeeStatus = exports.$Enums.EmployeeStatus = { - ACTIVE: 'ACTIVE', - VACATION: 'VACATION', - SICK: 'SICK', - FIRED: 'FIRED' -}; - -exports.ScheduleStatus = exports.$Enums.ScheduleStatus = { - WORK: 'WORK', - WEEKEND: 'WEEKEND', - VACATION: 'VACATION', - SICK: 'SICK', - ABSENT: 'ABSENT' -}; - -exports.SupplyOrderStatus = exports.$Enums.SupplyOrderStatus = { - PENDING: 'PENDING', - CONFIRMED: 'CONFIRMED', - IN_TRANSIT: 'IN_TRANSIT', - DELIVERED: 'DELIVERED', - CANCELLED: 'CANCELLED' -}; - -exports.WildberriesSupplyStatus = exports.$Enums.WildberriesSupplyStatus = { - DRAFT: 'DRAFT', - CREATED: 'CREATED', - IN_PROGRESS: 'IN_PROGRESS', - DELIVERED: 'DELIVERED', - CANCELLED: 'CANCELLED' -}; - -exports.Prisma.ModelName = { - User: 'User', - Admin: 'Admin', - SmsCode: 'SmsCode', - Organization: 'Organization', - ApiKey: 'ApiKey', - CounterpartyRequest: 'CounterpartyRequest', - Counterparty: 'Counterparty', - Message: 'Message', - Service: 'Service', - Supply: 'Supply', - Category: 'Category', - Product: 'Product', - Cart: 'Cart', - CartItem: 'CartItem', - Favorites: 'Favorites', - Employee: 'Employee', - EmployeeSchedule: 'EmployeeSchedule', - WildberriesSupply: 'WildberriesSupply', - WildberriesSupplyCard: 'WildberriesSupplyCard', - Logistics: 'Logistics', - SupplyOrder: 'SupplyOrder', - SupplyOrderItem: 'SupplyOrderItem', - SupplySupplier: 'SupplySupplier' -}; -/** - * Create the Client - */ -const config = { - "generator": { - "name": "seed", - "provider": { - "fromEnvVar": null, - "value": "prisma-client-js" - }, - "output": { - "value": "/Users/veronikasmirnova/Desktop/Projects/sfera/prisma/generated/client", - "fromEnvVar": null - }, - "config": { - "engineType": "library" - }, - "binaryTargets": [ - { - "fromEnvVar": null, - "value": "darwin-arm64", - "native": true - } - ], - "previewFeatures": [], - "sourceFilePath": "/Users/veronikasmirnova/Desktop/Projects/sfera/prisma/schema.prisma", - "isCustomOutput": true - }, - "relativeEnvPaths": { - "rootEnvPath": "../../../.env", - "schemaEnvPath": "../../../.env" - }, - "relativePath": "../..", - "clientVersion": "6.12.0", - "engineVersion": "8047c96bbd92db98a2abc7c9323ce77c02c89dbc", - "datasourceNames": [ - "db" - ], - "activeProvider": "postgresql", - "postinstall": false, - "inlineDatasources": { - "db": { - "url": { - "fromEnvVar": "DATABASE_URL", - "value": null - } - } - }, - "inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n}\n\n// Конфигурация для автоматического seeding\ngenerator seed {\n provider = \"prisma-client-js\"\n output = \"./generated/client\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel User {\n id String @id @default(cuid())\n phone String @unique\n avatar String?\n managerName String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n organizationId String?\n sentMessages Message[] @relation(\"SentMessages\")\n smsCodes SmsCode[]\n organization Organization? @relation(fields: [organizationId], references: [id])\n\n @@map(\"users\")\n}\n\nmodel Admin {\n id String @id @default(cuid())\n username String @unique\n password String // Хеш пароля\n email String? @unique\n isActive Boolean @default(true)\n lastLogin DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@map(\"admins\")\n}\n\nmodel SmsCode {\n id String @id @default(cuid())\n code String\n phone String\n expiresAt DateTime\n isUsed Boolean @default(false)\n attempts Int @default(0)\n maxAttempts Int @default(3)\n createdAt DateTime @default(now())\n userId String?\n user User? @relation(fields: [userId], references: [id])\n\n @@map(\"sms_codes\")\n}\n\nmodel Organization {\n id String @id @default(cuid())\n inn String @unique\n kpp String?\n name String?\n fullName String?\n ogrn String?\n ogrnDate DateTime?\n type OrganizationType\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n address String?\n addressFull String?\n status String?\n actualityDate DateTime?\n registrationDate DateTime?\n liquidationDate DateTime?\n managementName String?\n managementPost String?\n opfCode String?\n opfFull String?\n opfShort String?\n okato String?\n oktmo String?\n okpo String?\n okved String?\n phones Json?\n emails Json?\n employeeCount Int?\n revenue BigInt?\n taxSystem String?\n dadataData Json?\n apiKeys ApiKey[]\n carts Cart?\n counterpartyOf Counterparty[] @relation(\"CounterpartyOf\")\n organizationCounterparties Counterparty[] @relation(\"OrganizationCounterparties\")\n receivedRequests CounterpartyRequest[] @relation(\"ReceivedRequests\")\n sentRequests CounterpartyRequest[] @relation(\"SentRequests\")\n employees Employee[]\n favorites Favorites[]\n receivedMessages Message[] @relation(\"ReceivedMessages\")\n sentMessages Message[] @relation(\"SentMessages\")\n products Product[]\n services Service[]\n supplies Supply[]\n users User[]\n logistics Logistics[]\n supplyOrders SupplyOrder[]\n partnerSupplyOrders SupplyOrder[] @relation(\"SupplyOrderPartner\")\n fulfillmentSupplyOrders SupplyOrder[] @relation(\"SupplyOrderFulfillmentCenter\")\n wildberriesSupplies WildberriesSupply[]\n supplySuppliers SupplySupplier[] @relation(\"SupplySuppliers\")\n\n @@map(\"organizations\")\n}\n\nmodel ApiKey {\n id String @id @default(cuid())\n marketplace MarketplaceType\n apiKey String\n isActive Boolean @default(true)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n validationData Json?\n organizationId String\n organization Organization @relation(fields: [organizationId], references: [id])\n\n @@unique([organizationId, marketplace])\n @@map(\"api_keys\")\n}\n\nmodel CounterpartyRequest {\n id String @id @default(cuid())\n status CounterpartyRequestStatus @default(PENDING)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n senderId String\n receiverId String\n message String?\n receiver Organization @relation(\"ReceivedRequests\", fields: [receiverId], references: [id])\n sender Organization @relation(\"SentRequests\", fields: [senderId], references: [id])\n\n @@unique([senderId, receiverId])\n @@map(\"counterparty_requests\")\n}\n\nmodel Counterparty {\n id String @id @default(cuid())\n createdAt DateTime @default(now())\n organizationId String\n counterpartyId String\n counterparty Organization @relation(\"CounterpartyOf\", fields: [counterpartyId], references: [id])\n organization Organization @relation(\"OrganizationCounterparties\", fields: [organizationId], references: [id])\n\n @@unique([organizationId, counterpartyId])\n @@map(\"counterparties\")\n}\n\nmodel Message {\n id String @id @default(cuid())\n content String?\n type MessageType @default(TEXT)\n voiceUrl String?\n voiceDuration Int?\n fileUrl String?\n fileName String?\n fileSize Int?\n fileType String?\n isRead Boolean @default(false)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n senderId String\n senderOrganizationId String\n receiverOrganizationId String\n receiverOrganization Organization @relation(\"ReceivedMessages\", fields: [receiverOrganizationId], references: [id])\n sender User @relation(\"SentMessages\", fields: [senderId], references: [id])\n senderOrganization Organization @relation(\"SentMessages\", fields: [senderOrganizationId], references: [id])\n\n @@index([senderOrganizationId, receiverOrganizationId, createdAt])\n @@index([receiverOrganizationId, isRead])\n @@map(\"messages\")\n}\n\nmodel Service {\n id String @id @default(cuid())\n name String\n description String?\n price Decimal @db.Decimal(10, 2)\n imageUrl String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n organizationId String\n organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)\n\n @@map(\"services\")\n}\n\nmodel Supply {\n id String @id @default(cuid())\n name String\n description String?\n price Decimal @db.Decimal(10, 2)\n quantity Int @default(0)\n unit String @default(\"шт\")\n category String @default(\"Упаковка\")\n status String @default(\"planned\") // planned, in-transit, delivered, in-stock\n date DateTime @default(now())\n supplier String @default(\"Не указан\")\n minStock Int @default(0)\n currentStock Int @default(0)\n imageUrl String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n organizationId String\n organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)\n\n @@map(\"supplies\")\n}\n\nmodel Category {\n id String @id @default(cuid())\n name String @unique\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n products Product[]\n\n @@map(\"categories\")\n}\n\nmodel Product {\n id String @id @default(cuid())\n name String\n article String\n description String?\n price Decimal @db.Decimal(12, 2)\n quantity Int @default(0)\n categoryId String?\n brand String?\n color String?\n size String?\n weight Decimal? @db.Decimal(8, 3)\n dimensions String?\n material String?\n images Json @default(\"[]\")\n mainImage String?\n isActive Boolean @default(true)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n organizationId String\n cartItems CartItem[]\n favorites Favorites[]\n supplyOrderItems SupplyOrderItem[]\n category Category? @relation(fields: [categoryId], references: [id])\n organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)\n\n @@unique([organizationId, article])\n @@map(\"products\")\n}\n\nmodel Cart {\n id String @id @default(cuid())\n organizationId String @unique\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n items CartItem[]\n organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)\n\n @@map(\"carts\")\n}\n\nmodel CartItem {\n id String @id @default(cuid())\n cartId String\n productId String\n quantity Int @default(1)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n cart Cart @relation(fields: [cartId], references: [id], onDelete: Cascade)\n product Product @relation(fields: [productId], references: [id], onDelete: Cascade)\n\n @@unique([cartId, productId])\n @@map(\"cart_items\")\n}\n\nmodel Favorites {\n id String @id @default(cuid())\n organizationId String\n productId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)\n product Product @relation(fields: [productId], references: [id], onDelete: Cascade)\n\n @@unique([organizationId, productId])\n @@map(\"favorites\")\n}\n\nmodel Employee {\n id String @id @default(cuid())\n firstName String\n lastName String\n middleName String?\n birthDate DateTime?\n avatar String?\n passportPhoto String?\n passportSeries String?\n passportNumber String?\n passportIssued String?\n passportDate DateTime?\n address String?\n position String\n department String?\n hireDate DateTime\n salary Float?\n status EmployeeStatus @default(ACTIVE)\n phone String\n email String?\n telegram String?\n whatsapp String?\n emergencyContact String?\n emergencyPhone String?\n organizationId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n scheduleRecords EmployeeSchedule[]\n organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)\n\n @@map(\"employees\")\n}\n\nmodel EmployeeSchedule {\n id String @id @default(cuid())\n date DateTime\n status ScheduleStatus\n hoursWorked Float?\n notes String?\n employeeId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n employee Employee @relation(fields: [employeeId], references: [id], onDelete: Cascade)\n\n @@unique([employeeId, date])\n @@map(\"employee_schedules\")\n}\n\nmodel WildberriesSupply {\n id String @id @default(cuid())\n organizationId String\n deliveryDate DateTime?\n status WildberriesSupplyStatus @default(DRAFT)\n totalAmount Decimal @db.Decimal(12, 2)\n totalItems Int\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)\n cards WildberriesSupplyCard[]\n\n @@map(\"wildberries_supplies\")\n}\n\nmodel WildberriesSupplyCard {\n id String @id @default(cuid())\n supplyId String\n nmId String\n vendorCode String\n title String\n brand String?\n price Decimal @db.Decimal(12, 2)\n discountedPrice Decimal? @db.Decimal(12, 2)\n quantity Int\n selectedQuantity Int\n selectedMarket String?\n selectedPlace String?\n sellerName String?\n sellerPhone String?\n deliveryDate DateTime?\n mediaFiles Json @default(\"[]\")\n selectedServices Json @default(\"[]\")\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n supply WildberriesSupply @relation(fields: [supplyId], references: [id], onDelete: Cascade)\n\n @@map(\"wildberries_supply_cards\")\n}\n\nenum OrganizationType {\n FULFILLMENT\n SELLER\n LOGIST\n WHOLESALE\n}\n\nenum MarketplaceType {\n WILDBERRIES\n OZON\n}\n\nenum CounterpartyRequestStatus {\n PENDING\n ACCEPTED\n REJECTED\n CANCELLED\n}\n\nenum MessageType {\n TEXT\n VOICE\n IMAGE\n FILE\n}\n\nenum EmployeeStatus {\n ACTIVE\n VACATION\n SICK\n FIRED\n}\n\nenum ScheduleStatus {\n WORK\n WEEKEND\n VACATION\n SICK\n ABSENT\n}\n\nenum SupplyOrderStatus {\n PENDING\n CONFIRMED\n IN_TRANSIT\n DELIVERED\n CANCELLED\n}\n\nenum WildberriesSupplyStatus {\n DRAFT\n CREATED\n IN_PROGRESS\n DELIVERED\n CANCELLED\n}\n\nmodel Logistics {\n id String @id @default(cuid())\n fromLocation String\n toLocation String\n priceUnder1m3 Float\n priceOver1m3 Float\n description String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n organizationId String\n organization Organization @relation(fields: [organizationId], references: [id])\n\n @@map(\"logistics\")\n}\n\nmodel SupplyOrder {\n id String @id @default(cuid())\n partnerId String\n deliveryDate DateTime\n status SupplyOrderStatus @default(PENDING)\n totalAmount Decimal @db.Decimal(12, 2)\n totalItems Int\n fulfillmentCenterId String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n organizationId String\n items SupplyOrderItem[]\n organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)\n partner Organization @relation(\"SupplyOrderPartner\", fields: [partnerId], references: [id])\n fulfillmentCenter Organization? @relation(\"SupplyOrderFulfillmentCenter\", fields: [fulfillmentCenterId], references: [id])\n\n @@map(\"supply_orders\")\n}\n\nmodel SupplyOrderItem {\n id String @id @default(cuid())\n supplyOrderId String\n productId String\n quantity Int\n price Decimal @db.Decimal(12, 2)\n totalPrice Decimal @db.Decimal(12, 2)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n supplyOrder SupplyOrder @relation(fields: [supplyOrderId], references: [id], onDelete: Cascade)\n product Product @relation(fields: [productId], references: [id])\n\n @@unique([supplyOrderId, productId])\n @@map(\"supply_order_items\")\n}\n\nmodel SupplySupplier {\n id String @id @default(cuid())\n name String\n contactName String\n phone String\n market String?\n address String?\n place String?\n telegram String?\n organizationId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n organization Organization @relation(\"SupplySuppliers\", fields: [organizationId], references: [id], onDelete: Cascade)\n\n @@map(\"supply_suppliers\")\n}\n", - "inlineSchemaHash": "c58e9498b2c7491abb2fa1631ced2b4c0a19faf523ac148441a417b65d11ad50", - "copyEngine": true -} -config.dirname = '/' - -config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"dbName\":\"users\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"phone\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"avatar\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"managerName\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sentMessages\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Message\",\"nativeType\":null,\"relationName\":\"SentMessages\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"smsCodes\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"SmsCode\",\"nativeType\":null,\"relationName\":\"SmsCodeToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"OrganizationToUser\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Admin\":{\"dbName\":\"admins\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"username\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isActive\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"lastLogin\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"SmsCode\":{\"dbName\":\"sms_codes\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"code\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"phone\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isUsed\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"attempts\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"maxAttempts\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":3,\"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\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"SmsCodeToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Organization\":{\"dbName\":\"organizations\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"inn\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"kpp\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fullName\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ogrn\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ogrnDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"OrganizationType\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"address\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"addressFull\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"actualityDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"registrationDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"liquidationDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"managementName\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"managementPost\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"opfCode\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"opfFull\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"opfShort\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"okato\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"oktmo\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"okpo\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"okved\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"phones\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"emails\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"employeeCount\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"revenue\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"BigInt\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"taxSystem\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"dadataData\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"apiKeys\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"ApiKey\",\"nativeType\":null,\"relationName\":\"ApiKeyToOrganization\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"carts\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Cart\",\"nativeType\":null,\"relationName\":\"CartToOrganization\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"counterpartyOf\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Counterparty\",\"nativeType\":null,\"relationName\":\"CounterpartyOf\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organizationCounterparties\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Counterparty\",\"nativeType\":null,\"relationName\":\"OrganizationCounterparties\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"receivedRequests\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"CounterpartyRequest\",\"nativeType\":null,\"relationName\":\"ReceivedRequests\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sentRequests\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"CounterpartyRequest\",\"nativeType\":null,\"relationName\":\"SentRequests\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"employees\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Employee\",\"nativeType\":null,\"relationName\":\"EmployeeToOrganization\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"favorites\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Favorites\",\"nativeType\":null,\"relationName\":\"FavoritesToOrganization\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"receivedMessages\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Message\",\"nativeType\":null,\"relationName\":\"ReceivedMessages\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sentMessages\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Message\",\"nativeType\":null,\"relationName\":\"SentMessages\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"products\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Product\",\"nativeType\":null,\"relationName\":\"OrganizationToProduct\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"services\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Service\",\"nativeType\":null,\"relationName\":\"OrganizationToService\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"supplies\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Supply\",\"nativeType\":null,\"relationName\":\"OrganizationToSupply\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"users\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"OrganizationToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"logistics\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Logistics\",\"nativeType\":null,\"relationName\":\"LogisticsToOrganization\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"supplyOrders\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"SupplyOrder\",\"nativeType\":null,\"relationName\":\"OrganizationToSupplyOrder\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"partnerSupplyOrders\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"SupplyOrder\",\"nativeType\":null,\"relationName\":\"SupplyOrderPartner\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fulfillmentSupplyOrders\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"SupplyOrder\",\"nativeType\":null,\"relationName\":\"SupplyOrderFulfillmentCenter\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"wildberriesSupplies\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"WildberriesSupply\",\"nativeType\":null,\"relationName\":\"OrganizationToWildberriesSupply\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"supplySuppliers\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"SupplySupplier\",\"nativeType\":null,\"relationName\":\"SupplySuppliers\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"ApiKey\":{\"dbName\":\"api_keys\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"marketplace\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MarketplaceType\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"apiKey\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isActive\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":true,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"validationData\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"ApiKeyToOrganization\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"organizationId\",\"marketplace\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"organizationId\",\"marketplace\"]}],\"isGenerated\":false},\"CounterpartyRequest\":{\"dbName\":\"counterparty_requests\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"CounterpartyRequestStatus\",\"nativeType\":null,\"default\":\"PENDING\",\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"senderId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"receiverId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"message\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"receiver\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"ReceivedRequests\",\"relationFromFields\":[\"receiverId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sender\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"SentRequests\",\"relationFromFields\":[\"senderId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"senderId\",\"receiverId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"senderId\",\"receiverId\"]}],\"isGenerated\":false},\"Counterparty\":{\"dbName\":\"counterparties\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"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\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"counterpartyId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"counterparty\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"CounterpartyOf\",\"relationFromFields\":[\"counterpartyId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"OrganizationCounterparties\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"organizationId\",\"counterpartyId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"organizationId\",\"counterpartyId\"]}],\"isGenerated\":false},\"Message\":{\"dbName\":\"messages\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"content\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"MessageType\",\"nativeType\":null,\"default\":\"TEXT\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"voiceUrl\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"voiceDuration\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fileUrl\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fileName\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fileSize\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fileType\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isRead\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"senderId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"senderOrganizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"receiverOrganizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"receiverOrganization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"ReceivedMessages\",\"relationFromFields\":[\"receiverOrganizationId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sender\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"SentMessages\",\"relationFromFields\":[\"senderId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"senderOrganization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"SentMessages\",\"relationFromFields\":[\"senderOrganizationId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Service\":{\"dbName\":\"services\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"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\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"price\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Decimal\",\"nativeType\":[\"Decimal\",[\"10\",\"2\"]],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"imageUrl\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"OrganizationToService\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Supply\":{\"dbName\":\"supplies\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"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\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"price\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Decimal\",\"nativeType\":[\"Decimal\",[\"10\",\"2\"]],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"quantity\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"unit\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"шт\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"category\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"Упаковка\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"planned\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"date\",\"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\":\"supplier\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"Не указан\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"minStock\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"currentStock\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"imageUrl\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"OrganizationToSupply\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Category\":{\"dbName\":\"categories\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"products\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Product\",\"nativeType\":null,\"relationName\":\"CategoryToProduct\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Product\":{\"dbName\":\"products\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"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\":\"article\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"price\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Decimal\",\"nativeType\":[\"Decimal\",[\"12\",\"2\"]],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"quantity\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"categoryId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"brand\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"size\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"weight\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Decimal\",\"nativeType\":[\"Decimal\",[\"8\",\"3\"]],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"dimensions\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"material\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"images\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Json\",\"nativeType\":null,\"default\":\"[]\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"mainImage\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isActive\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":true,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"cartItems\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"CartItem\",\"nativeType\":null,\"relationName\":\"CartItemToProduct\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"favorites\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Favorites\",\"nativeType\":null,\"relationName\":\"FavoritesToProduct\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"supplyOrderItems\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"SupplyOrderItem\",\"nativeType\":null,\"relationName\":\"ProductToSupplyOrderItem\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"category\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Category\",\"nativeType\":null,\"relationName\":\"CategoryToProduct\",\"relationFromFields\":[\"categoryId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"OrganizationToProduct\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"organizationId\",\"article\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"organizationId\",\"article\"]}],\"isGenerated\":false},\"Cart\":{\"dbName\":\"carts\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"items\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"CartItem\",\"nativeType\":null,\"relationName\":\"CartToCartItem\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"CartToOrganization\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"CartItem\":{\"dbName\":\"cart_items\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"cartId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"productId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"quantity\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":1,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"cart\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Cart\",\"nativeType\":null,\"relationName\":\"CartToCartItem\",\"relationFromFields\":[\"cartId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"product\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Product\",\"nativeType\":null,\"relationName\":\"CartItemToProduct\",\"relationFromFields\":[\"productId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"cartId\",\"productId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"cartId\",\"productId\"]}],\"isGenerated\":false},\"Favorites\":{\"dbName\":\"favorites\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"productId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"FavoritesToOrganization\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"product\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Product\",\"nativeType\":null,\"relationName\":\"FavoritesToProduct\",\"relationFromFields\":[\"productId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"organizationId\",\"productId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"organizationId\",\"productId\"]}],\"isGenerated\":false},\"Employee\":{\"dbName\":\"employees\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"firstName\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"lastName\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"middleName\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"birthDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"avatar\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"passportPhoto\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"passportSeries\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"passportNumber\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"passportIssued\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"passportDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"address\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"position\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"department\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"hireDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"salary\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Float\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"EmployeeStatus\",\"nativeType\":null,\"default\":\"ACTIVE\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"phone\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"telegram\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"whatsapp\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"emergencyContact\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"emergencyPhone\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"scheduleRecords\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"EmployeeSchedule\",\"nativeType\":null,\"relationName\":\"EmployeeToEmployeeSchedule\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"EmployeeToOrganization\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"EmployeeSchedule\":{\"dbName\":\"employee_schedules\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"date\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"ScheduleStatus\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"hoursWorked\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Float\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"employeeId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"employee\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Employee\",\"nativeType\":null,\"relationName\":\"EmployeeToEmployeeSchedule\",\"relationFromFields\":[\"employeeId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"employeeId\",\"date\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"employeeId\",\"date\"]}],\"isGenerated\":false},\"WildberriesSupply\":{\"dbName\":\"wildberries_supplies\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"deliveryDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"WildberriesSupplyStatus\",\"nativeType\":null,\"default\":\"DRAFT\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"totalAmount\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Decimal\",\"nativeType\":[\"Decimal\",[\"12\",\"2\"]],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"totalItems\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"OrganizationToWildberriesSupply\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"cards\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"WildberriesSupplyCard\",\"nativeType\":null,\"relationName\":\"WildberriesSupplyToWildberriesSupplyCard\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"WildberriesSupplyCard\":{\"dbName\":\"wildberries_supply_cards\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"supplyId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"nmId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"vendorCode\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"brand\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"price\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Decimal\",\"nativeType\":[\"Decimal\",[\"12\",\"2\"]],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"discountedPrice\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Decimal\",\"nativeType\":[\"Decimal\",[\"12\",\"2\"]],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"quantity\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"selectedQuantity\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"selectedMarket\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"selectedPlace\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sellerName\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sellerPhone\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"deliveryDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"mediaFiles\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Json\",\"nativeType\":null,\"default\":\"[]\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"selectedServices\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Json\",\"nativeType\":null,\"default\":\"[]\",\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"supply\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"WildberriesSupply\",\"nativeType\":null,\"relationName\":\"WildberriesSupplyToWildberriesSupplyCard\",\"relationFromFields\":[\"supplyId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Logistics\":{\"dbName\":\"logistics\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fromLocation\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"toLocation\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"priceUnder1m3\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Float\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"priceOver1m3\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Float\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"LogisticsToOrganization\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"SupplyOrder\":{\"dbName\":\"supply_orders\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"partnerId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"deliveryDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"SupplyOrderStatus\",\"nativeType\":null,\"default\":\"PENDING\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"totalAmount\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Decimal\",\"nativeType\":[\"Decimal\",[\"12\",\"2\"]],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"totalItems\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fulfillmentCenterId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"items\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"SupplyOrderItem\",\"nativeType\":null,\"relationName\":\"SupplyOrderToSupplyOrderItem\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"OrganizationToSupplyOrder\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"partner\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"SupplyOrderPartner\",\"relationFromFields\":[\"partnerId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fulfillmentCenter\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"SupplyOrderFulfillmentCenter\",\"relationFromFields\":[\"fulfillmentCenterId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"SupplyOrderItem\":{\"dbName\":\"supply_order_items\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"supplyOrderId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"productId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"quantity\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"price\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Decimal\",\"nativeType\":[\"Decimal\",[\"12\",\"2\"]],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"totalPrice\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Decimal\",\"nativeType\":[\"Decimal\",[\"12\",\"2\"]],\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"supplyOrder\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"SupplyOrder\",\"nativeType\":null,\"relationName\":\"SupplyOrderToSupplyOrderItem\",\"relationFromFields\":[\"supplyOrderId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"product\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Product\",\"nativeType\":null,\"relationName\":\"ProductToSupplyOrderItem\",\"relationFromFields\":[\"productId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"supplyOrderId\",\"productId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"supplyOrderId\",\"productId\"]}],\"isGenerated\":false},\"SupplySupplier\":{\"dbName\":\"supply_suppliers\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"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\":\"contactName\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"phone\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"market\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"address\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"place\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"telegram\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"SupplySuppliers\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{\"OrganizationType\":{\"values\":[{\"name\":\"FULFILLMENT\",\"dbName\":null},{\"name\":\"SELLER\",\"dbName\":null},{\"name\":\"LOGIST\",\"dbName\":null},{\"name\":\"WHOLESALE\",\"dbName\":null}],\"dbName\":null},\"MarketplaceType\":{\"values\":[{\"name\":\"WILDBERRIES\",\"dbName\":null},{\"name\":\"OZON\",\"dbName\":null}],\"dbName\":null},\"CounterpartyRequestStatus\":{\"values\":[{\"name\":\"PENDING\",\"dbName\":null},{\"name\":\"ACCEPTED\",\"dbName\":null},{\"name\":\"REJECTED\",\"dbName\":null},{\"name\":\"CANCELLED\",\"dbName\":null}],\"dbName\":null},\"MessageType\":{\"values\":[{\"name\":\"TEXT\",\"dbName\":null},{\"name\":\"VOICE\",\"dbName\":null},{\"name\":\"IMAGE\",\"dbName\":null},{\"name\":\"FILE\",\"dbName\":null}],\"dbName\":null},\"EmployeeStatus\":{\"values\":[{\"name\":\"ACTIVE\",\"dbName\":null},{\"name\":\"VACATION\",\"dbName\":null},{\"name\":\"SICK\",\"dbName\":null},{\"name\":\"FIRED\",\"dbName\":null}],\"dbName\":null},\"ScheduleStatus\":{\"values\":[{\"name\":\"WORK\",\"dbName\":null},{\"name\":\"WEEKEND\",\"dbName\":null},{\"name\":\"VACATION\",\"dbName\":null},{\"name\":\"SICK\",\"dbName\":null},{\"name\":\"ABSENT\",\"dbName\":null}],\"dbName\":null},\"SupplyOrderStatus\":{\"values\":[{\"name\":\"PENDING\",\"dbName\":null},{\"name\":\"CONFIRMED\",\"dbName\":null},{\"name\":\"IN_TRANSIT\",\"dbName\":null},{\"name\":\"DELIVERED\",\"dbName\":null},{\"name\":\"CANCELLED\",\"dbName\":null}],\"dbName\":null},\"WildberriesSupplyStatus\":{\"values\":[{\"name\":\"DRAFT\",\"dbName\":null},{\"name\":\"CREATED\",\"dbName\":null},{\"name\":\"IN_PROGRESS\",\"dbName\":null},{\"name\":\"DELIVERED\",\"dbName\":null},{\"name\":\"CANCELLED\",\"dbName\":null}],\"dbName\":null}},\"types\":{}}") -defineDmmfProperty(exports.Prisma, config.runtimeDataModel) -config.engineWasm = undefined -config.compilerWasm = undefined - -config.injectableEdgeEnv = () => ({ - parsed: { - DATABASE_URL: typeof globalThis !== 'undefined' && globalThis['DATABASE_URL'] || typeof process !== 'undefined' && process.env && process.env.DATABASE_URL || undefined - } -}) - -if (typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined) { - Debug.enable(typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined) -} - -const PrismaClient = getPrismaClient(config) -exports.PrismaClient = PrismaClient -Object.assign(exports, Prisma) - diff --git a/prisma/generated/client/index-browser.js b/prisma/generated/client/index-browser.js deleted file mode 100644 index 7cda622..0000000 --- a/prisma/generated/client/index-browser.js +++ /dev/null @@ -1,583 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! -/* eslint-disable */ - -Object.defineProperty(exports, "__esModule", { value: true }); - -const { - Decimal, - objectEnumValues, - makeStrictEnum, - Public, - getRuntime, - skip -} = require('./runtime/index-browser.js') - - -const Prisma = {} - -exports.Prisma = Prisma -exports.$Enums = {} - -/** - * Prisma Client JS version: 6.12.0 - * Query Engine version: 8047c96bbd92db98a2abc7c9323ce77c02c89dbc - */ -Prisma.prismaVersion = { - client: "6.12.0", - engine: "8047c96bbd92db98a2abc7c9323ce77c02c89dbc" -} - -Prisma.PrismaClientKnownRequestError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)}; -Prisma.PrismaClientUnknownRequestError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.PrismaClientRustPanicError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.PrismaClientInitializationError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.PrismaClientValidationError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.Decimal = Decimal - -/** - * Re-export of sql-template-tag - */ -Prisma.sql = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.empty = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.join = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.raw = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.validator = Public.validator - -/** -* Extensions -*/ -Prisma.getExtensionContext = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.defineExtension = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} - -/** - * Shorthand utilities for JSON filtering - */ -Prisma.DbNull = objectEnumValues.instances.DbNull -Prisma.JsonNull = objectEnumValues.instances.JsonNull -Prisma.AnyNull = objectEnumValues.instances.AnyNull - -Prisma.NullTypes = { - DbNull: objectEnumValues.classes.DbNull, - JsonNull: objectEnumValues.classes.JsonNull, - AnyNull: objectEnumValues.classes.AnyNull -} - - - -/** - * Enums - */ - -exports.Prisma.TransactionIsolationLevel = makeStrictEnum({ - ReadUncommitted: 'ReadUncommitted', - ReadCommitted: 'ReadCommitted', - RepeatableRead: 'RepeatableRead', - Serializable: 'Serializable' -}); - -exports.Prisma.UserScalarFieldEnum = { - id: 'id', - phone: 'phone', - avatar: 'avatar', - managerName: 'managerName', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' -}; - -exports.Prisma.AdminScalarFieldEnum = { - id: 'id', - username: 'username', - password: 'password', - email: 'email', - isActive: 'isActive', - lastLogin: 'lastLogin', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SmsCodeScalarFieldEnum = { - id: 'id', - code: 'code', - phone: 'phone', - expiresAt: 'expiresAt', - isUsed: 'isUsed', - attempts: 'attempts', - maxAttempts: 'maxAttempts', - createdAt: 'createdAt', - userId: 'userId' -}; - -exports.Prisma.OrganizationScalarFieldEnum = { - id: 'id', - inn: 'inn', - kpp: 'kpp', - name: 'name', - fullName: 'fullName', - ogrn: 'ogrn', - ogrnDate: 'ogrnDate', - type: 'type', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - address: 'address', - addressFull: 'addressFull', - status: 'status', - actualityDate: 'actualityDate', - registrationDate: 'registrationDate', - liquidationDate: 'liquidationDate', - managementName: 'managementName', - managementPost: 'managementPost', - opfCode: 'opfCode', - opfFull: 'opfFull', - opfShort: 'opfShort', - okato: 'okato', - oktmo: 'oktmo', - okpo: 'okpo', - okved: 'okved', - phones: 'phones', - emails: 'emails', - employeeCount: 'employeeCount', - revenue: 'revenue', - taxSystem: 'taxSystem', - dadataData: 'dadataData' -}; - -exports.Prisma.ApiKeyScalarFieldEnum = { - id: 'id', - marketplace: 'marketplace', - apiKey: 'apiKey', - isActive: 'isActive', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - validationData: 'validationData', - organizationId: 'organizationId' -}; - -exports.Prisma.CounterpartyRequestScalarFieldEnum = { - id: 'id', - status: 'status', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - senderId: 'senderId', - receiverId: 'receiverId', - message: 'message' -}; - -exports.Prisma.CounterpartyScalarFieldEnum = { - id: 'id', - createdAt: 'createdAt', - organizationId: 'organizationId', - counterpartyId: 'counterpartyId' -}; - -exports.Prisma.MessageScalarFieldEnum = { - id: 'id', - content: 'content', - type: 'type', - voiceUrl: 'voiceUrl', - voiceDuration: 'voiceDuration', - fileUrl: 'fileUrl', - fileName: 'fileName', - fileSize: 'fileSize', - fileType: 'fileType', - isRead: 'isRead', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - senderId: 'senderId', - senderOrganizationId: 'senderOrganizationId', - receiverOrganizationId: 'receiverOrganizationId' -}; - -exports.Prisma.ServiceScalarFieldEnum = { - id: 'id', - name: 'name', - description: 'description', - price: 'price', - imageUrl: 'imageUrl', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' -}; - -exports.Prisma.SupplyScalarFieldEnum = { - id: 'id', - name: 'name', - description: 'description', - price: 'price', - quantity: 'quantity', - unit: 'unit', - category: 'category', - status: 'status', - date: 'date', - supplier: 'supplier', - minStock: 'minStock', - currentStock: 'currentStock', - imageUrl: 'imageUrl', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' -}; - -exports.Prisma.CategoryScalarFieldEnum = { - id: 'id', - name: 'name', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.ProductScalarFieldEnum = { - id: 'id', - name: 'name', - article: 'article', - description: 'description', - price: 'price', - quantity: 'quantity', - categoryId: 'categoryId', - brand: 'brand', - color: 'color', - size: 'size', - weight: 'weight', - dimensions: 'dimensions', - material: 'material', - images: 'images', - mainImage: 'mainImage', - isActive: 'isActive', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' -}; - -exports.Prisma.CartScalarFieldEnum = { - id: 'id', - organizationId: 'organizationId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.CartItemScalarFieldEnum = { - id: 'id', - cartId: 'cartId', - productId: 'productId', - quantity: 'quantity', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.FavoritesScalarFieldEnum = { - id: 'id', - organizationId: 'organizationId', - productId: 'productId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.EmployeeScalarFieldEnum = { - id: 'id', - firstName: 'firstName', - lastName: 'lastName', - middleName: 'middleName', - birthDate: 'birthDate', - avatar: 'avatar', - passportPhoto: 'passportPhoto', - passportSeries: 'passportSeries', - passportNumber: 'passportNumber', - passportIssued: 'passportIssued', - passportDate: 'passportDate', - address: 'address', - position: 'position', - department: 'department', - hireDate: 'hireDate', - salary: 'salary', - status: 'status', - phone: 'phone', - email: 'email', - telegram: 'telegram', - whatsapp: 'whatsapp', - emergencyContact: 'emergencyContact', - emergencyPhone: 'emergencyPhone', - organizationId: 'organizationId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.EmployeeScheduleScalarFieldEnum = { - id: 'id', - date: 'date', - status: 'status', - hoursWorked: 'hoursWorked', - notes: 'notes', - employeeId: 'employeeId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.WildberriesSupplyScalarFieldEnum = { - id: 'id', - organizationId: 'organizationId', - deliveryDate: 'deliveryDate', - status: 'status', - totalAmount: 'totalAmount', - totalItems: 'totalItems', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.WildberriesSupplyCardScalarFieldEnum = { - id: 'id', - supplyId: 'supplyId', - nmId: 'nmId', - vendorCode: 'vendorCode', - title: 'title', - brand: 'brand', - price: 'price', - discountedPrice: 'discountedPrice', - quantity: 'quantity', - selectedQuantity: 'selectedQuantity', - selectedMarket: 'selectedMarket', - selectedPlace: 'selectedPlace', - sellerName: 'sellerName', - sellerPhone: 'sellerPhone', - deliveryDate: 'deliveryDate', - mediaFiles: 'mediaFiles', - selectedServices: 'selectedServices', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.LogisticsScalarFieldEnum = { - id: 'id', - fromLocation: 'fromLocation', - toLocation: 'toLocation', - priceUnder1m3: 'priceUnder1m3', - priceOver1m3: 'priceOver1m3', - description: 'description', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' -}; - -exports.Prisma.SupplyOrderScalarFieldEnum = { - id: 'id', - partnerId: 'partnerId', - deliveryDate: 'deliveryDate', - status: 'status', - totalAmount: 'totalAmount', - totalItems: 'totalItems', - fulfillmentCenterId: 'fulfillmentCenterId', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' -}; - -exports.Prisma.SupplyOrderItemScalarFieldEnum = { - id: 'id', - supplyOrderId: 'supplyOrderId', - productId: 'productId', - quantity: 'quantity', - price: 'price', - totalPrice: 'totalPrice', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SupplySupplierScalarFieldEnum = { - id: 'id', - name: 'name', - contactName: 'contactName', - phone: 'phone', - market: 'market', - address: 'address', - place: 'place', - telegram: 'telegram', - organizationId: 'organizationId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SortOrder = { - asc: 'asc', - desc: 'desc' -}; - -exports.Prisma.NullableJsonNullValueInput = { - DbNull: Prisma.DbNull, - JsonNull: Prisma.JsonNull -}; - -exports.Prisma.JsonNullValueInput = { - JsonNull: Prisma.JsonNull -}; - -exports.Prisma.QueryMode = { - default: 'default', - insensitive: 'insensitive' -}; - -exports.Prisma.NullsOrder = { - first: 'first', - last: 'last' -}; - -exports.Prisma.JsonNullValueFilter = { - DbNull: Prisma.DbNull, - JsonNull: Prisma.JsonNull, - AnyNull: Prisma.AnyNull -}; -exports.OrganizationType = exports.$Enums.OrganizationType = { - FULFILLMENT: 'FULFILLMENT', - SELLER: 'SELLER', - LOGIST: 'LOGIST', - WHOLESALE: 'WHOLESALE' -}; - -exports.MarketplaceType = exports.$Enums.MarketplaceType = { - WILDBERRIES: 'WILDBERRIES', - OZON: 'OZON' -}; - -exports.CounterpartyRequestStatus = exports.$Enums.CounterpartyRequestStatus = { - PENDING: 'PENDING', - ACCEPTED: 'ACCEPTED', - REJECTED: 'REJECTED', - CANCELLED: 'CANCELLED' -}; - -exports.MessageType = exports.$Enums.MessageType = { - TEXT: 'TEXT', - VOICE: 'VOICE', - IMAGE: 'IMAGE', - FILE: 'FILE' -}; - -exports.EmployeeStatus = exports.$Enums.EmployeeStatus = { - ACTIVE: 'ACTIVE', - VACATION: 'VACATION', - SICK: 'SICK', - FIRED: 'FIRED' -}; - -exports.ScheduleStatus = exports.$Enums.ScheduleStatus = { - WORK: 'WORK', - WEEKEND: 'WEEKEND', - VACATION: 'VACATION', - SICK: 'SICK', - ABSENT: 'ABSENT' -}; - -exports.WildberriesSupplyStatus = exports.$Enums.WildberriesSupplyStatus = { - DRAFT: 'DRAFT', - CREATED: 'CREATED', - IN_PROGRESS: 'IN_PROGRESS', - DELIVERED: 'DELIVERED', - CANCELLED: 'CANCELLED' -}; - -exports.SupplyOrderStatus = exports.$Enums.SupplyOrderStatus = { - PENDING: 'PENDING', - CONFIRMED: 'CONFIRMED', - IN_TRANSIT: 'IN_TRANSIT', - DELIVERED: 'DELIVERED', - CANCELLED: 'CANCELLED' -}; - -exports.Prisma.ModelName = { - User: 'User', - Admin: 'Admin', - SmsCode: 'SmsCode', - Organization: 'Organization', - ApiKey: 'ApiKey', - CounterpartyRequest: 'CounterpartyRequest', - Counterparty: 'Counterparty', - Message: 'Message', - Service: 'Service', - Supply: 'Supply', - Category: 'Category', - Product: 'Product', - Cart: 'Cart', - CartItem: 'CartItem', - Favorites: 'Favorites', - Employee: 'Employee', - EmployeeSchedule: 'EmployeeSchedule', - WildberriesSupply: 'WildberriesSupply', - WildberriesSupplyCard: 'WildberriesSupplyCard', - Logistics: 'Logistics', - SupplyOrder: 'SupplyOrder', - SupplyOrderItem: 'SupplyOrderItem', - SupplySupplier: 'SupplySupplier' -}; - -/** - * This is a stub Prisma Client that will error at runtime if called. - */ -class PrismaClient { - constructor() { - return new Proxy(this, { - get(target, prop) { - let message - const runtime = getRuntime() - if (runtime.isEdge) { - message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either: -- Use Prisma Accelerate: https://pris.ly/d/accelerate -- Use Driver Adapters: https://pris.ly/d/driver-adapters -`; - } else { - message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).' - } - - message += ` -If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report` - - throw new Error(message) - } - }) - } -} - -exports.PrismaClient = PrismaClient - -Object.assign(exports, Prisma) diff --git a/prisma/generated/client/index.d.ts b/prisma/generated/client/index.d.ts deleted file mode 100644 index ef02166..0000000 --- a/prisma/generated/client/index.d.ts +++ /dev/null @@ -1,48938 +0,0 @@ - -/** - * Client -**/ - -import * as runtime from './runtime/library.js'; -import $Types = runtime.Types // general types -import $Public = runtime.Types.Public -import $Utils = runtime.Types.Utils -import $Extensions = runtime.Types.Extensions -import $Result = runtime.Types.Result - -export type PrismaPromise = $Public.PrismaPromise - - -/** - * Model User - * - */ -export type User = $Result.DefaultSelection -/** - * Model Admin - * - */ -export type Admin = $Result.DefaultSelection -/** - * Model SmsCode - * - */ -export type SmsCode = $Result.DefaultSelection -/** - * Model Organization - * - */ -export type Organization = $Result.DefaultSelection -/** - * Model ApiKey - * - */ -export type ApiKey = $Result.DefaultSelection -/** - * Model CounterpartyRequest - * - */ -export type CounterpartyRequest = $Result.DefaultSelection -/** - * Model Counterparty - * - */ -export type Counterparty = $Result.DefaultSelection -/** - * Model Message - * - */ -export type Message = $Result.DefaultSelection -/** - * Model Service - * - */ -export type Service = $Result.DefaultSelection -/** - * Model Supply - * - */ -export type Supply = $Result.DefaultSelection -/** - * Model Category - * - */ -export type Category = $Result.DefaultSelection -/** - * Model Product - * - */ -export type Product = $Result.DefaultSelection -/** - * Model Cart - * - */ -export type Cart = $Result.DefaultSelection -/** - * Model CartItem - * - */ -export type CartItem = $Result.DefaultSelection -/** - * Model Favorites - * - */ -export type Favorites = $Result.DefaultSelection -/** - * Model Employee - * - */ -export type Employee = $Result.DefaultSelection -/** - * Model EmployeeSchedule - * - */ -export type EmployeeSchedule = $Result.DefaultSelection -/** - * Model WildberriesSupply - * - */ -export type WildberriesSupply = $Result.DefaultSelection -/** - * Model WildberriesSupplyCard - * - */ -export type WildberriesSupplyCard = $Result.DefaultSelection -/** - * Model Logistics - * - */ -export type Logistics = $Result.DefaultSelection -/** - * Model SupplyOrder - * - */ -export type SupplyOrder = $Result.DefaultSelection -/** - * Model SupplyOrderItem - * - */ -export type SupplyOrderItem = $Result.DefaultSelection -/** - * Model SupplySupplier - * - */ -export type SupplySupplier = $Result.DefaultSelection - -/** - * Enums - */ -export namespace $Enums { - export const OrganizationType: { - FULFILLMENT: 'FULFILLMENT', - SELLER: 'SELLER', - LOGIST: 'LOGIST', - WHOLESALE: 'WHOLESALE' -}; - -export type OrganizationType = (typeof OrganizationType)[keyof typeof OrganizationType] - - -export const MarketplaceType: { - WILDBERRIES: 'WILDBERRIES', - OZON: 'OZON' -}; - -export type MarketplaceType = (typeof MarketplaceType)[keyof typeof MarketplaceType] - - -export const CounterpartyRequestStatus: { - PENDING: 'PENDING', - ACCEPTED: 'ACCEPTED', - REJECTED: 'REJECTED', - CANCELLED: 'CANCELLED' -}; - -export type CounterpartyRequestStatus = (typeof CounterpartyRequestStatus)[keyof typeof CounterpartyRequestStatus] - - -export const MessageType: { - TEXT: 'TEXT', - VOICE: 'VOICE', - IMAGE: 'IMAGE', - FILE: 'FILE' -}; - -export type MessageType = (typeof MessageType)[keyof typeof MessageType] - - -export const EmployeeStatus: { - ACTIVE: 'ACTIVE', - VACATION: 'VACATION', - SICK: 'SICK', - FIRED: 'FIRED' -}; - -export type EmployeeStatus = (typeof EmployeeStatus)[keyof typeof EmployeeStatus] - - -export const ScheduleStatus: { - WORK: 'WORK', - WEEKEND: 'WEEKEND', - VACATION: 'VACATION', - SICK: 'SICK', - ABSENT: 'ABSENT' -}; - -export type ScheduleStatus = (typeof ScheduleStatus)[keyof typeof ScheduleStatus] - - -export const SupplyOrderStatus: { - PENDING: 'PENDING', - CONFIRMED: 'CONFIRMED', - IN_TRANSIT: 'IN_TRANSIT', - DELIVERED: 'DELIVERED', - CANCELLED: 'CANCELLED' -}; - -export type SupplyOrderStatus = (typeof SupplyOrderStatus)[keyof typeof SupplyOrderStatus] - - -export const WildberriesSupplyStatus: { - DRAFT: 'DRAFT', - CREATED: 'CREATED', - IN_PROGRESS: 'IN_PROGRESS', - DELIVERED: 'DELIVERED', - CANCELLED: 'CANCELLED' -}; - -export type WildberriesSupplyStatus = (typeof WildberriesSupplyStatus)[keyof typeof WildberriesSupplyStatus] - -} - -export type OrganizationType = $Enums.OrganizationType - -export const OrganizationType: typeof $Enums.OrganizationType - -export type MarketplaceType = $Enums.MarketplaceType - -export const MarketplaceType: typeof $Enums.MarketplaceType - -export type CounterpartyRequestStatus = $Enums.CounterpartyRequestStatus - -export const CounterpartyRequestStatus: typeof $Enums.CounterpartyRequestStatus - -export type MessageType = $Enums.MessageType - -export const MessageType: typeof $Enums.MessageType - -export type EmployeeStatus = $Enums.EmployeeStatus - -export const EmployeeStatus: typeof $Enums.EmployeeStatus - -export type ScheduleStatus = $Enums.ScheduleStatus - -export const ScheduleStatus: typeof $Enums.ScheduleStatus - -export type SupplyOrderStatus = $Enums.SupplyOrderStatus - -export const SupplyOrderStatus: typeof $Enums.SupplyOrderStatus - -export type WildberriesSupplyStatus = $Enums.WildberriesSupplyStatus - -export const WildberriesSupplyStatus: typeof $Enums.WildberriesSupplyStatus - -/** - * ## Prisma Client ʲˢ - * - * Type-safe database client for TypeScript & Node.js - * @example - * ``` - * const prisma = new PrismaClient() - * // Fetch zero or more Users - * const users = await prisma.user.findMany() - * ``` - * - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). - */ -export class PrismaClient< - ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, - U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never, - ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs -> { - [K: symbol]: { types: Prisma.TypeMap['other'] } - - /** - * ## Prisma Client ʲˢ - * - * Type-safe database client for TypeScript & Node.js - * @example - * ``` - * const prisma = new PrismaClient() - * // Fetch zero or more Users - * const users = await prisma.user.findMany() - * ``` - * - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). - */ - - constructor(optionsArg ?: Prisma.Subset); - $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient; - - /** - * Connect with the database - */ - $connect(): $Utils.JsPromise; - - /** - * Disconnect from the database - */ - $disconnect(): $Utils.JsPromise; - - /** - * Add a middleware - * @deprecated since 4.16.0. For new code, prefer client extensions instead. - * @see https://pris.ly/d/extensions - */ - $use(cb: Prisma.Middleware): void - -/** - * Executes a prepared raw query and returns the number of affected rows. - * @example - * ``` - * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};` - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). - */ - $executeRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; - - /** - * Executes a raw query and returns the number of affected rows. - * Susceptible to SQL injections, see documentation. - * @example - * ``` - * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com') - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). - */ - $executeRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; - - /** - * Performs a prepared raw query and returns the `SELECT` data. - * @example - * ``` - * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};` - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). - */ - $queryRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; - - /** - * Performs a raw query and returns the `SELECT` data. - * Susceptible to SQL injections, see documentation. - * @example - * ``` - * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com') - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). - */ - $queryRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; - - - /** - * 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], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise> - - $transaction(fn: (prisma: Omit) => $Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise - - - $extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, $Utils.Call, { - extArgs: ExtArgs - }>> - - /** - * `prisma.user`: Exposes CRUD operations for the **User** model. - * Example usage: - * ```ts - * // Fetch zero or more Users - * const users = await prisma.user.findMany() - * ``` - */ - get user(): Prisma.UserDelegate; - - /** - * `prisma.admin`: Exposes CRUD operations for the **Admin** model. - * Example usage: - * ```ts - * // Fetch zero or more Admins - * const admins = await prisma.admin.findMany() - * ``` - */ - get admin(): Prisma.AdminDelegate; - - /** - * `prisma.smsCode`: Exposes CRUD operations for the **SmsCode** model. - * Example usage: - * ```ts - * // Fetch zero or more SmsCodes - * const smsCodes = await prisma.smsCode.findMany() - * ``` - */ - get smsCode(): Prisma.SmsCodeDelegate; - - /** - * `prisma.organization`: Exposes CRUD operations for the **Organization** model. - * Example usage: - * ```ts - * // Fetch zero or more Organizations - * const organizations = await prisma.organization.findMany() - * ``` - */ - get organization(): Prisma.OrganizationDelegate; - - /** - * `prisma.apiKey`: Exposes CRUD operations for the **ApiKey** model. - * Example usage: - * ```ts - * // Fetch zero or more ApiKeys - * const apiKeys = await prisma.apiKey.findMany() - * ``` - */ - get apiKey(): Prisma.ApiKeyDelegate; - - /** - * `prisma.counterpartyRequest`: Exposes CRUD operations for the **CounterpartyRequest** model. - * Example usage: - * ```ts - * // Fetch zero or more CounterpartyRequests - * const counterpartyRequests = await prisma.counterpartyRequest.findMany() - * ``` - */ - get counterpartyRequest(): Prisma.CounterpartyRequestDelegate; - - /** - * `prisma.counterparty`: Exposes CRUD operations for the **Counterparty** model. - * Example usage: - * ```ts - * // Fetch zero or more Counterparties - * const counterparties = await prisma.counterparty.findMany() - * ``` - */ - get counterparty(): Prisma.CounterpartyDelegate; - - /** - * `prisma.message`: Exposes CRUD operations for the **Message** model. - * Example usage: - * ```ts - * // Fetch zero or more Messages - * const messages = await prisma.message.findMany() - * ``` - */ - get message(): Prisma.MessageDelegate; - - /** - * `prisma.service`: Exposes CRUD operations for the **Service** model. - * Example usage: - * ```ts - * // Fetch zero or more Services - * const services = await prisma.service.findMany() - * ``` - */ - get service(): Prisma.ServiceDelegate; - - /** - * `prisma.supply`: Exposes CRUD operations for the **Supply** model. - * Example usage: - * ```ts - * // Fetch zero or more Supplies - * const supplies = await prisma.supply.findMany() - * ``` - */ - get supply(): Prisma.SupplyDelegate; - - /** - * `prisma.category`: Exposes CRUD operations for the **Category** model. - * Example usage: - * ```ts - * // Fetch zero or more Categories - * const categories = await prisma.category.findMany() - * ``` - */ - get category(): Prisma.CategoryDelegate; - - /** - * `prisma.product`: Exposes CRUD operations for the **Product** model. - * Example usage: - * ```ts - * // Fetch zero or more Products - * const products = await prisma.product.findMany() - * ``` - */ - get product(): Prisma.ProductDelegate; - - /** - * `prisma.cart`: Exposes CRUD operations for the **Cart** model. - * Example usage: - * ```ts - * // Fetch zero or more Carts - * const carts = await prisma.cart.findMany() - * ``` - */ - get cart(): Prisma.CartDelegate; - - /** - * `prisma.cartItem`: Exposes CRUD operations for the **CartItem** model. - * Example usage: - * ```ts - * // Fetch zero or more CartItems - * const cartItems = await prisma.cartItem.findMany() - * ``` - */ - get cartItem(): Prisma.CartItemDelegate; - - /** - * `prisma.favorites`: Exposes CRUD operations for the **Favorites** model. - * Example usage: - * ```ts - * // Fetch zero or more Favorites - * const favorites = await prisma.favorites.findMany() - * ``` - */ - get favorites(): Prisma.FavoritesDelegate; - - /** - * `prisma.employee`: Exposes CRUD operations for the **Employee** model. - * Example usage: - * ```ts - * // Fetch zero or more Employees - * const employees = await prisma.employee.findMany() - * ``` - */ - get employee(): Prisma.EmployeeDelegate; - - /** - * `prisma.employeeSchedule`: Exposes CRUD operations for the **EmployeeSchedule** model. - * Example usage: - * ```ts - * // Fetch zero or more EmployeeSchedules - * const employeeSchedules = await prisma.employeeSchedule.findMany() - * ``` - */ - get employeeSchedule(): Prisma.EmployeeScheduleDelegate; - - /** - * `prisma.wildberriesSupply`: Exposes CRUD operations for the **WildberriesSupply** model. - * Example usage: - * ```ts - * // Fetch zero or more WildberriesSupplies - * const wildberriesSupplies = await prisma.wildberriesSupply.findMany() - * ``` - */ - get wildberriesSupply(): Prisma.WildberriesSupplyDelegate; - - /** - * `prisma.wildberriesSupplyCard`: Exposes CRUD operations for the **WildberriesSupplyCard** model. - * Example usage: - * ```ts - * // Fetch zero or more WildberriesSupplyCards - * const wildberriesSupplyCards = await prisma.wildberriesSupplyCard.findMany() - * ``` - */ - get wildberriesSupplyCard(): Prisma.WildberriesSupplyCardDelegate; - - /** - * `prisma.logistics`: Exposes CRUD operations for the **Logistics** model. - * Example usage: - * ```ts - * // Fetch zero or more Logistics - * const logistics = await prisma.logistics.findMany() - * ``` - */ - get logistics(): Prisma.LogisticsDelegate; - - /** - * `prisma.supplyOrder`: Exposes CRUD operations for the **SupplyOrder** model. - * Example usage: - * ```ts - * // Fetch zero or more SupplyOrders - * const supplyOrders = await prisma.supplyOrder.findMany() - * ``` - */ - get supplyOrder(): Prisma.SupplyOrderDelegate; - - /** - * `prisma.supplyOrderItem`: Exposes CRUD operations for the **SupplyOrderItem** model. - * Example usage: - * ```ts - * // Fetch zero or more SupplyOrderItems - * const supplyOrderItems = await prisma.supplyOrderItem.findMany() - * ``` - */ - get supplyOrderItem(): Prisma.SupplyOrderItemDelegate; - - /** - * `prisma.supplySupplier`: Exposes CRUD operations for the **SupplySupplier** model. - * Example usage: - * ```ts - * // Fetch zero or more SupplySuppliers - * const supplySuppliers = await prisma.supplySupplier.findMany() - * ``` - */ - get supplySupplier(): Prisma.SupplySupplierDelegate; -} - -export namespace Prisma { - export import DMMF = runtime.DMMF - - export type PrismaPromise = $Public.PrismaPromise - - /** - * Validator - */ - export import validator = runtime.Public.validator - - /** - * Prisma Errors - */ - export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError - export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError - export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError - export import PrismaClientInitializationError = runtime.PrismaClientInitializationError - export import PrismaClientValidationError = runtime.PrismaClientValidationError - - /** - * Re-export of sql-template-tag - */ - export import sql = runtime.sqltag - export import empty = runtime.empty - export import join = runtime.join - export import raw = runtime.raw - export import Sql = runtime.Sql - - - - /** - * Decimal.js - */ - export import Decimal = runtime.Decimal - - export type DecimalJsLike = runtime.DecimalJsLike - - /** - * Metrics - */ - export type Metrics = runtime.Metrics - export type Metric = runtime.Metric - export type MetricHistogram = runtime.MetricHistogram - export type MetricHistogramBucket = runtime.MetricHistogramBucket - - /** - * Extensions - */ - export import Extension = $Extensions.UserArgs - export import getExtensionContext = runtime.Extensions.getExtensionContext - export import Args = $Public.Args - export import Payload = $Public.Payload - export import Result = $Public.Result - export import Exact = $Public.Exact - - /** - * Prisma Client JS version: 6.12.0 - * Query Engine version: 8047c96bbd92db98a2abc7c9323ce77c02c89dbc - */ - export type PrismaVersion = { - client: string - } - - export const prismaVersion: PrismaVersion - - /** - * Utility Types - */ - - - export import JsonObject = runtime.JsonObject - export import JsonArray = runtime.JsonArray - export import JsonValue = runtime.JsonValue - export import InputJsonObject = runtime.InputJsonObject - export import InputJsonArray = runtime.InputJsonArray - export import InputJsonValue = runtime.InputJsonValue - - /** - * Types of the values used to represent different kinds of `null` values when working with JSON fields. - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ - namespace NullTypes { - /** - * Type of `Prisma.DbNull`. - * - * You cannot use other instances of this class. Please use the `Prisma.DbNull` value. - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ - class DbNull { - private DbNull: never - private constructor() - } - - /** - * Type of `Prisma.JsonNull`. - * - * You cannot use other instances of this class. Please use the `Prisma.JsonNull` value. - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ - class JsonNull { - private JsonNull: never - private constructor() - } - - /** - * Type of `Prisma.AnyNull`. - * - * You cannot use other instances of this class. Please use the `Prisma.AnyNull` value. - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ - class AnyNull { - private AnyNull: never - private constructor() - } - } - - /** - * Helper for filtering JSON entries that have `null` on the database (empty on the db) - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ - export const DbNull: NullTypes.DbNull - - /** - * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ - export const JsonNull: NullTypes.JsonNull - - /** - * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ - export const AnyNull: NullTypes.AnyNull - - type SelectAndInclude = { - select: any - include: any - } - - type SelectAndOmit = { - select: any - omit: any - } - - /** - * Get the type of the value, that the Promise holds. - */ - export type PromiseType> = T extends PromiseLike ? U : T; - - /** - * Get the return type of a function which returns a Promise. - */ - export type PromiseReturnType $Utils.JsPromise> = PromiseType> - - /** - * 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; - - export type RequiredKeys = { - [K in keyof T]-?: {} extends Prisma__Pick ? never : K - }[keyof T] - - export type TruthyKeys = keyof { - [K in keyof T as T[K] extends false | undefined | null ? never : K]: K - } - - export type TrueKeys = TruthyKeys>> - - /** - * 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 - */ - 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] - - type Either< - O extends object, - K extends Key, - strict extends Boolean = 1 - > = O extends unknown ? _Either : never - - export type Union = any - - 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 AtBasic = K extends keyof O ? O[K] : never; - 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 - 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>>; - - /** - A [[Boolean]] - */ - export type Boolean = True | False - - // /** - // 1 - // */ - export type True = 1 - - /** - 0 - */ - 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 - - type Cast = A extends B ? A : B; - - export const type: unique symbol; - - - - /** - * Used by group by - */ - - 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 - - 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 - type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T - - /** - * Like `Pick`, but additionally can also accept an array of keys - */ - type PickEnumerable | keyof T> = Prisma__Pick> - - /** - * Exclude all keys with underscores - */ - type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T - - - export type FieldRef = runtime.FieldRef - - type FieldRefInputType = Model extends never ? never : FieldRef - - - export const ModelName: { - User: 'User', - Admin: 'Admin', - SmsCode: 'SmsCode', - Organization: 'Organization', - ApiKey: 'ApiKey', - CounterpartyRequest: 'CounterpartyRequest', - Counterparty: 'Counterparty', - Message: 'Message', - Service: 'Service', - Supply: 'Supply', - Category: 'Category', - Product: 'Product', - Cart: 'Cart', - CartItem: 'CartItem', - Favorites: 'Favorites', - Employee: 'Employee', - EmployeeSchedule: 'EmployeeSchedule', - WildberriesSupply: 'WildberriesSupply', - WildberriesSupplyCard: 'WildberriesSupplyCard', - Logistics: 'Logistics', - SupplyOrder: 'SupplyOrder', - SupplyOrderItem: 'SupplyOrderItem', - SupplySupplier: 'SupplySupplier' - }; - - export type ModelName = (typeof ModelName)[keyof typeof ModelName] - - - export type Datasources = { - db?: Datasource - } - - interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record> { - returns: Prisma.TypeMap - } - - export type TypeMap = { - globalOmitOptions: { - omit: GlobalOmitOptions - } - meta: { - modelProps: "user" | "admin" | "smsCode" | "organization" | "apiKey" | "counterpartyRequest" | "counterparty" | "message" | "service" | "supply" | "category" | "product" | "cart" | "cartItem" | "favorites" | "employee" | "employeeSchedule" | "wildberriesSupply" | "wildberriesSupplyCard" | "logistics" | "supplyOrder" | "supplyOrderItem" | "supplySupplier" - txIsolationLevel: Prisma.TransactionIsolationLevel - } - model: { - User: { - payload: Prisma.$UserPayload - fields: Prisma.UserFieldRefs - operations: { - findUnique: { - args: Prisma.UserFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.UserFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.UserFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.UserFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.UserFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.UserCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.UserCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.UserCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.UserDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.UserUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.UserDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.UserUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.UserUpdateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - upsert: { - args: Prisma.UserUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.UserAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.UserGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.UserCountArgs - result: $Utils.Optional | number - } - } - } - Admin: { - payload: Prisma.$AdminPayload - fields: Prisma.AdminFieldRefs - operations: { - findUnique: { - args: Prisma.AdminFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.AdminFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.AdminFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.AdminFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.AdminFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.AdminCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.AdminCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.AdminCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.AdminDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.AdminUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.AdminDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.AdminUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.AdminUpdateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - upsert: { - args: Prisma.AdminUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.AdminAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.AdminGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.AdminCountArgs - result: $Utils.Optional | number - } - } - } - SmsCode: { - payload: Prisma.$SmsCodePayload - fields: Prisma.SmsCodeFieldRefs - operations: { - findUnique: { - args: Prisma.SmsCodeFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.SmsCodeFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.SmsCodeFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.SmsCodeFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.SmsCodeFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.SmsCodeCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.SmsCodeCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.SmsCodeCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.SmsCodeDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.SmsCodeUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.SmsCodeDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.SmsCodeUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.SmsCodeUpdateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - upsert: { - args: Prisma.SmsCodeUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.SmsCodeAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.SmsCodeGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.SmsCodeCountArgs - result: $Utils.Optional | number - } - } - } - Organization: { - payload: Prisma.$OrganizationPayload - fields: Prisma.OrganizationFieldRefs - operations: { - findUnique: { - args: Prisma.OrganizationFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.OrganizationFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.OrganizationFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.OrganizationFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.OrganizationFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.OrganizationCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.OrganizationCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.OrganizationCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.OrganizationDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.OrganizationUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.OrganizationDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.OrganizationUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.OrganizationUpdateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - upsert: { - args: Prisma.OrganizationUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.OrganizationAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.OrganizationGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.OrganizationCountArgs - result: $Utils.Optional | number - } - } - } - ApiKey: { - payload: Prisma.$ApiKeyPayload - fields: Prisma.ApiKeyFieldRefs - operations: { - findUnique: { - args: Prisma.ApiKeyFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.ApiKeyFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.ApiKeyFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.ApiKeyFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.ApiKeyFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.ApiKeyCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.ApiKeyCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.ApiKeyCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.ApiKeyDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.ApiKeyUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.ApiKeyDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.ApiKeyUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.ApiKeyUpdateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - upsert: { - args: Prisma.ApiKeyUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.ApiKeyAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.ApiKeyGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.ApiKeyCountArgs - result: $Utils.Optional | number - } - } - } - CounterpartyRequest: { - payload: Prisma.$CounterpartyRequestPayload - fields: Prisma.CounterpartyRequestFieldRefs - operations: { - findUnique: { - args: Prisma.CounterpartyRequestFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.CounterpartyRequestFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.CounterpartyRequestFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.CounterpartyRequestFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.CounterpartyRequestFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.CounterpartyRequestCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.CounterpartyRequestCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.CounterpartyRequestCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.CounterpartyRequestDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.CounterpartyRequestUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.CounterpartyRequestDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.CounterpartyRequestUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.CounterpartyRequestUpdateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - upsert: { - args: Prisma.CounterpartyRequestUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.CounterpartyRequestAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.CounterpartyRequestGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.CounterpartyRequestCountArgs - result: $Utils.Optional | number - } - } - } - Counterparty: { - payload: Prisma.$CounterpartyPayload - fields: Prisma.CounterpartyFieldRefs - operations: { - findUnique: { - args: Prisma.CounterpartyFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.CounterpartyFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.CounterpartyFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.CounterpartyFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.CounterpartyFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.CounterpartyCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.CounterpartyCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.CounterpartyCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.CounterpartyDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.CounterpartyUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.CounterpartyDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.CounterpartyUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.CounterpartyUpdateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - upsert: { - args: Prisma.CounterpartyUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.CounterpartyAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.CounterpartyGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.CounterpartyCountArgs - result: $Utils.Optional | number - } - } - } - Message: { - payload: Prisma.$MessagePayload - fields: Prisma.MessageFieldRefs - operations: { - findUnique: { - args: Prisma.MessageFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.MessageFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.MessageFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.MessageFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.MessageFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.MessageCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.MessageCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.MessageCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.MessageDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.MessageUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.MessageDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.MessageUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.MessageUpdateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - upsert: { - args: Prisma.MessageUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.MessageAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.MessageGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.MessageCountArgs - result: $Utils.Optional | number - } - } - } - Service: { - payload: Prisma.$ServicePayload - fields: Prisma.ServiceFieldRefs - operations: { - findUnique: { - args: Prisma.ServiceFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.ServiceFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.ServiceFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.ServiceFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.ServiceFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.ServiceCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.ServiceCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.ServiceCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.ServiceDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.ServiceUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.ServiceDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.ServiceUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.ServiceUpdateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - upsert: { - args: Prisma.ServiceUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.ServiceAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.ServiceGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.ServiceCountArgs - result: $Utils.Optional | number - } - } - } - Supply: { - payload: Prisma.$SupplyPayload - fields: Prisma.SupplyFieldRefs - operations: { - findUnique: { - args: Prisma.SupplyFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.SupplyFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.SupplyFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.SupplyFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.SupplyFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.SupplyCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.SupplyCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.SupplyCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.SupplyDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.SupplyUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.SupplyDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.SupplyUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.SupplyUpdateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - upsert: { - args: Prisma.SupplyUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.SupplyAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.SupplyGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.SupplyCountArgs - result: $Utils.Optional | number - } - } - } - Category: { - payload: Prisma.$CategoryPayload - fields: Prisma.CategoryFieldRefs - operations: { - findUnique: { - args: Prisma.CategoryFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.CategoryFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.CategoryFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.CategoryFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.CategoryFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.CategoryCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.CategoryCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.CategoryCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.CategoryDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.CategoryUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.CategoryDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.CategoryUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.CategoryUpdateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - upsert: { - args: Prisma.CategoryUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.CategoryAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.CategoryGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.CategoryCountArgs - result: $Utils.Optional | number - } - } - } - Product: { - payload: Prisma.$ProductPayload - fields: Prisma.ProductFieldRefs - operations: { - findUnique: { - args: Prisma.ProductFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.ProductFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.ProductFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.ProductFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.ProductFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.ProductCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.ProductCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.ProductCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.ProductDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.ProductUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.ProductDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.ProductUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.ProductUpdateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - upsert: { - args: Prisma.ProductUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.ProductAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.ProductGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.ProductCountArgs - result: $Utils.Optional | number - } - } - } - Cart: { - payload: Prisma.$CartPayload - fields: Prisma.CartFieldRefs - operations: { - findUnique: { - args: Prisma.CartFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.CartFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.CartFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.CartFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.CartFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.CartCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.CartCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.CartCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.CartDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.CartUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.CartDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.CartUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.CartUpdateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - upsert: { - args: Prisma.CartUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.CartAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.CartGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.CartCountArgs - result: $Utils.Optional | number - } - } - } - CartItem: { - payload: Prisma.$CartItemPayload - fields: Prisma.CartItemFieldRefs - operations: { - findUnique: { - args: Prisma.CartItemFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.CartItemFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.CartItemFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.CartItemFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.CartItemFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.CartItemCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.CartItemCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.CartItemCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.CartItemDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.CartItemUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.CartItemDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.CartItemUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.CartItemUpdateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - upsert: { - args: Prisma.CartItemUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.CartItemAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.CartItemGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.CartItemCountArgs - result: $Utils.Optional | number - } - } - } - Favorites: { - payload: Prisma.$FavoritesPayload - fields: Prisma.FavoritesFieldRefs - operations: { - findUnique: { - args: Prisma.FavoritesFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.FavoritesFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.FavoritesFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.FavoritesFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.FavoritesFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.FavoritesCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.FavoritesCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.FavoritesCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.FavoritesDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.FavoritesUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.FavoritesDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.FavoritesUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.FavoritesUpdateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - upsert: { - args: Prisma.FavoritesUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.FavoritesAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.FavoritesGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.FavoritesCountArgs - result: $Utils.Optional | number - } - } - } - Employee: { - payload: Prisma.$EmployeePayload - fields: Prisma.EmployeeFieldRefs - operations: { - findUnique: { - args: Prisma.EmployeeFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.EmployeeFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.EmployeeFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.EmployeeFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.EmployeeFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.EmployeeCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.EmployeeCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.EmployeeCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.EmployeeDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.EmployeeUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.EmployeeDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.EmployeeUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.EmployeeUpdateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - upsert: { - args: Prisma.EmployeeUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.EmployeeAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.EmployeeGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.EmployeeCountArgs - result: $Utils.Optional | number - } - } - } - EmployeeSchedule: { - payload: Prisma.$EmployeeSchedulePayload - fields: Prisma.EmployeeScheduleFieldRefs - operations: { - findUnique: { - args: Prisma.EmployeeScheduleFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.EmployeeScheduleFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.EmployeeScheduleFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.EmployeeScheduleFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.EmployeeScheduleFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.EmployeeScheduleCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.EmployeeScheduleCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.EmployeeScheduleCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.EmployeeScheduleDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.EmployeeScheduleUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.EmployeeScheduleDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.EmployeeScheduleUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.EmployeeScheduleUpdateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - upsert: { - args: Prisma.EmployeeScheduleUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.EmployeeScheduleAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.EmployeeScheduleGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.EmployeeScheduleCountArgs - result: $Utils.Optional | number - } - } - } - WildberriesSupply: { - payload: Prisma.$WildberriesSupplyPayload - fields: Prisma.WildberriesSupplyFieldRefs - operations: { - findUnique: { - args: Prisma.WildberriesSupplyFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.WildberriesSupplyFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.WildberriesSupplyFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.WildberriesSupplyFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.WildberriesSupplyFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.WildberriesSupplyCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.WildberriesSupplyCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.WildberriesSupplyCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.WildberriesSupplyDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.WildberriesSupplyUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.WildberriesSupplyDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.WildberriesSupplyUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.WildberriesSupplyUpdateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - upsert: { - args: Prisma.WildberriesSupplyUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.WildberriesSupplyAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.WildberriesSupplyGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.WildberriesSupplyCountArgs - result: $Utils.Optional | number - } - } - } - WildberriesSupplyCard: { - payload: Prisma.$WildberriesSupplyCardPayload - fields: Prisma.WildberriesSupplyCardFieldRefs - operations: { - findUnique: { - args: Prisma.WildberriesSupplyCardFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.WildberriesSupplyCardFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.WildberriesSupplyCardFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.WildberriesSupplyCardFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.WildberriesSupplyCardFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.WildberriesSupplyCardCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.WildberriesSupplyCardCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.WildberriesSupplyCardCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.WildberriesSupplyCardDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.WildberriesSupplyCardUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.WildberriesSupplyCardDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.WildberriesSupplyCardUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.WildberriesSupplyCardUpdateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - upsert: { - args: Prisma.WildberriesSupplyCardUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.WildberriesSupplyCardAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.WildberriesSupplyCardGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.WildberriesSupplyCardCountArgs - result: $Utils.Optional | number - } - } - } - Logistics: { - payload: Prisma.$LogisticsPayload - fields: Prisma.LogisticsFieldRefs - operations: { - findUnique: { - args: Prisma.LogisticsFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.LogisticsFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.LogisticsFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.LogisticsFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.LogisticsFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.LogisticsCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.LogisticsCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.LogisticsCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.LogisticsDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.LogisticsUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.LogisticsDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.LogisticsUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.LogisticsUpdateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - upsert: { - args: Prisma.LogisticsUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.LogisticsAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.LogisticsGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.LogisticsCountArgs - result: $Utils.Optional | number - } - } - } - SupplyOrder: { - payload: Prisma.$SupplyOrderPayload - fields: Prisma.SupplyOrderFieldRefs - operations: { - findUnique: { - args: Prisma.SupplyOrderFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.SupplyOrderFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.SupplyOrderFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.SupplyOrderFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.SupplyOrderFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.SupplyOrderCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.SupplyOrderCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.SupplyOrderCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.SupplyOrderDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.SupplyOrderUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.SupplyOrderDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.SupplyOrderUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.SupplyOrderUpdateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - upsert: { - args: Prisma.SupplyOrderUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.SupplyOrderAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.SupplyOrderGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.SupplyOrderCountArgs - result: $Utils.Optional | number - } - } - } - SupplyOrderItem: { - payload: Prisma.$SupplyOrderItemPayload - fields: Prisma.SupplyOrderItemFieldRefs - operations: { - findUnique: { - args: Prisma.SupplyOrderItemFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.SupplyOrderItemFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.SupplyOrderItemFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.SupplyOrderItemFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.SupplyOrderItemFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.SupplyOrderItemCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.SupplyOrderItemCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.SupplyOrderItemCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.SupplyOrderItemDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.SupplyOrderItemUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.SupplyOrderItemDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.SupplyOrderItemUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.SupplyOrderItemUpdateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - upsert: { - args: Prisma.SupplyOrderItemUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.SupplyOrderItemAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.SupplyOrderItemGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.SupplyOrderItemCountArgs - result: $Utils.Optional | number - } - } - } - SupplySupplier: { - payload: Prisma.$SupplySupplierPayload - fields: Prisma.SupplySupplierFieldRefs - operations: { - findUnique: { - args: Prisma.SupplySupplierFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.SupplySupplierFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.SupplySupplierFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.SupplySupplierFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.SupplySupplierFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.SupplySupplierCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.SupplySupplierCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.SupplySupplierCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.SupplySupplierDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.SupplySupplierUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.SupplySupplierDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.SupplySupplierUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.SupplySupplierUpdateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - upsert: { - args: Prisma.SupplySupplierUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.SupplySupplierAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.SupplySupplierGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.SupplySupplierCountArgs - result: $Utils.Optional | number - } - } - } - } - } & { - other: { - payload: any - operations: { - $executeRaw: { - args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], - result: any - } - $executeRawUnsafe: { - args: [query: string, ...values: any[]], - result: any - } - $queryRaw: { - args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], - result: any - } - $queryRawUnsafe: { - args: [query: string, ...values: any[]], - result: any - } - } - } - } - export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs> - export type DefaultPrismaClient = PrismaClient - export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' - export interface PrismaClientOptions { - /** - * Overwrites the datasource url from your schema.prisma file - */ - datasources?: Datasources - /** - * Overwrites the datasource url from your schema.prisma file - */ - datasourceUrl?: string - /** - * @default "colorless" - */ - errorFormat?: ErrorFormat - /** - * @example - * ``` - * // Defaults to stdout - * log: ['query', 'info', 'warn', 'error'] - * - * // Emit as events - * log: [ - * { emit: 'stdout', level: 'query' }, - * { emit: 'stdout', level: 'info' }, - * { emit: 'stdout', level: 'warn' } - * { emit: 'stdout', level: 'error' } - * ] - * ``` - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option). - */ - log?: (LogLevel | LogDefinition)[] - /** - * The default values for transactionOptions - * maxWait ?= 2000 - * timeout ?= 5000 - */ - transactionOptions?: { - maxWait?: number - timeout?: number - isolationLevel?: Prisma.TransactionIsolationLevel - } - /** - * Global configuration for omitting model fields by default. - * - * @example - * ``` - * const prisma = new PrismaClient({ - * omit: { - * user: { - * password: true - * } - * } - * }) - * ``` - */ - omit?: Prisma.GlobalOmitConfig - } - export type GlobalOmitConfig = { - user?: UserOmit - admin?: AdminOmit - smsCode?: SmsCodeOmit - organization?: OrganizationOmit - apiKey?: ApiKeyOmit - counterpartyRequest?: CounterpartyRequestOmit - counterparty?: CounterpartyOmit - message?: MessageOmit - service?: ServiceOmit - supply?: SupplyOmit - category?: CategoryOmit - product?: ProductOmit - cart?: CartOmit - cartItem?: CartItemOmit - favorites?: FavoritesOmit - employee?: EmployeeOmit - employeeSchedule?: EmployeeScheduleOmit - wildberriesSupply?: WildberriesSupplyOmit - wildberriesSupplyCard?: WildberriesSupplyCardOmit - logistics?: LogisticsOmit - supplyOrder?: SupplyOrderOmit - supplyOrderItem?: SupplyOrderItemOmit - supplySupplier?: SupplySupplierOmit - } - - /* Types for Logging */ - export type LogLevel = 'info' | 'query' | 'warn' | 'error' - export type LogDefinition = { - level: LogLevel - emit: 'stdout' | 'event' - } - - export type GetLogType = T extends LogDefinition ? T['emit'] extends 'event' ? T['level'] : never : never - export type GetEvents = T extends Array ? - GetLogType | GetLogType | GetLogType | 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' - - /** - * These options are being passed into the middleware as "params" - */ - export type MiddlewareParams = { - model?: ModelName - action: PrismaAction - args: any - dataPath: string[] - runInTransaction: boolean - } - - /** - * The `T` type makes sure, that the `return proceed` is not forgotten in the middleware implementation - */ - export type Middleware = ( - params: MiddlewareParams, - next: (params: MiddlewareParams) => $Utils.JsPromise, - ) => $Utils.JsPromise - - // tested in getLogLevel.test.ts - export function getLogLevel(log: Array): LogLevel | undefined; - - /** - * `PrismaClient` proxy available in interactive transactions. - */ - export type TransactionClient = Omit - - export type Datasource = { - url?: string - } - - /** - * Count Types - */ - - - /** - * Count Type UserCountOutputType - */ - - export type UserCountOutputType = { - sentMessages: number - smsCodes: number - } - - export type UserCountOutputTypeSelect = { - sentMessages?: boolean | UserCountOutputTypeCountSentMessagesArgs - smsCodes?: boolean | UserCountOutputTypeCountSmsCodesArgs - } - - // Custom InputTypes - /** - * UserCountOutputType without action - */ - export type UserCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the UserCountOutputType - */ - select?: UserCountOutputTypeSelect | null - } - - /** - * UserCountOutputType without action - */ - export type UserCountOutputTypeCountSentMessagesArgs = { - where?: MessageWhereInput - } - - /** - * UserCountOutputType without action - */ - export type UserCountOutputTypeCountSmsCodesArgs = { - where?: SmsCodeWhereInput - } - - - /** - * Count Type OrganizationCountOutputType - */ - - export type OrganizationCountOutputType = { - apiKeys: number - counterpartyOf: number - organizationCounterparties: number - receivedRequests: number - sentRequests: number - employees: number - favorites: number - receivedMessages: number - sentMessages: number - products: number - services: number - supplies: number - users: number - logistics: number - supplyOrders: number - partnerSupplyOrders: number - fulfillmentSupplyOrders: number - wildberriesSupplies: number - supplySuppliers: number - } - - export type OrganizationCountOutputTypeSelect = { - apiKeys?: boolean | OrganizationCountOutputTypeCountApiKeysArgs - counterpartyOf?: boolean | OrganizationCountOutputTypeCountCounterpartyOfArgs - organizationCounterparties?: boolean | OrganizationCountOutputTypeCountOrganizationCounterpartiesArgs - receivedRequests?: boolean | OrganizationCountOutputTypeCountReceivedRequestsArgs - sentRequests?: boolean | OrganizationCountOutputTypeCountSentRequestsArgs - employees?: boolean | OrganizationCountOutputTypeCountEmployeesArgs - favorites?: boolean | OrganizationCountOutputTypeCountFavoritesArgs - receivedMessages?: boolean | OrganizationCountOutputTypeCountReceivedMessagesArgs - sentMessages?: boolean | OrganizationCountOutputTypeCountSentMessagesArgs - products?: boolean | OrganizationCountOutputTypeCountProductsArgs - services?: boolean | OrganizationCountOutputTypeCountServicesArgs - supplies?: boolean | OrganizationCountOutputTypeCountSuppliesArgs - users?: boolean | OrganizationCountOutputTypeCountUsersArgs - logistics?: boolean | OrganizationCountOutputTypeCountLogisticsArgs - supplyOrders?: boolean | OrganizationCountOutputTypeCountSupplyOrdersArgs - partnerSupplyOrders?: boolean | OrganizationCountOutputTypeCountPartnerSupplyOrdersArgs - fulfillmentSupplyOrders?: boolean | OrganizationCountOutputTypeCountFulfillmentSupplyOrdersArgs - wildberriesSupplies?: boolean | OrganizationCountOutputTypeCountWildberriesSuppliesArgs - supplySuppliers?: boolean | OrganizationCountOutputTypeCountSupplySuppliersArgs - } - - // Custom InputTypes - /** - * OrganizationCountOutputType without action - */ - export type OrganizationCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the OrganizationCountOutputType - */ - select?: OrganizationCountOutputTypeSelect | null - } - - /** - * OrganizationCountOutputType without action - */ - export type OrganizationCountOutputTypeCountApiKeysArgs = { - where?: ApiKeyWhereInput - } - - /** - * OrganizationCountOutputType without action - */ - export type OrganizationCountOutputTypeCountCounterpartyOfArgs = { - where?: CounterpartyWhereInput - } - - /** - * OrganizationCountOutputType without action - */ - export type OrganizationCountOutputTypeCountOrganizationCounterpartiesArgs = { - where?: CounterpartyWhereInput - } - - /** - * OrganizationCountOutputType without action - */ - export type OrganizationCountOutputTypeCountReceivedRequestsArgs = { - where?: CounterpartyRequestWhereInput - } - - /** - * OrganizationCountOutputType without action - */ - export type OrganizationCountOutputTypeCountSentRequestsArgs = { - where?: CounterpartyRequestWhereInput - } - - /** - * OrganizationCountOutputType without action - */ - export type OrganizationCountOutputTypeCountEmployeesArgs = { - where?: EmployeeWhereInput - } - - /** - * OrganizationCountOutputType without action - */ - export type OrganizationCountOutputTypeCountFavoritesArgs = { - where?: FavoritesWhereInput - } - - /** - * OrganizationCountOutputType without action - */ - export type OrganizationCountOutputTypeCountReceivedMessagesArgs = { - where?: MessageWhereInput - } - - /** - * OrganizationCountOutputType without action - */ - export type OrganizationCountOutputTypeCountSentMessagesArgs = { - where?: MessageWhereInput - } - - /** - * OrganizationCountOutputType without action - */ - export type OrganizationCountOutputTypeCountProductsArgs = { - where?: ProductWhereInput - } - - /** - * OrganizationCountOutputType without action - */ - export type OrganizationCountOutputTypeCountServicesArgs = { - where?: ServiceWhereInput - } - - /** - * OrganizationCountOutputType without action - */ - export type OrganizationCountOutputTypeCountSuppliesArgs = { - where?: SupplyWhereInput - } - - /** - * OrganizationCountOutputType without action - */ - export type OrganizationCountOutputTypeCountUsersArgs = { - where?: UserWhereInput - } - - /** - * OrganizationCountOutputType without action - */ - export type OrganizationCountOutputTypeCountLogisticsArgs = { - where?: LogisticsWhereInput - } - - /** - * OrganizationCountOutputType without action - */ - export type OrganizationCountOutputTypeCountSupplyOrdersArgs = { - where?: SupplyOrderWhereInput - } - - /** - * OrganizationCountOutputType without action - */ - export type OrganizationCountOutputTypeCountPartnerSupplyOrdersArgs = { - where?: SupplyOrderWhereInput - } - - /** - * OrganizationCountOutputType without action - */ - export type OrganizationCountOutputTypeCountFulfillmentSupplyOrdersArgs = { - where?: SupplyOrderWhereInput - } - - /** - * OrganizationCountOutputType without action - */ - export type OrganizationCountOutputTypeCountWildberriesSuppliesArgs = { - where?: WildberriesSupplyWhereInput - } - - /** - * OrganizationCountOutputType without action - */ - export type OrganizationCountOutputTypeCountSupplySuppliersArgs = { - where?: SupplySupplierWhereInput - } - - - /** - * Count Type CategoryCountOutputType - */ - - export type CategoryCountOutputType = { - products: number - } - - export type CategoryCountOutputTypeSelect = { - products?: boolean | CategoryCountOutputTypeCountProductsArgs - } - - // Custom InputTypes - /** - * CategoryCountOutputType without action - */ - export type CategoryCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the CategoryCountOutputType - */ - select?: CategoryCountOutputTypeSelect | null - } - - /** - * CategoryCountOutputType without action - */ - export type CategoryCountOutputTypeCountProductsArgs = { - where?: ProductWhereInput - } - - - /** - * Count Type ProductCountOutputType - */ - - export type ProductCountOutputType = { - cartItems: number - favorites: number - supplyOrderItems: number - } - - export type ProductCountOutputTypeSelect = { - cartItems?: boolean | ProductCountOutputTypeCountCartItemsArgs - favorites?: boolean | ProductCountOutputTypeCountFavoritesArgs - supplyOrderItems?: boolean | ProductCountOutputTypeCountSupplyOrderItemsArgs - } - - // Custom InputTypes - /** - * ProductCountOutputType without action - */ - export type ProductCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the ProductCountOutputType - */ - select?: ProductCountOutputTypeSelect | null - } - - /** - * ProductCountOutputType without action - */ - export type ProductCountOutputTypeCountCartItemsArgs = { - where?: CartItemWhereInput - } - - /** - * ProductCountOutputType without action - */ - export type ProductCountOutputTypeCountFavoritesArgs = { - where?: FavoritesWhereInput - } - - /** - * ProductCountOutputType without action - */ - export type ProductCountOutputTypeCountSupplyOrderItemsArgs = { - where?: SupplyOrderItemWhereInput - } - - - /** - * Count Type CartCountOutputType - */ - - export type CartCountOutputType = { - items: number - } - - export type CartCountOutputTypeSelect = { - items?: boolean | CartCountOutputTypeCountItemsArgs - } - - // Custom InputTypes - /** - * CartCountOutputType without action - */ - export type CartCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the CartCountOutputType - */ - select?: CartCountOutputTypeSelect | null - } - - /** - * CartCountOutputType without action - */ - export type CartCountOutputTypeCountItemsArgs = { - where?: CartItemWhereInput - } - - - /** - * Count Type EmployeeCountOutputType - */ - - export type EmployeeCountOutputType = { - scheduleRecords: number - } - - export type EmployeeCountOutputTypeSelect = { - scheduleRecords?: boolean | EmployeeCountOutputTypeCountScheduleRecordsArgs - } - - // Custom InputTypes - /** - * EmployeeCountOutputType without action - */ - export type EmployeeCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the EmployeeCountOutputType - */ - select?: EmployeeCountOutputTypeSelect | null - } - - /** - * EmployeeCountOutputType without action - */ - export type EmployeeCountOutputTypeCountScheduleRecordsArgs = { - where?: EmployeeScheduleWhereInput - } - - - /** - * Count Type WildberriesSupplyCountOutputType - */ - - export type WildberriesSupplyCountOutputType = { - cards: number - } - - export type WildberriesSupplyCountOutputTypeSelect = { - cards?: boolean | WildberriesSupplyCountOutputTypeCountCardsArgs - } - - // Custom InputTypes - /** - * WildberriesSupplyCountOutputType without action - */ - export type WildberriesSupplyCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the WildberriesSupplyCountOutputType - */ - select?: WildberriesSupplyCountOutputTypeSelect | null - } - - /** - * WildberriesSupplyCountOutputType without action - */ - export type WildberriesSupplyCountOutputTypeCountCardsArgs = { - where?: WildberriesSupplyCardWhereInput - } - - - /** - * Count Type SupplyOrderCountOutputType - */ - - export type SupplyOrderCountOutputType = { - items: number - } - - export type SupplyOrderCountOutputTypeSelect = { - items?: boolean | SupplyOrderCountOutputTypeCountItemsArgs - } - - // Custom InputTypes - /** - * SupplyOrderCountOutputType without action - */ - export type SupplyOrderCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the SupplyOrderCountOutputType - */ - select?: SupplyOrderCountOutputTypeSelect | null - } - - /** - * SupplyOrderCountOutputType without action - */ - export type SupplyOrderCountOutputTypeCountItemsArgs = { - where?: SupplyOrderItemWhereInput - } - - - /** - * Models - */ - - /** - * Model User - */ - - export type AggregateUser = { - _count: UserCountAggregateOutputType | null - _min: UserMinAggregateOutputType | null - _max: UserMaxAggregateOutputType | null - } - - export type UserMinAggregateOutputType = { - id: string | null - phone: string | null - avatar: string | null - managerName: string | null - createdAt: Date | null - updatedAt: Date | null - organizationId: string | null - } - - export type UserMaxAggregateOutputType = { - id: string | null - phone: string | null - avatar: string | null - managerName: string | null - createdAt: Date | null - updatedAt: Date | null - organizationId: string | null - } - - export type UserCountAggregateOutputType = { - id: number - phone: number - avatar: number - managerName: number - createdAt: number - updatedAt: number - organizationId: number - _all: number - } - - - export type UserMinAggregateInputType = { - id?: true - phone?: true - avatar?: true - managerName?: true - createdAt?: true - updatedAt?: true - organizationId?: true - } - - export type UserMaxAggregateInputType = { - id?: true - phone?: true - avatar?: true - managerName?: true - createdAt?: true - updatedAt?: true - organizationId?: true - } - - export type UserCountAggregateInputType = { - id?: true - phone?: true - avatar?: true - managerName?: true - createdAt?: true - updatedAt?: true - organizationId?: true - _all?: true - } - - export type UserAggregateArgs = { - /** - * Filter which User to aggregate. - */ - where?: UserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Users to fetch. - */ - orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: UserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Users from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Users. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Users - **/ - _count?: true | UserCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: UserMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: UserMaxAggregateInputType - } - - export type GetUserAggregateType = { - [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type UserGroupByArgs = { - where?: UserWhereInput - orderBy?: UserOrderByWithAggregationInput | UserOrderByWithAggregationInput[] - by: UserScalarFieldEnum[] | UserScalarFieldEnum - having?: UserScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: UserCountAggregateInputType | true - _min?: UserMinAggregateInputType - _max?: UserMaxAggregateInputType - } - - export type UserGroupByOutputType = { - id: string - phone: string - avatar: string | null - managerName: string | null - createdAt: Date - updatedAt: Date - organizationId: string | null - _count: UserCountAggregateOutputType | null - _min: UserMinAggregateOutputType | null - _max: UserMaxAggregateOutputType | null - } - - type GetUserGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type UserSelect = $Extensions.GetSelect<{ - id?: boolean - phone?: boolean - avatar?: boolean - managerName?: boolean - createdAt?: boolean - updatedAt?: boolean - organizationId?: boolean - sentMessages?: boolean | User$sentMessagesArgs - smsCodes?: boolean | User$smsCodesArgs - organization?: boolean | User$organizationArgs - _count?: boolean | UserCountOutputTypeDefaultArgs - }, ExtArgs["result"]["user"]> - - export type UserSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - phone?: boolean - avatar?: boolean - managerName?: boolean - createdAt?: boolean - updatedAt?: boolean - organizationId?: boolean - organization?: boolean | User$organizationArgs - }, ExtArgs["result"]["user"]> - - export type UserSelectUpdateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - phone?: boolean - avatar?: boolean - managerName?: boolean - createdAt?: boolean - updatedAt?: boolean - organizationId?: boolean - organization?: boolean | User$organizationArgs - }, ExtArgs["result"]["user"]> - - export type UserSelectScalar = { - id?: boolean - phone?: boolean - avatar?: boolean - managerName?: boolean - createdAt?: boolean - updatedAt?: boolean - organizationId?: boolean - } - - export type UserOmit = $Extensions.GetOmit<"id" | "phone" | "avatar" | "managerName" | "createdAt" | "updatedAt" | "organizationId", ExtArgs["result"]["user"]> - export type UserInclude = { - sentMessages?: boolean | User$sentMessagesArgs - smsCodes?: boolean | User$smsCodesArgs - organization?: boolean | User$organizationArgs - _count?: boolean | UserCountOutputTypeDefaultArgs - } - export type UserIncludeCreateManyAndReturn = { - organization?: boolean | User$organizationArgs - } - export type UserIncludeUpdateManyAndReturn = { - organization?: boolean | User$organizationArgs - } - - export type $UserPayload = { - name: "User" - objects: { - sentMessages: Prisma.$MessagePayload[] - smsCodes: Prisma.$SmsCodePayload[] - organization: Prisma.$OrganizationPayload | null - } - scalars: $Extensions.GetPayloadResult<{ - id: string - phone: string - avatar: string | null - managerName: string | null - createdAt: Date - updatedAt: Date - organizationId: string | null - }, ExtArgs["result"]["user"]> - composites: {} - } - - type UserGetPayload = $Result.GetResult - - type UserCountArgs = - Omit & { - select?: UserCountAggregateInputType | true - } - - export interface UserDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['User'], meta: { name: 'User' } } - /** - * Find zero or one User that matches the filter. - * @param {UserFindUniqueArgs} args - Arguments to find a User - * @example - * // Get one User - * const user = await prisma.user.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one User that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User - * @example - * // Get one User - * const user = await prisma.user.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first User that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserFindFirstArgs} args - Arguments to find a User - * @example - * // Get one User - * const user = await prisma.user.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first User that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserFindFirstOrThrowArgs} args - Arguments to find a User - * @example - * // Get one User - * const user = await prisma.user.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Users that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Users - * const users = await prisma.user.findMany() - * - * // Get first 10 Users - * const users = await prisma.user.findMany({ take: 10 }) - * - * // Only select the `id` - * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> - - /** - * Create a User. - * @param {UserCreateArgs} args - Arguments to create a User. - * @example - * // Create one User - * const User = await prisma.user.create({ - * data: { - * // ... data to create a User - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Users. - * @param {UserCreateManyArgs} args - Arguments to create many Users. - * @example - * // Create many Users - * const user = await prisma.user.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Users and returns the data saved in the database. - * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users. - * @example - * // Create many Users - * const user = await prisma.user.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Users and only return the `id` - * const userWithIdOnly = await prisma.user.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a User. - * @param {UserDeleteArgs} args - Arguments to delete one User. - * @example - * // Delete one User - * const User = await prisma.user.delete({ - * where: { - * // ... filter to delete one User - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one User. - * @param {UserUpdateArgs} args - Arguments to update one User. - * @example - * // Update one User - * const user = await prisma.user.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Users. - * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete. - * @example - * // Delete a few Users - * const { count } = await prisma.user.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Users. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Users - * const user = await prisma.user.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Users and returns the data updated in the database. - * @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users. - * @example - * // Update many Users - * const user = await prisma.user.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Users and only return the `id` - * const userWithIdOnly = await prisma.user.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one User. - * @param {UserUpsertArgs} args - Arguments to update or create a User. - * @example - * // Update or create a User - * const user = await prisma.user.upsert({ - * create: { - * // ... data to create a User - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the User we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Users. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserCountArgs} args - Arguments to filter Users to count. - * @example - * // Count the number of Users - * const count = await prisma.user.count({ - * where: { - * // ... the filter for the Users we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a User. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by User. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends UserGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: UserGroupByArgs['orderBy'] } - : { orderBy?: UserGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetUserGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the User model - */ - readonly fields: UserFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for User. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__UserClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - sentMessages = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - smsCodes = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - organization = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $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): $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): $Utils.JsPromise - } - - - - - /** - * Fields of the User model - */ - interface UserFieldRefs { - readonly id: FieldRef<"User", 'String'> - readonly phone: FieldRef<"User", 'String'> - readonly avatar: FieldRef<"User", 'String'> - readonly managerName: FieldRef<"User", 'String'> - readonly createdAt: FieldRef<"User", 'DateTime'> - readonly updatedAt: FieldRef<"User", 'DateTime'> - readonly organizationId: FieldRef<"User", 'String'> - } - - - // Custom InputTypes - /** - * User findUnique - */ - export type UserFindUniqueArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - /** - * Filter, which User to fetch. - */ - where: UserWhereUniqueInput - } - - /** - * User findUniqueOrThrow - */ - export type UserFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - /** - * Filter, which User to fetch. - */ - where: UserWhereUniqueInput - } - - /** - * User findFirst - */ - export type UserFindFirstArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - /** - * Filter, which User to fetch. - */ - where?: UserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Users to fetch. - */ - orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Users. - */ - cursor?: UserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Users from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Users. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Users. - */ - distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] - } - - /** - * User findFirstOrThrow - */ - export type UserFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - /** - * Filter, which User to fetch. - */ - where?: UserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Users to fetch. - */ - orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Users. - */ - cursor?: UserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Users from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Users. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Users. - */ - distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] - } - - /** - * User findMany - */ - export type UserFindManyArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - /** - * Filter, which Users to fetch. - */ - where?: UserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Users to fetch. - */ - orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Users. - */ - cursor?: UserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Users from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Users. - */ - skip?: number - distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] - } - - /** - * User create - */ - export type UserCreateArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - /** - * The data needed to create a User. - */ - data: XOR - } - - /** - * User createMany - */ - export type UserCreateManyArgs = { - /** - * The data used to create many Users. - */ - data: UserCreateManyInput | UserCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * User createManyAndReturn - */ - export type UserCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelectCreateManyAndReturn | null - /** - * Omit specific fields from the User - */ - omit?: UserOmit | null - /** - * The data used to create many Users. - */ - data: UserCreateManyInput | UserCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: UserIncludeCreateManyAndReturn | null - } - - /** - * User update - */ - export type UserUpdateArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - /** - * The data needed to update a User. - */ - data: XOR - /** - * Choose, which User to update. - */ - where: UserWhereUniqueInput - } - - /** - * User updateMany - */ - export type UserUpdateManyArgs = { - /** - * The data used to update Users. - */ - data: XOR - /** - * Filter which Users to update - */ - where?: UserWhereInput - /** - * Limit how many Users to update. - */ - limit?: number - } - - /** - * User updateManyAndReturn - */ - export type UserUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the User - */ - omit?: UserOmit | null - /** - * The data used to update Users. - */ - data: XOR - /** - * Filter which Users to update - */ - where?: UserWhereInput - /** - * Limit how many Users to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: UserIncludeUpdateManyAndReturn | null - } - - /** - * User upsert - */ - export type UserUpsertArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - /** - * The filter to search for the User to update in case it exists. - */ - where: UserWhereUniqueInput - /** - * In case the User found by the `where` argument doesn't exist, create a new User with this data. - */ - create: XOR - /** - * In case the User was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * User delete - */ - export type UserDeleteArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - /** - * Filter which User to delete. - */ - where: UserWhereUniqueInput - } - - /** - * User deleteMany - */ - export type UserDeleteManyArgs = { - /** - * Filter which Users to delete - */ - where?: UserWhereInput - /** - * Limit how many Users to delete. - */ - limit?: number - } - - /** - * User.sentMessages - */ - export type User$sentMessagesArgs = { - /** - * Select specific fields to fetch from the Message - */ - select?: MessageSelect | null - /** - * Omit specific fields from the Message - */ - omit?: MessageOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MessageInclude | null - where?: MessageWhereInput - orderBy?: MessageOrderByWithRelationInput | MessageOrderByWithRelationInput[] - cursor?: MessageWhereUniqueInput - take?: number - skip?: number - distinct?: MessageScalarFieldEnum | MessageScalarFieldEnum[] - } - - /** - * User.smsCodes - */ - export type User$smsCodesArgs = { - /** - * Select specific fields to fetch from the SmsCode - */ - select?: SmsCodeSelect | null - /** - * Omit specific fields from the SmsCode - */ - omit?: SmsCodeOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SmsCodeInclude | null - where?: SmsCodeWhereInput - orderBy?: SmsCodeOrderByWithRelationInput | SmsCodeOrderByWithRelationInput[] - cursor?: SmsCodeWhereUniqueInput - take?: number - skip?: number - distinct?: SmsCodeScalarFieldEnum | SmsCodeScalarFieldEnum[] - } - - /** - * User.organization - */ - export type User$organizationArgs = { - /** - * Select specific fields to fetch from the Organization - */ - select?: OrganizationSelect | null - /** - * Omit specific fields from the Organization - */ - omit?: OrganizationOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: OrganizationInclude | null - where?: OrganizationWhereInput - } - - /** - * User without action - */ - export type UserDefaultArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - } - - - /** - * Model Admin - */ - - export type AggregateAdmin = { - _count: AdminCountAggregateOutputType | null - _min: AdminMinAggregateOutputType | null - _max: AdminMaxAggregateOutputType | null - } - - export type AdminMinAggregateOutputType = { - id: string | null - username: string | null - password: string | null - email: string | null - isActive: boolean | null - lastLogin: Date | null - createdAt: Date | null - updatedAt: Date | null - } - - export type AdminMaxAggregateOutputType = { - id: string | null - username: string | null - password: string | null - email: string | null - isActive: boolean | null - lastLogin: Date | null - createdAt: Date | null - updatedAt: Date | null - } - - export type AdminCountAggregateOutputType = { - id: number - username: number - password: number - email: number - isActive: number - lastLogin: number - createdAt: number - updatedAt: number - _all: number - } - - - export type AdminMinAggregateInputType = { - id?: true - username?: true - password?: true - email?: true - isActive?: true - lastLogin?: true - createdAt?: true - updatedAt?: true - } - - export type AdminMaxAggregateInputType = { - id?: true - username?: true - password?: true - email?: true - isActive?: true - lastLogin?: true - createdAt?: true - updatedAt?: true - } - - export type AdminCountAggregateInputType = { - id?: true - username?: true - password?: true - email?: true - isActive?: true - lastLogin?: true - createdAt?: true - updatedAt?: true - _all?: true - } - - export type AdminAggregateArgs = { - /** - * Filter which Admin to aggregate. - */ - where?: AdminWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Admins to fetch. - */ - orderBy?: AdminOrderByWithRelationInput | AdminOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: AdminWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Admins 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` Admins. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Admins - **/ - _count?: true | AdminCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: AdminMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: AdminMaxAggregateInputType - } - - export type GetAdminAggregateType = { - [P in keyof T & keyof AggregateAdmin]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type AdminGroupByArgs = { - where?: AdminWhereInput - orderBy?: AdminOrderByWithAggregationInput | AdminOrderByWithAggregationInput[] - by: AdminScalarFieldEnum[] | AdminScalarFieldEnum - having?: AdminScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: AdminCountAggregateInputType | true - _min?: AdminMinAggregateInputType - _max?: AdminMaxAggregateInputType - } - - export type AdminGroupByOutputType = { - id: string - username: string - password: string - email: string | null - isActive: boolean - lastLogin: Date | null - createdAt: Date - updatedAt: Date - _count: AdminCountAggregateOutputType | null - _min: AdminMinAggregateOutputType | null - _max: AdminMaxAggregateOutputType | null - } - - type GetAdminGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof AdminGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type AdminSelect = $Extensions.GetSelect<{ - id?: boolean - username?: boolean - password?: boolean - email?: boolean - isActive?: boolean - lastLogin?: boolean - createdAt?: boolean - updatedAt?: boolean - }, ExtArgs["result"]["admin"]> - - export type AdminSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - username?: boolean - password?: boolean - email?: boolean - isActive?: boolean - lastLogin?: boolean - createdAt?: boolean - updatedAt?: boolean - }, ExtArgs["result"]["admin"]> - - export type AdminSelectUpdateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - username?: boolean - password?: boolean - email?: boolean - isActive?: boolean - lastLogin?: boolean - createdAt?: boolean - updatedAt?: boolean - }, ExtArgs["result"]["admin"]> - - export type AdminSelectScalar = { - id?: boolean - username?: boolean - password?: boolean - email?: boolean - isActive?: boolean - lastLogin?: boolean - createdAt?: boolean - updatedAt?: boolean - } - - export type AdminOmit = $Extensions.GetOmit<"id" | "username" | "password" | "email" | "isActive" | "lastLogin" | "createdAt" | "updatedAt", ExtArgs["result"]["admin"]> - - export type $AdminPayload = { - name: "Admin" - objects: {} - scalars: $Extensions.GetPayloadResult<{ - id: string - username: string - password: string - email: string | null - isActive: boolean - lastLogin: Date | null - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["admin"]> - composites: {} - } - - type AdminGetPayload = $Result.GetResult - - type AdminCountArgs = - Omit & { - select?: AdminCountAggregateInputType | true - } - - export interface AdminDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Admin'], meta: { name: 'Admin' } } - /** - * Find zero or one Admin that matches the filter. - * @param {AdminFindUniqueArgs} args - Arguments to find a Admin - * @example - * // Get one Admin - * const admin = await prisma.admin.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__AdminClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Admin that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {AdminFindUniqueOrThrowArgs} args - Arguments to find a Admin - * @example - * // Get one Admin - * const admin = await prisma.admin.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__AdminClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Admin 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 {AdminFindFirstArgs} args - Arguments to find a Admin - * @example - * // Get one Admin - * const admin = await prisma.admin.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__AdminClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Admin 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 {AdminFindFirstOrThrowArgs} args - Arguments to find a Admin - * @example - * // Get one Admin - * const admin = await prisma.admin.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__AdminClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Admins 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 {AdminFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Admins - * const admins = await prisma.admin.findMany() - * - * // Get first 10 Admins - * const admins = await prisma.admin.findMany({ take: 10 }) - * - * // Only select the `id` - * const adminWithIdOnly = await prisma.admin.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Admin. - * @param {AdminCreateArgs} args - Arguments to create a Admin. - * @example - * // Create one Admin - * const Admin = await prisma.admin.create({ - * data: { - * // ... data to create a Admin - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__AdminClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Admins. - * @param {AdminCreateManyArgs} args - Arguments to create many Admins. - * @example - * // Create many Admins - * const admin = await prisma.admin.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Admins and returns the data saved in the database. - * @param {AdminCreateManyAndReturnArgs} args - Arguments to create many Admins. - * @example - * // Create many Admins - * const admin = await prisma.admin.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Admins and only return the `id` - * const adminWithIdOnly = await prisma.admin.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a Admin. - * @param {AdminDeleteArgs} args - Arguments to delete one Admin. - * @example - * // Delete one Admin - * const Admin = await prisma.admin.delete({ - * where: { - * // ... filter to delete one Admin - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__AdminClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Admin. - * @param {AdminUpdateArgs} args - Arguments to update one Admin. - * @example - * // Update one Admin - * const admin = await prisma.admin.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__AdminClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Admins. - * @param {AdminDeleteManyArgs} args - Arguments to filter Admins to delete. - * @example - * // Delete a few Admins - * const { count } = await prisma.admin.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Admins. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AdminUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Admins - * const admin = await prisma.admin.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Admins and returns the data updated in the database. - * @param {AdminUpdateManyAndReturnArgs} args - Arguments to update many Admins. - * @example - * // Update many Admins - * const admin = await prisma.admin.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Admins and only return the `id` - * const adminWithIdOnly = await prisma.admin.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one Admin. - * @param {AdminUpsertArgs} args - Arguments to update or create a Admin. - * @example - * // Update or create a Admin - * const admin = await prisma.admin.upsert({ - * create: { - * // ... data to create a Admin - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Admin we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__AdminClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Admins. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AdminCountArgs} args - Arguments to filter Admins to count. - * @example - * // Count the number of Admins - * const count = await prisma.admin.count({ - * where: { - * // ... the filter for the Admins we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Admin. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AdminAggregateArgs} 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: Subset): Prisma.PrismaPromise> - - /** - * Group by Admin. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AdminGroupByArgs} 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 AdminGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: AdminGroupByArgs['orderBy'] } - : { orderBy?: AdminGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetAdminGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Admin model - */ - readonly fields: AdminFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for Admin. - * 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__AdminClient 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): $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): $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): $Utils.JsPromise - } - - - - - /** - * Fields of the Admin model - */ - interface AdminFieldRefs { - readonly id: FieldRef<"Admin", 'String'> - readonly username: FieldRef<"Admin", 'String'> - readonly password: FieldRef<"Admin", 'String'> - readonly email: FieldRef<"Admin", 'String'> - readonly isActive: FieldRef<"Admin", 'Boolean'> - readonly lastLogin: FieldRef<"Admin", 'DateTime'> - readonly createdAt: FieldRef<"Admin", 'DateTime'> - readonly updatedAt: FieldRef<"Admin", 'DateTime'> - } - - - // Custom InputTypes - /** - * Admin findUnique - */ - export type AdminFindUniqueArgs = { - /** - * Select specific fields to fetch from the Admin - */ - select?: AdminSelect | null - /** - * Omit specific fields from the Admin - */ - omit?: AdminOmit | null - /** - * Filter, which Admin to fetch. - */ - where: AdminWhereUniqueInput - } - - /** - * Admin findUniqueOrThrow - */ - export type AdminFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Admin - */ - select?: AdminSelect | null - /** - * Omit specific fields from the Admin - */ - omit?: AdminOmit | null - /** - * Filter, which Admin to fetch. - */ - where: AdminWhereUniqueInput - } - - /** - * Admin findFirst - */ - export type AdminFindFirstArgs = { - /** - * Select specific fields to fetch from the Admin - */ - select?: AdminSelect | null - /** - * Omit specific fields from the Admin - */ - omit?: AdminOmit | null - /** - * Filter, which Admin to fetch. - */ - where?: AdminWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Admins to fetch. - */ - orderBy?: AdminOrderByWithRelationInput | AdminOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Admins. - */ - cursor?: AdminWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Admins 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` Admins. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Admins. - */ - distinct?: AdminScalarFieldEnum | AdminScalarFieldEnum[] - } - - /** - * Admin findFirstOrThrow - */ - export type AdminFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Admin - */ - select?: AdminSelect | null - /** - * Omit specific fields from the Admin - */ - omit?: AdminOmit | null - /** - * Filter, which Admin to fetch. - */ - where?: AdminWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Admins to fetch. - */ - orderBy?: AdminOrderByWithRelationInput | AdminOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Admins. - */ - cursor?: AdminWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Admins 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` Admins. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Admins. - */ - distinct?: AdminScalarFieldEnum | AdminScalarFieldEnum[] - } - - /** - * Admin findMany - */ - export type AdminFindManyArgs = { - /** - * Select specific fields to fetch from the Admin - */ - select?: AdminSelect | null - /** - * Omit specific fields from the Admin - */ - omit?: AdminOmit | null - /** - * Filter, which Admins to fetch. - */ - where?: AdminWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Admins to fetch. - */ - orderBy?: AdminOrderByWithRelationInput | AdminOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Admins. - */ - cursor?: AdminWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Admins 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` Admins. - */ - skip?: number - distinct?: AdminScalarFieldEnum | AdminScalarFieldEnum[] - } - - /** - * Admin create - */ - export type AdminCreateArgs = { - /** - * Select specific fields to fetch from the Admin - */ - select?: AdminSelect | null - /** - * Omit specific fields from the Admin - */ - omit?: AdminOmit | null - /** - * The data needed to create a Admin. - */ - data: XOR - } - - /** - * Admin createMany - */ - export type AdminCreateManyArgs = { - /** - * The data used to create many Admins. - */ - data: AdminCreateManyInput | AdminCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * Admin createManyAndReturn - */ - export type AdminCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Admin - */ - select?: AdminSelectCreateManyAndReturn | null - /** - * Omit specific fields from the Admin - */ - omit?: AdminOmit | null - /** - * The data used to create many Admins. - */ - data: AdminCreateManyInput | AdminCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * Admin update - */ - export type AdminUpdateArgs = { - /** - * Select specific fields to fetch from the Admin - */ - select?: AdminSelect | null - /** - * Omit specific fields from the Admin - */ - omit?: AdminOmit | null - /** - * The data needed to update a Admin. - */ - data: XOR - /** - * Choose, which Admin to update. - */ - where: AdminWhereUniqueInput - } - - /** - * Admin updateMany - */ - export type AdminUpdateManyArgs = { - /** - * The data used to update Admins. - */ - data: XOR - /** - * Filter which Admins to update - */ - where?: AdminWhereInput - /** - * Limit how many Admins to update. - */ - limit?: number - } - - /** - * Admin updateManyAndReturn - */ - export type AdminUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Admin - */ - select?: AdminSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Admin - */ - omit?: AdminOmit | null - /** - * The data used to update Admins. - */ - data: XOR - /** - * Filter which Admins to update - */ - where?: AdminWhereInput - /** - * Limit how many Admins to update. - */ - limit?: number - } - - /** - * Admin upsert - */ - export type AdminUpsertArgs = { - /** - * Select specific fields to fetch from the Admin - */ - select?: AdminSelect | null - /** - * Omit specific fields from the Admin - */ - omit?: AdminOmit | null - /** - * The filter to search for the Admin to update in case it exists. - */ - where: AdminWhereUniqueInput - /** - * In case the Admin found by the `where` argument doesn't exist, create a new Admin with this data. - */ - create: XOR - /** - * In case the Admin was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * Admin delete - */ - export type AdminDeleteArgs = { - /** - * Select specific fields to fetch from the Admin - */ - select?: AdminSelect | null - /** - * Omit specific fields from the Admin - */ - omit?: AdminOmit | null - /** - * Filter which Admin to delete. - */ - where: AdminWhereUniqueInput - } - - /** - * Admin deleteMany - */ - export type AdminDeleteManyArgs = { - /** - * Filter which Admins to delete - */ - where?: AdminWhereInput - /** - * Limit how many Admins to delete. - */ - limit?: number - } - - /** - * Admin without action - */ - export type AdminDefaultArgs = { - /** - * Select specific fields to fetch from the Admin - */ - select?: AdminSelect | null - /** - * Omit specific fields from the Admin - */ - omit?: AdminOmit | null - } - - - /** - * Model SmsCode - */ - - export type AggregateSmsCode = { - _count: SmsCodeCountAggregateOutputType | null - _avg: SmsCodeAvgAggregateOutputType | null - _sum: SmsCodeSumAggregateOutputType | null - _min: SmsCodeMinAggregateOutputType | null - _max: SmsCodeMaxAggregateOutputType | null - } - - export type SmsCodeAvgAggregateOutputType = { - attempts: number | null - maxAttempts: number | null - } - - export type SmsCodeSumAggregateOutputType = { - attempts: number | null - maxAttempts: number | null - } - - export type SmsCodeMinAggregateOutputType = { - id: string | null - code: string | null - phone: string | null - expiresAt: Date | null - isUsed: boolean | null - attempts: number | null - maxAttempts: number | null - createdAt: Date | null - userId: string | null - } - - export type SmsCodeMaxAggregateOutputType = { - id: string | null - code: string | null - phone: string | null - expiresAt: Date | null - isUsed: boolean | null - attempts: number | null - maxAttempts: number | null - createdAt: Date | null - userId: string | null - } - - export type SmsCodeCountAggregateOutputType = { - id: number - code: number - phone: number - expiresAt: number - isUsed: number - attempts: number - maxAttempts: number - createdAt: number - userId: number - _all: number - } - - - export type SmsCodeAvgAggregateInputType = { - attempts?: true - maxAttempts?: true - } - - export type SmsCodeSumAggregateInputType = { - attempts?: true - maxAttempts?: true - } - - export type SmsCodeMinAggregateInputType = { - id?: true - code?: true - phone?: true - expiresAt?: true - isUsed?: true - attempts?: true - maxAttempts?: true - createdAt?: true - userId?: true - } - - export type SmsCodeMaxAggregateInputType = { - id?: true - code?: true - phone?: true - expiresAt?: true - isUsed?: true - attempts?: true - maxAttempts?: true - createdAt?: true - userId?: true - } - - export type SmsCodeCountAggregateInputType = { - id?: true - code?: true - phone?: true - expiresAt?: true - isUsed?: true - attempts?: true - maxAttempts?: true - createdAt?: true - userId?: true - _all?: true - } - - export type SmsCodeAggregateArgs = { - /** - * Filter which SmsCode to aggregate. - */ - where?: SmsCodeWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SmsCodes to fetch. - */ - orderBy?: SmsCodeOrderByWithRelationInput | SmsCodeOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: SmsCodeWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SmsCodes 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` SmsCodes. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned SmsCodes - **/ - _count?: true | SmsCodeCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: SmsCodeAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: SmsCodeSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: SmsCodeMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: SmsCodeMaxAggregateInputType - } - - export type GetSmsCodeAggregateType = { - [P in keyof T & keyof AggregateSmsCode]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type SmsCodeGroupByArgs = { - where?: SmsCodeWhereInput - orderBy?: SmsCodeOrderByWithAggregationInput | SmsCodeOrderByWithAggregationInput[] - by: SmsCodeScalarFieldEnum[] | SmsCodeScalarFieldEnum - having?: SmsCodeScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: SmsCodeCountAggregateInputType | true - _avg?: SmsCodeAvgAggregateInputType - _sum?: SmsCodeSumAggregateInputType - _min?: SmsCodeMinAggregateInputType - _max?: SmsCodeMaxAggregateInputType - } - - export type SmsCodeGroupByOutputType = { - id: string - code: string - phone: string - expiresAt: Date - isUsed: boolean - attempts: number - maxAttempts: number - createdAt: Date - userId: string | null - _count: SmsCodeCountAggregateOutputType | null - _avg: SmsCodeAvgAggregateOutputType | null - _sum: SmsCodeSumAggregateOutputType | null - _min: SmsCodeMinAggregateOutputType | null - _max: SmsCodeMaxAggregateOutputType | null - } - - type GetSmsCodeGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof SmsCodeGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type SmsCodeSelect = $Extensions.GetSelect<{ - id?: boolean - code?: boolean - phone?: boolean - expiresAt?: boolean - isUsed?: boolean - attempts?: boolean - maxAttempts?: boolean - createdAt?: boolean - userId?: boolean - user?: boolean | SmsCode$userArgs - }, ExtArgs["result"]["smsCode"]> - - export type SmsCodeSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - code?: boolean - phone?: boolean - expiresAt?: boolean - isUsed?: boolean - attempts?: boolean - maxAttempts?: boolean - createdAt?: boolean - userId?: boolean - user?: boolean | SmsCode$userArgs - }, ExtArgs["result"]["smsCode"]> - - export type SmsCodeSelectUpdateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - code?: boolean - phone?: boolean - expiresAt?: boolean - isUsed?: boolean - attempts?: boolean - maxAttempts?: boolean - createdAt?: boolean - userId?: boolean - user?: boolean | SmsCode$userArgs - }, ExtArgs["result"]["smsCode"]> - - export type SmsCodeSelectScalar = { - id?: boolean - code?: boolean - phone?: boolean - expiresAt?: boolean - isUsed?: boolean - attempts?: boolean - maxAttempts?: boolean - createdAt?: boolean - userId?: boolean - } - - export type SmsCodeOmit = $Extensions.GetOmit<"id" | "code" | "phone" | "expiresAt" | "isUsed" | "attempts" | "maxAttempts" | "createdAt" | "userId", ExtArgs["result"]["smsCode"]> - export type SmsCodeInclude = { - user?: boolean | SmsCode$userArgs - } - export type SmsCodeIncludeCreateManyAndReturn = { - user?: boolean | SmsCode$userArgs - } - export type SmsCodeIncludeUpdateManyAndReturn = { - user?: boolean | SmsCode$userArgs - } - - export type $SmsCodePayload = { - name: "SmsCode" - objects: { - user: Prisma.$UserPayload | null - } - scalars: $Extensions.GetPayloadResult<{ - id: string - code: string - phone: string - expiresAt: Date - isUsed: boolean - attempts: number - maxAttempts: number - createdAt: Date - userId: string | null - }, ExtArgs["result"]["smsCode"]> - composites: {} - } - - type SmsCodeGetPayload = $Result.GetResult - - type SmsCodeCountArgs = - Omit & { - select?: SmsCodeCountAggregateInputType | true - } - - export interface SmsCodeDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['SmsCode'], meta: { name: 'SmsCode' } } - /** - * Find zero or one SmsCode that matches the filter. - * @param {SmsCodeFindUniqueArgs} args - Arguments to find a SmsCode - * @example - * // Get one SmsCode - * const smsCode = await prisma.smsCode.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__SmsCodeClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one SmsCode that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {SmsCodeFindUniqueOrThrowArgs} args - Arguments to find a SmsCode - * @example - * // Get one SmsCode - * const smsCode = await prisma.smsCode.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__SmsCodeClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first SmsCode 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 {SmsCodeFindFirstArgs} args - Arguments to find a SmsCode - * @example - * // Get one SmsCode - * const smsCode = await prisma.smsCode.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__SmsCodeClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first SmsCode 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 {SmsCodeFindFirstOrThrowArgs} args - Arguments to find a SmsCode - * @example - * // Get one SmsCode - * const smsCode = await prisma.smsCode.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__SmsCodeClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more SmsCodes 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 {SmsCodeFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all SmsCodes - * const smsCodes = await prisma.smsCode.findMany() - * - * // Get first 10 SmsCodes - * const smsCodes = await prisma.smsCode.findMany({ take: 10 }) - * - * // Only select the `id` - * const smsCodeWithIdOnly = await prisma.smsCode.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> - - /** - * Create a SmsCode. - * @param {SmsCodeCreateArgs} args - Arguments to create a SmsCode. - * @example - * // Create one SmsCode - * const SmsCode = await prisma.smsCode.create({ - * data: { - * // ... data to create a SmsCode - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__SmsCodeClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many SmsCodes. - * @param {SmsCodeCreateManyArgs} args - Arguments to create many SmsCodes. - * @example - * // Create many SmsCodes - * const smsCode = await prisma.smsCode.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many SmsCodes and returns the data saved in the database. - * @param {SmsCodeCreateManyAndReturnArgs} args - Arguments to create many SmsCodes. - * @example - * // Create many SmsCodes - * const smsCode = await prisma.smsCode.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many SmsCodes and only return the `id` - * const smsCodeWithIdOnly = await prisma.smsCode.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a SmsCode. - * @param {SmsCodeDeleteArgs} args - Arguments to delete one SmsCode. - * @example - * // Delete one SmsCode - * const SmsCode = await prisma.smsCode.delete({ - * where: { - * // ... filter to delete one SmsCode - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__SmsCodeClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one SmsCode. - * @param {SmsCodeUpdateArgs} args - Arguments to update one SmsCode. - * @example - * // Update one SmsCode - * const smsCode = await prisma.smsCode.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__SmsCodeClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more SmsCodes. - * @param {SmsCodeDeleteManyArgs} args - Arguments to filter SmsCodes to delete. - * @example - * // Delete a few SmsCodes - * const { count } = await prisma.smsCode.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more SmsCodes. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SmsCodeUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many SmsCodes - * const smsCode = await prisma.smsCode.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more SmsCodes and returns the data updated in the database. - * @param {SmsCodeUpdateManyAndReturnArgs} args - Arguments to update many SmsCodes. - * @example - * // Update many SmsCodes - * const smsCode = await prisma.smsCode.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more SmsCodes and only return the `id` - * const smsCodeWithIdOnly = await prisma.smsCode.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one SmsCode. - * @param {SmsCodeUpsertArgs} args - Arguments to update or create a SmsCode. - * @example - * // Update or create a SmsCode - * const smsCode = await prisma.smsCode.upsert({ - * create: { - * // ... data to create a SmsCode - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the SmsCode we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__SmsCodeClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of SmsCodes. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SmsCodeCountArgs} args - Arguments to filter SmsCodes to count. - * @example - * // Count the number of SmsCodes - * const count = await prisma.smsCode.count({ - * where: { - * // ... the filter for the SmsCodes we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a SmsCode. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SmsCodeAggregateArgs} 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: Subset): Prisma.PrismaPromise> - - /** - * Group by SmsCode. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SmsCodeGroupByArgs} 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 SmsCodeGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: SmsCodeGroupByArgs['orderBy'] } - : { orderBy?: SmsCodeGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetSmsCodeGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the SmsCode model - */ - readonly fields: SmsCodeFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for SmsCode. - * 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__SmsCodeClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $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): $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): $Utils.JsPromise - } - - - - - /** - * Fields of the SmsCode model - */ - interface SmsCodeFieldRefs { - readonly id: FieldRef<"SmsCode", 'String'> - readonly code: FieldRef<"SmsCode", 'String'> - readonly phone: FieldRef<"SmsCode", 'String'> - readonly expiresAt: FieldRef<"SmsCode", 'DateTime'> - readonly isUsed: FieldRef<"SmsCode", 'Boolean'> - readonly attempts: FieldRef<"SmsCode", 'Int'> - readonly maxAttempts: FieldRef<"SmsCode", 'Int'> - readonly createdAt: FieldRef<"SmsCode", 'DateTime'> - readonly userId: FieldRef<"SmsCode", 'String'> - } - - - // Custom InputTypes - /** - * SmsCode findUnique - */ - export type SmsCodeFindUniqueArgs = { - /** - * Select specific fields to fetch from the SmsCode - */ - select?: SmsCodeSelect | null - /** - * Omit specific fields from the SmsCode - */ - omit?: SmsCodeOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SmsCodeInclude | null - /** - * Filter, which SmsCode to fetch. - */ - where: SmsCodeWhereUniqueInput - } - - /** - * SmsCode findUniqueOrThrow - */ - export type SmsCodeFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the SmsCode - */ - select?: SmsCodeSelect | null - /** - * Omit specific fields from the SmsCode - */ - omit?: SmsCodeOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SmsCodeInclude | null - /** - * Filter, which SmsCode to fetch. - */ - where: SmsCodeWhereUniqueInput - } - - /** - * SmsCode findFirst - */ - export type SmsCodeFindFirstArgs = { - /** - * Select specific fields to fetch from the SmsCode - */ - select?: SmsCodeSelect | null - /** - * Omit specific fields from the SmsCode - */ - omit?: SmsCodeOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SmsCodeInclude | null - /** - * Filter, which SmsCode to fetch. - */ - where?: SmsCodeWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SmsCodes to fetch. - */ - orderBy?: SmsCodeOrderByWithRelationInput | SmsCodeOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for SmsCodes. - */ - cursor?: SmsCodeWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SmsCodes 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` SmsCodes. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of SmsCodes. - */ - distinct?: SmsCodeScalarFieldEnum | SmsCodeScalarFieldEnum[] - } - - /** - * SmsCode findFirstOrThrow - */ - export type SmsCodeFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the SmsCode - */ - select?: SmsCodeSelect | null - /** - * Omit specific fields from the SmsCode - */ - omit?: SmsCodeOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SmsCodeInclude | null - /** - * Filter, which SmsCode to fetch. - */ - where?: SmsCodeWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SmsCodes to fetch. - */ - orderBy?: SmsCodeOrderByWithRelationInput | SmsCodeOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for SmsCodes. - */ - cursor?: SmsCodeWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SmsCodes 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` SmsCodes. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of SmsCodes. - */ - distinct?: SmsCodeScalarFieldEnum | SmsCodeScalarFieldEnum[] - } - - /** - * SmsCode findMany - */ - export type SmsCodeFindManyArgs = { - /** - * Select specific fields to fetch from the SmsCode - */ - select?: SmsCodeSelect | null - /** - * Omit specific fields from the SmsCode - */ - omit?: SmsCodeOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SmsCodeInclude | null - /** - * Filter, which SmsCodes to fetch. - */ - where?: SmsCodeWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SmsCodes to fetch. - */ - orderBy?: SmsCodeOrderByWithRelationInput | SmsCodeOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing SmsCodes. - */ - cursor?: SmsCodeWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SmsCodes 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` SmsCodes. - */ - skip?: number - distinct?: SmsCodeScalarFieldEnum | SmsCodeScalarFieldEnum[] - } - - /** - * SmsCode create - */ - export type SmsCodeCreateArgs = { - /** - * Select specific fields to fetch from the SmsCode - */ - select?: SmsCodeSelect | null - /** - * Omit specific fields from the SmsCode - */ - omit?: SmsCodeOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SmsCodeInclude | null - /** - * The data needed to create a SmsCode. - */ - data: XOR - } - - /** - * SmsCode createMany - */ - export type SmsCodeCreateManyArgs = { - /** - * The data used to create many SmsCodes. - */ - data: SmsCodeCreateManyInput | SmsCodeCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * SmsCode createManyAndReturn - */ - export type SmsCodeCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the SmsCode - */ - select?: SmsCodeSelectCreateManyAndReturn | null - /** - * Omit specific fields from the SmsCode - */ - omit?: SmsCodeOmit | null - /** - * The data used to create many SmsCodes. - */ - data: SmsCodeCreateManyInput | SmsCodeCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: SmsCodeIncludeCreateManyAndReturn | null - } - - /** - * SmsCode update - */ - export type SmsCodeUpdateArgs = { - /** - * Select specific fields to fetch from the SmsCode - */ - select?: SmsCodeSelect | null - /** - * Omit specific fields from the SmsCode - */ - omit?: SmsCodeOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SmsCodeInclude | null - /** - * The data needed to update a SmsCode. - */ - data: XOR - /** - * Choose, which SmsCode to update. - */ - where: SmsCodeWhereUniqueInput - } - - /** - * SmsCode updateMany - */ - export type SmsCodeUpdateManyArgs = { - /** - * The data used to update SmsCodes. - */ - data: XOR - /** - * Filter which SmsCodes to update - */ - where?: SmsCodeWhereInput - /** - * Limit how many SmsCodes to update. - */ - limit?: number - } - - /** - * SmsCode updateManyAndReturn - */ - export type SmsCodeUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the SmsCode - */ - select?: SmsCodeSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the SmsCode - */ - omit?: SmsCodeOmit | null - /** - * The data used to update SmsCodes. - */ - data: XOR - /** - * Filter which SmsCodes to update - */ - where?: SmsCodeWhereInput - /** - * Limit how many SmsCodes to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: SmsCodeIncludeUpdateManyAndReturn | null - } - - /** - * SmsCode upsert - */ - export type SmsCodeUpsertArgs = { - /** - * Select specific fields to fetch from the SmsCode - */ - select?: SmsCodeSelect | null - /** - * Omit specific fields from the SmsCode - */ - omit?: SmsCodeOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SmsCodeInclude | null - /** - * The filter to search for the SmsCode to update in case it exists. - */ - where: SmsCodeWhereUniqueInput - /** - * In case the SmsCode found by the `where` argument doesn't exist, create a new SmsCode with this data. - */ - create: XOR - /** - * In case the SmsCode was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * SmsCode delete - */ - export type SmsCodeDeleteArgs = { - /** - * Select specific fields to fetch from the SmsCode - */ - select?: SmsCodeSelect | null - /** - * Omit specific fields from the SmsCode - */ - omit?: SmsCodeOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SmsCodeInclude | null - /** - * Filter which SmsCode to delete. - */ - where: SmsCodeWhereUniqueInput - } - - /** - * SmsCode deleteMany - */ - export type SmsCodeDeleteManyArgs = { - /** - * Filter which SmsCodes to delete - */ - where?: SmsCodeWhereInput - /** - * Limit how many SmsCodes to delete. - */ - limit?: number - } - - /** - * SmsCode.user - */ - export type SmsCode$userArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - where?: UserWhereInput - } - - /** - * SmsCode without action - */ - export type SmsCodeDefaultArgs = { - /** - * Select specific fields to fetch from the SmsCode - */ - select?: SmsCodeSelect | null - /** - * Omit specific fields from the SmsCode - */ - omit?: SmsCodeOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SmsCodeInclude | null - } - - - /** - * Model Organization - */ - - export type AggregateOrganization = { - _count: OrganizationCountAggregateOutputType | null - _avg: OrganizationAvgAggregateOutputType | null - _sum: OrganizationSumAggregateOutputType | null - _min: OrganizationMinAggregateOutputType | null - _max: OrganizationMaxAggregateOutputType | null - } - - export type OrganizationAvgAggregateOutputType = { - employeeCount: number | null - revenue: number | null - } - - export type OrganizationSumAggregateOutputType = { - employeeCount: number | null - revenue: bigint | null - } - - export type OrganizationMinAggregateOutputType = { - id: string | null - inn: string | null - kpp: string | null - name: string | null - fullName: string | null - ogrn: string | null - ogrnDate: Date | null - type: $Enums.OrganizationType | null - createdAt: Date | null - updatedAt: Date | null - address: string | null - addressFull: string | null - status: string | null - actualityDate: Date | null - registrationDate: Date | null - liquidationDate: Date | null - managementName: string | null - managementPost: string | null - opfCode: string | null - opfFull: string | null - opfShort: string | null - okato: string | null - oktmo: string | null - okpo: string | null - okved: string | null - employeeCount: number | null - revenue: bigint | null - taxSystem: string | null - } - - export type OrganizationMaxAggregateOutputType = { - id: string | null - inn: string | null - kpp: string | null - name: string | null - fullName: string | null - ogrn: string | null - ogrnDate: Date | null - type: $Enums.OrganizationType | null - createdAt: Date | null - updatedAt: Date | null - address: string | null - addressFull: string | null - status: string | null - actualityDate: Date | null - registrationDate: Date | null - liquidationDate: Date | null - managementName: string | null - managementPost: string | null - opfCode: string | null - opfFull: string | null - opfShort: string | null - okato: string | null - oktmo: string | null - okpo: string | null - okved: string | null - employeeCount: number | null - revenue: bigint | null - taxSystem: string | null - } - - export type OrganizationCountAggregateOutputType = { - id: number - inn: number - kpp: number - name: number - fullName: number - ogrn: number - ogrnDate: number - type: number - createdAt: number - updatedAt: number - address: number - addressFull: number - status: number - actualityDate: number - registrationDate: number - liquidationDate: number - managementName: number - managementPost: number - opfCode: number - opfFull: number - opfShort: number - okato: number - oktmo: number - okpo: number - okved: number - phones: number - emails: number - employeeCount: number - revenue: number - taxSystem: number - dadataData: number - _all: number - } - - - export type OrganizationAvgAggregateInputType = { - employeeCount?: true - revenue?: true - } - - export type OrganizationSumAggregateInputType = { - employeeCount?: true - revenue?: true - } - - export type OrganizationMinAggregateInputType = { - id?: true - inn?: true - kpp?: true - name?: true - fullName?: true - ogrn?: true - ogrnDate?: true - type?: true - createdAt?: true - updatedAt?: true - address?: true - addressFull?: true - status?: true - actualityDate?: true - registrationDate?: true - liquidationDate?: true - managementName?: true - managementPost?: true - opfCode?: true - opfFull?: true - opfShort?: true - okato?: true - oktmo?: true - okpo?: true - okved?: true - employeeCount?: true - revenue?: true - taxSystem?: true - } - - export type OrganizationMaxAggregateInputType = { - id?: true - inn?: true - kpp?: true - name?: true - fullName?: true - ogrn?: true - ogrnDate?: true - type?: true - createdAt?: true - updatedAt?: true - address?: true - addressFull?: true - status?: true - actualityDate?: true - registrationDate?: true - liquidationDate?: true - managementName?: true - managementPost?: true - opfCode?: true - opfFull?: true - opfShort?: true - okato?: true - oktmo?: true - okpo?: true - okved?: true - employeeCount?: true - revenue?: true - taxSystem?: true - } - - export type OrganizationCountAggregateInputType = { - id?: true - inn?: true - kpp?: true - name?: true - fullName?: true - ogrn?: true - ogrnDate?: true - type?: true - createdAt?: true - updatedAt?: true - address?: true - addressFull?: true - status?: true - actualityDate?: true - registrationDate?: true - liquidationDate?: true - managementName?: true - managementPost?: true - opfCode?: true - opfFull?: true - opfShort?: true - okato?: true - oktmo?: true - okpo?: true - okved?: true - phones?: true - emails?: true - employeeCount?: true - revenue?: true - taxSystem?: true - dadataData?: true - _all?: true - } - - export type OrganizationAggregateArgs = { - /** - * Filter which Organization to aggregate. - */ - where?: OrganizationWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Organizations to fetch. - */ - orderBy?: OrganizationOrderByWithRelationInput | OrganizationOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: OrganizationWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Organizations 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` Organizations. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Organizations - **/ - _count?: true | OrganizationCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: OrganizationAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: OrganizationSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: OrganizationMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: OrganizationMaxAggregateInputType - } - - export type GetOrganizationAggregateType = { - [P in keyof T & keyof AggregateOrganization]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type OrganizationGroupByArgs = { - where?: OrganizationWhereInput - orderBy?: OrganizationOrderByWithAggregationInput | OrganizationOrderByWithAggregationInput[] - by: OrganizationScalarFieldEnum[] | OrganizationScalarFieldEnum - having?: OrganizationScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: OrganizationCountAggregateInputType | true - _avg?: OrganizationAvgAggregateInputType - _sum?: OrganizationSumAggregateInputType - _min?: OrganizationMinAggregateInputType - _max?: OrganizationMaxAggregateInputType - } - - export type OrganizationGroupByOutputType = { - id: string - inn: string - kpp: string | null - name: string | null - fullName: string | null - ogrn: string | null - ogrnDate: Date | null - type: $Enums.OrganizationType - createdAt: Date - updatedAt: Date - address: string | null - addressFull: string | null - status: string | null - actualityDate: Date | null - registrationDate: Date | null - liquidationDate: Date | null - managementName: string | null - managementPost: string | null - opfCode: string | null - opfFull: string | null - opfShort: string | null - okato: string | null - oktmo: string | null - okpo: string | null - okved: string | null - phones: JsonValue | null - emails: JsonValue | null - employeeCount: number | null - revenue: bigint | null - taxSystem: string | null - dadataData: JsonValue | null - _count: OrganizationCountAggregateOutputType | null - _avg: OrganizationAvgAggregateOutputType | null - _sum: OrganizationSumAggregateOutputType | null - _min: OrganizationMinAggregateOutputType | null - _max: OrganizationMaxAggregateOutputType | null - } - - type GetOrganizationGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof OrganizationGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type OrganizationSelect = $Extensions.GetSelect<{ - id?: boolean - inn?: boolean - kpp?: boolean - name?: boolean - fullName?: boolean - ogrn?: boolean - ogrnDate?: boolean - type?: boolean - createdAt?: boolean - updatedAt?: boolean - address?: boolean - addressFull?: boolean - status?: boolean - actualityDate?: boolean - registrationDate?: boolean - liquidationDate?: boolean - managementName?: boolean - managementPost?: boolean - opfCode?: boolean - opfFull?: boolean - opfShort?: boolean - okato?: boolean - oktmo?: boolean - okpo?: boolean - okved?: boolean - phones?: boolean - emails?: boolean - employeeCount?: boolean - revenue?: boolean - taxSystem?: boolean - dadataData?: boolean - apiKeys?: boolean | Organization$apiKeysArgs - carts?: boolean | Organization$cartsArgs - counterpartyOf?: boolean | Organization$counterpartyOfArgs - organizationCounterparties?: boolean | Organization$organizationCounterpartiesArgs - receivedRequests?: boolean | Organization$receivedRequestsArgs - sentRequests?: boolean | Organization$sentRequestsArgs - employees?: boolean | Organization$employeesArgs - favorites?: boolean | Organization$favoritesArgs - receivedMessages?: boolean | Organization$receivedMessagesArgs - sentMessages?: boolean | Organization$sentMessagesArgs - products?: boolean | Organization$productsArgs - services?: boolean | Organization$servicesArgs - supplies?: boolean | Organization$suppliesArgs - users?: boolean | Organization$usersArgs - logistics?: boolean | Organization$logisticsArgs - supplyOrders?: boolean | Organization$supplyOrdersArgs - partnerSupplyOrders?: boolean | Organization$partnerSupplyOrdersArgs - fulfillmentSupplyOrders?: boolean | Organization$fulfillmentSupplyOrdersArgs - wildberriesSupplies?: boolean | Organization$wildberriesSuppliesArgs - supplySuppliers?: boolean | Organization$supplySuppliersArgs - _count?: boolean | OrganizationCountOutputTypeDefaultArgs - }, ExtArgs["result"]["organization"]> - - export type OrganizationSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - inn?: boolean - kpp?: boolean - name?: boolean - fullName?: boolean - ogrn?: boolean - ogrnDate?: boolean - type?: boolean - createdAt?: boolean - updatedAt?: boolean - address?: boolean - addressFull?: boolean - status?: boolean - actualityDate?: boolean - registrationDate?: boolean - liquidationDate?: boolean - managementName?: boolean - managementPost?: boolean - opfCode?: boolean - opfFull?: boolean - opfShort?: boolean - okato?: boolean - oktmo?: boolean - okpo?: boolean - okved?: boolean - phones?: boolean - emails?: boolean - employeeCount?: boolean - revenue?: boolean - taxSystem?: boolean - dadataData?: boolean - }, ExtArgs["result"]["organization"]> - - export type OrganizationSelectUpdateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - inn?: boolean - kpp?: boolean - name?: boolean - fullName?: boolean - ogrn?: boolean - ogrnDate?: boolean - type?: boolean - createdAt?: boolean - updatedAt?: boolean - address?: boolean - addressFull?: boolean - status?: boolean - actualityDate?: boolean - registrationDate?: boolean - liquidationDate?: boolean - managementName?: boolean - managementPost?: boolean - opfCode?: boolean - opfFull?: boolean - opfShort?: boolean - okato?: boolean - oktmo?: boolean - okpo?: boolean - okved?: boolean - phones?: boolean - emails?: boolean - employeeCount?: boolean - revenue?: boolean - taxSystem?: boolean - dadataData?: boolean - }, ExtArgs["result"]["organization"]> - - export type OrganizationSelectScalar = { - id?: boolean - inn?: boolean - kpp?: boolean - name?: boolean - fullName?: boolean - ogrn?: boolean - ogrnDate?: boolean - type?: boolean - createdAt?: boolean - updatedAt?: boolean - address?: boolean - addressFull?: boolean - status?: boolean - actualityDate?: boolean - registrationDate?: boolean - liquidationDate?: boolean - managementName?: boolean - managementPost?: boolean - opfCode?: boolean - opfFull?: boolean - opfShort?: boolean - okato?: boolean - oktmo?: boolean - okpo?: boolean - okved?: boolean - phones?: boolean - emails?: boolean - employeeCount?: boolean - revenue?: boolean - taxSystem?: boolean - dadataData?: boolean - } - - export type OrganizationOmit = $Extensions.GetOmit<"id" | "inn" | "kpp" | "name" | "fullName" | "ogrn" | "ogrnDate" | "type" | "createdAt" | "updatedAt" | "address" | "addressFull" | "status" | "actualityDate" | "registrationDate" | "liquidationDate" | "managementName" | "managementPost" | "opfCode" | "opfFull" | "opfShort" | "okato" | "oktmo" | "okpo" | "okved" | "phones" | "emails" | "employeeCount" | "revenue" | "taxSystem" | "dadataData", ExtArgs["result"]["organization"]> - export type OrganizationInclude = { - apiKeys?: boolean | Organization$apiKeysArgs - carts?: boolean | Organization$cartsArgs - counterpartyOf?: boolean | Organization$counterpartyOfArgs - organizationCounterparties?: boolean | Organization$organizationCounterpartiesArgs - receivedRequests?: boolean | Organization$receivedRequestsArgs - sentRequests?: boolean | Organization$sentRequestsArgs - employees?: boolean | Organization$employeesArgs - favorites?: boolean | Organization$favoritesArgs - receivedMessages?: boolean | Organization$receivedMessagesArgs - sentMessages?: boolean | Organization$sentMessagesArgs - products?: boolean | Organization$productsArgs - services?: boolean | Organization$servicesArgs - supplies?: boolean | Organization$suppliesArgs - users?: boolean | Organization$usersArgs - logistics?: boolean | Organization$logisticsArgs - supplyOrders?: boolean | Organization$supplyOrdersArgs - partnerSupplyOrders?: boolean | Organization$partnerSupplyOrdersArgs - fulfillmentSupplyOrders?: boolean | Organization$fulfillmentSupplyOrdersArgs - wildberriesSupplies?: boolean | Organization$wildberriesSuppliesArgs - supplySuppliers?: boolean | Organization$supplySuppliersArgs - _count?: boolean | OrganizationCountOutputTypeDefaultArgs - } - export type OrganizationIncludeCreateManyAndReturn = {} - export type OrganizationIncludeUpdateManyAndReturn = {} - - export type $OrganizationPayload = { - name: "Organization" - objects: { - apiKeys: Prisma.$ApiKeyPayload[] - carts: Prisma.$CartPayload | null - counterpartyOf: Prisma.$CounterpartyPayload[] - organizationCounterparties: Prisma.$CounterpartyPayload[] - receivedRequests: Prisma.$CounterpartyRequestPayload[] - sentRequests: Prisma.$CounterpartyRequestPayload[] - employees: Prisma.$EmployeePayload[] - favorites: Prisma.$FavoritesPayload[] - receivedMessages: Prisma.$MessagePayload[] - sentMessages: Prisma.$MessagePayload[] - products: Prisma.$ProductPayload[] - services: Prisma.$ServicePayload[] - supplies: Prisma.$SupplyPayload[] - users: Prisma.$UserPayload[] - logistics: Prisma.$LogisticsPayload[] - supplyOrders: Prisma.$SupplyOrderPayload[] - partnerSupplyOrders: Prisma.$SupplyOrderPayload[] - fulfillmentSupplyOrders: Prisma.$SupplyOrderPayload[] - wildberriesSupplies: Prisma.$WildberriesSupplyPayload[] - supplySuppliers: Prisma.$SupplySupplierPayload[] - } - scalars: $Extensions.GetPayloadResult<{ - id: string - inn: string - kpp: string | null - name: string | null - fullName: string | null - ogrn: string | null - ogrnDate: Date | null - type: $Enums.OrganizationType - createdAt: Date - updatedAt: Date - address: string | null - addressFull: string | null - status: string | null - actualityDate: Date | null - registrationDate: Date | null - liquidationDate: Date | null - managementName: string | null - managementPost: string | null - opfCode: string | null - opfFull: string | null - opfShort: string | null - okato: string | null - oktmo: string | null - okpo: string | null - okved: string | null - phones: Prisma.JsonValue | null - emails: Prisma.JsonValue | null - employeeCount: number | null - revenue: bigint | null - taxSystem: string | null - dadataData: Prisma.JsonValue | null - }, ExtArgs["result"]["organization"]> - composites: {} - } - - type OrganizationGetPayload = $Result.GetResult - - type OrganizationCountArgs = - Omit & { - select?: OrganizationCountAggregateInputType | true - } - - export interface OrganizationDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Organization'], meta: { name: 'Organization' } } - /** - * Find zero or one Organization that matches the filter. - * @param {OrganizationFindUniqueArgs} args - Arguments to find a Organization - * @example - * // Get one Organization - * const organization = await prisma.organization.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Organization that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {OrganizationFindUniqueOrThrowArgs} args - Arguments to find a Organization - * @example - * // Get one Organization - * const organization = await prisma.organization.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Organization 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 {OrganizationFindFirstArgs} args - Arguments to find a Organization - * @example - * // Get one Organization - * const organization = await prisma.organization.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__OrganizationClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Organization 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 {OrganizationFindFirstOrThrowArgs} args - Arguments to find a Organization - * @example - * // Get one Organization - * const organization = await prisma.organization.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__OrganizationClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Organizations 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 {OrganizationFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Organizations - * const organizations = await prisma.organization.findMany() - * - * // Get first 10 Organizations - * const organizations = await prisma.organization.findMany({ take: 10 }) - * - * // Only select the `id` - * const organizationWithIdOnly = await prisma.organization.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Organization. - * @param {OrganizationCreateArgs} args - Arguments to create a Organization. - * @example - * // Create one Organization - * const Organization = await prisma.organization.create({ - * data: { - * // ... data to create a Organization - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__OrganizationClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Organizations. - * @param {OrganizationCreateManyArgs} args - Arguments to create many Organizations. - * @example - * // Create many Organizations - * const organization = await prisma.organization.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Organizations and returns the data saved in the database. - * @param {OrganizationCreateManyAndReturnArgs} args - Arguments to create many Organizations. - * @example - * // Create many Organizations - * const organization = await prisma.organization.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Organizations and only return the `id` - * const organizationWithIdOnly = await prisma.organization.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a Organization. - * @param {OrganizationDeleteArgs} args - Arguments to delete one Organization. - * @example - * // Delete one Organization - * const Organization = await prisma.organization.delete({ - * where: { - * // ... filter to delete one Organization - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__OrganizationClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Organization. - * @param {OrganizationUpdateArgs} args - Arguments to update one Organization. - * @example - * // Update one Organization - * const organization = await prisma.organization.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__OrganizationClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Organizations. - * @param {OrganizationDeleteManyArgs} args - Arguments to filter Organizations to delete. - * @example - * // Delete a few Organizations - * const { count } = await prisma.organization.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Organizations. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {OrganizationUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Organizations - * const organization = await prisma.organization.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Organizations and returns the data updated in the database. - * @param {OrganizationUpdateManyAndReturnArgs} args - Arguments to update many Organizations. - * @example - * // Update many Organizations - * const organization = await prisma.organization.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Organizations and only return the `id` - * const organizationWithIdOnly = await prisma.organization.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one Organization. - * @param {OrganizationUpsertArgs} args - Arguments to update or create a Organization. - * @example - * // Update or create a Organization - * const organization = await prisma.organization.upsert({ - * create: { - * // ... data to create a Organization - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Organization we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__OrganizationClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Organizations. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {OrganizationCountArgs} args - Arguments to filter Organizations to count. - * @example - * // Count the number of Organizations - * const count = await prisma.organization.count({ - * where: { - * // ... the filter for the Organizations we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Organization. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {OrganizationAggregateArgs} 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: Subset): Prisma.PrismaPromise> - - /** - * Group by Organization. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {OrganizationGroupByArgs} 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 OrganizationGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: OrganizationGroupByArgs['orderBy'] } - : { orderBy?: OrganizationGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetOrganizationGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Organization model - */ - readonly fields: OrganizationFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for Organization. - * 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__OrganizationClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - apiKeys = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - carts = {}>(args?: Subset>): Prisma__CartClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - counterpartyOf = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - organizationCounterparties = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - receivedRequests = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - sentRequests = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - employees = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - favorites = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - receivedMessages = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - sentMessages = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - products = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - services = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - supplies = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - users = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - logistics = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - supplyOrders = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - partnerSupplyOrders = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - fulfillmentSupplyOrders = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - wildberriesSupplies = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - supplySuppliers = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $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): $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): $Utils.JsPromise - } - - - - - /** - * Fields of the Organization model - */ - interface OrganizationFieldRefs { - readonly id: FieldRef<"Organization", 'String'> - readonly inn: FieldRef<"Organization", 'String'> - readonly kpp: FieldRef<"Organization", 'String'> - readonly name: FieldRef<"Organization", 'String'> - readonly fullName: FieldRef<"Organization", 'String'> - readonly ogrn: FieldRef<"Organization", 'String'> - readonly ogrnDate: FieldRef<"Organization", 'DateTime'> - readonly type: FieldRef<"Organization", 'OrganizationType'> - readonly createdAt: FieldRef<"Organization", 'DateTime'> - readonly updatedAt: FieldRef<"Organization", 'DateTime'> - readonly address: FieldRef<"Organization", 'String'> - readonly addressFull: FieldRef<"Organization", 'String'> - readonly status: FieldRef<"Organization", 'String'> - readonly actualityDate: FieldRef<"Organization", 'DateTime'> - readonly registrationDate: FieldRef<"Organization", 'DateTime'> - readonly liquidationDate: FieldRef<"Organization", 'DateTime'> - readonly managementName: FieldRef<"Organization", 'String'> - readonly managementPost: FieldRef<"Organization", 'String'> - readonly opfCode: FieldRef<"Organization", 'String'> - readonly opfFull: FieldRef<"Organization", 'String'> - readonly opfShort: FieldRef<"Organization", 'String'> - readonly okato: FieldRef<"Organization", 'String'> - readonly oktmo: FieldRef<"Organization", 'String'> - readonly okpo: FieldRef<"Organization", 'String'> - readonly okved: FieldRef<"Organization", 'String'> - readonly phones: FieldRef<"Organization", 'Json'> - readonly emails: FieldRef<"Organization", 'Json'> - readonly employeeCount: FieldRef<"Organization", 'Int'> - readonly revenue: FieldRef<"Organization", 'BigInt'> - readonly taxSystem: FieldRef<"Organization", 'String'> - readonly dadataData: FieldRef<"Organization", 'Json'> - } - - - // Custom InputTypes - /** - * Organization findUnique - */ - export type OrganizationFindUniqueArgs = { - /** - * Select specific fields to fetch from the Organization - */ - select?: OrganizationSelect | null - /** - * Omit specific fields from the Organization - */ - omit?: OrganizationOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: OrganizationInclude | null - /** - * Filter, which Organization to fetch. - */ - where: OrganizationWhereUniqueInput - } - - /** - * Organization findUniqueOrThrow - */ - export type OrganizationFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Organization - */ - select?: OrganizationSelect | null - /** - * Omit specific fields from the Organization - */ - omit?: OrganizationOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: OrganizationInclude | null - /** - * Filter, which Organization to fetch. - */ - where: OrganizationWhereUniqueInput - } - - /** - * Organization findFirst - */ - export type OrganizationFindFirstArgs = { - /** - * Select specific fields to fetch from the Organization - */ - select?: OrganizationSelect | null - /** - * Omit specific fields from the Organization - */ - omit?: OrganizationOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: OrganizationInclude | null - /** - * Filter, which Organization to fetch. - */ - where?: OrganizationWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Organizations to fetch. - */ - orderBy?: OrganizationOrderByWithRelationInput | OrganizationOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Organizations. - */ - cursor?: OrganizationWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Organizations 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` Organizations. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Organizations. - */ - distinct?: OrganizationScalarFieldEnum | OrganizationScalarFieldEnum[] - } - - /** - * Organization findFirstOrThrow - */ - export type OrganizationFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Organization - */ - select?: OrganizationSelect | null - /** - * Omit specific fields from the Organization - */ - omit?: OrganizationOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: OrganizationInclude | null - /** - * Filter, which Organization to fetch. - */ - where?: OrganizationWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Organizations to fetch. - */ - orderBy?: OrganizationOrderByWithRelationInput | OrganizationOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Organizations. - */ - cursor?: OrganizationWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Organizations 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` Organizations. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Organizations. - */ - distinct?: OrganizationScalarFieldEnum | OrganizationScalarFieldEnum[] - } - - /** - * Organization findMany - */ - export type OrganizationFindManyArgs = { - /** - * Select specific fields to fetch from the Organization - */ - select?: OrganizationSelect | null - /** - * Omit specific fields from the Organization - */ - omit?: OrganizationOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: OrganizationInclude | null - /** - * Filter, which Organizations to fetch. - */ - where?: OrganizationWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Organizations to fetch. - */ - orderBy?: OrganizationOrderByWithRelationInput | OrganizationOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Organizations. - */ - cursor?: OrganizationWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Organizations 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` Organizations. - */ - skip?: number - distinct?: OrganizationScalarFieldEnum | OrganizationScalarFieldEnum[] - } - - /** - * Organization create - */ - export type OrganizationCreateArgs = { - /** - * Select specific fields to fetch from the Organization - */ - select?: OrganizationSelect | null - /** - * Omit specific fields from the Organization - */ - omit?: OrganizationOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: OrganizationInclude | null - /** - * The data needed to create a Organization. - */ - data: XOR - } - - /** - * Organization createMany - */ - export type OrganizationCreateManyArgs = { - /** - * The data used to create many Organizations. - */ - data: OrganizationCreateManyInput | OrganizationCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * Organization createManyAndReturn - */ - export type OrganizationCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Organization - */ - select?: OrganizationSelectCreateManyAndReturn | null - /** - * Omit specific fields from the Organization - */ - omit?: OrganizationOmit | null - /** - * The data used to create many Organizations. - */ - data: OrganizationCreateManyInput | OrganizationCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * Organization update - */ - export type OrganizationUpdateArgs = { - /** - * Select specific fields to fetch from the Organization - */ - select?: OrganizationSelect | null - /** - * Omit specific fields from the Organization - */ - omit?: OrganizationOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: OrganizationInclude | null - /** - * The data needed to update a Organization. - */ - data: XOR - /** - * Choose, which Organization to update. - */ - where: OrganizationWhereUniqueInput - } - - /** - * Organization updateMany - */ - export type OrganizationUpdateManyArgs = { - /** - * The data used to update Organizations. - */ - data: XOR - /** - * Filter which Organizations to update - */ - where?: OrganizationWhereInput - /** - * Limit how many Organizations to update. - */ - limit?: number - } - - /** - * Organization updateManyAndReturn - */ - export type OrganizationUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Organization - */ - select?: OrganizationSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Organization - */ - omit?: OrganizationOmit | null - /** - * The data used to update Organizations. - */ - data: XOR - /** - * Filter which Organizations to update - */ - where?: OrganizationWhereInput - /** - * Limit how many Organizations to update. - */ - limit?: number - } - - /** - * Organization upsert - */ - export type OrganizationUpsertArgs = { - /** - * Select specific fields to fetch from the Organization - */ - select?: OrganizationSelect | null - /** - * Omit specific fields from the Organization - */ - omit?: OrganizationOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: OrganizationInclude | null - /** - * The filter to search for the Organization to update in case it exists. - */ - where: OrganizationWhereUniqueInput - /** - * In case the Organization found by the `where` argument doesn't exist, create a new Organization with this data. - */ - create: XOR - /** - * In case the Organization was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * Organization delete - */ - export type OrganizationDeleteArgs = { - /** - * Select specific fields to fetch from the Organization - */ - select?: OrganizationSelect | null - /** - * Omit specific fields from the Organization - */ - omit?: OrganizationOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: OrganizationInclude | null - /** - * Filter which Organization to delete. - */ - where: OrganizationWhereUniqueInput - } - - /** - * Organization deleteMany - */ - export type OrganizationDeleteManyArgs = { - /** - * Filter which Organizations to delete - */ - where?: OrganizationWhereInput - /** - * Limit how many Organizations to delete. - */ - limit?: number - } - - /** - * Organization.apiKeys - */ - export type Organization$apiKeysArgs = { - /** - * Select specific fields to fetch from the ApiKey - */ - select?: ApiKeySelect | null - /** - * Omit specific fields from the ApiKey - */ - omit?: ApiKeyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ApiKeyInclude | null - where?: ApiKeyWhereInput - orderBy?: ApiKeyOrderByWithRelationInput | ApiKeyOrderByWithRelationInput[] - cursor?: ApiKeyWhereUniqueInput - take?: number - skip?: number - distinct?: ApiKeyScalarFieldEnum | ApiKeyScalarFieldEnum[] - } - - /** - * Organization.carts - */ - export type Organization$cartsArgs = { - /** - * Select specific fields to fetch from the Cart - */ - select?: CartSelect | null - /** - * Omit specific fields from the Cart - */ - omit?: CartOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CartInclude | null - where?: CartWhereInput - } - - /** - * Organization.counterpartyOf - */ - export type Organization$counterpartyOfArgs = { - /** - * Select specific fields to fetch from the Counterparty - */ - select?: CounterpartySelect | null - /** - * Omit specific fields from the Counterparty - */ - omit?: CounterpartyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyInclude | null - where?: CounterpartyWhereInput - orderBy?: CounterpartyOrderByWithRelationInput | CounterpartyOrderByWithRelationInput[] - cursor?: CounterpartyWhereUniqueInput - take?: number - skip?: number - distinct?: CounterpartyScalarFieldEnum | CounterpartyScalarFieldEnum[] - } - - /** - * Organization.organizationCounterparties - */ - export type Organization$organizationCounterpartiesArgs = { - /** - * Select specific fields to fetch from the Counterparty - */ - select?: CounterpartySelect | null - /** - * Omit specific fields from the Counterparty - */ - omit?: CounterpartyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyInclude | null - where?: CounterpartyWhereInput - orderBy?: CounterpartyOrderByWithRelationInput | CounterpartyOrderByWithRelationInput[] - cursor?: CounterpartyWhereUniqueInput - take?: number - skip?: number - distinct?: CounterpartyScalarFieldEnum | CounterpartyScalarFieldEnum[] - } - - /** - * Organization.receivedRequests - */ - export type Organization$receivedRequestsArgs = { - /** - * Select specific fields to fetch from the CounterpartyRequest - */ - select?: CounterpartyRequestSelect | null - /** - * Omit specific fields from the CounterpartyRequest - */ - omit?: CounterpartyRequestOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyRequestInclude | null - where?: CounterpartyRequestWhereInput - orderBy?: CounterpartyRequestOrderByWithRelationInput | CounterpartyRequestOrderByWithRelationInput[] - cursor?: CounterpartyRequestWhereUniqueInput - take?: number - skip?: number - distinct?: CounterpartyRequestScalarFieldEnum | CounterpartyRequestScalarFieldEnum[] - } - - /** - * Organization.sentRequests - */ - export type Organization$sentRequestsArgs = { - /** - * Select specific fields to fetch from the CounterpartyRequest - */ - select?: CounterpartyRequestSelect | null - /** - * Omit specific fields from the CounterpartyRequest - */ - omit?: CounterpartyRequestOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyRequestInclude | null - where?: CounterpartyRequestWhereInput - orderBy?: CounterpartyRequestOrderByWithRelationInput | CounterpartyRequestOrderByWithRelationInput[] - cursor?: CounterpartyRequestWhereUniqueInput - take?: number - skip?: number - distinct?: CounterpartyRequestScalarFieldEnum | CounterpartyRequestScalarFieldEnum[] - } - - /** - * Organization.employees - */ - export type Organization$employeesArgs = { - /** - * Select specific fields to fetch from the Employee - */ - select?: EmployeeSelect | null - /** - * Omit specific fields from the Employee - */ - omit?: EmployeeOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeInclude | null - where?: EmployeeWhereInput - orderBy?: EmployeeOrderByWithRelationInput | EmployeeOrderByWithRelationInput[] - cursor?: EmployeeWhereUniqueInput - take?: number - skip?: number - distinct?: EmployeeScalarFieldEnum | EmployeeScalarFieldEnum[] - } - - /** - * Organization.favorites - */ - export type Organization$favoritesArgs = { - /** - * Select specific fields to fetch from the Favorites - */ - select?: FavoritesSelect | null - /** - * Omit specific fields from the Favorites - */ - omit?: FavoritesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: FavoritesInclude | null - where?: FavoritesWhereInput - orderBy?: FavoritesOrderByWithRelationInput | FavoritesOrderByWithRelationInput[] - cursor?: FavoritesWhereUniqueInput - take?: number - skip?: number - distinct?: FavoritesScalarFieldEnum | FavoritesScalarFieldEnum[] - } - - /** - * Organization.receivedMessages - */ - export type Organization$receivedMessagesArgs = { - /** - * Select specific fields to fetch from the Message - */ - select?: MessageSelect | null - /** - * Omit specific fields from the Message - */ - omit?: MessageOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MessageInclude | null - where?: MessageWhereInput - orderBy?: MessageOrderByWithRelationInput | MessageOrderByWithRelationInput[] - cursor?: MessageWhereUniqueInput - take?: number - skip?: number - distinct?: MessageScalarFieldEnum | MessageScalarFieldEnum[] - } - - /** - * Organization.sentMessages - */ - export type Organization$sentMessagesArgs = { - /** - * Select specific fields to fetch from the Message - */ - select?: MessageSelect | null - /** - * Omit specific fields from the Message - */ - omit?: MessageOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MessageInclude | null - where?: MessageWhereInput - orderBy?: MessageOrderByWithRelationInput | MessageOrderByWithRelationInput[] - cursor?: MessageWhereUniqueInput - take?: number - skip?: number - distinct?: MessageScalarFieldEnum | MessageScalarFieldEnum[] - } - - /** - * Organization.products - */ - export type Organization$productsArgs = { - /** - * Select specific fields to fetch from the Product - */ - select?: ProductSelect | null - /** - * Omit specific fields from the Product - */ - omit?: ProductOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ProductInclude | null - where?: ProductWhereInput - orderBy?: ProductOrderByWithRelationInput | ProductOrderByWithRelationInput[] - cursor?: ProductWhereUniqueInput - take?: number - skip?: number - distinct?: ProductScalarFieldEnum | ProductScalarFieldEnum[] - } - - /** - * Organization.services - */ - export type Organization$servicesArgs = { - /** - * Select specific fields to fetch from the Service - */ - select?: ServiceSelect | null - /** - * Omit specific fields from the Service - */ - omit?: ServiceOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ServiceInclude | null - where?: ServiceWhereInput - orderBy?: ServiceOrderByWithRelationInput | ServiceOrderByWithRelationInput[] - cursor?: ServiceWhereUniqueInput - take?: number - skip?: number - distinct?: ServiceScalarFieldEnum | ServiceScalarFieldEnum[] - } - - /** - * Organization.supplies - */ - export type Organization$suppliesArgs = { - /** - * Select specific fields to fetch from the Supply - */ - select?: SupplySelect | null - /** - * Omit specific fields from the Supply - */ - omit?: SupplyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyInclude | null - where?: SupplyWhereInput - orderBy?: SupplyOrderByWithRelationInput | SupplyOrderByWithRelationInput[] - cursor?: SupplyWhereUniqueInput - take?: number - skip?: number - distinct?: SupplyScalarFieldEnum | SupplyScalarFieldEnum[] - } - - /** - * Organization.users - */ - export type Organization$usersArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - where?: UserWhereInput - orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] - cursor?: UserWhereUniqueInput - take?: number - skip?: number - distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] - } - - /** - * Organization.logistics - */ - export type Organization$logisticsArgs = { - /** - * Select specific fields to fetch from the Logistics - */ - select?: LogisticsSelect | null - /** - * Omit specific fields from the Logistics - */ - omit?: LogisticsOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: LogisticsInclude | null - where?: LogisticsWhereInput - orderBy?: LogisticsOrderByWithRelationInput | LogisticsOrderByWithRelationInput[] - cursor?: LogisticsWhereUniqueInput - take?: number - skip?: number - distinct?: LogisticsScalarFieldEnum | LogisticsScalarFieldEnum[] - } - - /** - * Organization.supplyOrders - */ - export type Organization$supplyOrdersArgs = { - /** - * Select specific fields to fetch from the SupplyOrder - */ - select?: SupplyOrderSelect | null - /** - * Omit specific fields from the SupplyOrder - */ - omit?: SupplyOrderOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderInclude | null - where?: SupplyOrderWhereInput - orderBy?: SupplyOrderOrderByWithRelationInput | SupplyOrderOrderByWithRelationInput[] - cursor?: SupplyOrderWhereUniqueInput - take?: number - skip?: number - distinct?: SupplyOrderScalarFieldEnum | SupplyOrderScalarFieldEnum[] - } - - /** - * Organization.partnerSupplyOrders - */ - export type Organization$partnerSupplyOrdersArgs = { - /** - * Select specific fields to fetch from the SupplyOrder - */ - select?: SupplyOrderSelect | null - /** - * Omit specific fields from the SupplyOrder - */ - omit?: SupplyOrderOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderInclude | null - where?: SupplyOrderWhereInput - orderBy?: SupplyOrderOrderByWithRelationInput | SupplyOrderOrderByWithRelationInput[] - cursor?: SupplyOrderWhereUniqueInput - take?: number - skip?: number - distinct?: SupplyOrderScalarFieldEnum | SupplyOrderScalarFieldEnum[] - } - - /** - * Organization.fulfillmentSupplyOrders - */ - export type Organization$fulfillmentSupplyOrdersArgs = { - /** - * Select specific fields to fetch from the SupplyOrder - */ - select?: SupplyOrderSelect | null - /** - * Omit specific fields from the SupplyOrder - */ - omit?: SupplyOrderOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderInclude | null - where?: SupplyOrderWhereInput - orderBy?: SupplyOrderOrderByWithRelationInput | SupplyOrderOrderByWithRelationInput[] - cursor?: SupplyOrderWhereUniqueInput - take?: number - skip?: number - distinct?: SupplyOrderScalarFieldEnum | SupplyOrderScalarFieldEnum[] - } - - /** - * Organization.wildberriesSupplies - */ - export type Organization$wildberriesSuppliesArgs = { - /** - * Select specific fields to fetch from the WildberriesSupply - */ - select?: WildberriesSupplySelect | null - /** - * Omit specific fields from the WildberriesSupply - */ - omit?: WildberriesSupplyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyInclude | null - where?: WildberriesSupplyWhereInput - orderBy?: WildberriesSupplyOrderByWithRelationInput | WildberriesSupplyOrderByWithRelationInput[] - cursor?: WildberriesSupplyWhereUniqueInput - take?: number - skip?: number - distinct?: WildberriesSupplyScalarFieldEnum | WildberriesSupplyScalarFieldEnum[] - } - - /** - * Organization.supplySuppliers - */ - export type Organization$supplySuppliersArgs = { - /** - * Select specific fields to fetch from the SupplySupplier - */ - select?: SupplySupplierSelect | null - /** - * Omit specific fields from the SupplySupplier - */ - omit?: SupplySupplierOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplySupplierInclude | null - where?: SupplySupplierWhereInput - orderBy?: SupplySupplierOrderByWithRelationInput | SupplySupplierOrderByWithRelationInput[] - cursor?: SupplySupplierWhereUniqueInput - take?: number - skip?: number - distinct?: SupplySupplierScalarFieldEnum | SupplySupplierScalarFieldEnum[] - } - - /** - * Organization without action - */ - export type OrganizationDefaultArgs = { - /** - * Select specific fields to fetch from the Organization - */ - select?: OrganizationSelect | null - /** - * Omit specific fields from the Organization - */ - omit?: OrganizationOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: OrganizationInclude | null - } - - - /** - * Model ApiKey - */ - - export type AggregateApiKey = { - _count: ApiKeyCountAggregateOutputType | null - _min: ApiKeyMinAggregateOutputType | null - _max: ApiKeyMaxAggregateOutputType | null - } - - export type ApiKeyMinAggregateOutputType = { - id: string | null - marketplace: $Enums.MarketplaceType | null - apiKey: string | null - isActive: boolean | null - createdAt: Date | null - updatedAt: Date | null - organizationId: string | null - } - - export type ApiKeyMaxAggregateOutputType = { - id: string | null - marketplace: $Enums.MarketplaceType | null - apiKey: string | null - isActive: boolean | null - createdAt: Date | null - updatedAt: Date | null - organizationId: string | null - } - - export type ApiKeyCountAggregateOutputType = { - id: number - marketplace: number - apiKey: number - isActive: number - createdAt: number - updatedAt: number - validationData: number - organizationId: number - _all: number - } - - - export type ApiKeyMinAggregateInputType = { - id?: true - marketplace?: true - apiKey?: true - isActive?: true - createdAt?: true - updatedAt?: true - organizationId?: true - } - - export type ApiKeyMaxAggregateInputType = { - id?: true - marketplace?: true - apiKey?: true - isActive?: true - createdAt?: true - updatedAt?: true - organizationId?: true - } - - export type ApiKeyCountAggregateInputType = { - id?: true - marketplace?: true - apiKey?: true - isActive?: true - createdAt?: true - updatedAt?: true - validationData?: true - organizationId?: true - _all?: true - } - - export type ApiKeyAggregateArgs = { - /** - * Filter which ApiKey to aggregate. - */ - where?: ApiKeyWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of ApiKeys to fetch. - */ - orderBy?: ApiKeyOrderByWithRelationInput | ApiKeyOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: ApiKeyWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` ApiKeys from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` ApiKeys. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned ApiKeys - **/ - _count?: true | ApiKeyCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: ApiKeyMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: ApiKeyMaxAggregateInputType - } - - export type GetApiKeyAggregateType = { - [P in keyof T & keyof AggregateApiKey]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type ApiKeyGroupByArgs = { - where?: ApiKeyWhereInput - orderBy?: ApiKeyOrderByWithAggregationInput | ApiKeyOrderByWithAggregationInput[] - by: ApiKeyScalarFieldEnum[] | ApiKeyScalarFieldEnum - having?: ApiKeyScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: ApiKeyCountAggregateInputType | true - _min?: ApiKeyMinAggregateInputType - _max?: ApiKeyMaxAggregateInputType - } - - export type ApiKeyGroupByOutputType = { - id: string - marketplace: $Enums.MarketplaceType - apiKey: string - isActive: boolean - createdAt: Date - updatedAt: Date - validationData: JsonValue | null - organizationId: string - _count: ApiKeyCountAggregateOutputType | null - _min: ApiKeyMinAggregateOutputType | null - _max: ApiKeyMaxAggregateOutputType | null - } - - type GetApiKeyGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof ApiKeyGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type ApiKeySelect = $Extensions.GetSelect<{ - id?: boolean - marketplace?: boolean - apiKey?: boolean - isActive?: boolean - createdAt?: boolean - updatedAt?: boolean - validationData?: boolean - organizationId?: boolean - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["apiKey"]> - - export type ApiKeySelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - marketplace?: boolean - apiKey?: boolean - isActive?: boolean - createdAt?: boolean - updatedAt?: boolean - validationData?: boolean - organizationId?: boolean - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["apiKey"]> - - export type ApiKeySelectUpdateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - marketplace?: boolean - apiKey?: boolean - isActive?: boolean - createdAt?: boolean - updatedAt?: boolean - validationData?: boolean - organizationId?: boolean - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["apiKey"]> - - export type ApiKeySelectScalar = { - id?: boolean - marketplace?: boolean - apiKey?: boolean - isActive?: boolean - createdAt?: boolean - updatedAt?: boolean - validationData?: boolean - organizationId?: boolean - } - - export type ApiKeyOmit = $Extensions.GetOmit<"id" | "marketplace" | "apiKey" | "isActive" | "createdAt" | "updatedAt" | "validationData" | "organizationId", ExtArgs["result"]["apiKey"]> - export type ApiKeyInclude = { - organization?: boolean | OrganizationDefaultArgs - } - export type ApiKeyIncludeCreateManyAndReturn = { - organization?: boolean | OrganizationDefaultArgs - } - export type ApiKeyIncludeUpdateManyAndReturn = { - organization?: boolean | OrganizationDefaultArgs - } - - export type $ApiKeyPayload = { - name: "ApiKey" - objects: { - organization: Prisma.$OrganizationPayload - } - scalars: $Extensions.GetPayloadResult<{ - id: string - marketplace: $Enums.MarketplaceType - apiKey: string - isActive: boolean - createdAt: Date - updatedAt: Date - validationData: Prisma.JsonValue | null - organizationId: string - }, ExtArgs["result"]["apiKey"]> - composites: {} - } - - type ApiKeyGetPayload = $Result.GetResult - - type ApiKeyCountArgs = - Omit & { - select?: ApiKeyCountAggregateInputType | true - } - - export interface ApiKeyDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['ApiKey'], meta: { name: 'ApiKey' } } - /** - * Find zero or one ApiKey that matches the filter. - * @param {ApiKeyFindUniqueArgs} args - Arguments to find a ApiKey - * @example - * // Get one ApiKey - * const apiKey = await prisma.apiKey.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__ApiKeyClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one ApiKey that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {ApiKeyFindUniqueOrThrowArgs} args - Arguments to find a ApiKey - * @example - * // Get one ApiKey - * const apiKey = await prisma.apiKey.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__ApiKeyClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first ApiKey that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ApiKeyFindFirstArgs} args - Arguments to find a ApiKey - * @example - * // Get one ApiKey - * const apiKey = await prisma.apiKey.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__ApiKeyClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first ApiKey that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ApiKeyFindFirstOrThrowArgs} args - Arguments to find a ApiKey - * @example - * // Get one ApiKey - * const apiKey = await prisma.apiKey.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__ApiKeyClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more ApiKeys that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ApiKeyFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all ApiKeys - * const apiKeys = await prisma.apiKey.findMany() - * - * // Get first 10 ApiKeys - * const apiKeys = await prisma.apiKey.findMany({ take: 10 }) - * - * // Only select the `id` - * const apiKeyWithIdOnly = await prisma.apiKey.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> - - /** - * Create a ApiKey. - * @param {ApiKeyCreateArgs} args - Arguments to create a ApiKey. - * @example - * // Create one ApiKey - * const ApiKey = await prisma.apiKey.create({ - * data: { - * // ... data to create a ApiKey - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__ApiKeyClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many ApiKeys. - * @param {ApiKeyCreateManyArgs} args - Arguments to create many ApiKeys. - * @example - * // Create many ApiKeys - * const apiKey = await prisma.apiKey.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many ApiKeys and returns the data saved in the database. - * @param {ApiKeyCreateManyAndReturnArgs} args - Arguments to create many ApiKeys. - * @example - * // Create many ApiKeys - * const apiKey = await prisma.apiKey.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many ApiKeys and only return the `id` - * const apiKeyWithIdOnly = await prisma.apiKey.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a ApiKey. - * @param {ApiKeyDeleteArgs} args - Arguments to delete one ApiKey. - * @example - * // Delete one ApiKey - * const ApiKey = await prisma.apiKey.delete({ - * where: { - * // ... filter to delete one ApiKey - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__ApiKeyClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one ApiKey. - * @param {ApiKeyUpdateArgs} args - Arguments to update one ApiKey. - * @example - * // Update one ApiKey - * const apiKey = await prisma.apiKey.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__ApiKeyClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more ApiKeys. - * @param {ApiKeyDeleteManyArgs} args - Arguments to filter ApiKeys to delete. - * @example - * // Delete a few ApiKeys - * const { count } = await prisma.apiKey.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more ApiKeys. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ApiKeyUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many ApiKeys - * const apiKey = await prisma.apiKey.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more ApiKeys and returns the data updated in the database. - * @param {ApiKeyUpdateManyAndReturnArgs} args - Arguments to update many ApiKeys. - * @example - * // Update many ApiKeys - * const apiKey = await prisma.apiKey.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more ApiKeys and only return the `id` - * const apiKeyWithIdOnly = await prisma.apiKey.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one ApiKey. - * @param {ApiKeyUpsertArgs} args - Arguments to update or create a ApiKey. - * @example - * // Update or create a ApiKey - * const apiKey = await prisma.apiKey.upsert({ - * create: { - * // ... data to create a ApiKey - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the ApiKey we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__ApiKeyClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of ApiKeys. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ApiKeyCountArgs} args - Arguments to filter ApiKeys to count. - * @example - * // Count the number of ApiKeys - * const count = await prisma.apiKey.count({ - * where: { - * // ... the filter for the ApiKeys we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a ApiKey. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ApiKeyAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by ApiKey. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ApiKeyGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends ApiKeyGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: ApiKeyGroupByArgs['orderBy'] } - : { orderBy?: ApiKeyGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetApiKeyGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the ApiKey model - */ - readonly fields: ApiKeyFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for ApiKey. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__ApiKeyClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - organization = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $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): $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): $Utils.JsPromise - } - - - - - /** - * Fields of the ApiKey model - */ - interface ApiKeyFieldRefs { - readonly id: FieldRef<"ApiKey", 'String'> - readonly marketplace: FieldRef<"ApiKey", 'MarketplaceType'> - readonly apiKey: FieldRef<"ApiKey", 'String'> - readonly isActive: FieldRef<"ApiKey", 'Boolean'> - readonly createdAt: FieldRef<"ApiKey", 'DateTime'> - readonly updatedAt: FieldRef<"ApiKey", 'DateTime'> - readonly validationData: FieldRef<"ApiKey", 'Json'> - readonly organizationId: FieldRef<"ApiKey", 'String'> - } - - - // Custom InputTypes - /** - * ApiKey findUnique - */ - export type ApiKeyFindUniqueArgs = { - /** - * Select specific fields to fetch from the ApiKey - */ - select?: ApiKeySelect | null - /** - * Omit specific fields from the ApiKey - */ - omit?: ApiKeyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ApiKeyInclude | null - /** - * Filter, which ApiKey to fetch. - */ - where: ApiKeyWhereUniqueInput - } - - /** - * ApiKey findUniqueOrThrow - */ - export type ApiKeyFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the ApiKey - */ - select?: ApiKeySelect | null - /** - * Omit specific fields from the ApiKey - */ - omit?: ApiKeyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ApiKeyInclude | null - /** - * Filter, which ApiKey to fetch. - */ - where: ApiKeyWhereUniqueInput - } - - /** - * ApiKey findFirst - */ - export type ApiKeyFindFirstArgs = { - /** - * Select specific fields to fetch from the ApiKey - */ - select?: ApiKeySelect | null - /** - * Omit specific fields from the ApiKey - */ - omit?: ApiKeyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ApiKeyInclude | null - /** - * Filter, which ApiKey to fetch. - */ - where?: ApiKeyWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of ApiKeys to fetch. - */ - orderBy?: ApiKeyOrderByWithRelationInput | ApiKeyOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for ApiKeys. - */ - cursor?: ApiKeyWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` ApiKeys from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` ApiKeys. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of ApiKeys. - */ - distinct?: ApiKeyScalarFieldEnum | ApiKeyScalarFieldEnum[] - } - - /** - * ApiKey findFirstOrThrow - */ - export type ApiKeyFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the ApiKey - */ - select?: ApiKeySelect | null - /** - * Omit specific fields from the ApiKey - */ - omit?: ApiKeyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ApiKeyInclude | null - /** - * Filter, which ApiKey to fetch. - */ - where?: ApiKeyWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of ApiKeys to fetch. - */ - orderBy?: ApiKeyOrderByWithRelationInput | ApiKeyOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for ApiKeys. - */ - cursor?: ApiKeyWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` ApiKeys from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` ApiKeys. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of ApiKeys. - */ - distinct?: ApiKeyScalarFieldEnum | ApiKeyScalarFieldEnum[] - } - - /** - * ApiKey findMany - */ - export type ApiKeyFindManyArgs = { - /** - * Select specific fields to fetch from the ApiKey - */ - select?: ApiKeySelect | null - /** - * Omit specific fields from the ApiKey - */ - omit?: ApiKeyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ApiKeyInclude | null - /** - * Filter, which ApiKeys to fetch. - */ - where?: ApiKeyWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of ApiKeys to fetch. - */ - orderBy?: ApiKeyOrderByWithRelationInput | ApiKeyOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing ApiKeys. - */ - cursor?: ApiKeyWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` ApiKeys from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` ApiKeys. - */ - skip?: number - distinct?: ApiKeyScalarFieldEnum | ApiKeyScalarFieldEnum[] - } - - /** - * ApiKey create - */ - export type ApiKeyCreateArgs = { - /** - * Select specific fields to fetch from the ApiKey - */ - select?: ApiKeySelect | null - /** - * Omit specific fields from the ApiKey - */ - omit?: ApiKeyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ApiKeyInclude | null - /** - * The data needed to create a ApiKey. - */ - data: XOR - } - - /** - * ApiKey createMany - */ - export type ApiKeyCreateManyArgs = { - /** - * The data used to create many ApiKeys. - */ - data: ApiKeyCreateManyInput | ApiKeyCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * ApiKey createManyAndReturn - */ - export type ApiKeyCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the ApiKey - */ - select?: ApiKeySelectCreateManyAndReturn | null - /** - * Omit specific fields from the ApiKey - */ - omit?: ApiKeyOmit | null - /** - * The data used to create many ApiKeys. - */ - data: ApiKeyCreateManyInput | ApiKeyCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: ApiKeyIncludeCreateManyAndReturn | null - } - - /** - * ApiKey update - */ - export type ApiKeyUpdateArgs = { - /** - * Select specific fields to fetch from the ApiKey - */ - select?: ApiKeySelect | null - /** - * Omit specific fields from the ApiKey - */ - omit?: ApiKeyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ApiKeyInclude | null - /** - * The data needed to update a ApiKey. - */ - data: XOR - /** - * Choose, which ApiKey to update. - */ - where: ApiKeyWhereUniqueInput - } - - /** - * ApiKey updateMany - */ - export type ApiKeyUpdateManyArgs = { - /** - * The data used to update ApiKeys. - */ - data: XOR - /** - * Filter which ApiKeys to update - */ - where?: ApiKeyWhereInput - /** - * Limit how many ApiKeys to update. - */ - limit?: number - } - - /** - * ApiKey updateManyAndReturn - */ - export type ApiKeyUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the ApiKey - */ - select?: ApiKeySelectUpdateManyAndReturn | null - /** - * Omit specific fields from the ApiKey - */ - omit?: ApiKeyOmit | null - /** - * The data used to update ApiKeys. - */ - data: XOR - /** - * Filter which ApiKeys to update - */ - where?: ApiKeyWhereInput - /** - * Limit how many ApiKeys to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: ApiKeyIncludeUpdateManyAndReturn | null - } - - /** - * ApiKey upsert - */ - export type ApiKeyUpsertArgs = { - /** - * Select specific fields to fetch from the ApiKey - */ - select?: ApiKeySelect | null - /** - * Omit specific fields from the ApiKey - */ - omit?: ApiKeyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ApiKeyInclude | null - /** - * The filter to search for the ApiKey to update in case it exists. - */ - where: ApiKeyWhereUniqueInput - /** - * In case the ApiKey found by the `where` argument doesn't exist, create a new ApiKey with this data. - */ - create: XOR - /** - * In case the ApiKey was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * ApiKey delete - */ - export type ApiKeyDeleteArgs = { - /** - * Select specific fields to fetch from the ApiKey - */ - select?: ApiKeySelect | null - /** - * Omit specific fields from the ApiKey - */ - omit?: ApiKeyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ApiKeyInclude | null - /** - * Filter which ApiKey to delete. - */ - where: ApiKeyWhereUniqueInput - } - - /** - * ApiKey deleteMany - */ - export type ApiKeyDeleteManyArgs = { - /** - * Filter which ApiKeys to delete - */ - where?: ApiKeyWhereInput - /** - * Limit how many ApiKeys to delete. - */ - limit?: number - } - - /** - * ApiKey without action - */ - export type ApiKeyDefaultArgs = { - /** - * Select specific fields to fetch from the ApiKey - */ - select?: ApiKeySelect | null - /** - * Omit specific fields from the ApiKey - */ - omit?: ApiKeyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ApiKeyInclude | null - } - - - /** - * Model CounterpartyRequest - */ - - export type AggregateCounterpartyRequest = { - _count: CounterpartyRequestCountAggregateOutputType | null - _min: CounterpartyRequestMinAggregateOutputType | null - _max: CounterpartyRequestMaxAggregateOutputType | null - } - - export type CounterpartyRequestMinAggregateOutputType = { - id: string | null - status: $Enums.CounterpartyRequestStatus | null - createdAt: Date | null - updatedAt: Date | null - senderId: string | null - receiverId: string | null - message: string | null - } - - export type CounterpartyRequestMaxAggregateOutputType = { - id: string | null - status: $Enums.CounterpartyRequestStatus | null - createdAt: Date | null - updatedAt: Date | null - senderId: string | null - receiverId: string | null - message: string | null - } - - export type CounterpartyRequestCountAggregateOutputType = { - id: number - status: number - createdAt: number - updatedAt: number - senderId: number - receiverId: number - message: number - _all: number - } - - - export type CounterpartyRequestMinAggregateInputType = { - id?: true - status?: true - createdAt?: true - updatedAt?: true - senderId?: true - receiverId?: true - message?: true - } - - export type CounterpartyRequestMaxAggregateInputType = { - id?: true - status?: true - createdAt?: true - updatedAt?: true - senderId?: true - receiverId?: true - message?: true - } - - export type CounterpartyRequestCountAggregateInputType = { - id?: true - status?: true - createdAt?: true - updatedAt?: true - senderId?: true - receiverId?: true - message?: true - _all?: true - } - - export type CounterpartyRequestAggregateArgs = { - /** - * Filter which CounterpartyRequest to aggregate. - */ - where?: CounterpartyRequestWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of CounterpartyRequests to fetch. - */ - orderBy?: CounterpartyRequestOrderByWithRelationInput | CounterpartyRequestOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: CounterpartyRequestWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` CounterpartyRequests 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` CounterpartyRequests. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned CounterpartyRequests - **/ - _count?: true | CounterpartyRequestCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: CounterpartyRequestMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: CounterpartyRequestMaxAggregateInputType - } - - export type GetCounterpartyRequestAggregateType = { - [P in keyof T & keyof AggregateCounterpartyRequest]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type CounterpartyRequestGroupByArgs = { - where?: CounterpartyRequestWhereInput - orderBy?: CounterpartyRequestOrderByWithAggregationInput | CounterpartyRequestOrderByWithAggregationInput[] - by: CounterpartyRequestScalarFieldEnum[] | CounterpartyRequestScalarFieldEnum - having?: CounterpartyRequestScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: CounterpartyRequestCountAggregateInputType | true - _min?: CounterpartyRequestMinAggregateInputType - _max?: CounterpartyRequestMaxAggregateInputType - } - - export type CounterpartyRequestGroupByOutputType = { - id: string - status: $Enums.CounterpartyRequestStatus - createdAt: Date - updatedAt: Date - senderId: string - receiverId: string - message: string | null - _count: CounterpartyRequestCountAggregateOutputType | null - _min: CounterpartyRequestMinAggregateOutputType | null - _max: CounterpartyRequestMaxAggregateOutputType | null - } - - type GetCounterpartyRequestGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof CounterpartyRequestGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type CounterpartyRequestSelect = $Extensions.GetSelect<{ - id?: boolean - status?: boolean - createdAt?: boolean - updatedAt?: boolean - senderId?: boolean - receiverId?: boolean - message?: boolean - receiver?: boolean | OrganizationDefaultArgs - sender?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["counterpartyRequest"]> - - export type CounterpartyRequestSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - status?: boolean - createdAt?: boolean - updatedAt?: boolean - senderId?: boolean - receiverId?: boolean - message?: boolean - receiver?: boolean | OrganizationDefaultArgs - sender?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["counterpartyRequest"]> - - export type CounterpartyRequestSelectUpdateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - status?: boolean - createdAt?: boolean - updatedAt?: boolean - senderId?: boolean - receiverId?: boolean - message?: boolean - receiver?: boolean | OrganizationDefaultArgs - sender?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["counterpartyRequest"]> - - export type CounterpartyRequestSelectScalar = { - id?: boolean - status?: boolean - createdAt?: boolean - updatedAt?: boolean - senderId?: boolean - receiverId?: boolean - message?: boolean - } - - export type CounterpartyRequestOmit = $Extensions.GetOmit<"id" | "status" | "createdAt" | "updatedAt" | "senderId" | "receiverId" | "message", ExtArgs["result"]["counterpartyRequest"]> - export type CounterpartyRequestInclude = { - receiver?: boolean | OrganizationDefaultArgs - sender?: boolean | OrganizationDefaultArgs - } - export type CounterpartyRequestIncludeCreateManyAndReturn = { - receiver?: boolean | OrganizationDefaultArgs - sender?: boolean | OrganizationDefaultArgs - } - export type CounterpartyRequestIncludeUpdateManyAndReturn = { - receiver?: boolean | OrganizationDefaultArgs - sender?: boolean | OrganizationDefaultArgs - } - - export type $CounterpartyRequestPayload = { - name: "CounterpartyRequest" - objects: { - receiver: Prisma.$OrganizationPayload - sender: Prisma.$OrganizationPayload - } - scalars: $Extensions.GetPayloadResult<{ - id: string - status: $Enums.CounterpartyRequestStatus - createdAt: Date - updatedAt: Date - senderId: string - receiverId: string - message: string | null - }, ExtArgs["result"]["counterpartyRequest"]> - composites: {} - } - - type CounterpartyRequestGetPayload = $Result.GetResult - - type CounterpartyRequestCountArgs = - Omit & { - select?: CounterpartyRequestCountAggregateInputType | true - } - - export interface CounterpartyRequestDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['CounterpartyRequest'], meta: { name: 'CounterpartyRequest' } } - /** - * Find zero or one CounterpartyRequest that matches the filter. - * @param {CounterpartyRequestFindUniqueArgs} args - Arguments to find a CounterpartyRequest - * @example - * // Get one CounterpartyRequest - * const counterpartyRequest = await prisma.counterpartyRequest.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__CounterpartyRequestClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one CounterpartyRequest that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {CounterpartyRequestFindUniqueOrThrowArgs} args - Arguments to find a CounterpartyRequest - * @example - * // Get one CounterpartyRequest - * const counterpartyRequest = await prisma.counterpartyRequest.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__CounterpartyRequestClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first CounterpartyRequest 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 {CounterpartyRequestFindFirstArgs} args - Arguments to find a CounterpartyRequest - * @example - * // Get one CounterpartyRequest - * const counterpartyRequest = await prisma.counterpartyRequest.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__CounterpartyRequestClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first CounterpartyRequest 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 {CounterpartyRequestFindFirstOrThrowArgs} args - Arguments to find a CounterpartyRequest - * @example - * // Get one CounterpartyRequest - * const counterpartyRequest = await prisma.counterpartyRequest.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__CounterpartyRequestClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more CounterpartyRequests 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 {CounterpartyRequestFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all CounterpartyRequests - * const counterpartyRequests = await prisma.counterpartyRequest.findMany() - * - * // Get first 10 CounterpartyRequests - * const counterpartyRequests = await prisma.counterpartyRequest.findMany({ take: 10 }) - * - * // Only select the `id` - * const counterpartyRequestWithIdOnly = await prisma.counterpartyRequest.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> - - /** - * Create a CounterpartyRequest. - * @param {CounterpartyRequestCreateArgs} args - Arguments to create a CounterpartyRequest. - * @example - * // Create one CounterpartyRequest - * const CounterpartyRequest = await prisma.counterpartyRequest.create({ - * data: { - * // ... data to create a CounterpartyRequest - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__CounterpartyRequestClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many CounterpartyRequests. - * @param {CounterpartyRequestCreateManyArgs} args - Arguments to create many CounterpartyRequests. - * @example - * // Create many CounterpartyRequests - * const counterpartyRequest = await prisma.counterpartyRequest.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many CounterpartyRequests and returns the data saved in the database. - * @param {CounterpartyRequestCreateManyAndReturnArgs} args - Arguments to create many CounterpartyRequests. - * @example - * // Create many CounterpartyRequests - * const counterpartyRequest = await prisma.counterpartyRequest.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many CounterpartyRequests and only return the `id` - * const counterpartyRequestWithIdOnly = await prisma.counterpartyRequest.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a CounterpartyRequest. - * @param {CounterpartyRequestDeleteArgs} args - Arguments to delete one CounterpartyRequest. - * @example - * // Delete one CounterpartyRequest - * const CounterpartyRequest = await prisma.counterpartyRequest.delete({ - * where: { - * // ... filter to delete one CounterpartyRequest - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__CounterpartyRequestClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one CounterpartyRequest. - * @param {CounterpartyRequestUpdateArgs} args - Arguments to update one CounterpartyRequest. - * @example - * // Update one CounterpartyRequest - * const counterpartyRequest = await prisma.counterpartyRequest.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__CounterpartyRequestClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more CounterpartyRequests. - * @param {CounterpartyRequestDeleteManyArgs} args - Arguments to filter CounterpartyRequests to delete. - * @example - * // Delete a few CounterpartyRequests - * const { count } = await prisma.counterpartyRequest.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more CounterpartyRequests. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CounterpartyRequestUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many CounterpartyRequests - * const counterpartyRequest = await prisma.counterpartyRequest.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more CounterpartyRequests and returns the data updated in the database. - * @param {CounterpartyRequestUpdateManyAndReturnArgs} args - Arguments to update many CounterpartyRequests. - * @example - * // Update many CounterpartyRequests - * const counterpartyRequest = await prisma.counterpartyRequest.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more CounterpartyRequests and only return the `id` - * const counterpartyRequestWithIdOnly = await prisma.counterpartyRequest.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one CounterpartyRequest. - * @param {CounterpartyRequestUpsertArgs} args - Arguments to update or create a CounterpartyRequest. - * @example - * // Update or create a CounterpartyRequest - * const counterpartyRequest = await prisma.counterpartyRequest.upsert({ - * create: { - * // ... data to create a CounterpartyRequest - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the CounterpartyRequest we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__CounterpartyRequestClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of CounterpartyRequests. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CounterpartyRequestCountArgs} args - Arguments to filter CounterpartyRequests to count. - * @example - * // Count the number of CounterpartyRequests - * const count = await prisma.counterpartyRequest.count({ - * where: { - * // ... the filter for the CounterpartyRequests we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a CounterpartyRequest. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CounterpartyRequestAggregateArgs} 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: Subset): Prisma.PrismaPromise> - - /** - * Group by CounterpartyRequest. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CounterpartyRequestGroupByArgs} 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 CounterpartyRequestGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: CounterpartyRequestGroupByArgs['orderBy'] } - : { orderBy?: CounterpartyRequestGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetCounterpartyRequestGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the CounterpartyRequest model - */ - readonly fields: CounterpartyRequestFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for CounterpartyRequest. - * 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__CounterpartyRequestClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - receiver = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - sender = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $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): $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): $Utils.JsPromise - } - - - - - /** - * Fields of the CounterpartyRequest model - */ - interface CounterpartyRequestFieldRefs { - readonly id: FieldRef<"CounterpartyRequest", 'String'> - readonly status: FieldRef<"CounterpartyRequest", 'CounterpartyRequestStatus'> - readonly createdAt: FieldRef<"CounterpartyRequest", 'DateTime'> - readonly updatedAt: FieldRef<"CounterpartyRequest", 'DateTime'> - readonly senderId: FieldRef<"CounterpartyRequest", 'String'> - readonly receiverId: FieldRef<"CounterpartyRequest", 'String'> - readonly message: FieldRef<"CounterpartyRequest", 'String'> - } - - - // Custom InputTypes - /** - * CounterpartyRequest findUnique - */ - export type CounterpartyRequestFindUniqueArgs = { - /** - * Select specific fields to fetch from the CounterpartyRequest - */ - select?: CounterpartyRequestSelect | null - /** - * Omit specific fields from the CounterpartyRequest - */ - omit?: CounterpartyRequestOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyRequestInclude | null - /** - * Filter, which CounterpartyRequest to fetch. - */ - where: CounterpartyRequestWhereUniqueInput - } - - /** - * CounterpartyRequest findUniqueOrThrow - */ - export type CounterpartyRequestFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the CounterpartyRequest - */ - select?: CounterpartyRequestSelect | null - /** - * Omit specific fields from the CounterpartyRequest - */ - omit?: CounterpartyRequestOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyRequestInclude | null - /** - * Filter, which CounterpartyRequest to fetch. - */ - where: CounterpartyRequestWhereUniqueInput - } - - /** - * CounterpartyRequest findFirst - */ - export type CounterpartyRequestFindFirstArgs = { - /** - * Select specific fields to fetch from the CounterpartyRequest - */ - select?: CounterpartyRequestSelect | null - /** - * Omit specific fields from the CounterpartyRequest - */ - omit?: CounterpartyRequestOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyRequestInclude | null - /** - * Filter, which CounterpartyRequest to fetch. - */ - where?: CounterpartyRequestWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of CounterpartyRequests to fetch. - */ - orderBy?: CounterpartyRequestOrderByWithRelationInput | CounterpartyRequestOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for CounterpartyRequests. - */ - cursor?: CounterpartyRequestWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` CounterpartyRequests 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` CounterpartyRequests. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of CounterpartyRequests. - */ - distinct?: CounterpartyRequestScalarFieldEnum | CounterpartyRequestScalarFieldEnum[] - } - - /** - * CounterpartyRequest findFirstOrThrow - */ - export type CounterpartyRequestFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the CounterpartyRequest - */ - select?: CounterpartyRequestSelect | null - /** - * Omit specific fields from the CounterpartyRequest - */ - omit?: CounterpartyRequestOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyRequestInclude | null - /** - * Filter, which CounterpartyRequest to fetch. - */ - where?: CounterpartyRequestWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of CounterpartyRequests to fetch. - */ - orderBy?: CounterpartyRequestOrderByWithRelationInput | CounterpartyRequestOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for CounterpartyRequests. - */ - cursor?: CounterpartyRequestWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` CounterpartyRequests 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` CounterpartyRequests. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of CounterpartyRequests. - */ - distinct?: CounterpartyRequestScalarFieldEnum | CounterpartyRequestScalarFieldEnum[] - } - - /** - * CounterpartyRequest findMany - */ - export type CounterpartyRequestFindManyArgs = { - /** - * Select specific fields to fetch from the CounterpartyRequest - */ - select?: CounterpartyRequestSelect | null - /** - * Omit specific fields from the CounterpartyRequest - */ - omit?: CounterpartyRequestOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyRequestInclude | null - /** - * Filter, which CounterpartyRequests to fetch. - */ - where?: CounterpartyRequestWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of CounterpartyRequests to fetch. - */ - orderBy?: CounterpartyRequestOrderByWithRelationInput | CounterpartyRequestOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing CounterpartyRequests. - */ - cursor?: CounterpartyRequestWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` CounterpartyRequests 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` CounterpartyRequests. - */ - skip?: number - distinct?: CounterpartyRequestScalarFieldEnum | CounterpartyRequestScalarFieldEnum[] - } - - /** - * CounterpartyRequest create - */ - export type CounterpartyRequestCreateArgs = { - /** - * Select specific fields to fetch from the CounterpartyRequest - */ - select?: CounterpartyRequestSelect | null - /** - * Omit specific fields from the CounterpartyRequest - */ - omit?: CounterpartyRequestOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyRequestInclude | null - /** - * The data needed to create a CounterpartyRequest. - */ - data: XOR - } - - /** - * CounterpartyRequest createMany - */ - export type CounterpartyRequestCreateManyArgs = { - /** - * The data used to create many CounterpartyRequests. - */ - data: CounterpartyRequestCreateManyInput | CounterpartyRequestCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * CounterpartyRequest createManyAndReturn - */ - export type CounterpartyRequestCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the CounterpartyRequest - */ - select?: CounterpartyRequestSelectCreateManyAndReturn | null - /** - * Omit specific fields from the CounterpartyRequest - */ - omit?: CounterpartyRequestOmit | null - /** - * The data used to create many CounterpartyRequests. - */ - data: CounterpartyRequestCreateManyInput | CounterpartyRequestCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyRequestIncludeCreateManyAndReturn | null - } - - /** - * CounterpartyRequest update - */ - export type CounterpartyRequestUpdateArgs = { - /** - * Select specific fields to fetch from the CounterpartyRequest - */ - select?: CounterpartyRequestSelect | null - /** - * Omit specific fields from the CounterpartyRequest - */ - omit?: CounterpartyRequestOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyRequestInclude | null - /** - * The data needed to update a CounterpartyRequest. - */ - data: XOR - /** - * Choose, which CounterpartyRequest to update. - */ - where: CounterpartyRequestWhereUniqueInput - } - - /** - * CounterpartyRequest updateMany - */ - export type CounterpartyRequestUpdateManyArgs = { - /** - * The data used to update CounterpartyRequests. - */ - data: XOR - /** - * Filter which CounterpartyRequests to update - */ - where?: CounterpartyRequestWhereInput - /** - * Limit how many CounterpartyRequests to update. - */ - limit?: number - } - - /** - * CounterpartyRequest updateManyAndReturn - */ - export type CounterpartyRequestUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the CounterpartyRequest - */ - select?: CounterpartyRequestSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the CounterpartyRequest - */ - omit?: CounterpartyRequestOmit | null - /** - * The data used to update CounterpartyRequests. - */ - data: XOR - /** - * Filter which CounterpartyRequests to update - */ - where?: CounterpartyRequestWhereInput - /** - * Limit how many CounterpartyRequests to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyRequestIncludeUpdateManyAndReturn | null - } - - /** - * CounterpartyRequest upsert - */ - export type CounterpartyRequestUpsertArgs = { - /** - * Select specific fields to fetch from the CounterpartyRequest - */ - select?: CounterpartyRequestSelect | null - /** - * Omit specific fields from the CounterpartyRequest - */ - omit?: CounterpartyRequestOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyRequestInclude | null - /** - * The filter to search for the CounterpartyRequest to update in case it exists. - */ - where: CounterpartyRequestWhereUniqueInput - /** - * In case the CounterpartyRequest found by the `where` argument doesn't exist, create a new CounterpartyRequest with this data. - */ - create: XOR - /** - * In case the CounterpartyRequest was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * CounterpartyRequest delete - */ - export type CounterpartyRequestDeleteArgs = { - /** - * Select specific fields to fetch from the CounterpartyRequest - */ - select?: CounterpartyRequestSelect | null - /** - * Omit specific fields from the CounterpartyRequest - */ - omit?: CounterpartyRequestOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyRequestInclude | null - /** - * Filter which CounterpartyRequest to delete. - */ - where: CounterpartyRequestWhereUniqueInput - } - - /** - * CounterpartyRequest deleteMany - */ - export type CounterpartyRequestDeleteManyArgs = { - /** - * Filter which CounterpartyRequests to delete - */ - where?: CounterpartyRequestWhereInput - /** - * Limit how many CounterpartyRequests to delete. - */ - limit?: number - } - - /** - * CounterpartyRequest without action - */ - export type CounterpartyRequestDefaultArgs = { - /** - * Select specific fields to fetch from the CounterpartyRequest - */ - select?: CounterpartyRequestSelect | null - /** - * Omit specific fields from the CounterpartyRequest - */ - omit?: CounterpartyRequestOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyRequestInclude | null - } - - - /** - * Model Counterparty - */ - - export type AggregateCounterparty = { - _count: CounterpartyCountAggregateOutputType | null - _min: CounterpartyMinAggregateOutputType | null - _max: CounterpartyMaxAggregateOutputType | null - } - - export type CounterpartyMinAggregateOutputType = { - id: string | null - createdAt: Date | null - organizationId: string | null - counterpartyId: string | null - } - - export type CounterpartyMaxAggregateOutputType = { - id: string | null - createdAt: Date | null - organizationId: string | null - counterpartyId: string | null - } - - export type CounterpartyCountAggregateOutputType = { - id: number - createdAt: number - organizationId: number - counterpartyId: number - _all: number - } - - - export type CounterpartyMinAggregateInputType = { - id?: true - createdAt?: true - organizationId?: true - counterpartyId?: true - } - - export type CounterpartyMaxAggregateInputType = { - id?: true - createdAt?: true - organizationId?: true - counterpartyId?: true - } - - export type CounterpartyCountAggregateInputType = { - id?: true - createdAt?: true - organizationId?: true - counterpartyId?: true - _all?: true - } - - export type CounterpartyAggregateArgs = { - /** - * Filter which Counterparty to aggregate. - */ - where?: CounterpartyWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Counterparties to fetch. - */ - orderBy?: CounterpartyOrderByWithRelationInput | CounterpartyOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: CounterpartyWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Counterparties 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` Counterparties. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Counterparties - **/ - _count?: true | CounterpartyCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: CounterpartyMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: CounterpartyMaxAggregateInputType - } - - export type GetCounterpartyAggregateType = { - [P in keyof T & keyof AggregateCounterparty]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type CounterpartyGroupByArgs = { - where?: CounterpartyWhereInput - orderBy?: CounterpartyOrderByWithAggregationInput | CounterpartyOrderByWithAggregationInput[] - by: CounterpartyScalarFieldEnum[] | CounterpartyScalarFieldEnum - having?: CounterpartyScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: CounterpartyCountAggregateInputType | true - _min?: CounterpartyMinAggregateInputType - _max?: CounterpartyMaxAggregateInputType - } - - export type CounterpartyGroupByOutputType = { - id: string - createdAt: Date - organizationId: string - counterpartyId: string - _count: CounterpartyCountAggregateOutputType | null - _min: CounterpartyMinAggregateOutputType | null - _max: CounterpartyMaxAggregateOutputType | null - } - - type GetCounterpartyGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof CounterpartyGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type CounterpartySelect = $Extensions.GetSelect<{ - id?: boolean - createdAt?: boolean - organizationId?: boolean - counterpartyId?: boolean - counterparty?: boolean | OrganizationDefaultArgs - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["counterparty"]> - - export type CounterpartySelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - createdAt?: boolean - organizationId?: boolean - counterpartyId?: boolean - counterparty?: boolean | OrganizationDefaultArgs - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["counterparty"]> - - export type CounterpartySelectUpdateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - createdAt?: boolean - organizationId?: boolean - counterpartyId?: boolean - counterparty?: boolean | OrganizationDefaultArgs - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["counterparty"]> - - export type CounterpartySelectScalar = { - id?: boolean - createdAt?: boolean - organizationId?: boolean - counterpartyId?: boolean - } - - export type CounterpartyOmit = $Extensions.GetOmit<"id" | "createdAt" | "organizationId" | "counterpartyId", ExtArgs["result"]["counterparty"]> - export type CounterpartyInclude = { - counterparty?: boolean | OrganizationDefaultArgs - organization?: boolean | OrganizationDefaultArgs - } - export type CounterpartyIncludeCreateManyAndReturn = { - counterparty?: boolean | OrganizationDefaultArgs - organization?: boolean | OrganizationDefaultArgs - } - export type CounterpartyIncludeUpdateManyAndReturn = { - counterparty?: boolean | OrganizationDefaultArgs - organization?: boolean | OrganizationDefaultArgs - } - - export type $CounterpartyPayload = { - name: "Counterparty" - objects: { - counterparty: Prisma.$OrganizationPayload - organization: Prisma.$OrganizationPayload - } - scalars: $Extensions.GetPayloadResult<{ - id: string - createdAt: Date - organizationId: string - counterpartyId: string - }, ExtArgs["result"]["counterparty"]> - composites: {} - } - - type CounterpartyGetPayload = $Result.GetResult - - type CounterpartyCountArgs = - Omit & { - select?: CounterpartyCountAggregateInputType | true - } - - export interface CounterpartyDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Counterparty'], meta: { name: 'Counterparty' } } - /** - * Find zero or one Counterparty that matches the filter. - * @param {CounterpartyFindUniqueArgs} args - Arguments to find a Counterparty - * @example - * // Get one Counterparty - * const counterparty = await prisma.counterparty.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__CounterpartyClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Counterparty that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {CounterpartyFindUniqueOrThrowArgs} args - Arguments to find a Counterparty - * @example - * // Get one Counterparty - * const counterparty = await prisma.counterparty.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__CounterpartyClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Counterparty 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 {CounterpartyFindFirstArgs} args - Arguments to find a Counterparty - * @example - * // Get one Counterparty - * const counterparty = await prisma.counterparty.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__CounterpartyClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Counterparty 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 {CounterpartyFindFirstOrThrowArgs} args - Arguments to find a Counterparty - * @example - * // Get one Counterparty - * const counterparty = await prisma.counterparty.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__CounterpartyClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Counterparties 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 {CounterpartyFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Counterparties - * const counterparties = await prisma.counterparty.findMany() - * - * // Get first 10 Counterparties - * const counterparties = await prisma.counterparty.findMany({ take: 10 }) - * - * // Only select the `id` - * const counterpartyWithIdOnly = await prisma.counterparty.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Counterparty. - * @param {CounterpartyCreateArgs} args - Arguments to create a Counterparty. - * @example - * // Create one Counterparty - * const Counterparty = await prisma.counterparty.create({ - * data: { - * // ... data to create a Counterparty - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__CounterpartyClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Counterparties. - * @param {CounterpartyCreateManyArgs} args - Arguments to create many Counterparties. - * @example - * // Create many Counterparties - * const counterparty = await prisma.counterparty.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Counterparties and returns the data saved in the database. - * @param {CounterpartyCreateManyAndReturnArgs} args - Arguments to create many Counterparties. - * @example - * // Create many Counterparties - * const counterparty = await prisma.counterparty.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Counterparties and only return the `id` - * const counterpartyWithIdOnly = await prisma.counterparty.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a Counterparty. - * @param {CounterpartyDeleteArgs} args - Arguments to delete one Counterparty. - * @example - * // Delete one Counterparty - * const Counterparty = await prisma.counterparty.delete({ - * where: { - * // ... filter to delete one Counterparty - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__CounterpartyClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Counterparty. - * @param {CounterpartyUpdateArgs} args - Arguments to update one Counterparty. - * @example - * // Update one Counterparty - * const counterparty = await prisma.counterparty.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__CounterpartyClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Counterparties. - * @param {CounterpartyDeleteManyArgs} args - Arguments to filter Counterparties to delete. - * @example - * // Delete a few Counterparties - * const { count } = await prisma.counterparty.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Counterparties. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CounterpartyUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Counterparties - * const counterparty = await prisma.counterparty.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Counterparties and returns the data updated in the database. - * @param {CounterpartyUpdateManyAndReturnArgs} args - Arguments to update many Counterparties. - * @example - * // Update many Counterparties - * const counterparty = await prisma.counterparty.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Counterparties and only return the `id` - * const counterpartyWithIdOnly = await prisma.counterparty.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one Counterparty. - * @param {CounterpartyUpsertArgs} args - Arguments to update or create a Counterparty. - * @example - * // Update or create a Counterparty - * const counterparty = await prisma.counterparty.upsert({ - * create: { - * // ... data to create a Counterparty - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Counterparty we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__CounterpartyClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Counterparties. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CounterpartyCountArgs} args - Arguments to filter Counterparties to count. - * @example - * // Count the number of Counterparties - * const count = await prisma.counterparty.count({ - * where: { - * // ... the filter for the Counterparties we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Counterparty. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CounterpartyAggregateArgs} 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: Subset): Prisma.PrismaPromise> - - /** - * Group by Counterparty. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CounterpartyGroupByArgs} 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 CounterpartyGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: CounterpartyGroupByArgs['orderBy'] } - : { orderBy?: CounterpartyGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetCounterpartyGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Counterparty model - */ - readonly fields: CounterpartyFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for Counterparty. - * 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__CounterpartyClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - counterparty = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - organization = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $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): $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): $Utils.JsPromise - } - - - - - /** - * Fields of the Counterparty model - */ - interface CounterpartyFieldRefs { - readonly id: FieldRef<"Counterparty", 'String'> - readonly createdAt: FieldRef<"Counterparty", 'DateTime'> - readonly organizationId: FieldRef<"Counterparty", 'String'> - readonly counterpartyId: FieldRef<"Counterparty", 'String'> - } - - - // Custom InputTypes - /** - * Counterparty findUnique - */ - export type CounterpartyFindUniqueArgs = { - /** - * Select specific fields to fetch from the Counterparty - */ - select?: CounterpartySelect | null - /** - * Omit specific fields from the Counterparty - */ - omit?: CounterpartyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyInclude | null - /** - * Filter, which Counterparty to fetch. - */ - where: CounterpartyWhereUniqueInput - } - - /** - * Counterparty findUniqueOrThrow - */ - export type CounterpartyFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Counterparty - */ - select?: CounterpartySelect | null - /** - * Omit specific fields from the Counterparty - */ - omit?: CounterpartyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyInclude | null - /** - * Filter, which Counterparty to fetch. - */ - where: CounterpartyWhereUniqueInput - } - - /** - * Counterparty findFirst - */ - export type CounterpartyFindFirstArgs = { - /** - * Select specific fields to fetch from the Counterparty - */ - select?: CounterpartySelect | null - /** - * Omit specific fields from the Counterparty - */ - omit?: CounterpartyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyInclude | null - /** - * Filter, which Counterparty to fetch. - */ - where?: CounterpartyWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Counterparties to fetch. - */ - orderBy?: CounterpartyOrderByWithRelationInput | CounterpartyOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Counterparties. - */ - cursor?: CounterpartyWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Counterparties 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` Counterparties. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Counterparties. - */ - distinct?: CounterpartyScalarFieldEnum | CounterpartyScalarFieldEnum[] - } - - /** - * Counterparty findFirstOrThrow - */ - export type CounterpartyFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Counterparty - */ - select?: CounterpartySelect | null - /** - * Omit specific fields from the Counterparty - */ - omit?: CounterpartyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyInclude | null - /** - * Filter, which Counterparty to fetch. - */ - where?: CounterpartyWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Counterparties to fetch. - */ - orderBy?: CounterpartyOrderByWithRelationInput | CounterpartyOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Counterparties. - */ - cursor?: CounterpartyWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Counterparties 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` Counterparties. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Counterparties. - */ - distinct?: CounterpartyScalarFieldEnum | CounterpartyScalarFieldEnum[] - } - - /** - * Counterparty findMany - */ - export type CounterpartyFindManyArgs = { - /** - * Select specific fields to fetch from the Counterparty - */ - select?: CounterpartySelect | null - /** - * Omit specific fields from the Counterparty - */ - omit?: CounterpartyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyInclude | null - /** - * Filter, which Counterparties to fetch. - */ - where?: CounterpartyWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Counterparties to fetch. - */ - orderBy?: CounterpartyOrderByWithRelationInput | CounterpartyOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Counterparties. - */ - cursor?: CounterpartyWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Counterparties 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` Counterparties. - */ - skip?: number - distinct?: CounterpartyScalarFieldEnum | CounterpartyScalarFieldEnum[] - } - - /** - * Counterparty create - */ - export type CounterpartyCreateArgs = { - /** - * Select specific fields to fetch from the Counterparty - */ - select?: CounterpartySelect | null - /** - * Omit specific fields from the Counterparty - */ - omit?: CounterpartyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyInclude | null - /** - * The data needed to create a Counterparty. - */ - data: XOR - } - - /** - * Counterparty createMany - */ - export type CounterpartyCreateManyArgs = { - /** - * The data used to create many Counterparties. - */ - data: CounterpartyCreateManyInput | CounterpartyCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * Counterparty createManyAndReturn - */ - export type CounterpartyCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Counterparty - */ - select?: CounterpartySelectCreateManyAndReturn | null - /** - * Omit specific fields from the Counterparty - */ - omit?: CounterpartyOmit | null - /** - * The data used to create many Counterparties. - */ - data: CounterpartyCreateManyInput | CounterpartyCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyIncludeCreateManyAndReturn | null - } - - /** - * Counterparty update - */ - export type CounterpartyUpdateArgs = { - /** - * Select specific fields to fetch from the Counterparty - */ - select?: CounterpartySelect | null - /** - * Omit specific fields from the Counterparty - */ - omit?: CounterpartyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyInclude | null - /** - * The data needed to update a Counterparty. - */ - data: XOR - /** - * Choose, which Counterparty to update. - */ - where: CounterpartyWhereUniqueInput - } - - /** - * Counterparty updateMany - */ - export type CounterpartyUpdateManyArgs = { - /** - * The data used to update Counterparties. - */ - data: XOR - /** - * Filter which Counterparties to update - */ - where?: CounterpartyWhereInput - /** - * Limit how many Counterparties to update. - */ - limit?: number - } - - /** - * Counterparty updateManyAndReturn - */ - export type CounterpartyUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Counterparty - */ - select?: CounterpartySelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Counterparty - */ - omit?: CounterpartyOmit | null - /** - * The data used to update Counterparties. - */ - data: XOR - /** - * Filter which Counterparties to update - */ - where?: CounterpartyWhereInput - /** - * Limit how many Counterparties to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyIncludeUpdateManyAndReturn | null - } - - /** - * Counterparty upsert - */ - export type CounterpartyUpsertArgs = { - /** - * Select specific fields to fetch from the Counterparty - */ - select?: CounterpartySelect | null - /** - * Omit specific fields from the Counterparty - */ - omit?: CounterpartyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyInclude | null - /** - * The filter to search for the Counterparty to update in case it exists. - */ - where: CounterpartyWhereUniqueInput - /** - * In case the Counterparty found by the `where` argument doesn't exist, create a new Counterparty with this data. - */ - create: XOR - /** - * In case the Counterparty was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * Counterparty delete - */ - export type CounterpartyDeleteArgs = { - /** - * Select specific fields to fetch from the Counterparty - */ - select?: CounterpartySelect | null - /** - * Omit specific fields from the Counterparty - */ - omit?: CounterpartyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyInclude | null - /** - * Filter which Counterparty to delete. - */ - where: CounterpartyWhereUniqueInput - } - - /** - * Counterparty deleteMany - */ - export type CounterpartyDeleteManyArgs = { - /** - * Filter which Counterparties to delete - */ - where?: CounterpartyWhereInput - /** - * Limit how many Counterparties to delete. - */ - limit?: number - } - - /** - * Counterparty without action - */ - export type CounterpartyDefaultArgs = { - /** - * Select specific fields to fetch from the Counterparty - */ - select?: CounterpartySelect | null - /** - * Omit specific fields from the Counterparty - */ - omit?: CounterpartyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CounterpartyInclude | null - } - - - /** - * Model Message - */ - - export type AggregateMessage = { - _count: MessageCountAggregateOutputType | null - _avg: MessageAvgAggregateOutputType | null - _sum: MessageSumAggregateOutputType | null - _min: MessageMinAggregateOutputType | null - _max: MessageMaxAggregateOutputType | null - } - - export type MessageAvgAggregateOutputType = { - voiceDuration: number | null - fileSize: number | null - } - - export type MessageSumAggregateOutputType = { - voiceDuration: number | null - fileSize: number | null - } - - export type MessageMinAggregateOutputType = { - id: string | null - content: string | null - type: $Enums.MessageType | null - voiceUrl: string | null - voiceDuration: number | null - fileUrl: string | null - fileName: string | null - fileSize: number | null - fileType: string | null - isRead: boolean | null - createdAt: Date | null - updatedAt: Date | null - senderId: string | null - senderOrganizationId: string | null - receiverOrganizationId: string | null - } - - export type MessageMaxAggregateOutputType = { - id: string | null - content: string | null - type: $Enums.MessageType | null - voiceUrl: string | null - voiceDuration: number | null - fileUrl: string | null - fileName: string | null - fileSize: number | null - fileType: string | null - isRead: boolean | null - createdAt: Date | null - updatedAt: Date | null - senderId: string | null - senderOrganizationId: string | null - receiverOrganizationId: string | null - } - - export type MessageCountAggregateOutputType = { - id: number - content: number - type: number - voiceUrl: number - voiceDuration: number - fileUrl: number - fileName: number - fileSize: number - fileType: number - isRead: number - createdAt: number - updatedAt: number - senderId: number - senderOrganizationId: number - receiverOrganizationId: number - _all: number - } - - - export type MessageAvgAggregateInputType = { - voiceDuration?: true - fileSize?: true - } - - export type MessageSumAggregateInputType = { - voiceDuration?: true - fileSize?: true - } - - export type MessageMinAggregateInputType = { - id?: true - content?: true - type?: true - voiceUrl?: true - voiceDuration?: true - fileUrl?: true - fileName?: true - fileSize?: true - fileType?: true - isRead?: true - createdAt?: true - updatedAt?: true - senderId?: true - senderOrganizationId?: true - receiverOrganizationId?: true - } - - export type MessageMaxAggregateInputType = { - id?: true - content?: true - type?: true - voiceUrl?: true - voiceDuration?: true - fileUrl?: true - fileName?: true - fileSize?: true - fileType?: true - isRead?: true - createdAt?: true - updatedAt?: true - senderId?: true - senderOrganizationId?: true - receiverOrganizationId?: true - } - - export type MessageCountAggregateInputType = { - id?: true - content?: true - type?: true - voiceUrl?: true - voiceDuration?: true - fileUrl?: true - fileName?: true - fileSize?: true - fileType?: true - isRead?: true - createdAt?: true - updatedAt?: true - senderId?: true - senderOrganizationId?: true - receiverOrganizationId?: true - _all?: true - } - - export type MessageAggregateArgs = { - /** - * Filter which Message to aggregate. - */ - where?: MessageWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Messages to fetch. - */ - orderBy?: MessageOrderByWithRelationInput | MessageOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: MessageWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Messages 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` Messages. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Messages - **/ - _count?: true | MessageCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: MessageAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: MessageSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: MessageMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: MessageMaxAggregateInputType - } - - export type GetMessageAggregateType = { - [P in keyof T & keyof AggregateMessage]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type MessageGroupByArgs = { - where?: MessageWhereInput - orderBy?: MessageOrderByWithAggregationInput | MessageOrderByWithAggregationInput[] - by: MessageScalarFieldEnum[] | MessageScalarFieldEnum - having?: MessageScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: MessageCountAggregateInputType | true - _avg?: MessageAvgAggregateInputType - _sum?: MessageSumAggregateInputType - _min?: MessageMinAggregateInputType - _max?: MessageMaxAggregateInputType - } - - export type MessageGroupByOutputType = { - id: string - content: string | null - type: $Enums.MessageType - voiceUrl: string | null - voiceDuration: number | null - fileUrl: string | null - fileName: string | null - fileSize: number | null - fileType: string | null - isRead: boolean - createdAt: Date - updatedAt: Date - senderId: string - senderOrganizationId: string - receiverOrganizationId: string - _count: MessageCountAggregateOutputType | null - _avg: MessageAvgAggregateOutputType | null - _sum: MessageSumAggregateOutputType | null - _min: MessageMinAggregateOutputType | null - _max: MessageMaxAggregateOutputType | null - } - - type GetMessageGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof MessageGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type MessageSelect = $Extensions.GetSelect<{ - id?: boolean - content?: boolean - type?: boolean - voiceUrl?: boolean - voiceDuration?: boolean - fileUrl?: boolean - fileName?: boolean - fileSize?: boolean - fileType?: boolean - isRead?: boolean - createdAt?: boolean - updatedAt?: boolean - senderId?: boolean - senderOrganizationId?: boolean - receiverOrganizationId?: boolean - receiverOrganization?: boolean | OrganizationDefaultArgs - sender?: boolean | UserDefaultArgs - senderOrganization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["message"]> - - export type MessageSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - content?: boolean - type?: boolean - voiceUrl?: boolean - voiceDuration?: boolean - fileUrl?: boolean - fileName?: boolean - fileSize?: boolean - fileType?: boolean - isRead?: boolean - createdAt?: boolean - updatedAt?: boolean - senderId?: boolean - senderOrganizationId?: boolean - receiverOrganizationId?: boolean - receiverOrganization?: boolean | OrganizationDefaultArgs - sender?: boolean | UserDefaultArgs - senderOrganization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["message"]> - - export type MessageSelectUpdateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - content?: boolean - type?: boolean - voiceUrl?: boolean - voiceDuration?: boolean - fileUrl?: boolean - fileName?: boolean - fileSize?: boolean - fileType?: boolean - isRead?: boolean - createdAt?: boolean - updatedAt?: boolean - senderId?: boolean - senderOrganizationId?: boolean - receiverOrganizationId?: boolean - receiverOrganization?: boolean | OrganizationDefaultArgs - sender?: boolean | UserDefaultArgs - senderOrganization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["message"]> - - export type MessageSelectScalar = { - id?: boolean - content?: boolean - type?: boolean - voiceUrl?: boolean - voiceDuration?: boolean - fileUrl?: boolean - fileName?: boolean - fileSize?: boolean - fileType?: boolean - isRead?: boolean - createdAt?: boolean - updatedAt?: boolean - senderId?: boolean - senderOrganizationId?: boolean - receiverOrganizationId?: boolean - } - - export type MessageOmit = $Extensions.GetOmit<"id" | "content" | "type" | "voiceUrl" | "voiceDuration" | "fileUrl" | "fileName" | "fileSize" | "fileType" | "isRead" | "createdAt" | "updatedAt" | "senderId" | "senderOrganizationId" | "receiverOrganizationId", ExtArgs["result"]["message"]> - export type MessageInclude = { - receiverOrganization?: boolean | OrganizationDefaultArgs - sender?: boolean | UserDefaultArgs - senderOrganization?: boolean | OrganizationDefaultArgs - } - export type MessageIncludeCreateManyAndReturn = { - receiverOrganization?: boolean | OrganizationDefaultArgs - sender?: boolean | UserDefaultArgs - senderOrganization?: boolean | OrganizationDefaultArgs - } - export type MessageIncludeUpdateManyAndReturn = { - receiverOrganization?: boolean | OrganizationDefaultArgs - sender?: boolean | UserDefaultArgs - senderOrganization?: boolean | OrganizationDefaultArgs - } - - export type $MessagePayload = { - name: "Message" - objects: { - receiverOrganization: Prisma.$OrganizationPayload - sender: Prisma.$UserPayload - senderOrganization: Prisma.$OrganizationPayload - } - scalars: $Extensions.GetPayloadResult<{ - id: string - content: string | null - type: $Enums.MessageType - voiceUrl: string | null - voiceDuration: number | null - fileUrl: string | null - fileName: string | null - fileSize: number | null - fileType: string | null - isRead: boolean - createdAt: Date - updatedAt: Date - senderId: string - senderOrganizationId: string - receiverOrganizationId: string - }, ExtArgs["result"]["message"]> - composites: {} - } - - type MessageGetPayload = $Result.GetResult - - type MessageCountArgs = - Omit & { - select?: MessageCountAggregateInputType | true - } - - export interface MessageDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Message'], meta: { name: 'Message' } } - /** - * Find zero or one Message that matches the filter. - * @param {MessageFindUniqueArgs} args - Arguments to find a Message - * @example - * // Get one Message - * const message = await prisma.message.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__MessageClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Message that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {MessageFindUniqueOrThrowArgs} args - Arguments to find a Message - * @example - * // Get one Message - * const message = await prisma.message.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__MessageClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Message 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 {MessageFindFirstArgs} args - Arguments to find a Message - * @example - * // Get one Message - * const message = await prisma.message.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__MessageClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Message 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 {MessageFindFirstOrThrowArgs} args - Arguments to find a Message - * @example - * // Get one Message - * const message = await prisma.message.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__MessageClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Messages 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 {MessageFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Messages - * const messages = await prisma.message.findMany() - * - * // Get first 10 Messages - * const messages = await prisma.message.findMany({ take: 10 }) - * - * // Only select the `id` - * const messageWithIdOnly = await prisma.message.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Message. - * @param {MessageCreateArgs} args - Arguments to create a Message. - * @example - * // Create one Message - * const Message = await prisma.message.create({ - * data: { - * // ... data to create a Message - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__MessageClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Messages. - * @param {MessageCreateManyArgs} args - Arguments to create many Messages. - * @example - * // Create many Messages - * const message = await prisma.message.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Messages and returns the data saved in the database. - * @param {MessageCreateManyAndReturnArgs} args - Arguments to create many Messages. - * @example - * // Create many Messages - * const message = await prisma.message.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Messages and only return the `id` - * const messageWithIdOnly = await prisma.message.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a Message. - * @param {MessageDeleteArgs} args - Arguments to delete one Message. - * @example - * // Delete one Message - * const Message = await prisma.message.delete({ - * where: { - * // ... filter to delete one Message - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__MessageClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Message. - * @param {MessageUpdateArgs} args - Arguments to update one Message. - * @example - * // Update one Message - * const message = await prisma.message.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__MessageClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Messages. - * @param {MessageDeleteManyArgs} args - Arguments to filter Messages to delete. - * @example - * // Delete a few Messages - * const { count } = await prisma.message.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Messages. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {MessageUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Messages - * const message = await prisma.message.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Messages and returns the data updated in the database. - * @param {MessageUpdateManyAndReturnArgs} args - Arguments to update many Messages. - * @example - * // Update many Messages - * const message = await prisma.message.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Messages and only return the `id` - * const messageWithIdOnly = await prisma.message.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one Message. - * @param {MessageUpsertArgs} args - Arguments to update or create a Message. - * @example - * // Update or create a Message - * const message = await prisma.message.upsert({ - * create: { - * // ... data to create a Message - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Message we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__MessageClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Messages. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {MessageCountArgs} args - Arguments to filter Messages to count. - * @example - * // Count the number of Messages - * const count = await prisma.message.count({ - * where: { - * // ... the filter for the Messages we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Message. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {MessageAggregateArgs} 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: Subset): Prisma.PrismaPromise> - - /** - * Group by Message. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {MessageGroupByArgs} 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 MessageGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: MessageGroupByArgs['orderBy'] } - : { orderBy?: MessageGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetMessageGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Message model - */ - readonly fields: MessageFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for Message. - * 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__MessageClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - receiverOrganization = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - sender = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - senderOrganization = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $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): $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): $Utils.JsPromise - } - - - - - /** - * Fields of the Message model - */ - interface MessageFieldRefs { - readonly id: FieldRef<"Message", 'String'> - readonly content: FieldRef<"Message", 'String'> - readonly type: FieldRef<"Message", 'MessageType'> - readonly voiceUrl: FieldRef<"Message", 'String'> - readonly voiceDuration: FieldRef<"Message", 'Int'> - readonly fileUrl: FieldRef<"Message", 'String'> - readonly fileName: FieldRef<"Message", 'String'> - readonly fileSize: FieldRef<"Message", 'Int'> - readonly fileType: FieldRef<"Message", 'String'> - readonly isRead: FieldRef<"Message", 'Boolean'> - readonly createdAt: FieldRef<"Message", 'DateTime'> - readonly updatedAt: FieldRef<"Message", 'DateTime'> - readonly senderId: FieldRef<"Message", 'String'> - readonly senderOrganizationId: FieldRef<"Message", 'String'> - readonly receiverOrganizationId: FieldRef<"Message", 'String'> - } - - - // Custom InputTypes - /** - * Message findUnique - */ - export type MessageFindUniqueArgs = { - /** - * Select specific fields to fetch from the Message - */ - select?: MessageSelect | null - /** - * Omit specific fields from the Message - */ - omit?: MessageOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MessageInclude | null - /** - * Filter, which Message to fetch. - */ - where: MessageWhereUniqueInput - } - - /** - * Message findUniqueOrThrow - */ - export type MessageFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Message - */ - select?: MessageSelect | null - /** - * Omit specific fields from the Message - */ - omit?: MessageOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MessageInclude | null - /** - * Filter, which Message to fetch. - */ - where: MessageWhereUniqueInput - } - - /** - * Message findFirst - */ - export type MessageFindFirstArgs = { - /** - * Select specific fields to fetch from the Message - */ - select?: MessageSelect | null - /** - * Omit specific fields from the Message - */ - omit?: MessageOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MessageInclude | null - /** - * Filter, which Message to fetch. - */ - where?: MessageWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Messages to fetch. - */ - orderBy?: MessageOrderByWithRelationInput | MessageOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Messages. - */ - cursor?: MessageWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Messages 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` Messages. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Messages. - */ - distinct?: MessageScalarFieldEnum | MessageScalarFieldEnum[] - } - - /** - * Message findFirstOrThrow - */ - export type MessageFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Message - */ - select?: MessageSelect | null - /** - * Omit specific fields from the Message - */ - omit?: MessageOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MessageInclude | null - /** - * Filter, which Message to fetch. - */ - where?: MessageWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Messages to fetch. - */ - orderBy?: MessageOrderByWithRelationInput | MessageOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Messages. - */ - cursor?: MessageWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Messages 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` Messages. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Messages. - */ - distinct?: MessageScalarFieldEnum | MessageScalarFieldEnum[] - } - - /** - * Message findMany - */ - export type MessageFindManyArgs = { - /** - * Select specific fields to fetch from the Message - */ - select?: MessageSelect | null - /** - * Omit specific fields from the Message - */ - omit?: MessageOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MessageInclude | null - /** - * Filter, which Messages to fetch. - */ - where?: MessageWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Messages to fetch. - */ - orderBy?: MessageOrderByWithRelationInput | MessageOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Messages. - */ - cursor?: MessageWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Messages 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` Messages. - */ - skip?: number - distinct?: MessageScalarFieldEnum | MessageScalarFieldEnum[] - } - - /** - * Message create - */ - export type MessageCreateArgs = { - /** - * Select specific fields to fetch from the Message - */ - select?: MessageSelect | null - /** - * Omit specific fields from the Message - */ - omit?: MessageOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MessageInclude | null - /** - * The data needed to create a Message. - */ - data: XOR - } - - /** - * Message createMany - */ - export type MessageCreateManyArgs = { - /** - * The data used to create many Messages. - */ - data: MessageCreateManyInput | MessageCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * Message createManyAndReturn - */ - export type MessageCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Message - */ - select?: MessageSelectCreateManyAndReturn | null - /** - * Omit specific fields from the Message - */ - omit?: MessageOmit | null - /** - * The data used to create many Messages. - */ - data: MessageCreateManyInput | MessageCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: MessageIncludeCreateManyAndReturn | null - } - - /** - * Message update - */ - export type MessageUpdateArgs = { - /** - * Select specific fields to fetch from the Message - */ - select?: MessageSelect | null - /** - * Omit specific fields from the Message - */ - omit?: MessageOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MessageInclude | null - /** - * The data needed to update a Message. - */ - data: XOR - /** - * Choose, which Message to update. - */ - where: MessageWhereUniqueInput - } - - /** - * Message updateMany - */ - export type MessageUpdateManyArgs = { - /** - * The data used to update Messages. - */ - data: XOR - /** - * Filter which Messages to update - */ - where?: MessageWhereInput - /** - * Limit how many Messages to update. - */ - limit?: number - } - - /** - * Message updateManyAndReturn - */ - export type MessageUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Message - */ - select?: MessageSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Message - */ - omit?: MessageOmit | null - /** - * The data used to update Messages. - */ - data: XOR - /** - * Filter which Messages to update - */ - where?: MessageWhereInput - /** - * Limit how many Messages to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: MessageIncludeUpdateManyAndReturn | null - } - - /** - * Message upsert - */ - export type MessageUpsertArgs = { - /** - * Select specific fields to fetch from the Message - */ - select?: MessageSelect | null - /** - * Omit specific fields from the Message - */ - omit?: MessageOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MessageInclude | null - /** - * The filter to search for the Message to update in case it exists. - */ - where: MessageWhereUniqueInput - /** - * In case the Message found by the `where` argument doesn't exist, create a new Message with this data. - */ - create: XOR - /** - * In case the Message was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * Message delete - */ - export type MessageDeleteArgs = { - /** - * Select specific fields to fetch from the Message - */ - select?: MessageSelect | null - /** - * Omit specific fields from the Message - */ - omit?: MessageOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MessageInclude | null - /** - * Filter which Message to delete. - */ - where: MessageWhereUniqueInput - } - - /** - * Message deleteMany - */ - export type MessageDeleteManyArgs = { - /** - * Filter which Messages to delete - */ - where?: MessageWhereInput - /** - * Limit how many Messages to delete. - */ - limit?: number - } - - /** - * Message without action - */ - export type MessageDefaultArgs = { - /** - * Select specific fields to fetch from the Message - */ - select?: MessageSelect | null - /** - * Omit specific fields from the Message - */ - omit?: MessageOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MessageInclude | null - } - - - /** - * Model Service - */ - - export type AggregateService = { - _count: ServiceCountAggregateOutputType | null - _avg: ServiceAvgAggregateOutputType | null - _sum: ServiceSumAggregateOutputType | null - _min: ServiceMinAggregateOutputType | null - _max: ServiceMaxAggregateOutputType | null - } - - export type ServiceAvgAggregateOutputType = { - price: Decimal | null - } - - export type ServiceSumAggregateOutputType = { - price: Decimal | null - } - - export type ServiceMinAggregateOutputType = { - id: string | null - name: string | null - description: string | null - price: Decimal | null - imageUrl: string | null - createdAt: Date | null - updatedAt: Date | null - organizationId: string | null - } - - export type ServiceMaxAggregateOutputType = { - id: string | null - name: string | null - description: string | null - price: Decimal | null - imageUrl: string | null - createdAt: Date | null - updatedAt: Date | null - organizationId: string | null - } - - export type ServiceCountAggregateOutputType = { - id: number - name: number - description: number - price: number - imageUrl: number - createdAt: number - updatedAt: number - organizationId: number - _all: number - } - - - export type ServiceAvgAggregateInputType = { - price?: true - } - - export type ServiceSumAggregateInputType = { - price?: true - } - - export type ServiceMinAggregateInputType = { - id?: true - name?: true - description?: true - price?: true - imageUrl?: true - createdAt?: true - updatedAt?: true - organizationId?: true - } - - export type ServiceMaxAggregateInputType = { - id?: true - name?: true - description?: true - price?: true - imageUrl?: true - createdAt?: true - updatedAt?: true - organizationId?: true - } - - export type ServiceCountAggregateInputType = { - id?: true - name?: true - description?: true - price?: true - imageUrl?: true - createdAt?: true - updatedAt?: true - organizationId?: true - _all?: true - } - - export type ServiceAggregateArgs = { - /** - * Filter which Service to aggregate. - */ - where?: ServiceWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Services to fetch. - */ - orderBy?: ServiceOrderByWithRelationInput | ServiceOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: ServiceWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Services 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` Services. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Services - **/ - _count?: true | ServiceCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: ServiceAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: ServiceSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: ServiceMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: ServiceMaxAggregateInputType - } - - export type GetServiceAggregateType = { - [P in keyof T & keyof AggregateService]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type ServiceGroupByArgs = { - where?: ServiceWhereInput - orderBy?: ServiceOrderByWithAggregationInput | ServiceOrderByWithAggregationInput[] - by: ServiceScalarFieldEnum[] | ServiceScalarFieldEnum - having?: ServiceScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: ServiceCountAggregateInputType | true - _avg?: ServiceAvgAggregateInputType - _sum?: ServiceSumAggregateInputType - _min?: ServiceMinAggregateInputType - _max?: ServiceMaxAggregateInputType - } - - export type ServiceGroupByOutputType = { - id: string - name: string - description: string | null - price: Decimal - imageUrl: string | null - createdAt: Date - updatedAt: Date - organizationId: string - _count: ServiceCountAggregateOutputType | null - _avg: ServiceAvgAggregateOutputType | null - _sum: ServiceSumAggregateOutputType | null - _min: ServiceMinAggregateOutputType | null - _max: ServiceMaxAggregateOutputType | null - } - - type GetServiceGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof ServiceGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type ServiceSelect = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - description?: boolean - price?: boolean - imageUrl?: boolean - createdAt?: boolean - updatedAt?: boolean - organizationId?: boolean - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["service"]> - - export type ServiceSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - description?: boolean - price?: boolean - imageUrl?: boolean - createdAt?: boolean - updatedAt?: boolean - organizationId?: boolean - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["service"]> - - export type ServiceSelectUpdateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - description?: boolean - price?: boolean - imageUrl?: boolean - createdAt?: boolean - updatedAt?: boolean - organizationId?: boolean - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["service"]> - - export type ServiceSelectScalar = { - id?: boolean - name?: boolean - description?: boolean - price?: boolean - imageUrl?: boolean - createdAt?: boolean - updatedAt?: boolean - organizationId?: boolean - } - - export type ServiceOmit = $Extensions.GetOmit<"id" | "name" | "description" | "price" | "imageUrl" | "createdAt" | "updatedAt" | "organizationId", ExtArgs["result"]["service"]> - export type ServiceInclude = { - organization?: boolean | OrganizationDefaultArgs - } - export type ServiceIncludeCreateManyAndReturn = { - organization?: boolean | OrganizationDefaultArgs - } - export type ServiceIncludeUpdateManyAndReturn = { - organization?: boolean | OrganizationDefaultArgs - } - - export type $ServicePayload = { - name: "Service" - objects: { - organization: Prisma.$OrganizationPayload - } - scalars: $Extensions.GetPayloadResult<{ - id: string - name: string - description: string | null - price: Prisma.Decimal - imageUrl: string | null - createdAt: Date - updatedAt: Date - organizationId: string - }, ExtArgs["result"]["service"]> - composites: {} - } - - type ServiceGetPayload = $Result.GetResult - - type ServiceCountArgs = - Omit & { - select?: ServiceCountAggregateInputType | true - } - - export interface ServiceDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Service'], meta: { name: 'Service' } } - /** - * Find zero or one Service that matches the filter. - * @param {ServiceFindUniqueArgs} args - Arguments to find a Service - * @example - * // Get one Service - * const service = await prisma.service.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__ServiceClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Service that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {ServiceFindUniqueOrThrowArgs} args - Arguments to find a Service - * @example - * // Get one Service - * const service = await prisma.service.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__ServiceClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Service 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 {ServiceFindFirstArgs} args - Arguments to find a Service - * @example - * // Get one Service - * const service = await prisma.service.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__ServiceClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Service 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 {ServiceFindFirstOrThrowArgs} args - Arguments to find a Service - * @example - * // Get one Service - * const service = await prisma.service.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__ServiceClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Services 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 {ServiceFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Services - * const services = await prisma.service.findMany() - * - * // Get first 10 Services - * const services = await prisma.service.findMany({ take: 10 }) - * - * // Only select the `id` - * const serviceWithIdOnly = await prisma.service.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Service. - * @param {ServiceCreateArgs} args - Arguments to create a Service. - * @example - * // Create one Service - * const Service = await prisma.service.create({ - * data: { - * // ... data to create a Service - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__ServiceClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Services. - * @param {ServiceCreateManyArgs} args - Arguments to create many Services. - * @example - * // Create many Services - * const service = await prisma.service.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Services and returns the data saved in the database. - * @param {ServiceCreateManyAndReturnArgs} args - Arguments to create many Services. - * @example - * // Create many Services - * const service = await prisma.service.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Services and only return the `id` - * const serviceWithIdOnly = await prisma.service.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a Service. - * @param {ServiceDeleteArgs} args - Arguments to delete one Service. - * @example - * // Delete one Service - * const Service = await prisma.service.delete({ - * where: { - * // ... filter to delete one Service - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__ServiceClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Service. - * @param {ServiceUpdateArgs} args - Arguments to update one Service. - * @example - * // Update one Service - * const service = await prisma.service.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__ServiceClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Services. - * @param {ServiceDeleteManyArgs} args - Arguments to filter Services to delete. - * @example - * // Delete a few Services - * const { count } = await prisma.service.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Services. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ServiceUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Services - * const service = await prisma.service.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Services and returns the data updated in the database. - * @param {ServiceUpdateManyAndReturnArgs} args - Arguments to update many Services. - * @example - * // Update many Services - * const service = await prisma.service.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Services and only return the `id` - * const serviceWithIdOnly = await prisma.service.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one Service. - * @param {ServiceUpsertArgs} args - Arguments to update or create a Service. - * @example - * // Update or create a Service - * const service = await prisma.service.upsert({ - * create: { - * // ... data to create a Service - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Service we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__ServiceClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Services. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ServiceCountArgs} args - Arguments to filter Services to count. - * @example - * // Count the number of Services - * const count = await prisma.service.count({ - * where: { - * // ... the filter for the Services we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Service. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ServiceAggregateArgs} 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: Subset): Prisma.PrismaPromise> - - /** - * Group by Service. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ServiceGroupByArgs} 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 ServiceGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: ServiceGroupByArgs['orderBy'] } - : { orderBy?: ServiceGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetServiceGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Service model - */ - readonly fields: ServiceFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for Service. - * 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__ServiceClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - organization = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $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): $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): $Utils.JsPromise - } - - - - - /** - * Fields of the Service model - */ - interface ServiceFieldRefs { - readonly id: FieldRef<"Service", 'String'> - readonly name: FieldRef<"Service", 'String'> - readonly description: FieldRef<"Service", 'String'> - readonly price: FieldRef<"Service", 'Decimal'> - readonly imageUrl: FieldRef<"Service", 'String'> - readonly createdAt: FieldRef<"Service", 'DateTime'> - readonly updatedAt: FieldRef<"Service", 'DateTime'> - readonly organizationId: FieldRef<"Service", 'String'> - } - - - // Custom InputTypes - /** - * Service findUnique - */ - export type ServiceFindUniqueArgs = { - /** - * Select specific fields to fetch from the Service - */ - select?: ServiceSelect | null - /** - * Omit specific fields from the Service - */ - omit?: ServiceOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ServiceInclude | null - /** - * Filter, which Service to fetch. - */ - where: ServiceWhereUniqueInput - } - - /** - * Service findUniqueOrThrow - */ - export type ServiceFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Service - */ - select?: ServiceSelect | null - /** - * Omit specific fields from the Service - */ - omit?: ServiceOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ServiceInclude | null - /** - * Filter, which Service to fetch. - */ - where: ServiceWhereUniqueInput - } - - /** - * Service findFirst - */ - export type ServiceFindFirstArgs = { - /** - * Select specific fields to fetch from the Service - */ - select?: ServiceSelect | null - /** - * Omit specific fields from the Service - */ - omit?: ServiceOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ServiceInclude | null - /** - * Filter, which Service to fetch. - */ - where?: ServiceWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Services to fetch. - */ - orderBy?: ServiceOrderByWithRelationInput | ServiceOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Services. - */ - cursor?: ServiceWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Services 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` Services. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Services. - */ - distinct?: ServiceScalarFieldEnum | ServiceScalarFieldEnum[] - } - - /** - * Service findFirstOrThrow - */ - export type ServiceFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Service - */ - select?: ServiceSelect | null - /** - * Omit specific fields from the Service - */ - omit?: ServiceOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ServiceInclude | null - /** - * Filter, which Service to fetch. - */ - where?: ServiceWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Services to fetch. - */ - orderBy?: ServiceOrderByWithRelationInput | ServiceOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Services. - */ - cursor?: ServiceWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Services 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` Services. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Services. - */ - distinct?: ServiceScalarFieldEnum | ServiceScalarFieldEnum[] - } - - /** - * Service findMany - */ - export type ServiceFindManyArgs = { - /** - * Select specific fields to fetch from the Service - */ - select?: ServiceSelect | null - /** - * Omit specific fields from the Service - */ - omit?: ServiceOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ServiceInclude | null - /** - * Filter, which Services to fetch. - */ - where?: ServiceWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Services to fetch. - */ - orderBy?: ServiceOrderByWithRelationInput | ServiceOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Services. - */ - cursor?: ServiceWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Services 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` Services. - */ - skip?: number - distinct?: ServiceScalarFieldEnum | ServiceScalarFieldEnum[] - } - - /** - * Service create - */ - export type ServiceCreateArgs = { - /** - * Select specific fields to fetch from the Service - */ - select?: ServiceSelect | null - /** - * Omit specific fields from the Service - */ - omit?: ServiceOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ServiceInclude | null - /** - * The data needed to create a Service. - */ - data: XOR - } - - /** - * Service createMany - */ - export type ServiceCreateManyArgs = { - /** - * The data used to create many Services. - */ - data: ServiceCreateManyInput | ServiceCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * Service createManyAndReturn - */ - export type ServiceCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Service - */ - select?: ServiceSelectCreateManyAndReturn | null - /** - * Omit specific fields from the Service - */ - omit?: ServiceOmit | null - /** - * The data used to create many Services. - */ - data: ServiceCreateManyInput | ServiceCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: ServiceIncludeCreateManyAndReturn | null - } - - /** - * Service update - */ - export type ServiceUpdateArgs = { - /** - * Select specific fields to fetch from the Service - */ - select?: ServiceSelect | null - /** - * Omit specific fields from the Service - */ - omit?: ServiceOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ServiceInclude | null - /** - * The data needed to update a Service. - */ - data: XOR - /** - * Choose, which Service to update. - */ - where: ServiceWhereUniqueInput - } - - /** - * Service updateMany - */ - export type ServiceUpdateManyArgs = { - /** - * The data used to update Services. - */ - data: XOR - /** - * Filter which Services to update - */ - where?: ServiceWhereInput - /** - * Limit how many Services to update. - */ - limit?: number - } - - /** - * Service updateManyAndReturn - */ - export type ServiceUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Service - */ - select?: ServiceSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Service - */ - omit?: ServiceOmit | null - /** - * The data used to update Services. - */ - data: XOR - /** - * Filter which Services to update - */ - where?: ServiceWhereInput - /** - * Limit how many Services to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: ServiceIncludeUpdateManyAndReturn | null - } - - /** - * Service upsert - */ - export type ServiceUpsertArgs = { - /** - * Select specific fields to fetch from the Service - */ - select?: ServiceSelect | null - /** - * Omit specific fields from the Service - */ - omit?: ServiceOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ServiceInclude | null - /** - * The filter to search for the Service to update in case it exists. - */ - where: ServiceWhereUniqueInput - /** - * In case the Service found by the `where` argument doesn't exist, create a new Service with this data. - */ - create: XOR - /** - * In case the Service was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * Service delete - */ - export type ServiceDeleteArgs = { - /** - * Select specific fields to fetch from the Service - */ - select?: ServiceSelect | null - /** - * Omit specific fields from the Service - */ - omit?: ServiceOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ServiceInclude | null - /** - * Filter which Service to delete. - */ - where: ServiceWhereUniqueInput - } - - /** - * Service deleteMany - */ - export type ServiceDeleteManyArgs = { - /** - * Filter which Services to delete - */ - where?: ServiceWhereInput - /** - * Limit how many Services to delete. - */ - limit?: number - } - - /** - * Service without action - */ - export type ServiceDefaultArgs = { - /** - * Select specific fields to fetch from the Service - */ - select?: ServiceSelect | null - /** - * Omit specific fields from the Service - */ - omit?: ServiceOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ServiceInclude | null - } - - - /** - * Model Supply - */ - - export type AggregateSupply = { - _count: SupplyCountAggregateOutputType | null - _avg: SupplyAvgAggregateOutputType | null - _sum: SupplySumAggregateOutputType | null - _min: SupplyMinAggregateOutputType | null - _max: SupplyMaxAggregateOutputType | null - } - - export type SupplyAvgAggregateOutputType = { - price: Decimal | null - quantity: number | null - minStock: number | null - currentStock: number | null - } - - export type SupplySumAggregateOutputType = { - price: Decimal | null - quantity: number | null - minStock: number | null - currentStock: number | null - } - - export type SupplyMinAggregateOutputType = { - id: string | null - name: string | null - description: string | null - price: Decimal | null - quantity: number | null - unit: string | null - category: string | null - status: string | null - date: Date | null - supplier: string | null - minStock: number | null - currentStock: number | null - imageUrl: string | null - createdAt: Date | null - updatedAt: Date | null - organizationId: string | null - } - - export type SupplyMaxAggregateOutputType = { - id: string | null - name: string | null - description: string | null - price: Decimal | null - quantity: number | null - unit: string | null - category: string | null - status: string | null - date: Date | null - supplier: string | null - minStock: number | null - currentStock: number | null - imageUrl: string | null - createdAt: Date | null - updatedAt: Date | null - organizationId: string | null - } - - export type SupplyCountAggregateOutputType = { - id: number - name: number - description: number - price: number - quantity: number - unit: number - category: number - status: number - date: number - supplier: number - minStock: number - currentStock: number - imageUrl: number - createdAt: number - updatedAt: number - organizationId: number - _all: number - } - - - export type SupplyAvgAggregateInputType = { - price?: true - quantity?: true - minStock?: true - currentStock?: true - } - - export type SupplySumAggregateInputType = { - price?: true - quantity?: true - minStock?: true - currentStock?: true - } - - export type SupplyMinAggregateInputType = { - id?: true - name?: true - description?: true - price?: true - quantity?: true - unit?: true - category?: true - status?: true - date?: true - supplier?: true - minStock?: true - currentStock?: true - imageUrl?: true - createdAt?: true - updatedAt?: true - organizationId?: true - } - - export type SupplyMaxAggregateInputType = { - id?: true - name?: true - description?: true - price?: true - quantity?: true - unit?: true - category?: true - status?: true - date?: true - supplier?: true - minStock?: true - currentStock?: true - imageUrl?: true - createdAt?: true - updatedAt?: true - organizationId?: true - } - - export type SupplyCountAggregateInputType = { - id?: true - name?: true - description?: true - price?: true - quantity?: true - unit?: true - category?: true - status?: true - date?: true - supplier?: true - minStock?: true - currentStock?: true - imageUrl?: true - createdAt?: true - updatedAt?: true - organizationId?: true - _all?: true - } - - export type SupplyAggregateArgs = { - /** - * Filter which Supply to aggregate. - */ - where?: SupplyWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Supplies to fetch. - */ - orderBy?: SupplyOrderByWithRelationInput | SupplyOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: SupplyWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Supplies 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` Supplies. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Supplies - **/ - _count?: true | SupplyCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: SupplyAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: SupplySumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: SupplyMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: SupplyMaxAggregateInputType - } - - export type GetSupplyAggregateType = { - [P in keyof T & keyof AggregateSupply]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type SupplyGroupByArgs = { - where?: SupplyWhereInput - orderBy?: SupplyOrderByWithAggregationInput | SupplyOrderByWithAggregationInput[] - by: SupplyScalarFieldEnum[] | SupplyScalarFieldEnum - having?: SupplyScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: SupplyCountAggregateInputType | true - _avg?: SupplyAvgAggregateInputType - _sum?: SupplySumAggregateInputType - _min?: SupplyMinAggregateInputType - _max?: SupplyMaxAggregateInputType - } - - export type SupplyGroupByOutputType = { - id: string - name: string - description: string | null - price: Decimal - quantity: number - unit: string - category: string - status: string - date: Date - supplier: string - minStock: number - currentStock: number - imageUrl: string | null - createdAt: Date - updatedAt: Date - organizationId: string - _count: SupplyCountAggregateOutputType | null - _avg: SupplyAvgAggregateOutputType | null - _sum: SupplySumAggregateOutputType | null - _min: SupplyMinAggregateOutputType | null - _max: SupplyMaxAggregateOutputType | null - } - - type GetSupplyGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof SupplyGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type SupplySelect = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - description?: boolean - price?: boolean - quantity?: boolean - unit?: boolean - category?: boolean - status?: boolean - date?: boolean - supplier?: boolean - minStock?: boolean - currentStock?: boolean - imageUrl?: boolean - createdAt?: boolean - updatedAt?: boolean - organizationId?: boolean - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["supply"]> - - export type SupplySelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - description?: boolean - price?: boolean - quantity?: boolean - unit?: boolean - category?: boolean - status?: boolean - date?: boolean - supplier?: boolean - minStock?: boolean - currentStock?: boolean - imageUrl?: boolean - createdAt?: boolean - updatedAt?: boolean - organizationId?: boolean - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["supply"]> - - export type SupplySelectUpdateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - description?: boolean - price?: boolean - quantity?: boolean - unit?: boolean - category?: boolean - status?: boolean - date?: boolean - supplier?: boolean - minStock?: boolean - currentStock?: boolean - imageUrl?: boolean - createdAt?: boolean - updatedAt?: boolean - organizationId?: boolean - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["supply"]> - - export type SupplySelectScalar = { - id?: boolean - name?: boolean - description?: boolean - price?: boolean - quantity?: boolean - unit?: boolean - category?: boolean - status?: boolean - date?: boolean - supplier?: boolean - minStock?: boolean - currentStock?: boolean - imageUrl?: boolean - createdAt?: boolean - updatedAt?: boolean - organizationId?: boolean - } - - export type SupplyOmit = $Extensions.GetOmit<"id" | "name" | "description" | "price" | "quantity" | "unit" | "category" | "status" | "date" | "supplier" | "minStock" | "currentStock" | "imageUrl" | "createdAt" | "updatedAt" | "organizationId", ExtArgs["result"]["supply"]> - export type SupplyInclude = { - organization?: boolean | OrganizationDefaultArgs - } - export type SupplyIncludeCreateManyAndReturn = { - organization?: boolean | OrganizationDefaultArgs - } - export type SupplyIncludeUpdateManyAndReturn = { - organization?: boolean | OrganizationDefaultArgs - } - - export type $SupplyPayload = { - name: "Supply" - objects: { - organization: Prisma.$OrganizationPayload - } - scalars: $Extensions.GetPayloadResult<{ - id: string - name: string - description: string | null - price: Prisma.Decimal - quantity: number - unit: string - category: string - status: string - date: Date - supplier: string - minStock: number - currentStock: number - imageUrl: string | null - createdAt: Date - updatedAt: Date - organizationId: string - }, ExtArgs["result"]["supply"]> - composites: {} - } - - type SupplyGetPayload = $Result.GetResult - - type SupplyCountArgs = - Omit & { - select?: SupplyCountAggregateInputType | true - } - - export interface SupplyDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Supply'], meta: { name: 'Supply' } } - /** - * Find zero or one Supply that matches the filter. - * @param {SupplyFindUniqueArgs} args - Arguments to find a Supply - * @example - * // Get one Supply - * const supply = await prisma.supply.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__SupplyClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Supply that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {SupplyFindUniqueOrThrowArgs} args - Arguments to find a Supply - * @example - * // Get one Supply - * const supply = await prisma.supply.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__SupplyClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Supply 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 {SupplyFindFirstArgs} args - Arguments to find a Supply - * @example - * // Get one Supply - * const supply = await prisma.supply.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__SupplyClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Supply 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 {SupplyFindFirstOrThrowArgs} args - Arguments to find a Supply - * @example - * // Get one Supply - * const supply = await prisma.supply.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__SupplyClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Supplies 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 {SupplyFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Supplies - * const supplies = await prisma.supply.findMany() - * - * // Get first 10 Supplies - * const supplies = await prisma.supply.findMany({ take: 10 }) - * - * // Only select the `id` - * const supplyWithIdOnly = await prisma.supply.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Supply. - * @param {SupplyCreateArgs} args - Arguments to create a Supply. - * @example - * // Create one Supply - * const Supply = await prisma.supply.create({ - * data: { - * // ... data to create a Supply - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__SupplyClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Supplies. - * @param {SupplyCreateManyArgs} args - Arguments to create many Supplies. - * @example - * // Create many Supplies - * const supply = await prisma.supply.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Supplies and returns the data saved in the database. - * @param {SupplyCreateManyAndReturnArgs} args - Arguments to create many Supplies. - * @example - * // Create many Supplies - * const supply = await prisma.supply.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Supplies and only return the `id` - * const supplyWithIdOnly = await prisma.supply.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a Supply. - * @param {SupplyDeleteArgs} args - Arguments to delete one Supply. - * @example - * // Delete one Supply - * const Supply = await prisma.supply.delete({ - * where: { - * // ... filter to delete one Supply - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__SupplyClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Supply. - * @param {SupplyUpdateArgs} args - Arguments to update one Supply. - * @example - * // Update one Supply - * const supply = await prisma.supply.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__SupplyClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Supplies. - * @param {SupplyDeleteManyArgs} args - Arguments to filter Supplies to delete. - * @example - * // Delete a few Supplies - * const { count } = await prisma.supply.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Supplies. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SupplyUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Supplies - * const supply = await prisma.supply.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Supplies and returns the data updated in the database. - * @param {SupplyUpdateManyAndReturnArgs} args - Arguments to update many Supplies. - * @example - * // Update many Supplies - * const supply = await prisma.supply.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Supplies and only return the `id` - * const supplyWithIdOnly = await prisma.supply.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one Supply. - * @param {SupplyUpsertArgs} args - Arguments to update or create a Supply. - * @example - * // Update or create a Supply - * const supply = await prisma.supply.upsert({ - * create: { - * // ... data to create a Supply - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Supply we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__SupplyClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Supplies. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SupplyCountArgs} args - Arguments to filter Supplies to count. - * @example - * // Count the number of Supplies - * const count = await prisma.supply.count({ - * where: { - * // ... the filter for the Supplies we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Supply. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SupplyAggregateArgs} 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: Subset): Prisma.PrismaPromise> - - /** - * Group by Supply. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SupplyGroupByArgs} 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 SupplyGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: SupplyGroupByArgs['orderBy'] } - : { orderBy?: SupplyGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetSupplyGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Supply model - */ - readonly fields: SupplyFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for Supply. - * 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__SupplyClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - organization = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $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): $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): $Utils.JsPromise - } - - - - - /** - * Fields of the Supply model - */ - interface SupplyFieldRefs { - readonly id: FieldRef<"Supply", 'String'> - readonly name: FieldRef<"Supply", 'String'> - readonly description: FieldRef<"Supply", 'String'> - readonly price: FieldRef<"Supply", 'Decimal'> - readonly quantity: FieldRef<"Supply", 'Int'> - readonly unit: FieldRef<"Supply", 'String'> - readonly category: FieldRef<"Supply", 'String'> - readonly status: FieldRef<"Supply", 'String'> - readonly date: FieldRef<"Supply", 'DateTime'> - readonly supplier: FieldRef<"Supply", 'String'> - readonly minStock: FieldRef<"Supply", 'Int'> - readonly currentStock: FieldRef<"Supply", 'Int'> - readonly imageUrl: FieldRef<"Supply", 'String'> - readonly createdAt: FieldRef<"Supply", 'DateTime'> - readonly updatedAt: FieldRef<"Supply", 'DateTime'> - readonly organizationId: FieldRef<"Supply", 'String'> - } - - - // Custom InputTypes - /** - * Supply findUnique - */ - export type SupplyFindUniqueArgs = { - /** - * Select specific fields to fetch from the Supply - */ - select?: SupplySelect | null - /** - * Omit specific fields from the Supply - */ - omit?: SupplyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyInclude | null - /** - * Filter, which Supply to fetch. - */ - where: SupplyWhereUniqueInput - } - - /** - * Supply findUniqueOrThrow - */ - export type SupplyFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Supply - */ - select?: SupplySelect | null - /** - * Omit specific fields from the Supply - */ - omit?: SupplyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyInclude | null - /** - * Filter, which Supply to fetch. - */ - where: SupplyWhereUniqueInput - } - - /** - * Supply findFirst - */ - export type SupplyFindFirstArgs = { - /** - * Select specific fields to fetch from the Supply - */ - select?: SupplySelect | null - /** - * Omit specific fields from the Supply - */ - omit?: SupplyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyInclude | null - /** - * Filter, which Supply to fetch. - */ - where?: SupplyWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Supplies to fetch. - */ - orderBy?: SupplyOrderByWithRelationInput | SupplyOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Supplies. - */ - cursor?: SupplyWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Supplies 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` Supplies. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Supplies. - */ - distinct?: SupplyScalarFieldEnum | SupplyScalarFieldEnum[] - } - - /** - * Supply findFirstOrThrow - */ - export type SupplyFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Supply - */ - select?: SupplySelect | null - /** - * Omit specific fields from the Supply - */ - omit?: SupplyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyInclude | null - /** - * Filter, which Supply to fetch. - */ - where?: SupplyWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Supplies to fetch. - */ - orderBy?: SupplyOrderByWithRelationInput | SupplyOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Supplies. - */ - cursor?: SupplyWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Supplies 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` Supplies. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Supplies. - */ - distinct?: SupplyScalarFieldEnum | SupplyScalarFieldEnum[] - } - - /** - * Supply findMany - */ - export type SupplyFindManyArgs = { - /** - * Select specific fields to fetch from the Supply - */ - select?: SupplySelect | null - /** - * Omit specific fields from the Supply - */ - omit?: SupplyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyInclude | null - /** - * Filter, which Supplies to fetch. - */ - where?: SupplyWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Supplies to fetch. - */ - orderBy?: SupplyOrderByWithRelationInput | SupplyOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Supplies. - */ - cursor?: SupplyWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Supplies 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` Supplies. - */ - skip?: number - distinct?: SupplyScalarFieldEnum | SupplyScalarFieldEnum[] - } - - /** - * Supply create - */ - export type SupplyCreateArgs = { - /** - * Select specific fields to fetch from the Supply - */ - select?: SupplySelect | null - /** - * Omit specific fields from the Supply - */ - omit?: SupplyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyInclude | null - /** - * The data needed to create a Supply. - */ - data: XOR - } - - /** - * Supply createMany - */ - export type SupplyCreateManyArgs = { - /** - * The data used to create many Supplies. - */ - data: SupplyCreateManyInput | SupplyCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * Supply createManyAndReturn - */ - export type SupplyCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Supply - */ - select?: SupplySelectCreateManyAndReturn | null - /** - * Omit specific fields from the Supply - */ - omit?: SupplyOmit | null - /** - * The data used to create many Supplies. - */ - data: SupplyCreateManyInput | SupplyCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyIncludeCreateManyAndReturn | null - } - - /** - * Supply update - */ - export type SupplyUpdateArgs = { - /** - * Select specific fields to fetch from the Supply - */ - select?: SupplySelect | null - /** - * Omit specific fields from the Supply - */ - omit?: SupplyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyInclude | null - /** - * The data needed to update a Supply. - */ - data: XOR - /** - * Choose, which Supply to update. - */ - where: SupplyWhereUniqueInput - } - - /** - * Supply updateMany - */ - export type SupplyUpdateManyArgs = { - /** - * The data used to update Supplies. - */ - data: XOR - /** - * Filter which Supplies to update - */ - where?: SupplyWhereInput - /** - * Limit how many Supplies to update. - */ - limit?: number - } - - /** - * Supply updateManyAndReturn - */ - export type SupplyUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Supply - */ - select?: SupplySelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Supply - */ - omit?: SupplyOmit | null - /** - * The data used to update Supplies. - */ - data: XOR - /** - * Filter which Supplies to update - */ - where?: SupplyWhereInput - /** - * Limit how many Supplies to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyIncludeUpdateManyAndReturn | null - } - - /** - * Supply upsert - */ - export type SupplyUpsertArgs = { - /** - * Select specific fields to fetch from the Supply - */ - select?: SupplySelect | null - /** - * Omit specific fields from the Supply - */ - omit?: SupplyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyInclude | null - /** - * The filter to search for the Supply to update in case it exists. - */ - where: SupplyWhereUniqueInput - /** - * In case the Supply found by the `where` argument doesn't exist, create a new Supply with this data. - */ - create: XOR - /** - * In case the Supply was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * Supply delete - */ - export type SupplyDeleteArgs = { - /** - * Select specific fields to fetch from the Supply - */ - select?: SupplySelect | null - /** - * Omit specific fields from the Supply - */ - omit?: SupplyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyInclude | null - /** - * Filter which Supply to delete. - */ - where: SupplyWhereUniqueInput - } - - /** - * Supply deleteMany - */ - export type SupplyDeleteManyArgs = { - /** - * Filter which Supplies to delete - */ - where?: SupplyWhereInput - /** - * Limit how many Supplies to delete. - */ - limit?: number - } - - /** - * Supply without action - */ - export type SupplyDefaultArgs = { - /** - * Select specific fields to fetch from the Supply - */ - select?: SupplySelect | null - /** - * Omit specific fields from the Supply - */ - omit?: SupplyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyInclude | null - } - - - /** - * Model Category - */ - - export type AggregateCategory = { - _count: CategoryCountAggregateOutputType | null - _min: CategoryMinAggregateOutputType | null - _max: CategoryMaxAggregateOutputType | null - } - - export type CategoryMinAggregateOutputType = { - id: string | null - name: string | null - createdAt: Date | null - updatedAt: Date | null - } - - export type CategoryMaxAggregateOutputType = { - id: string | null - name: string | null - createdAt: Date | null - updatedAt: Date | null - } - - export type CategoryCountAggregateOutputType = { - id: number - name: number - createdAt: number - updatedAt: number - _all: number - } - - - export type CategoryMinAggregateInputType = { - id?: true - name?: true - createdAt?: true - updatedAt?: true - } - - export type CategoryMaxAggregateInputType = { - id?: true - name?: true - createdAt?: true - updatedAt?: true - } - - export type CategoryCountAggregateInputType = { - id?: true - name?: true - createdAt?: true - updatedAt?: true - _all?: true - } - - export type CategoryAggregateArgs = { - /** - * Filter which Category to aggregate. - */ - where?: CategoryWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Categories to fetch. - */ - orderBy?: CategoryOrderByWithRelationInput | CategoryOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: CategoryWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Categories 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` Categories. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Categories - **/ - _count?: true | CategoryCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: CategoryMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: CategoryMaxAggregateInputType - } - - export type GetCategoryAggregateType = { - [P in keyof T & keyof AggregateCategory]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type CategoryGroupByArgs = { - where?: CategoryWhereInput - orderBy?: CategoryOrderByWithAggregationInput | CategoryOrderByWithAggregationInput[] - by: CategoryScalarFieldEnum[] | CategoryScalarFieldEnum - having?: CategoryScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: CategoryCountAggregateInputType | true - _min?: CategoryMinAggregateInputType - _max?: CategoryMaxAggregateInputType - } - - export type CategoryGroupByOutputType = { - id: string - name: string - createdAt: Date - updatedAt: Date - _count: CategoryCountAggregateOutputType | null - _min: CategoryMinAggregateOutputType | null - _max: CategoryMaxAggregateOutputType | null - } - - type GetCategoryGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof CategoryGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type CategorySelect = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - createdAt?: boolean - updatedAt?: boolean - products?: boolean | Category$productsArgs - _count?: boolean | CategoryCountOutputTypeDefaultArgs - }, ExtArgs["result"]["category"]> - - export type CategorySelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - createdAt?: boolean - updatedAt?: boolean - }, ExtArgs["result"]["category"]> - - export type CategorySelectUpdateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - createdAt?: boolean - updatedAt?: boolean - }, ExtArgs["result"]["category"]> - - export type CategorySelectScalar = { - id?: boolean - name?: boolean - createdAt?: boolean - updatedAt?: boolean - } - - export type CategoryOmit = $Extensions.GetOmit<"id" | "name" | "createdAt" | "updatedAt", ExtArgs["result"]["category"]> - export type CategoryInclude = { - products?: boolean | Category$productsArgs - _count?: boolean | CategoryCountOutputTypeDefaultArgs - } - export type CategoryIncludeCreateManyAndReturn = {} - export type CategoryIncludeUpdateManyAndReturn = {} - - export type $CategoryPayload = { - name: "Category" - objects: { - products: Prisma.$ProductPayload[] - } - scalars: $Extensions.GetPayloadResult<{ - id: string - name: string - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["category"]> - composites: {} - } - - type CategoryGetPayload = $Result.GetResult - - type CategoryCountArgs = - Omit & { - select?: CategoryCountAggregateInputType | true - } - - export interface CategoryDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Category'], meta: { name: 'Category' } } - /** - * Find zero or one Category that matches the filter. - * @param {CategoryFindUniqueArgs} args - Arguments to find a Category - * @example - * // Get one Category - * const category = await prisma.category.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__CategoryClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Category that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {CategoryFindUniqueOrThrowArgs} args - Arguments to find a Category - * @example - * // Get one Category - * const category = await prisma.category.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__CategoryClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Category 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 {CategoryFindFirstArgs} args - Arguments to find a Category - * @example - * // Get one Category - * const category = await prisma.category.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__CategoryClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Category 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 {CategoryFindFirstOrThrowArgs} args - Arguments to find a Category - * @example - * // Get one Category - * const category = await prisma.category.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__CategoryClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Categories 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 {CategoryFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Categories - * const categories = await prisma.category.findMany() - * - * // Get first 10 Categories - * const categories = await prisma.category.findMany({ take: 10 }) - * - * // Only select the `id` - * const categoryWithIdOnly = await prisma.category.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Category. - * @param {CategoryCreateArgs} args - Arguments to create a Category. - * @example - * // Create one Category - * const Category = await prisma.category.create({ - * data: { - * // ... data to create a Category - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__CategoryClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Categories. - * @param {CategoryCreateManyArgs} args - Arguments to create many Categories. - * @example - * // Create many Categories - * const category = await prisma.category.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Categories and returns the data saved in the database. - * @param {CategoryCreateManyAndReturnArgs} args - Arguments to create many Categories. - * @example - * // Create many Categories - * const category = await prisma.category.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Categories and only return the `id` - * const categoryWithIdOnly = await prisma.category.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a Category. - * @param {CategoryDeleteArgs} args - Arguments to delete one Category. - * @example - * // Delete one Category - * const Category = await prisma.category.delete({ - * where: { - * // ... filter to delete one Category - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__CategoryClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Category. - * @param {CategoryUpdateArgs} args - Arguments to update one Category. - * @example - * // Update one Category - * const category = await prisma.category.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__CategoryClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Categories. - * @param {CategoryDeleteManyArgs} args - Arguments to filter Categories to delete. - * @example - * // Delete a few Categories - * const { count } = await prisma.category.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Categories. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CategoryUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Categories - * const category = await prisma.category.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Categories and returns the data updated in the database. - * @param {CategoryUpdateManyAndReturnArgs} args - Arguments to update many Categories. - * @example - * // Update many Categories - * const category = await prisma.category.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Categories and only return the `id` - * const categoryWithIdOnly = await prisma.category.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one Category. - * @param {CategoryUpsertArgs} args - Arguments to update or create a Category. - * @example - * // Update or create a Category - * const category = await prisma.category.upsert({ - * create: { - * // ... data to create a Category - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Category we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__CategoryClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Categories. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CategoryCountArgs} args - Arguments to filter Categories to count. - * @example - * // Count the number of Categories - * const count = await prisma.category.count({ - * where: { - * // ... the filter for the Categories we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Category. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CategoryAggregateArgs} 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: Subset): Prisma.PrismaPromise> - - /** - * Group by Category. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CategoryGroupByArgs} 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 CategoryGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: CategoryGroupByArgs['orderBy'] } - : { orderBy?: CategoryGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetCategoryGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Category model - */ - readonly fields: CategoryFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for Category. - * 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__CategoryClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - products = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $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): $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): $Utils.JsPromise - } - - - - - /** - * Fields of the Category model - */ - interface CategoryFieldRefs { - readonly id: FieldRef<"Category", 'String'> - readonly name: FieldRef<"Category", 'String'> - readonly createdAt: FieldRef<"Category", 'DateTime'> - readonly updatedAt: FieldRef<"Category", 'DateTime'> - } - - - // Custom InputTypes - /** - * Category findUnique - */ - export type CategoryFindUniqueArgs = { - /** - * Select specific fields to fetch from the Category - */ - select?: CategorySelect | null - /** - * Omit specific fields from the Category - */ - omit?: CategoryOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CategoryInclude | null - /** - * Filter, which Category to fetch. - */ - where: CategoryWhereUniqueInput - } - - /** - * Category findUniqueOrThrow - */ - export type CategoryFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Category - */ - select?: CategorySelect | null - /** - * Omit specific fields from the Category - */ - omit?: CategoryOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CategoryInclude | null - /** - * Filter, which Category to fetch. - */ - where: CategoryWhereUniqueInput - } - - /** - * Category findFirst - */ - export type CategoryFindFirstArgs = { - /** - * Select specific fields to fetch from the Category - */ - select?: CategorySelect | null - /** - * Omit specific fields from the Category - */ - omit?: CategoryOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CategoryInclude | null - /** - * Filter, which Category to fetch. - */ - where?: CategoryWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Categories to fetch. - */ - orderBy?: CategoryOrderByWithRelationInput | CategoryOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Categories. - */ - cursor?: CategoryWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Categories 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` Categories. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Categories. - */ - distinct?: CategoryScalarFieldEnum | CategoryScalarFieldEnum[] - } - - /** - * Category findFirstOrThrow - */ - export type CategoryFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Category - */ - select?: CategorySelect | null - /** - * Omit specific fields from the Category - */ - omit?: CategoryOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CategoryInclude | null - /** - * Filter, which Category to fetch. - */ - where?: CategoryWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Categories to fetch. - */ - orderBy?: CategoryOrderByWithRelationInput | CategoryOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Categories. - */ - cursor?: CategoryWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Categories 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` Categories. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Categories. - */ - distinct?: CategoryScalarFieldEnum | CategoryScalarFieldEnum[] - } - - /** - * Category findMany - */ - export type CategoryFindManyArgs = { - /** - * Select specific fields to fetch from the Category - */ - select?: CategorySelect | null - /** - * Omit specific fields from the Category - */ - omit?: CategoryOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CategoryInclude | null - /** - * Filter, which Categories to fetch. - */ - where?: CategoryWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Categories to fetch. - */ - orderBy?: CategoryOrderByWithRelationInput | CategoryOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Categories. - */ - cursor?: CategoryWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Categories 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` Categories. - */ - skip?: number - distinct?: CategoryScalarFieldEnum | CategoryScalarFieldEnum[] - } - - /** - * Category create - */ - export type CategoryCreateArgs = { - /** - * Select specific fields to fetch from the Category - */ - select?: CategorySelect | null - /** - * Omit specific fields from the Category - */ - omit?: CategoryOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CategoryInclude | null - /** - * The data needed to create a Category. - */ - data: XOR - } - - /** - * Category createMany - */ - export type CategoryCreateManyArgs = { - /** - * The data used to create many Categories. - */ - data: CategoryCreateManyInput | CategoryCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * Category createManyAndReturn - */ - export type CategoryCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Category - */ - select?: CategorySelectCreateManyAndReturn | null - /** - * Omit specific fields from the Category - */ - omit?: CategoryOmit | null - /** - * The data used to create many Categories. - */ - data: CategoryCreateManyInput | CategoryCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * Category update - */ - export type CategoryUpdateArgs = { - /** - * Select specific fields to fetch from the Category - */ - select?: CategorySelect | null - /** - * Omit specific fields from the Category - */ - omit?: CategoryOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CategoryInclude | null - /** - * The data needed to update a Category. - */ - data: XOR - /** - * Choose, which Category to update. - */ - where: CategoryWhereUniqueInput - } - - /** - * Category updateMany - */ - export type CategoryUpdateManyArgs = { - /** - * The data used to update Categories. - */ - data: XOR - /** - * Filter which Categories to update - */ - where?: CategoryWhereInput - /** - * Limit how many Categories to update. - */ - limit?: number - } - - /** - * Category updateManyAndReturn - */ - export type CategoryUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Category - */ - select?: CategorySelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Category - */ - omit?: CategoryOmit | null - /** - * The data used to update Categories. - */ - data: XOR - /** - * Filter which Categories to update - */ - where?: CategoryWhereInput - /** - * Limit how many Categories to update. - */ - limit?: number - } - - /** - * Category upsert - */ - export type CategoryUpsertArgs = { - /** - * Select specific fields to fetch from the Category - */ - select?: CategorySelect | null - /** - * Omit specific fields from the Category - */ - omit?: CategoryOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CategoryInclude | null - /** - * The filter to search for the Category to update in case it exists. - */ - where: CategoryWhereUniqueInput - /** - * In case the Category found by the `where` argument doesn't exist, create a new Category with this data. - */ - create: XOR - /** - * In case the Category was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * Category delete - */ - export type CategoryDeleteArgs = { - /** - * Select specific fields to fetch from the Category - */ - select?: CategorySelect | null - /** - * Omit specific fields from the Category - */ - omit?: CategoryOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CategoryInclude | null - /** - * Filter which Category to delete. - */ - where: CategoryWhereUniqueInput - } - - /** - * Category deleteMany - */ - export type CategoryDeleteManyArgs = { - /** - * Filter which Categories to delete - */ - where?: CategoryWhereInput - /** - * Limit how many Categories to delete. - */ - limit?: number - } - - /** - * Category.products - */ - export type Category$productsArgs = { - /** - * Select specific fields to fetch from the Product - */ - select?: ProductSelect | null - /** - * Omit specific fields from the Product - */ - omit?: ProductOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ProductInclude | null - where?: ProductWhereInput - orderBy?: ProductOrderByWithRelationInput | ProductOrderByWithRelationInput[] - cursor?: ProductWhereUniqueInput - take?: number - skip?: number - distinct?: ProductScalarFieldEnum | ProductScalarFieldEnum[] - } - - /** - * Category without action - */ - export type CategoryDefaultArgs = { - /** - * Select specific fields to fetch from the Category - */ - select?: CategorySelect | null - /** - * Omit specific fields from the Category - */ - omit?: CategoryOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CategoryInclude | null - } - - - /** - * Model Product - */ - - export type AggregateProduct = { - _count: ProductCountAggregateOutputType | null - _avg: ProductAvgAggregateOutputType | null - _sum: ProductSumAggregateOutputType | null - _min: ProductMinAggregateOutputType | null - _max: ProductMaxAggregateOutputType | null - } - - export type ProductAvgAggregateOutputType = { - price: Decimal | null - quantity: number | null - weight: Decimal | null - } - - export type ProductSumAggregateOutputType = { - price: Decimal | null - quantity: number | null - weight: Decimal | null - } - - export type ProductMinAggregateOutputType = { - id: string | null - name: string | null - article: string | null - description: string | null - price: Decimal | null - quantity: number | null - categoryId: string | null - brand: string | null - color: string | null - size: string | null - weight: Decimal | null - dimensions: string | null - material: string | null - mainImage: string | null - isActive: boolean | null - createdAt: Date | null - updatedAt: Date | null - organizationId: string | null - } - - export type ProductMaxAggregateOutputType = { - id: string | null - name: string | null - article: string | null - description: string | null - price: Decimal | null - quantity: number | null - categoryId: string | null - brand: string | null - color: string | null - size: string | null - weight: Decimal | null - dimensions: string | null - material: string | null - mainImage: string | null - isActive: boolean | null - createdAt: Date | null - updatedAt: Date | null - organizationId: string | null - } - - export type ProductCountAggregateOutputType = { - id: number - name: number - article: number - description: number - price: number - quantity: number - categoryId: number - brand: number - color: number - size: number - weight: number - dimensions: number - material: number - images: number - mainImage: number - isActive: number - createdAt: number - updatedAt: number - organizationId: number - _all: number - } - - - export type ProductAvgAggregateInputType = { - price?: true - quantity?: true - weight?: true - } - - export type ProductSumAggregateInputType = { - price?: true - quantity?: true - weight?: true - } - - export type ProductMinAggregateInputType = { - id?: true - name?: true - article?: true - description?: true - price?: true - quantity?: true - categoryId?: true - brand?: true - color?: true - size?: true - weight?: true - dimensions?: true - material?: true - mainImage?: true - isActive?: true - createdAt?: true - updatedAt?: true - organizationId?: true - } - - export type ProductMaxAggregateInputType = { - id?: true - name?: true - article?: true - description?: true - price?: true - quantity?: true - categoryId?: true - brand?: true - color?: true - size?: true - weight?: true - dimensions?: true - material?: true - mainImage?: true - isActive?: true - createdAt?: true - updatedAt?: true - organizationId?: true - } - - export type ProductCountAggregateInputType = { - id?: true - name?: true - article?: true - description?: true - price?: true - quantity?: true - categoryId?: true - brand?: true - color?: true - size?: true - weight?: true - dimensions?: true - material?: true - images?: true - mainImage?: true - isActive?: true - createdAt?: true - updatedAt?: true - organizationId?: true - _all?: true - } - - export type ProductAggregateArgs = { - /** - * Filter which Product to aggregate. - */ - where?: ProductWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Products to fetch. - */ - orderBy?: ProductOrderByWithRelationInput | ProductOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: ProductWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Products 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` Products. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Products - **/ - _count?: true | ProductCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: ProductAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: ProductSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: ProductMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: ProductMaxAggregateInputType - } - - export type GetProductAggregateType = { - [P in keyof T & keyof AggregateProduct]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type ProductGroupByArgs = { - where?: ProductWhereInput - orderBy?: ProductOrderByWithAggregationInput | ProductOrderByWithAggregationInput[] - by: ProductScalarFieldEnum[] | ProductScalarFieldEnum - having?: ProductScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: ProductCountAggregateInputType | true - _avg?: ProductAvgAggregateInputType - _sum?: ProductSumAggregateInputType - _min?: ProductMinAggregateInputType - _max?: ProductMaxAggregateInputType - } - - export type ProductGroupByOutputType = { - id: string - name: string - article: string - description: string | null - price: Decimal - quantity: number - categoryId: string | null - brand: string | null - color: string | null - size: string | null - weight: Decimal | null - dimensions: string | null - material: string | null - images: JsonValue - mainImage: string | null - isActive: boolean - createdAt: Date - updatedAt: Date - organizationId: string - _count: ProductCountAggregateOutputType | null - _avg: ProductAvgAggregateOutputType | null - _sum: ProductSumAggregateOutputType | null - _min: ProductMinAggregateOutputType | null - _max: ProductMaxAggregateOutputType | null - } - - type GetProductGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof ProductGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type ProductSelect = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - article?: boolean - description?: boolean - price?: boolean - quantity?: boolean - categoryId?: boolean - brand?: boolean - color?: boolean - size?: boolean - weight?: boolean - dimensions?: boolean - material?: boolean - images?: boolean - mainImage?: boolean - isActive?: boolean - createdAt?: boolean - updatedAt?: boolean - organizationId?: boolean - cartItems?: boolean | Product$cartItemsArgs - favorites?: boolean | Product$favoritesArgs - supplyOrderItems?: boolean | Product$supplyOrderItemsArgs - category?: boolean | Product$categoryArgs - organization?: boolean | OrganizationDefaultArgs - _count?: boolean | ProductCountOutputTypeDefaultArgs - }, ExtArgs["result"]["product"]> - - export type ProductSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - article?: boolean - description?: boolean - price?: boolean - quantity?: boolean - categoryId?: boolean - brand?: boolean - color?: boolean - size?: boolean - weight?: boolean - dimensions?: boolean - material?: boolean - images?: boolean - mainImage?: boolean - isActive?: boolean - createdAt?: boolean - updatedAt?: boolean - organizationId?: boolean - category?: boolean | Product$categoryArgs - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["product"]> - - export type ProductSelectUpdateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - article?: boolean - description?: boolean - price?: boolean - quantity?: boolean - categoryId?: boolean - brand?: boolean - color?: boolean - size?: boolean - weight?: boolean - dimensions?: boolean - material?: boolean - images?: boolean - mainImage?: boolean - isActive?: boolean - createdAt?: boolean - updatedAt?: boolean - organizationId?: boolean - category?: boolean | Product$categoryArgs - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["product"]> - - export type ProductSelectScalar = { - id?: boolean - name?: boolean - article?: boolean - description?: boolean - price?: boolean - quantity?: boolean - categoryId?: boolean - brand?: boolean - color?: boolean - size?: boolean - weight?: boolean - dimensions?: boolean - material?: boolean - images?: boolean - mainImage?: boolean - isActive?: boolean - createdAt?: boolean - updatedAt?: boolean - organizationId?: boolean - } - - export type ProductOmit = $Extensions.GetOmit<"id" | "name" | "article" | "description" | "price" | "quantity" | "categoryId" | "brand" | "color" | "size" | "weight" | "dimensions" | "material" | "images" | "mainImage" | "isActive" | "createdAt" | "updatedAt" | "organizationId", ExtArgs["result"]["product"]> - export type ProductInclude = { - cartItems?: boolean | Product$cartItemsArgs - favorites?: boolean | Product$favoritesArgs - supplyOrderItems?: boolean | Product$supplyOrderItemsArgs - category?: boolean | Product$categoryArgs - organization?: boolean | OrganizationDefaultArgs - _count?: boolean | ProductCountOutputTypeDefaultArgs - } - export type ProductIncludeCreateManyAndReturn = { - category?: boolean | Product$categoryArgs - organization?: boolean | OrganizationDefaultArgs - } - export type ProductIncludeUpdateManyAndReturn = { - category?: boolean | Product$categoryArgs - organization?: boolean | OrganizationDefaultArgs - } - - export type $ProductPayload = { - name: "Product" - objects: { - cartItems: Prisma.$CartItemPayload[] - favorites: Prisma.$FavoritesPayload[] - supplyOrderItems: Prisma.$SupplyOrderItemPayload[] - category: Prisma.$CategoryPayload | null - organization: Prisma.$OrganizationPayload - } - scalars: $Extensions.GetPayloadResult<{ - id: string - name: string - article: string - description: string | null - price: Prisma.Decimal - quantity: number - categoryId: string | null - brand: string | null - color: string | null - size: string | null - weight: Prisma.Decimal | null - dimensions: string | null - material: string | null - images: Prisma.JsonValue - mainImage: string | null - isActive: boolean - createdAt: Date - updatedAt: Date - organizationId: string - }, ExtArgs["result"]["product"]> - composites: {} - } - - type ProductGetPayload = $Result.GetResult - - type ProductCountArgs = - Omit & { - select?: ProductCountAggregateInputType | true - } - - export interface ProductDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Product'], meta: { name: 'Product' } } - /** - * Find zero or one Product that matches the filter. - * @param {ProductFindUniqueArgs} args - Arguments to find a Product - * @example - * // Get one Product - * const product = await prisma.product.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__ProductClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Product that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {ProductFindUniqueOrThrowArgs} args - Arguments to find a Product - * @example - * // Get one Product - * const product = await prisma.product.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__ProductClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Product 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 {ProductFindFirstArgs} args - Arguments to find a Product - * @example - * // Get one Product - * const product = await prisma.product.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__ProductClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Product 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 {ProductFindFirstOrThrowArgs} args - Arguments to find a Product - * @example - * // Get one Product - * const product = await prisma.product.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__ProductClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Products 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 {ProductFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Products - * const products = await prisma.product.findMany() - * - * // Get first 10 Products - * const products = await prisma.product.findMany({ take: 10 }) - * - * // Only select the `id` - * const productWithIdOnly = await prisma.product.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Product. - * @param {ProductCreateArgs} args - Arguments to create a Product. - * @example - * // Create one Product - * const Product = await prisma.product.create({ - * data: { - * // ... data to create a Product - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__ProductClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Products. - * @param {ProductCreateManyArgs} args - Arguments to create many Products. - * @example - * // Create many Products - * const product = await prisma.product.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Products and returns the data saved in the database. - * @param {ProductCreateManyAndReturnArgs} args - Arguments to create many Products. - * @example - * // Create many Products - * const product = await prisma.product.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Products and only return the `id` - * const productWithIdOnly = await prisma.product.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a Product. - * @param {ProductDeleteArgs} args - Arguments to delete one Product. - * @example - * // Delete one Product - * const Product = await prisma.product.delete({ - * where: { - * // ... filter to delete one Product - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__ProductClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Product. - * @param {ProductUpdateArgs} args - Arguments to update one Product. - * @example - * // Update one Product - * const product = await prisma.product.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__ProductClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Products. - * @param {ProductDeleteManyArgs} args - Arguments to filter Products to delete. - * @example - * // Delete a few Products - * const { count } = await prisma.product.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Products. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ProductUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Products - * const product = await prisma.product.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Products and returns the data updated in the database. - * @param {ProductUpdateManyAndReturnArgs} args - Arguments to update many Products. - * @example - * // Update many Products - * const product = await prisma.product.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Products and only return the `id` - * const productWithIdOnly = await prisma.product.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one Product. - * @param {ProductUpsertArgs} args - Arguments to update or create a Product. - * @example - * // Update or create a Product - * const product = await prisma.product.upsert({ - * create: { - * // ... data to create a Product - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Product we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__ProductClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Products. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ProductCountArgs} args - Arguments to filter Products to count. - * @example - * // Count the number of Products - * const count = await prisma.product.count({ - * where: { - * // ... the filter for the Products we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Product. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ProductAggregateArgs} 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: Subset): Prisma.PrismaPromise> - - /** - * Group by Product. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ProductGroupByArgs} 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 ProductGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: ProductGroupByArgs['orderBy'] } - : { orderBy?: ProductGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetProductGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Product model - */ - readonly fields: ProductFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for Product. - * 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__ProductClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - cartItems = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - favorites = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - supplyOrderItems = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - category = {}>(args?: Subset>): Prisma__CategoryClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - organization = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $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): $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): $Utils.JsPromise - } - - - - - /** - * Fields of the Product model - */ - interface ProductFieldRefs { - readonly id: FieldRef<"Product", 'String'> - readonly name: FieldRef<"Product", 'String'> - readonly article: FieldRef<"Product", 'String'> - readonly description: FieldRef<"Product", 'String'> - readonly price: FieldRef<"Product", 'Decimal'> - readonly quantity: FieldRef<"Product", 'Int'> - readonly categoryId: FieldRef<"Product", 'String'> - readonly brand: FieldRef<"Product", 'String'> - readonly color: FieldRef<"Product", 'String'> - readonly size: FieldRef<"Product", 'String'> - readonly weight: FieldRef<"Product", 'Decimal'> - readonly dimensions: FieldRef<"Product", 'String'> - readonly material: FieldRef<"Product", 'String'> - readonly images: FieldRef<"Product", 'Json'> - readonly mainImage: FieldRef<"Product", 'String'> - readonly isActive: FieldRef<"Product", 'Boolean'> - readonly createdAt: FieldRef<"Product", 'DateTime'> - readonly updatedAt: FieldRef<"Product", 'DateTime'> - readonly organizationId: FieldRef<"Product", 'String'> - } - - - // Custom InputTypes - /** - * Product findUnique - */ - export type ProductFindUniqueArgs = { - /** - * Select specific fields to fetch from the Product - */ - select?: ProductSelect | null - /** - * Omit specific fields from the Product - */ - omit?: ProductOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ProductInclude | null - /** - * Filter, which Product to fetch. - */ - where: ProductWhereUniqueInput - } - - /** - * Product findUniqueOrThrow - */ - export type ProductFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Product - */ - select?: ProductSelect | null - /** - * Omit specific fields from the Product - */ - omit?: ProductOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ProductInclude | null - /** - * Filter, which Product to fetch. - */ - where: ProductWhereUniqueInput - } - - /** - * Product findFirst - */ - export type ProductFindFirstArgs = { - /** - * Select specific fields to fetch from the Product - */ - select?: ProductSelect | null - /** - * Omit specific fields from the Product - */ - omit?: ProductOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ProductInclude | null - /** - * Filter, which Product to fetch. - */ - where?: ProductWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Products to fetch. - */ - orderBy?: ProductOrderByWithRelationInput | ProductOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Products. - */ - cursor?: ProductWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Products 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` Products. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Products. - */ - distinct?: ProductScalarFieldEnum | ProductScalarFieldEnum[] - } - - /** - * Product findFirstOrThrow - */ - export type ProductFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Product - */ - select?: ProductSelect | null - /** - * Omit specific fields from the Product - */ - omit?: ProductOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ProductInclude | null - /** - * Filter, which Product to fetch. - */ - where?: ProductWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Products to fetch. - */ - orderBy?: ProductOrderByWithRelationInput | ProductOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Products. - */ - cursor?: ProductWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Products 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` Products. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Products. - */ - distinct?: ProductScalarFieldEnum | ProductScalarFieldEnum[] - } - - /** - * Product findMany - */ - export type ProductFindManyArgs = { - /** - * Select specific fields to fetch from the Product - */ - select?: ProductSelect | null - /** - * Omit specific fields from the Product - */ - omit?: ProductOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ProductInclude | null - /** - * Filter, which Products to fetch. - */ - where?: ProductWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Products to fetch. - */ - orderBy?: ProductOrderByWithRelationInput | ProductOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Products. - */ - cursor?: ProductWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Products 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` Products. - */ - skip?: number - distinct?: ProductScalarFieldEnum | ProductScalarFieldEnum[] - } - - /** - * Product create - */ - export type ProductCreateArgs = { - /** - * Select specific fields to fetch from the Product - */ - select?: ProductSelect | null - /** - * Omit specific fields from the Product - */ - omit?: ProductOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ProductInclude | null - /** - * The data needed to create a Product. - */ - data: XOR - } - - /** - * Product createMany - */ - export type ProductCreateManyArgs = { - /** - * The data used to create many Products. - */ - data: ProductCreateManyInput | ProductCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * Product createManyAndReturn - */ - export type ProductCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Product - */ - select?: ProductSelectCreateManyAndReturn | null - /** - * Omit specific fields from the Product - */ - omit?: ProductOmit | null - /** - * The data used to create many Products. - */ - data: ProductCreateManyInput | ProductCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: ProductIncludeCreateManyAndReturn | null - } - - /** - * Product update - */ - export type ProductUpdateArgs = { - /** - * Select specific fields to fetch from the Product - */ - select?: ProductSelect | null - /** - * Omit specific fields from the Product - */ - omit?: ProductOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ProductInclude | null - /** - * The data needed to update a Product. - */ - data: XOR - /** - * Choose, which Product to update. - */ - where: ProductWhereUniqueInput - } - - /** - * Product updateMany - */ - export type ProductUpdateManyArgs = { - /** - * The data used to update Products. - */ - data: XOR - /** - * Filter which Products to update - */ - where?: ProductWhereInput - /** - * Limit how many Products to update. - */ - limit?: number - } - - /** - * Product updateManyAndReturn - */ - export type ProductUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Product - */ - select?: ProductSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Product - */ - omit?: ProductOmit | null - /** - * The data used to update Products. - */ - data: XOR - /** - * Filter which Products to update - */ - where?: ProductWhereInput - /** - * Limit how many Products to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: ProductIncludeUpdateManyAndReturn | null - } - - /** - * Product upsert - */ - export type ProductUpsertArgs = { - /** - * Select specific fields to fetch from the Product - */ - select?: ProductSelect | null - /** - * Omit specific fields from the Product - */ - omit?: ProductOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ProductInclude | null - /** - * The filter to search for the Product to update in case it exists. - */ - where: ProductWhereUniqueInput - /** - * In case the Product found by the `where` argument doesn't exist, create a new Product with this data. - */ - create: XOR - /** - * In case the Product was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * Product delete - */ - export type ProductDeleteArgs = { - /** - * Select specific fields to fetch from the Product - */ - select?: ProductSelect | null - /** - * Omit specific fields from the Product - */ - omit?: ProductOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ProductInclude | null - /** - * Filter which Product to delete. - */ - where: ProductWhereUniqueInput - } - - /** - * Product deleteMany - */ - export type ProductDeleteManyArgs = { - /** - * Filter which Products to delete - */ - where?: ProductWhereInput - /** - * Limit how many Products to delete. - */ - limit?: number - } - - /** - * Product.cartItems - */ - export type Product$cartItemsArgs = { - /** - * Select specific fields to fetch from the CartItem - */ - select?: CartItemSelect | null - /** - * Omit specific fields from the CartItem - */ - omit?: CartItemOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CartItemInclude | null - where?: CartItemWhereInput - orderBy?: CartItemOrderByWithRelationInput | CartItemOrderByWithRelationInput[] - cursor?: CartItemWhereUniqueInput - take?: number - skip?: number - distinct?: CartItemScalarFieldEnum | CartItemScalarFieldEnum[] - } - - /** - * Product.favorites - */ - export type Product$favoritesArgs = { - /** - * Select specific fields to fetch from the Favorites - */ - select?: FavoritesSelect | null - /** - * Omit specific fields from the Favorites - */ - omit?: FavoritesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: FavoritesInclude | null - where?: FavoritesWhereInput - orderBy?: FavoritesOrderByWithRelationInput | FavoritesOrderByWithRelationInput[] - cursor?: FavoritesWhereUniqueInput - take?: number - skip?: number - distinct?: FavoritesScalarFieldEnum | FavoritesScalarFieldEnum[] - } - - /** - * Product.supplyOrderItems - */ - export type Product$supplyOrderItemsArgs = { - /** - * Select specific fields to fetch from the SupplyOrderItem - */ - select?: SupplyOrderItemSelect | null - /** - * Omit specific fields from the SupplyOrderItem - */ - omit?: SupplyOrderItemOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderItemInclude | null - where?: SupplyOrderItemWhereInput - orderBy?: SupplyOrderItemOrderByWithRelationInput | SupplyOrderItemOrderByWithRelationInput[] - cursor?: SupplyOrderItemWhereUniqueInput - take?: number - skip?: number - distinct?: SupplyOrderItemScalarFieldEnum | SupplyOrderItemScalarFieldEnum[] - } - - /** - * Product.category - */ - export type Product$categoryArgs = { - /** - * Select specific fields to fetch from the Category - */ - select?: CategorySelect | null - /** - * Omit specific fields from the Category - */ - omit?: CategoryOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CategoryInclude | null - where?: CategoryWhereInput - } - - /** - * Product without action - */ - export type ProductDefaultArgs = { - /** - * Select specific fields to fetch from the Product - */ - select?: ProductSelect | null - /** - * Omit specific fields from the Product - */ - omit?: ProductOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: ProductInclude | null - } - - - /** - * Model Cart - */ - - export type AggregateCart = { - _count: CartCountAggregateOutputType | null - _min: CartMinAggregateOutputType | null - _max: CartMaxAggregateOutputType | null - } - - export type CartMinAggregateOutputType = { - id: string | null - organizationId: string | null - createdAt: Date | null - updatedAt: Date | null - } - - export type CartMaxAggregateOutputType = { - id: string | null - organizationId: string | null - createdAt: Date | null - updatedAt: Date | null - } - - export type CartCountAggregateOutputType = { - id: number - organizationId: number - createdAt: number - updatedAt: number - _all: number - } - - - export type CartMinAggregateInputType = { - id?: true - organizationId?: true - createdAt?: true - updatedAt?: true - } - - export type CartMaxAggregateInputType = { - id?: true - organizationId?: true - createdAt?: true - updatedAt?: true - } - - export type CartCountAggregateInputType = { - id?: true - organizationId?: true - createdAt?: true - updatedAt?: true - _all?: true - } - - export type CartAggregateArgs = { - /** - * Filter which Cart to aggregate. - */ - where?: CartWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Carts to fetch. - */ - orderBy?: CartOrderByWithRelationInput | CartOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: CartWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Carts 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` Carts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Carts - **/ - _count?: true | CartCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: CartMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: CartMaxAggregateInputType - } - - export type GetCartAggregateType = { - [P in keyof T & keyof AggregateCart]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type CartGroupByArgs = { - where?: CartWhereInput - orderBy?: CartOrderByWithAggregationInput | CartOrderByWithAggregationInput[] - by: CartScalarFieldEnum[] | CartScalarFieldEnum - having?: CartScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: CartCountAggregateInputType | true - _min?: CartMinAggregateInputType - _max?: CartMaxAggregateInputType - } - - export type CartGroupByOutputType = { - id: string - organizationId: string - createdAt: Date - updatedAt: Date - _count: CartCountAggregateOutputType | null - _min: CartMinAggregateOutputType | null - _max: CartMaxAggregateOutputType | null - } - - type GetCartGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof CartGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type CartSelect = $Extensions.GetSelect<{ - id?: boolean - organizationId?: boolean - createdAt?: boolean - updatedAt?: boolean - items?: boolean | Cart$itemsArgs - organization?: boolean | OrganizationDefaultArgs - _count?: boolean | CartCountOutputTypeDefaultArgs - }, ExtArgs["result"]["cart"]> - - export type CartSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - organizationId?: boolean - createdAt?: boolean - updatedAt?: boolean - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["cart"]> - - export type CartSelectUpdateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - organizationId?: boolean - createdAt?: boolean - updatedAt?: boolean - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["cart"]> - - export type CartSelectScalar = { - id?: boolean - organizationId?: boolean - createdAt?: boolean - updatedAt?: boolean - } - - export type CartOmit = $Extensions.GetOmit<"id" | "organizationId" | "createdAt" | "updatedAt", ExtArgs["result"]["cart"]> - export type CartInclude = { - items?: boolean | Cart$itemsArgs - organization?: boolean | OrganizationDefaultArgs - _count?: boolean | CartCountOutputTypeDefaultArgs - } - export type CartIncludeCreateManyAndReturn = { - organization?: boolean | OrganizationDefaultArgs - } - export type CartIncludeUpdateManyAndReturn = { - organization?: boolean | OrganizationDefaultArgs - } - - export type $CartPayload = { - name: "Cart" - objects: { - items: Prisma.$CartItemPayload[] - organization: Prisma.$OrganizationPayload - } - scalars: $Extensions.GetPayloadResult<{ - id: string - organizationId: string - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["cart"]> - composites: {} - } - - type CartGetPayload = $Result.GetResult - - type CartCountArgs = - Omit & { - select?: CartCountAggregateInputType | true - } - - export interface CartDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Cart'], meta: { name: 'Cart' } } - /** - * Find zero or one Cart that matches the filter. - * @param {CartFindUniqueArgs} args - Arguments to find a Cart - * @example - * // Get one Cart - * const cart = await prisma.cart.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__CartClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Cart that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {CartFindUniqueOrThrowArgs} args - Arguments to find a Cart - * @example - * // Get one Cart - * const cart = await prisma.cart.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__CartClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Cart 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 {CartFindFirstArgs} args - Arguments to find a Cart - * @example - * // Get one Cart - * const cart = await prisma.cart.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__CartClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Cart 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 {CartFindFirstOrThrowArgs} args - Arguments to find a Cart - * @example - * // Get one Cart - * const cart = await prisma.cart.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__CartClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Carts 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 {CartFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Carts - * const carts = await prisma.cart.findMany() - * - * // Get first 10 Carts - * const carts = await prisma.cart.findMany({ take: 10 }) - * - * // Only select the `id` - * const cartWithIdOnly = await prisma.cart.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Cart. - * @param {CartCreateArgs} args - Arguments to create a Cart. - * @example - * // Create one Cart - * const Cart = await prisma.cart.create({ - * data: { - * // ... data to create a Cart - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__CartClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Carts. - * @param {CartCreateManyArgs} args - Arguments to create many Carts. - * @example - * // Create many Carts - * const cart = await prisma.cart.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Carts and returns the data saved in the database. - * @param {CartCreateManyAndReturnArgs} args - Arguments to create many Carts. - * @example - * // Create many Carts - * const cart = await prisma.cart.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Carts and only return the `id` - * const cartWithIdOnly = await prisma.cart.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a Cart. - * @param {CartDeleteArgs} args - Arguments to delete one Cart. - * @example - * // Delete one Cart - * const Cart = await prisma.cart.delete({ - * where: { - * // ... filter to delete one Cart - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__CartClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Cart. - * @param {CartUpdateArgs} args - Arguments to update one Cart. - * @example - * // Update one Cart - * const cart = await prisma.cart.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__CartClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Carts. - * @param {CartDeleteManyArgs} args - Arguments to filter Carts to delete. - * @example - * // Delete a few Carts - * const { count } = await prisma.cart.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Carts. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CartUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Carts - * const cart = await prisma.cart.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Carts and returns the data updated in the database. - * @param {CartUpdateManyAndReturnArgs} args - Arguments to update many Carts. - * @example - * // Update many Carts - * const cart = await prisma.cart.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Carts and only return the `id` - * const cartWithIdOnly = await prisma.cart.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one Cart. - * @param {CartUpsertArgs} args - Arguments to update or create a Cart. - * @example - * // Update or create a Cart - * const cart = await prisma.cart.upsert({ - * create: { - * // ... data to create a Cart - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Cart we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__CartClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Carts. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CartCountArgs} args - Arguments to filter Carts to count. - * @example - * // Count the number of Carts - * const count = await prisma.cart.count({ - * where: { - * // ... the filter for the Carts we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Cart. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CartAggregateArgs} 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: Subset): Prisma.PrismaPromise> - - /** - * Group by Cart. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CartGroupByArgs} 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 CartGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: CartGroupByArgs['orderBy'] } - : { orderBy?: CartGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetCartGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Cart model - */ - readonly fields: CartFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for Cart. - * 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__CartClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - items = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - organization = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $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): $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): $Utils.JsPromise - } - - - - - /** - * Fields of the Cart model - */ - interface CartFieldRefs { - readonly id: FieldRef<"Cart", 'String'> - readonly organizationId: FieldRef<"Cart", 'String'> - readonly createdAt: FieldRef<"Cart", 'DateTime'> - readonly updatedAt: FieldRef<"Cart", 'DateTime'> - } - - - // Custom InputTypes - /** - * Cart findUnique - */ - export type CartFindUniqueArgs = { - /** - * Select specific fields to fetch from the Cart - */ - select?: CartSelect | null - /** - * Omit specific fields from the Cart - */ - omit?: CartOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CartInclude | null - /** - * Filter, which Cart to fetch. - */ - where: CartWhereUniqueInput - } - - /** - * Cart findUniqueOrThrow - */ - export type CartFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Cart - */ - select?: CartSelect | null - /** - * Omit specific fields from the Cart - */ - omit?: CartOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CartInclude | null - /** - * Filter, which Cart to fetch. - */ - where: CartWhereUniqueInput - } - - /** - * Cart findFirst - */ - export type CartFindFirstArgs = { - /** - * Select specific fields to fetch from the Cart - */ - select?: CartSelect | null - /** - * Omit specific fields from the Cart - */ - omit?: CartOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CartInclude | null - /** - * Filter, which Cart to fetch. - */ - where?: CartWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Carts to fetch. - */ - orderBy?: CartOrderByWithRelationInput | CartOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Carts. - */ - cursor?: CartWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Carts 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` Carts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Carts. - */ - distinct?: CartScalarFieldEnum | CartScalarFieldEnum[] - } - - /** - * Cart findFirstOrThrow - */ - export type CartFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Cart - */ - select?: CartSelect | null - /** - * Omit specific fields from the Cart - */ - omit?: CartOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CartInclude | null - /** - * Filter, which Cart to fetch. - */ - where?: CartWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Carts to fetch. - */ - orderBy?: CartOrderByWithRelationInput | CartOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Carts. - */ - cursor?: CartWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Carts 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` Carts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Carts. - */ - distinct?: CartScalarFieldEnum | CartScalarFieldEnum[] - } - - /** - * Cart findMany - */ - export type CartFindManyArgs = { - /** - * Select specific fields to fetch from the Cart - */ - select?: CartSelect | null - /** - * Omit specific fields from the Cart - */ - omit?: CartOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CartInclude | null - /** - * Filter, which Carts to fetch. - */ - where?: CartWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Carts to fetch. - */ - orderBy?: CartOrderByWithRelationInput | CartOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Carts. - */ - cursor?: CartWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Carts 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` Carts. - */ - skip?: number - distinct?: CartScalarFieldEnum | CartScalarFieldEnum[] - } - - /** - * Cart create - */ - export type CartCreateArgs = { - /** - * Select specific fields to fetch from the Cart - */ - select?: CartSelect | null - /** - * Omit specific fields from the Cart - */ - omit?: CartOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CartInclude | null - /** - * The data needed to create a Cart. - */ - data: XOR - } - - /** - * Cart createMany - */ - export type CartCreateManyArgs = { - /** - * The data used to create many Carts. - */ - data: CartCreateManyInput | CartCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * Cart createManyAndReturn - */ - export type CartCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Cart - */ - select?: CartSelectCreateManyAndReturn | null - /** - * Omit specific fields from the Cart - */ - omit?: CartOmit | null - /** - * The data used to create many Carts. - */ - data: CartCreateManyInput | CartCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: CartIncludeCreateManyAndReturn | null - } - - /** - * Cart update - */ - export type CartUpdateArgs = { - /** - * Select specific fields to fetch from the Cart - */ - select?: CartSelect | null - /** - * Omit specific fields from the Cart - */ - omit?: CartOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CartInclude | null - /** - * The data needed to update a Cart. - */ - data: XOR - /** - * Choose, which Cart to update. - */ - where: CartWhereUniqueInput - } - - /** - * Cart updateMany - */ - export type CartUpdateManyArgs = { - /** - * The data used to update Carts. - */ - data: XOR - /** - * Filter which Carts to update - */ - where?: CartWhereInput - /** - * Limit how many Carts to update. - */ - limit?: number - } - - /** - * Cart updateManyAndReturn - */ - export type CartUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Cart - */ - select?: CartSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Cart - */ - omit?: CartOmit | null - /** - * The data used to update Carts. - */ - data: XOR - /** - * Filter which Carts to update - */ - where?: CartWhereInput - /** - * Limit how many Carts to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: CartIncludeUpdateManyAndReturn | null - } - - /** - * Cart upsert - */ - export type CartUpsertArgs = { - /** - * Select specific fields to fetch from the Cart - */ - select?: CartSelect | null - /** - * Omit specific fields from the Cart - */ - omit?: CartOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CartInclude | null - /** - * The filter to search for the Cart to update in case it exists. - */ - where: CartWhereUniqueInput - /** - * In case the Cart found by the `where` argument doesn't exist, create a new Cart with this data. - */ - create: XOR - /** - * In case the Cart was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * Cart delete - */ - export type CartDeleteArgs = { - /** - * Select specific fields to fetch from the Cart - */ - select?: CartSelect | null - /** - * Omit specific fields from the Cart - */ - omit?: CartOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CartInclude | null - /** - * Filter which Cart to delete. - */ - where: CartWhereUniqueInput - } - - /** - * Cart deleteMany - */ - export type CartDeleteManyArgs = { - /** - * Filter which Carts to delete - */ - where?: CartWhereInput - /** - * Limit how many Carts to delete. - */ - limit?: number - } - - /** - * Cart.items - */ - export type Cart$itemsArgs = { - /** - * Select specific fields to fetch from the CartItem - */ - select?: CartItemSelect | null - /** - * Omit specific fields from the CartItem - */ - omit?: CartItemOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CartItemInclude | null - where?: CartItemWhereInput - orderBy?: CartItemOrderByWithRelationInput | CartItemOrderByWithRelationInput[] - cursor?: CartItemWhereUniqueInput - take?: number - skip?: number - distinct?: CartItemScalarFieldEnum | CartItemScalarFieldEnum[] - } - - /** - * Cart without action - */ - export type CartDefaultArgs = { - /** - * Select specific fields to fetch from the Cart - */ - select?: CartSelect | null - /** - * Omit specific fields from the Cart - */ - omit?: CartOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CartInclude | null - } - - - /** - * Model CartItem - */ - - export type AggregateCartItem = { - _count: CartItemCountAggregateOutputType | null - _avg: CartItemAvgAggregateOutputType | null - _sum: CartItemSumAggregateOutputType | null - _min: CartItemMinAggregateOutputType | null - _max: CartItemMaxAggregateOutputType | null - } - - export type CartItemAvgAggregateOutputType = { - quantity: number | null - } - - export type CartItemSumAggregateOutputType = { - quantity: number | null - } - - export type CartItemMinAggregateOutputType = { - id: string | null - cartId: string | null - productId: string | null - quantity: number | null - createdAt: Date | null - updatedAt: Date | null - } - - export type CartItemMaxAggregateOutputType = { - id: string | null - cartId: string | null - productId: string | null - quantity: number | null - createdAt: Date | null - updatedAt: Date | null - } - - export type CartItemCountAggregateOutputType = { - id: number - cartId: number - productId: number - quantity: number - createdAt: number - updatedAt: number - _all: number - } - - - export type CartItemAvgAggregateInputType = { - quantity?: true - } - - export type CartItemSumAggregateInputType = { - quantity?: true - } - - export type CartItemMinAggregateInputType = { - id?: true - cartId?: true - productId?: true - quantity?: true - createdAt?: true - updatedAt?: true - } - - export type CartItemMaxAggregateInputType = { - id?: true - cartId?: true - productId?: true - quantity?: true - createdAt?: true - updatedAt?: true - } - - export type CartItemCountAggregateInputType = { - id?: true - cartId?: true - productId?: true - quantity?: true - createdAt?: true - updatedAt?: true - _all?: true - } - - export type CartItemAggregateArgs = { - /** - * Filter which CartItem to aggregate. - */ - where?: CartItemWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of CartItems to fetch. - */ - orderBy?: CartItemOrderByWithRelationInput | CartItemOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: CartItemWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` CartItems 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` CartItems. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned CartItems - **/ - _count?: true | CartItemCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: CartItemAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: CartItemSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: CartItemMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: CartItemMaxAggregateInputType - } - - export type GetCartItemAggregateType = { - [P in keyof T & keyof AggregateCartItem]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type CartItemGroupByArgs = { - where?: CartItemWhereInput - orderBy?: CartItemOrderByWithAggregationInput | CartItemOrderByWithAggregationInput[] - by: CartItemScalarFieldEnum[] | CartItemScalarFieldEnum - having?: CartItemScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: CartItemCountAggregateInputType | true - _avg?: CartItemAvgAggregateInputType - _sum?: CartItemSumAggregateInputType - _min?: CartItemMinAggregateInputType - _max?: CartItemMaxAggregateInputType - } - - export type CartItemGroupByOutputType = { - id: string - cartId: string - productId: string - quantity: number - createdAt: Date - updatedAt: Date - _count: CartItemCountAggregateOutputType | null - _avg: CartItemAvgAggregateOutputType | null - _sum: CartItemSumAggregateOutputType | null - _min: CartItemMinAggregateOutputType | null - _max: CartItemMaxAggregateOutputType | null - } - - type GetCartItemGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof CartItemGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type CartItemSelect = $Extensions.GetSelect<{ - id?: boolean - cartId?: boolean - productId?: boolean - quantity?: boolean - createdAt?: boolean - updatedAt?: boolean - cart?: boolean | CartDefaultArgs - product?: boolean | ProductDefaultArgs - }, ExtArgs["result"]["cartItem"]> - - export type CartItemSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - cartId?: boolean - productId?: boolean - quantity?: boolean - createdAt?: boolean - updatedAt?: boolean - cart?: boolean | CartDefaultArgs - product?: boolean | ProductDefaultArgs - }, ExtArgs["result"]["cartItem"]> - - export type CartItemSelectUpdateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - cartId?: boolean - productId?: boolean - quantity?: boolean - createdAt?: boolean - updatedAt?: boolean - cart?: boolean | CartDefaultArgs - product?: boolean | ProductDefaultArgs - }, ExtArgs["result"]["cartItem"]> - - export type CartItemSelectScalar = { - id?: boolean - cartId?: boolean - productId?: boolean - quantity?: boolean - createdAt?: boolean - updatedAt?: boolean - } - - export type CartItemOmit = $Extensions.GetOmit<"id" | "cartId" | "productId" | "quantity" | "createdAt" | "updatedAt", ExtArgs["result"]["cartItem"]> - export type CartItemInclude = { - cart?: boolean | CartDefaultArgs - product?: boolean | ProductDefaultArgs - } - export type CartItemIncludeCreateManyAndReturn = { - cart?: boolean | CartDefaultArgs - product?: boolean | ProductDefaultArgs - } - export type CartItemIncludeUpdateManyAndReturn = { - cart?: boolean | CartDefaultArgs - product?: boolean | ProductDefaultArgs - } - - export type $CartItemPayload = { - name: "CartItem" - objects: { - cart: Prisma.$CartPayload - product: Prisma.$ProductPayload - } - scalars: $Extensions.GetPayloadResult<{ - id: string - cartId: string - productId: string - quantity: number - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["cartItem"]> - composites: {} - } - - type CartItemGetPayload = $Result.GetResult - - type CartItemCountArgs = - Omit & { - select?: CartItemCountAggregateInputType | true - } - - export interface CartItemDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['CartItem'], meta: { name: 'CartItem' } } - /** - * Find zero or one CartItem that matches the filter. - * @param {CartItemFindUniqueArgs} args - Arguments to find a CartItem - * @example - * // Get one CartItem - * const cartItem = await prisma.cartItem.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__CartItemClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one CartItem that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {CartItemFindUniqueOrThrowArgs} args - Arguments to find a CartItem - * @example - * // Get one CartItem - * const cartItem = await prisma.cartItem.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__CartItemClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first CartItem 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 {CartItemFindFirstArgs} args - Arguments to find a CartItem - * @example - * // Get one CartItem - * const cartItem = await prisma.cartItem.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__CartItemClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first CartItem 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 {CartItemFindFirstOrThrowArgs} args - Arguments to find a CartItem - * @example - * // Get one CartItem - * const cartItem = await prisma.cartItem.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__CartItemClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more CartItems 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 {CartItemFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all CartItems - * const cartItems = await prisma.cartItem.findMany() - * - * // Get first 10 CartItems - * const cartItems = await prisma.cartItem.findMany({ take: 10 }) - * - * // Only select the `id` - * const cartItemWithIdOnly = await prisma.cartItem.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> - - /** - * Create a CartItem. - * @param {CartItemCreateArgs} args - Arguments to create a CartItem. - * @example - * // Create one CartItem - * const CartItem = await prisma.cartItem.create({ - * data: { - * // ... data to create a CartItem - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__CartItemClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many CartItems. - * @param {CartItemCreateManyArgs} args - Arguments to create many CartItems. - * @example - * // Create many CartItems - * const cartItem = await prisma.cartItem.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many CartItems and returns the data saved in the database. - * @param {CartItemCreateManyAndReturnArgs} args - Arguments to create many CartItems. - * @example - * // Create many CartItems - * const cartItem = await prisma.cartItem.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many CartItems and only return the `id` - * const cartItemWithIdOnly = await prisma.cartItem.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a CartItem. - * @param {CartItemDeleteArgs} args - Arguments to delete one CartItem. - * @example - * // Delete one CartItem - * const CartItem = await prisma.cartItem.delete({ - * where: { - * // ... filter to delete one CartItem - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__CartItemClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one CartItem. - * @param {CartItemUpdateArgs} args - Arguments to update one CartItem. - * @example - * // Update one CartItem - * const cartItem = await prisma.cartItem.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__CartItemClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more CartItems. - * @param {CartItemDeleteManyArgs} args - Arguments to filter CartItems to delete. - * @example - * // Delete a few CartItems - * const { count } = await prisma.cartItem.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more CartItems. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CartItemUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many CartItems - * const cartItem = await prisma.cartItem.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more CartItems and returns the data updated in the database. - * @param {CartItemUpdateManyAndReturnArgs} args - Arguments to update many CartItems. - * @example - * // Update many CartItems - * const cartItem = await prisma.cartItem.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more CartItems and only return the `id` - * const cartItemWithIdOnly = await prisma.cartItem.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one CartItem. - * @param {CartItemUpsertArgs} args - Arguments to update or create a CartItem. - * @example - * // Update or create a CartItem - * const cartItem = await prisma.cartItem.upsert({ - * create: { - * // ... data to create a CartItem - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the CartItem we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__CartItemClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of CartItems. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CartItemCountArgs} args - Arguments to filter CartItems to count. - * @example - * // Count the number of CartItems - * const count = await prisma.cartItem.count({ - * where: { - * // ... the filter for the CartItems we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a CartItem. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CartItemAggregateArgs} 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: Subset): Prisma.PrismaPromise> - - /** - * Group by CartItem. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CartItemGroupByArgs} 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 CartItemGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: CartItemGroupByArgs['orderBy'] } - : { orderBy?: CartItemGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetCartItemGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the CartItem model - */ - readonly fields: CartItemFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for CartItem. - * 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__CartItemClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - cart = {}>(args?: Subset>): Prisma__CartClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - product = {}>(args?: Subset>): Prisma__ProductClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $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): $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): $Utils.JsPromise - } - - - - - /** - * Fields of the CartItem model - */ - interface CartItemFieldRefs { - readonly id: FieldRef<"CartItem", 'String'> - readonly cartId: FieldRef<"CartItem", 'String'> - readonly productId: FieldRef<"CartItem", 'String'> - readonly quantity: FieldRef<"CartItem", 'Int'> - readonly createdAt: FieldRef<"CartItem", 'DateTime'> - readonly updatedAt: FieldRef<"CartItem", 'DateTime'> - } - - - // Custom InputTypes - /** - * CartItem findUnique - */ - export type CartItemFindUniqueArgs = { - /** - * Select specific fields to fetch from the CartItem - */ - select?: CartItemSelect | null - /** - * Omit specific fields from the CartItem - */ - omit?: CartItemOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CartItemInclude | null - /** - * Filter, which CartItem to fetch. - */ - where: CartItemWhereUniqueInput - } - - /** - * CartItem findUniqueOrThrow - */ - export type CartItemFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the CartItem - */ - select?: CartItemSelect | null - /** - * Omit specific fields from the CartItem - */ - omit?: CartItemOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CartItemInclude | null - /** - * Filter, which CartItem to fetch. - */ - where: CartItemWhereUniqueInput - } - - /** - * CartItem findFirst - */ - export type CartItemFindFirstArgs = { - /** - * Select specific fields to fetch from the CartItem - */ - select?: CartItemSelect | null - /** - * Omit specific fields from the CartItem - */ - omit?: CartItemOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CartItemInclude | null - /** - * Filter, which CartItem to fetch. - */ - where?: CartItemWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of CartItems to fetch. - */ - orderBy?: CartItemOrderByWithRelationInput | CartItemOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for CartItems. - */ - cursor?: CartItemWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` CartItems 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` CartItems. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of CartItems. - */ - distinct?: CartItemScalarFieldEnum | CartItemScalarFieldEnum[] - } - - /** - * CartItem findFirstOrThrow - */ - export type CartItemFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the CartItem - */ - select?: CartItemSelect | null - /** - * Omit specific fields from the CartItem - */ - omit?: CartItemOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CartItemInclude | null - /** - * Filter, which CartItem to fetch. - */ - where?: CartItemWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of CartItems to fetch. - */ - orderBy?: CartItemOrderByWithRelationInput | CartItemOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for CartItems. - */ - cursor?: CartItemWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` CartItems 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` CartItems. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of CartItems. - */ - distinct?: CartItemScalarFieldEnum | CartItemScalarFieldEnum[] - } - - /** - * CartItem findMany - */ - export type CartItemFindManyArgs = { - /** - * Select specific fields to fetch from the CartItem - */ - select?: CartItemSelect | null - /** - * Omit specific fields from the CartItem - */ - omit?: CartItemOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CartItemInclude | null - /** - * Filter, which CartItems to fetch. - */ - where?: CartItemWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of CartItems to fetch. - */ - orderBy?: CartItemOrderByWithRelationInput | CartItemOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing CartItems. - */ - cursor?: CartItemWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` CartItems 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` CartItems. - */ - skip?: number - distinct?: CartItemScalarFieldEnum | CartItemScalarFieldEnum[] - } - - /** - * CartItem create - */ - export type CartItemCreateArgs = { - /** - * Select specific fields to fetch from the CartItem - */ - select?: CartItemSelect | null - /** - * Omit specific fields from the CartItem - */ - omit?: CartItemOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CartItemInclude | null - /** - * The data needed to create a CartItem. - */ - data: XOR - } - - /** - * CartItem createMany - */ - export type CartItemCreateManyArgs = { - /** - * The data used to create many CartItems. - */ - data: CartItemCreateManyInput | CartItemCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * CartItem createManyAndReturn - */ - export type CartItemCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the CartItem - */ - select?: CartItemSelectCreateManyAndReturn | null - /** - * Omit specific fields from the CartItem - */ - omit?: CartItemOmit | null - /** - * The data used to create many CartItems. - */ - data: CartItemCreateManyInput | CartItemCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: CartItemIncludeCreateManyAndReturn | null - } - - /** - * CartItem update - */ - export type CartItemUpdateArgs = { - /** - * Select specific fields to fetch from the CartItem - */ - select?: CartItemSelect | null - /** - * Omit specific fields from the CartItem - */ - omit?: CartItemOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CartItemInclude | null - /** - * The data needed to update a CartItem. - */ - data: XOR - /** - * Choose, which CartItem to update. - */ - where: CartItemWhereUniqueInput - } - - /** - * CartItem updateMany - */ - export type CartItemUpdateManyArgs = { - /** - * The data used to update CartItems. - */ - data: XOR - /** - * Filter which CartItems to update - */ - where?: CartItemWhereInput - /** - * Limit how many CartItems to update. - */ - limit?: number - } - - /** - * CartItem updateManyAndReturn - */ - export type CartItemUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the CartItem - */ - select?: CartItemSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the CartItem - */ - omit?: CartItemOmit | null - /** - * The data used to update CartItems. - */ - data: XOR - /** - * Filter which CartItems to update - */ - where?: CartItemWhereInput - /** - * Limit how many CartItems to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: CartItemIncludeUpdateManyAndReturn | null - } - - /** - * CartItem upsert - */ - export type CartItemUpsertArgs = { - /** - * Select specific fields to fetch from the CartItem - */ - select?: CartItemSelect | null - /** - * Omit specific fields from the CartItem - */ - omit?: CartItemOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CartItemInclude | null - /** - * The filter to search for the CartItem to update in case it exists. - */ - where: CartItemWhereUniqueInput - /** - * In case the CartItem found by the `where` argument doesn't exist, create a new CartItem with this data. - */ - create: XOR - /** - * In case the CartItem was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * CartItem delete - */ - export type CartItemDeleteArgs = { - /** - * Select specific fields to fetch from the CartItem - */ - select?: CartItemSelect | null - /** - * Omit specific fields from the CartItem - */ - omit?: CartItemOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CartItemInclude | null - /** - * Filter which CartItem to delete. - */ - where: CartItemWhereUniqueInput - } - - /** - * CartItem deleteMany - */ - export type CartItemDeleteManyArgs = { - /** - * Filter which CartItems to delete - */ - where?: CartItemWhereInput - /** - * Limit how many CartItems to delete. - */ - limit?: number - } - - /** - * CartItem without action - */ - export type CartItemDefaultArgs = { - /** - * Select specific fields to fetch from the CartItem - */ - select?: CartItemSelect | null - /** - * Omit specific fields from the CartItem - */ - omit?: CartItemOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: CartItemInclude | null - } - - - /** - * Model Favorites - */ - - export type AggregateFavorites = { - _count: FavoritesCountAggregateOutputType | null - _min: FavoritesMinAggregateOutputType | null - _max: FavoritesMaxAggregateOutputType | null - } - - export type FavoritesMinAggregateOutputType = { - id: string | null - organizationId: string | null - productId: string | null - createdAt: Date | null - updatedAt: Date | null - } - - export type FavoritesMaxAggregateOutputType = { - id: string | null - organizationId: string | null - productId: string | null - createdAt: Date | null - updatedAt: Date | null - } - - export type FavoritesCountAggregateOutputType = { - id: number - organizationId: number - productId: number - createdAt: number - updatedAt: number - _all: number - } - - - export type FavoritesMinAggregateInputType = { - id?: true - organizationId?: true - productId?: true - createdAt?: true - updatedAt?: true - } - - export type FavoritesMaxAggregateInputType = { - id?: true - organizationId?: true - productId?: true - createdAt?: true - updatedAt?: true - } - - export type FavoritesCountAggregateInputType = { - id?: true - organizationId?: true - productId?: true - createdAt?: true - updatedAt?: true - _all?: true - } - - export type FavoritesAggregateArgs = { - /** - * Filter which Favorites to aggregate. - */ - where?: FavoritesWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Favorites to fetch. - */ - orderBy?: FavoritesOrderByWithRelationInput | FavoritesOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: FavoritesWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Favorites 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` Favorites. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Favorites - **/ - _count?: true | FavoritesCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: FavoritesMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: FavoritesMaxAggregateInputType - } - - export type GetFavoritesAggregateType = { - [P in keyof T & keyof AggregateFavorites]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type FavoritesGroupByArgs = { - where?: FavoritesWhereInput - orderBy?: FavoritesOrderByWithAggregationInput | FavoritesOrderByWithAggregationInput[] - by: FavoritesScalarFieldEnum[] | FavoritesScalarFieldEnum - having?: FavoritesScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: FavoritesCountAggregateInputType | true - _min?: FavoritesMinAggregateInputType - _max?: FavoritesMaxAggregateInputType - } - - export type FavoritesGroupByOutputType = { - id: string - organizationId: string - productId: string - createdAt: Date - updatedAt: Date - _count: FavoritesCountAggregateOutputType | null - _min: FavoritesMinAggregateOutputType | null - _max: FavoritesMaxAggregateOutputType | null - } - - type GetFavoritesGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof FavoritesGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type FavoritesSelect = $Extensions.GetSelect<{ - id?: boolean - organizationId?: boolean - productId?: boolean - createdAt?: boolean - updatedAt?: boolean - organization?: boolean | OrganizationDefaultArgs - product?: boolean | ProductDefaultArgs - }, ExtArgs["result"]["favorites"]> - - export type FavoritesSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - organizationId?: boolean - productId?: boolean - createdAt?: boolean - updatedAt?: boolean - organization?: boolean | OrganizationDefaultArgs - product?: boolean | ProductDefaultArgs - }, ExtArgs["result"]["favorites"]> - - export type FavoritesSelectUpdateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - organizationId?: boolean - productId?: boolean - createdAt?: boolean - updatedAt?: boolean - organization?: boolean | OrganizationDefaultArgs - product?: boolean | ProductDefaultArgs - }, ExtArgs["result"]["favorites"]> - - export type FavoritesSelectScalar = { - id?: boolean - organizationId?: boolean - productId?: boolean - createdAt?: boolean - updatedAt?: boolean - } - - export type FavoritesOmit = $Extensions.GetOmit<"id" | "organizationId" | "productId" | "createdAt" | "updatedAt", ExtArgs["result"]["favorites"]> - export type FavoritesInclude = { - organization?: boolean | OrganizationDefaultArgs - product?: boolean | ProductDefaultArgs - } - export type FavoritesIncludeCreateManyAndReturn = { - organization?: boolean | OrganizationDefaultArgs - product?: boolean | ProductDefaultArgs - } - export type FavoritesIncludeUpdateManyAndReturn = { - organization?: boolean | OrganizationDefaultArgs - product?: boolean | ProductDefaultArgs - } - - export type $FavoritesPayload = { - name: "Favorites" - objects: { - organization: Prisma.$OrganizationPayload - product: Prisma.$ProductPayload - } - scalars: $Extensions.GetPayloadResult<{ - id: string - organizationId: string - productId: string - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["favorites"]> - composites: {} - } - - type FavoritesGetPayload = $Result.GetResult - - type FavoritesCountArgs = - Omit & { - select?: FavoritesCountAggregateInputType | true - } - - export interface FavoritesDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Favorites'], meta: { name: 'Favorites' } } - /** - * Find zero or one Favorites that matches the filter. - * @param {FavoritesFindUniqueArgs} args - Arguments to find a Favorites - * @example - * // Get one Favorites - * const favorites = await prisma.favorites.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__FavoritesClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Favorites that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {FavoritesFindUniqueOrThrowArgs} args - Arguments to find a Favorites - * @example - * // Get one Favorites - * const favorites = await prisma.favorites.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__FavoritesClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Favorites 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 {FavoritesFindFirstArgs} args - Arguments to find a Favorites - * @example - * // Get one Favorites - * const favorites = await prisma.favorites.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__FavoritesClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Favorites 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 {FavoritesFindFirstOrThrowArgs} args - Arguments to find a Favorites - * @example - * // Get one Favorites - * const favorites = await prisma.favorites.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__FavoritesClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Favorites 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 {FavoritesFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Favorites - * const favorites = await prisma.favorites.findMany() - * - * // Get first 10 Favorites - * const favorites = await prisma.favorites.findMany({ take: 10 }) - * - * // Only select the `id` - * const favoritesWithIdOnly = await prisma.favorites.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Favorites. - * @param {FavoritesCreateArgs} args - Arguments to create a Favorites. - * @example - * // Create one Favorites - * const Favorites = await prisma.favorites.create({ - * data: { - * // ... data to create a Favorites - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__FavoritesClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Favorites. - * @param {FavoritesCreateManyArgs} args - Arguments to create many Favorites. - * @example - * // Create many Favorites - * const favorites = await prisma.favorites.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Favorites and returns the data saved in the database. - * @param {FavoritesCreateManyAndReturnArgs} args - Arguments to create many Favorites. - * @example - * // Create many Favorites - * const favorites = await prisma.favorites.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Favorites and only return the `id` - * const favoritesWithIdOnly = await prisma.favorites.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a Favorites. - * @param {FavoritesDeleteArgs} args - Arguments to delete one Favorites. - * @example - * // Delete one Favorites - * const Favorites = await prisma.favorites.delete({ - * where: { - * // ... filter to delete one Favorites - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__FavoritesClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Favorites. - * @param {FavoritesUpdateArgs} args - Arguments to update one Favorites. - * @example - * // Update one Favorites - * const favorites = await prisma.favorites.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__FavoritesClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Favorites. - * @param {FavoritesDeleteManyArgs} args - Arguments to filter Favorites to delete. - * @example - * // Delete a few Favorites - * const { count } = await prisma.favorites.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Favorites. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {FavoritesUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Favorites - * const favorites = await prisma.favorites.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Favorites and returns the data updated in the database. - * @param {FavoritesUpdateManyAndReturnArgs} args - Arguments to update many Favorites. - * @example - * // Update many Favorites - * const favorites = await prisma.favorites.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Favorites and only return the `id` - * const favoritesWithIdOnly = await prisma.favorites.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one Favorites. - * @param {FavoritesUpsertArgs} args - Arguments to update or create a Favorites. - * @example - * // Update or create a Favorites - * const favorites = await prisma.favorites.upsert({ - * create: { - * // ... data to create a Favorites - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Favorites we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__FavoritesClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Favorites. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {FavoritesCountArgs} args - Arguments to filter Favorites to count. - * @example - * // Count the number of Favorites - * const count = await prisma.favorites.count({ - * where: { - * // ... the filter for the Favorites we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Favorites. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {FavoritesAggregateArgs} 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: Subset): Prisma.PrismaPromise> - - /** - * Group by Favorites. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {FavoritesGroupByArgs} 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 FavoritesGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: FavoritesGroupByArgs['orderBy'] } - : { orderBy?: FavoritesGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetFavoritesGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Favorites model - */ - readonly fields: FavoritesFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for Favorites. - * 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__FavoritesClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - organization = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - product = {}>(args?: Subset>): Prisma__ProductClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $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): $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): $Utils.JsPromise - } - - - - - /** - * Fields of the Favorites model - */ - interface FavoritesFieldRefs { - readonly id: FieldRef<"Favorites", 'String'> - readonly organizationId: FieldRef<"Favorites", 'String'> - readonly productId: FieldRef<"Favorites", 'String'> - readonly createdAt: FieldRef<"Favorites", 'DateTime'> - readonly updatedAt: FieldRef<"Favorites", 'DateTime'> - } - - - // Custom InputTypes - /** - * Favorites findUnique - */ - export type FavoritesFindUniqueArgs = { - /** - * Select specific fields to fetch from the Favorites - */ - select?: FavoritesSelect | null - /** - * Omit specific fields from the Favorites - */ - omit?: FavoritesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: FavoritesInclude | null - /** - * Filter, which Favorites to fetch. - */ - where: FavoritesWhereUniqueInput - } - - /** - * Favorites findUniqueOrThrow - */ - export type FavoritesFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Favorites - */ - select?: FavoritesSelect | null - /** - * Omit specific fields from the Favorites - */ - omit?: FavoritesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: FavoritesInclude | null - /** - * Filter, which Favorites to fetch. - */ - where: FavoritesWhereUniqueInput - } - - /** - * Favorites findFirst - */ - export type FavoritesFindFirstArgs = { - /** - * Select specific fields to fetch from the Favorites - */ - select?: FavoritesSelect | null - /** - * Omit specific fields from the Favorites - */ - omit?: FavoritesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: FavoritesInclude | null - /** - * Filter, which Favorites to fetch. - */ - where?: FavoritesWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Favorites to fetch. - */ - orderBy?: FavoritesOrderByWithRelationInput | FavoritesOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Favorites. - */ - cursor?: FavoritesWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Favorites 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` Favorites. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Favorites. - */ - distinct?: FavoritesScalarFieldEnum | FavoritesScalarFieldEnum[] - } - - /** - * Favorites findFirstOrThrow - */ - export type FavoritesFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Favorites - */ - select?: FavoritesSelect | null - /** - * Omit specific fields from the Favorites - */ - omit?: FavoritesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: FavoritesInclude | null - /** - * Filter, which Favorites to fetch. - */ - where?: FavoritesWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Favorites to fetch. - */ - orderBy?: FavoritesOrderByWithRelationInput | FavoritesOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Favorites. - */ - cursor?: FavoritesWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Favorites 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` Favorites. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Favorites. - */ - distinct?: FavoritesScalarFieldEnum | FavoritesScalarFieldEnum[] - } - - /** - * Favorites findMany - */ - export type FavoritesFindManyArgs = { - /** - * Select specific fields to fetch from the Favorites - */ - select?: FavoritesSelect | null - /** - * Omit specific fields from the Favorites - */ - omit?: FavoritesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: FavoritesInclude | null - /** - * Filter, which Favorites to fetch. - */ - where?: FavoritesWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Favorites to fetch. - */ - orderBy?: FavoritesOrderByWithRelationInput | FavoritesOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Favorites. - */ - cursor?: FavoritesWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Favorites 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` Favorites. - */ - skip?: number - distinct?: FavoritesScalarFieldEnum | FavoritesScalarFieldEnum[] - } - - /** - * Favorites create - */ - export type FavoritesCreateArgs = { - /** - * Select specific fields to fetch from the Favorites - */ - select?: FavoritesSelect | null - /** - * Omit specific fields from the Favorites - */ - omit?: FavoritesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: FavoritesInclude | null - /** - * The data needed to create a Favorites. - */ - data: XOR - } - - /** - * Favorites createMany - */ - export type FavoritesCreateManyArgs = { - /** - * The data used to create many Favorites. - */ - data: FavoritesCreateManyInput | FavoritesCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * Favorites createManyAndReturn - */ - export type FavoritesCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Favorites - */ - select?: FavoritesSelectCreateManyAndReturn | null - /** - * Omit specific fields from the Favorites - */ - omit?: FavoritesOmit | null - /** - * The data used to create many Favorites. - */ - data: FavoritesCreateManyInput | FavoritesCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: FavoritesIncludeCreateManyAndReturn | null - } - - /** - * Favorites update - */ - export type FavoritesUpdateArgs = { - /** - * Select specific fields to fetch from the Favorites - */ - select?: FavoritesSelect | null - /** - * Omit specific fields from the Favorites - */ - omit?: FavoritesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: FavoritesInclude | null - /** - * The data needed to update a Favorites. - */ - data: XOR - /** - * Choose, which Favorites to update. - */ - where: FavoritesWhereUniqueInput - } - - /** - * Favorites updateMany - */ - export type FavoritesUpdateManyArgs = { - /** - * The data used to update Favorites. - */ - data: XOR - /** - * Filter which Favorites to update - */ - where?: FavoritesWhereInput - /** - * Limit how many Favorites to update. - */ - limit?: number - } - - /** - * Favorites updateManyAndReturn - */ - export type FavoritesUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Favorites - */ - select?: FavoritesSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Favorites - */ - omit?: FavoritesOmit | null - /** - * The data used to update Favorites. - */ - data: XOR - /** - * Filter which Favorites to update - */ - where?: FavoritesWhereInput - /** - * Limit how many Favorites to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: FavoritesIncludeUpdateManyAndReturn | null - } - - /** - * Favorites upsert - */ - export type FavoritesUpsertArgs = { - /** - * Select specific fields to fetch from the Favorites - */ - select?: FavoritesSelect | null - /** - * Omit specific fields from the Favorites - */ - omit?: FavoritesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: FavoritesInclude | null - /** - * The filter to search for the Favorites to update in case it exists. - */ - where: FavoritesWhereUniqueInput - /** - * In case the Favorites found by the `where` argument doesn't exist, create a new Favorites with this data. - */ - create: XOR - /** - * In case the Favorites was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * Favorites delete - */ - export type FavoritesDeleteArgs = { - /** - * Select specific fields to fetch from the Favorites - */ - select?: FavoritesSelect | null - /** - * Omit specific fields from the Favorites - */ - omit?: FavoritesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: FavoritesInclude | null - /** - * Filter which Favorites to delete. - */ - where: FavoritesWhereUniqueInput - } - - /** - * Favorites deleteMany - */ - export type FavoritesDeleteManyArgs = { - /** - * Filter which Favorites to delete - */ - where?: FavoritesWhereInput - /** - * Limit how many Favorites to delete. - */ - limit?: number - } - - /** - * Favorites without action - */ - export type FavoritesDefaultArgs = { - /** - * Select specific fields to fetch from the Favorites - */ - select?: FavoritesSelect | null - /** - * Omit specific fields from the Favorites - */ - omit?: FavoritesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: FavoritesInclude | null - } - - - /** - * Model Employee - */ - - export type AggregateEmployee = { - _count: EmployeeCountAggregateOutputType | null - _avg: EmployeeAvgAggregateOutputType | null - _sum: EmployeeSumAggregateOutputType | null - _min: EmployeeMinAggregateOutputType | null - _max: EmployeeMaxAggregateOutputType | null - } - - export type EmployeeAvgAggregateOutputType = { - salary: number | null - } - - export type EmployeeSumAggregateOutputType = { - salary: number | null - } - - export type EmployeeMinAggregateOutputType = { - id: string | null - firstName: string | null - lastName: string | null - middleName: string | null - birthDate: Date | null - avatar: string | null - passportPhoto: string | null - passportSeries: string | null - passportNumber: string | null - passportIssued: string | null - passportDate: Date | null - address: string | null - position: string | null - department: string | null - hireDate: Date | null - salary: number | null - status: $Enums.EmployeeStatus | null - phone: string | null - email: string | null - telegram: string | null - whatsapp: string | null - emergencyContact: string | null - emergencyPhone: string | null - organizationId: string | null - createdAt: Date | null - updatedAt: Date | null - } - - export type EmployeeMaxAggregateOutputType = { - id: string | null - firstName: string | null - lastName: string | null - middleName: string | null - birthDate: Date | null - avatar: string | null - passportPhoto: string | null - passportSeries: string | null - passportNumber: string | null - passportIssued: string | null - passportDate: Date | null - address: string | null - position: string | null - department: string | null - hireDate: Date | null - salary: number | null - status: $Enums.EmployeeStatus | null - phone: string | null - email: string | null - telegram: string | null - whatsapp: string | null - emergencyContact: string | null - emergencyPhone: string | null - organizationId: string | null - createdAt: Date | null - updatedAt: Date | null - } - - export type EmployeeCountAggregateOutputType = { - id: number - firstName: number - lastName: number - middleName: number - birthDate: number - avatar: number - passportPhoto: number - passportSeries: number - passportNumber: number - passportIssued: number - passportDate: number - address: number - position: number - department: number - hireDate: number - salary: number - status: number - phone: number - email: number - telegram: number - whatsapp: number - emergencyContact: number - emergencyPhone: number - organizationId: number - createdAt: number - updatedAt: number - _all: number - } - - - export type EmployeeAvgAggregateInputType = { - salary?: true - } - - export type EmployeeSumAggregateInputType = { - salary?: true - } - - export type EmployeeMinAggregateInputType = { - id?: true - firstName?: true - lastName?: true - middleName?: true - birthDate?: true - avatar?: true - passportPhoto?: true - passportSeries?: true - passportNumber?: true - passportIssued?: true - passportDate?: true - address?: true - position?: true - department?: true - hireDate?: true - salary?: true - status?: true - phone?: true - email?: true - telegram?: true - whatsapp?: true - emergencyContact?: true - emergencyPhone?: true - organizationId?: true - createdAt?: true - updatedAt?: true - } - - export type EmployeeMaxAggregateInputType = { - id?: true - firstName?: true - lastName?: true - middleName?: true - birthDate?: true - avatar?: true - passportPhoto?: true - passportSeries?: true - passportNumber?: true - passportIssued?: true - passportDate?: true - address?: true - position?: true - department?: true - hireDate?: true - salary?: true - status?: true - phone?: true - email?: true - telegram?: true - whatsapp?: true - emergencyContact?: true - emergencyPhone?: true - organizationId?: true - createdAt?: true - updatedAt?: true - } - - export type EmployeeCountAggregateInputType = { - id?: true - firstName?: true - lastName?: true - middleName?: true - birthDate?: true - avatar?: true - passportPhoto?: true - passportSeries?: true - passportNumber?: true - passportIssued?: true - passportDate?: true - address?: true - position?: true - department?: true - hireDate?: true - salary?: true - status?: true - phone?: true - email?: true - telegram?: true - whatsapp?: true - emergencyContact?: true - emergencyPhone?: true - organizationId?: true - createdAt?: true - updatedAt?: true - _all?: true - } - - export type EmployeeAggregateArgs = { - /** - * Filter which Employee to aggregate. - */ - where?: EmployeeWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Employees to fetch. - */ - orderBy?: EmployeeOrderByWithRelationInput | EmployeeOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: EmployeeWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Employees 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` Employees. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Employees - **/ - _count?: true | EmployeeCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: EmployeeAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: EmployeeSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: EmployeeMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: EmployeeMaxAggregateInputType - } - - export type GetEmployeeAggregateType = { - [P in keyof T & keyof AggregateEmployee]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type EmployeeGroupByArgs = { - where?: EmployeeWhereInput - orderBy?: EmployeeOrderByWithAggregationInput | EmployeeOrderByWithAggregationInput[] - by: EmployeeScalarFieldEnum[] | EmployeeScalarFieldEnum - having?: EmployeeScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: EmployeeCountAggregateInputType | true - _avg?: EmployeeAvgAggregateInputType - _sum?: EmployeeSumAggregateInputType - _min?: EmployeeMinAggregateInputType - _max?: EmployeeMaxAggregateInputType - } - - export type EmployeeGroupByOutputType = { - id: string - firstName: string - lastName: string - middleName: string | null - birthDate: Date | null - avatar: string | null - passportPhoto: string | null - passportSeries: string | null - passportNumber: string | null - passportIssued: string | null - passportDate: Date | null - address: string | null - position: string - department: string | null - hireDate: Date - salary: number | null - status: $Enums.EmployeeStatus - phone: string - email: string | null - telegram: string | null - whatsapp: string | null - emergencyContact: string | null - emergencyPhone: string | null - organizationId: string - createdAt: Date - updatedAt: Date - _count: EmployeeCountAggregateOutputType | null - _avg: EmployeeAvgAggregateOutputType | null - _sum: EmployeeSumAggregateOutputType | null - _min: EmployeeMinAggregateOutputType | null - _max: EmployeeMaxAggregateOutputType | null - } - - type GetEmployeeGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof EmployeeGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type EmployeeSelect = $Extensions.GetSelect<{ - id?: boolean - firstName?: boolean - lastName?: boolean - middleName?: boolean - birthDate?: boolean - avatar?: boolean - passportPhoto?: boolean - passportSeries?: boolean - passportNumber?: boolean - passportIssued?: boolean - passportDate?: boolean - address?: boolean - position?: boolean - department?: boolean - hireDate?: boolean - salary?: boolean - status?: boolean - phone?: boolean - email?: boolean - telegram?: boolean - whatsapp?: boolean - emergencyContact?: boolean - emergencyPhone?: boolean - organizationId?: boolean - createdAt?: boolean - updatedAt?: boolean - scheduleRecords?: boolean | Employee$scheduleRecordsArgs - organization?: boolean | OrganizationDefaultArgs - _count?: boolean | EmployeeCountOutputTypeDefaultArgs - }, ExtArgs["result"]["employee"]> - - export type EmployeeSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - firstName?: boolean - lastName?: boolean - middleName?: boolean - birthDate?: boolean - avatar?: boolean - passportPhoto?: boolean - passportSeries?: boolean - passportNumber?: boolean - passportIssued?: boolean - passportDate?: boolean - address?: boolean - position?: boolean - department?: boolean - hireDate?: boolean - salary?: boolean - status?: boolean - phone?: boolean - email?: boolean - telegram?: boolean - whatsapp?: boolean - emergencyContact?: boolean - emergencyPhone?: boolean - organizationId?: boolean - createdAt?: boolean - updatedAt?: boolean - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["employee"]> - - export type EmployeeSelectUpdateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - firstName?: boolean - lastName?: boolean - middleName?: boolean - birthDate?: boolean - avatar?: boolean - passportPhoto?: boolean - passportSeries?: boolean - passportNumber?: boolean - passportIssued?: boolean - passportDate?: boolean - address?: boolean - position?: boolean - department?: boolean - hireDate?: boolean - salary?: boolean - status?: boolean - phone?: boolean - email?: boolean - telegram?: boolean - whatsapp?: boolean - emergencyContact?: boolean - emergencyPhone?: boolean - organizationId?: boolean - createdAt?: boolean - updatedAt?: boolean - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["employee"]> - - export type EmployeeSelectScalar = { - id?: boolean - firstName?: boolean - lastName?: boolean - middleName?: boolean - birthDate?: boolean - avatar?: boolean - passportPhoto?: boolean - passportSeries?: boolean - passportNumber?: boolean - passportIssued?: boolean - passportDate?: boolean - address?: boolean - position?: boolean - department?: boolean - hireDate?: boolean - salary?: boolean - status?: boolean - phone?: boolean - email?: boolean - telegram?: boolean - whatsapp?: boolean - emergencyContact?: boolean - emergencyPhone?: boolean - organizationId?: boolean - createdAt?: boolean - updatedAt?: boolean - } - - export type EmployeeOmit = $Extensions.GetOmit<"id" | "firstName" | "lastName" | "middleName" | "birthDate" | "avatar" | "passportPhoto" | "passportSeries" | "passportNumber" | "passportIssued" | "passportDate" | "address" | "position" | "department" | "hireDate" | "salary" | "status" | "phone" | "email" | "telegram" | "whatsapp" | "emergencyContact" | "emergencyPhone" | "organizationId" | "createdAt" | "updatedAt", ExtArgs["result"]["employee"]> - export type EmployeeInclude = { - scheduleRecords?: boolean | Employee$scheduleRecordsArgs - organization?: boolean | OrganizationDefaultArgs - _count?: boolean | EmployeeCountOutputTypeDefaultArgs - } - export type EmployeeIncludeCreateManyAndReturn = { - organization?: boolean | OrganizationDefaultArgs - } - export type EmployeeIncludeUpdateManyAndReturn = { - organization?: boolean | OrganizationDefaultArgs - } - - export type $EmployeePayload = { - name: "Employee" - objects: { - scheduleRecords: Prisma.$EmployeeSchedulePayload[] - organization: Prisma.$OrganizationPayload - } - scalars: $Extensions.GetPayloadResult<{ - id: string - firstName: string - lastName: string - middleName: string | null - birthDate: Date | null - avatar: string | null - passportPhoto: string | null - passportSeries: string | null - passportNumber: string | null - passportIssued: string | null - passportDate: Date | null - address: string | null - position: string - department: string | null - hireDate: Date - salary: number | null - status: $Enums.EmployeeStatus - phone: string - email: string | null - telegram: string | null - whatsapp: string | null - emergencyContact: string | null - emergencyPhone: string | null - organizationId: string - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["employee"]> - composites: {} - } - - type EmployeeGetPayload = $Result.GetResult - - type EmployeeCountArgs = - Omit & { - select?: EmployeeCountAggregateInputType | true - } - - export interface EmployeeDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Employee'], meta: { name: 'Employee' } } - /** - * Find zero or one Employee that matches the filter. - * @param {EmployeeFindUniqueArgs} args - Arguments to find a Employee - * @example - * // Get one Employee - * const employee = await prisma.employee.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__EmployeeClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Employee that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {EmployeeFindUniqueOrThrowArgs} args - Arguments to find a Employee - * @example - * // Get one Employee - * const employee = await prisma.employee.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__EmployeeClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Employee 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 {EmployeeFindFirstArgs} args - Arguments to find a Employee - * @example - * // Get one Employee - * const employee = await prisma.employee.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__EmployeeClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Employee 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 {EmployeeFindFirstOrThrowArgs} args - Arguments to find a Employee - * @example - * // Get one Employee - * const employee = await prisma.employee.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__EmployeeClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Employees 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 {EmployeeFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Employees - * const employees = await prisma.employee.findMany() - * - * // Get first 10 Employees - * const employees = await prisma.employee.findMany({ take: 10 }) - * - * // Only select the `id` - * const employeeWithIdOnly = await prisma.employee.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Employee. - * @param {EmployeeCreateArgs} args - Arguments to create a Employee. - * @example - * // Create one Employee - * const Employee = await prisma.employee.create({ - * data: { - * // ... data to create a Employee - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__EmployeeClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Employees. - * @param {EmployeeCreateManyArgs} args - Arguments to create many Employees. - * @example - * // Create many Employees - * const employee = await prisma.employee.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Employees and returns the data saved in the database. - * @param {EmployeeCreateManyAndReturnArgs} args - Arguments to create many Employees. - * @example - * // Create many Employees - * const employee = await prisma.employee.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Employees and only return the `id` - * const employeeWithIdOnly = await prisma.employee.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a Employee. - * @param {EmployeeDeleteArgs} args - Arguments to delete one Employee. - * @example - * // Delete one Employee - * const Employee = await prisma.employee.delete({ - * where: { - * // ... filter to delete one Employee - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__EmployeeClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Employee. - * @param {EmployeeUpdateArgs} args - Arguments to update one Employee. - * @example - * // Update one Employee - * const employee = await prisma.employee.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__EmployeeClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Employees. - * @param {EmployeeDeleteManyArgs} args - Arguments to filter Employees to delete. - * @example - * // Delete a few Employees - * const { count } = await prisma.employee.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Employees. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {EmployeeUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Employees - * const employee = await prisma.employee.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Employees and returns the data updated in the database. - * @param {EmployeeUpdateManyAndReturnArgs} args - Arguments to update many Employees. - * @example - * // Update many Employees - * const employee = await prisma.employee.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Employees and only return the `id` - * const employeeWithIdOnly = await prisma.employee.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one Employee. - * @param {EmployeeUpsertArgs} args - Arguments to update or create a Employee. - * @example - * // Update or create a Employee - * const employee = await prisma.employee.upsert({ - * create: { - * // ... data to create a Employee - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Employee we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__EmployeeClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Employees. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {EmployeeCountArgs} args - Arguments to filter Employees to count. - * @example - * // Count the number of Employees - * const count = await prisma.employee.count({ - * where: { - * // ... the filter for the Employees we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Employee. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {EmployeeAggregateArgs} 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: Subset): Prisma.PrismaPromise> - - /** - * Group by Employee. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {EmployeeGroupByArgs} 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 EmployeeGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: EmployeeGroupByArgs['orderBy'] } - : { orderBy?: EmployeeGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetEmployeeGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Employee model - */ - readonly fields: EmployeeFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for Employee. - * 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__EmployeeClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - scheduleRecords = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - organization = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $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): $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): $Utils.JsPromise - } - - - - - /** - * Fields of the Employee model - */ - interface EmployeeFieldRefs { - readonly id: FieldRef<"Employee", 'String'> - readonly firstName: FieldRef<"Employee", 'String'> - readonly lastName: FieldRef<"Employee", 'String'> - readonly middleName: FieldRef<"Employee", 'String'> - readonly birthDate: FieldRef<"Employee", 'DateTime'> - readonly avatar: FieldRef<"Employee", 'String'> - readonly passportPhoto: FieldRef<"Employee", 'String'> - readonly passportSeries: FieldRef<"Employee", 'String'> - readonly passportNumber: FieldRef<"Employee", 'String'> - readonly passportIssued: FieldRef<"Employee", 'String'> - readonly passportDate: FieldRef<"Employee", 'DateTime'> - readonly address: FieldRef<"Employee", 'String'> - readonly position: FieldRef<"Employee", 'String'> - readonly department: FieldRef<"Employee", 'String'> - readonly hireDate: FieldRef<"Employee", 'DateTime'> - readonly salary: FieldRef<"Employee", 'Float'> - readonly status: FieldRef<"Employee", 'EmployeeStatus'> - readonly phone: FieldRef<"Employee", 'String'> - readonly email: FieldRef<"Employee", 'String'> - readonly telegram: FieldRef<"Employee", 'String'> - readonly whatsapp: FieldRef<"Employee", 'String'> - readonly emergencyContact: FieldRef<"Employee", 'String'> - readonly emergencyPhone: FieldRef<"Employee", 'String'> - readonly organizationId: FieldRef<"Employee", 'String'> - readonly createdAt: FieldRef<"Employee", 'DateTime'> - readonly updatedAt: FieldRef<"Employee", 'DateTime'> - } - - - // Custom InputTypes - /** - * Employee findUnique - */ - export type EmployeeFindUniqueArgs = { - /** - * Select specific fields to fetch from the Employee - */ - select?: EmployeeSelect | null - /** - * Omit specific fields from the Employee - */ - omit?: EmployeeOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeInclude | null - /** - * Filter, which Employee to fetch. - */ - where: EmployeeWhereUniqueInput - } - - /** - * Employee findUniqueOrThrow - */ - export type EmployeeFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Employee - */ - select?: EmployeeSelect | null - /** - * Omit specific fields from the Employee - */ - omit?: EmployeeOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeInclude | null - /** - * Filter, which Employee to fetch. - */ - where: EmployeeWhereUniqueInput - } - - /** - * Employee findFirst - */ - export type EmployeeFindFirstArgs = { - /** - * Select specific fields to fetch from the Employee - */ - select?: EmployeeSelect | null - /** - * Omit specific fields from the Employee - */ - omit?: EmployeeOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeInclude | null - /** - * Filter, which Employee to fetch. - */ - where?: EmployeeWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Employees to fetch. - */ - orderBy?: EmployeeOrderByWithRelationInput | EmployeeOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Employees. - */ - cursor?: EmployeeWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Employees 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` Employees. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Employees. - */ - distinct?: EmployeeScalarFieldEnum | EmployeeScalarFieldEnum[] - } - - /** - * Employee findFirstOrThrow - */ - export type EmployeeFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Employee - */ - select?: EmployeeSelect | null - /** - * Omit specific fields from the Employee - */ - omit?: EmployeeOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeInclude | null - /** - * Filter, which Employee to fetch. - */ - where?: EmployeeWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Employees to fetch. - */ - orderBy?: EmployeeOrderByWithRelationInput | EmployeeOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Employees. - */ - cursor?: EmployeeWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Employees 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` Employees. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Employees. - */ - distinct?: EmployeeScalarFieldEnum | EmployeeScalarFieldEnum[] - } - - /** - * Employee findMany - */ - export type EmployeeFindManyArgs = { - /** - * Select specific fields to fetch from the Employee - */ - select?: EmployeeSelect | null - /** - * Omit specific fields from the Employee - */ - omit?: EmployeeOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeInclude | null - /** - * Filter, which Employees to fetch. - */ - where?: EmployeeWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Employees to fetch. - */ - orderBy?: EmployeeOrderByWithRelationInput | EmployeeOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Employees. - */ - cursor?: EmployeeWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Employees 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` Employees. - */ - skip?: number - distinct?: EmployeeScalarFieldEnum | EmployeeScalarFieldEnum[] - } - - /** - * Employee create - */ - export type EmployeeCreateArgs = { - /** - * Select specific fields to fetch from the Employee - */ - select?: EmployeeSelect | null - /** - * Omit specific fields from the Employee - */ - omit?: EmployeeOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeInclude | null - /** - * The data needed to create a Employee. - */ - data: XOR - } - - /** - * Employee createMany - */ - export type EmployeeCreateManyArgs = { - /** - * The data used to create many Employees. - */ - data: EmployeeCreateManyInput | EmployeeCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * Employee createManyAndReturn - */ - export type EmployeeCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Employee - */ - select?: EmployeeSelectCreateManyAndReturn | null - /** - * Omit specific fields from the Employee - */ - omit?: EmployeeOmit | null - /** - * The data used to create many Employees. - */ - data: EmployeeCreateManyInput | EmployeeCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeIncludeCreateManyAndReturn | null - } - - /** - * Employee update - */ - export type EmployeeUpdateArgs = { - /** - * Select specific fields to fetch from the Employee - */ - select?: EmployeeSelect | null - /** - * Omit specific fields from the Employee - */ - omit?: EmployeeOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeInclude | null - /** - * The data needed to update a Employee. - */ - data: XOR - /** - * Choose, which Employee to update. - */ - where: EmployeeWhereUniqueInput - } - - /** - * Employee updateMany - */ - export type EmployeeUpdateManyArgs = { - /** - * The data used to update Employees. - */ - data: XOR - /** - * Filter which Employees to update - */ - where?: EmployeeWhereInput - /** - * Limit how many Employees to update. - */ - limit?: number - } - - /** - * Employee updateManyAndReturn - */ - export type EmployeeUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Employee - */ - select?: EmployeeSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Employee - */ - omit?: EmployeeOmit | null - /** - * The data used to update Employees. - */ - data: XOR - /** - * Filter which Employees to update - */ - where?: EmployeeWhereInput - /** - * Limit how many Employees to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeIncludeUpdateManyAndReturn | null - } - - /** - * Employee upsert - */ - export type EmployeeUpsertArgs = { - /** - * Select specific fields to fetch from the Employee - */ - select?: EmployeeSelect | null - /** - * Omit specific fields from the Employee - */ - omit?: EmployeeOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeInclude | null - /** - * The filter to search for the Employee to update in case it exists. - */ - where: EmployeeWhereUniqueInput - /** - * In case the Employee found by the `where` argument doesn't exist, create a new Employee with this data. - */ - create: XOR - /** - * In case the Employee was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * Employee delete - */ - export type EmployeeDeleteArgs = { - /** - * Select specific fields to fetch from the Employee - */ - select?: EmployeeSelect | null - /** - * Omit specific fields from the Employee - */ - omit?: EmployeeOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeInclude | null - /** - * Filter which Employee to delete. - */ - where: EmployeeWhereUniqueInput - } - - /** - * Employee deleteMany - */ - export type EmployeeDeleteManyArgs = { - /** - * Filter which Employees to delete - */ - where?: EmployeeWhereInput - /** - * Limit how many Employees to delete. - */ - limit?: number - } - - /** - * Employee.scheduleRecords - */ - export type Employee$scheduleRecordsArgs = { - /** - * Select specific fields to fetch from the EmployeeSchedule - */ - select?: EmployeeScheduleSelect | null - /** - * Omit specific fields from the EmployeeSchedule - */ - omit?: EmployeeScheduleOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeScheduleInclude | null - where?: EmployeeScheduleWhereInput - orderBy?: EmployeeScheduleOrderByWithRelationInput | EmployeeScheduleOrderByWithRelationInput[] - cursor?: EmployeeScheduleWhereUniqueInput - take?: number - skip?: number - distinct?: EmployeeScheduleScalarFieldEnum | EmployeeScheduleScalarFieldEnum[] - } - - /** - * Employee without action - */ - export type EmployeeDefaultArgs = { - /** - * Select specific fields to fetch from the Employee - */ - select?: EmployeeSelect | null - /** - * Omit specific fields from the Employee - */ - omit?: EmployeeOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeInclude | null - } - - - /** - * Model EmployeeSchedule - */ - - export type AggregateEmployeeSchedule = { - _count: EmployeeScheduleCountAggregateOutputType | null - _avg: EmployeeScheduleAvgAggregateOutputType | null - _sum: EmployeeScheduleSumAggregateOutputType | null - _min: EmployeeScheduleMinAggregateOutputType | null - _max: EmployeeScheduleMaxAggregateOutputType | null - } - - export type EmployeeScheduleAvgAggregateOutputType = { - hoursWorked: number | null - } - - export type EmployeeScheduleSumAggregateOutputType = { - hoursWorked: number | null - } - - export type EmployeeScheduleMinAggregateOutputType = { - id: string | null - date: Date | null - status: $Enums.ScheduleStatus | null - hoursWorked: number | null - notes: string | null - employeeId: string | null - createdAt: Date | null - updatedAt: Date | null - } - - export type EmployeeScheduleMaxAggregateOutputType = { - id: string | null - date: Date | null - status: $Enums.ScheduleStatus | null - hoursWorked: number | null - notes: string | null - employeeId: string | null - createdAt: Date | null - updatedAt: Date | null - } - - export type EmployeeScheduleCountAggregateOutputType = { - id: number - date: number - status: number - hoursWorked: number - notes: number - employeeId: number - createdAt: number - updatedAt: number - _all: number - } - - - export type EmployeeScheduleAvgAggregateInputType = { - hoursWorked?: true - } - - export type EmployeeScheduleSumAggregateInputType = { - hoursWorked?: true - } - - export type EmployeeScheduleMinAggregateInputType = { - id?: true - date?: true - status?: true - hoursWorked?: true - notes?: true - employeeId?: true - createdAt?: true - updatedAt?: true - } - - export type EmployeeScheduleMaxAggregateInputType = { - id?: true - date?: true - status?: true - hoursWorked?: true - notes?: true - employeeId?: true - createdAt?: true - updatedAt?: true - } - - export type EmployeeScheduleCountAggregateInputType = { - id?: true - date?: true - status?: true - hoursWorked?: true - notes?: true - employeeId?: true - createdAt?: true - updatedAt?: true - _all?: true - } - - export type EmployeeScheduleAggregateArgs = { - /** - * Filter which EmployeeSchedule to aggregate. - */ - where?: EmployeeScheduleWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of EmployeeSchedules to fetch. - */ - orderBy?: EmployeeScheduleOrderByWithRelationInput | EmployeeScheduleOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: EmployeeScheduleWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` EmployeeSchedules 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` EmployeeSchedules. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned EmployeeSchedules - **/ - _count?: true | EmployeeScheduleCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: EmployeeScheduleAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: EmployeeScheduleSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: EmployeeScheduleMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: EmployeeScheduleMaxAggregateInputType - } - - export type GetEmployeeScheduleAggregateType = { - [P in keyof T & keyof AggregateEmployeeSchedule]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type EmployeeScheduleGroupByArgs = { - where?: EmployeeScheduleWhereInput - orderBy?: EmployeeScheduleOrderByWithAggregationInput | EmployeeScheduleOrderByWithAggregationInput[] - by: EmployeeScheduleScalarFieldEnum[] | EmployeeScheduleScalarFieldEnum - having?: EmployeeScheduleScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: EmployeeScheduleCountAggregateInputType | true - _avg?: EmployeeScheduleAvgAggregateInputType - _sum?: EmployeeScheduleSumAggregateInputType - _min?: EmployeeScheduleMinAggregateInputType - _max?: EmployeeScheduleMaxAggregateInputType - } - - export type EmployeeScheduleGroupByOutputType = { - id: string - date: Date - status: $Enums.ScheduleStatus - hoursWorked: number | null - notes: string | null - employeeId: string - createdAt: Date - updatedAt: Date - _count: EmployeeScheduleCountAggregateOutputType | null - _avg: EmployeeScheduleAvgAggregateOutputType | null - _sum: EmployeeScheduleSumAggregateOutputType | null - _min: EmployeeScheduleMinAggregateOutputType | null - _max: EmployeeScheduleMaxAggregateOutputType | null - } - - type GetEmployeeScheduleGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof EmployeeScheduleGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type EmployeeScheduleSelect = $Extensions.GetSelect<{ - id?: boolean - date?: boolean - status?: boolean - hoursWorked?: boolean - notes?: boolean - employeeId?: boolean - createdAt?: boolean - updatedAt?: boolean - employee?: boolean | EmployeeDefaultArgs - }, ExtArgs["result"]["employeeSchedule"]> - - export type EmployeeScheduleSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - date?: boolean - status?: boolean - hoursWorked?: boolean - notes?: boolean - employeeId?: boolean - createdAt?: boolean - updatedAt?: boolean - employee?: boolean | EmployeeDefaultArgs - }, ExtArgs["result"]["employeeSchedule"]> - - export type EmployeeScheduleSelectUpdateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - date?: boolean - status?: boolean - hoursWorked?: boolean - notes?: boolean - employeeId?: boolean - createdAt?: boolean - updatedAt?: boolean - employee?: boolean | EmployeeDefaultArgs - }, ExtArgs["result"]["employeeSchedule"]> - - export type EmployeeScheduleSelectScalar = { - id?: boolean - date?: boolean - status?: boolean - hoursWorked?: boolean - notes?: boolean - employeeId?: boolean - createdAt?: boolean - updatedAt?: boolean - } - - export type EmployeeScheduleOmit = $Extensions.GetOmit<"id" | "date" | "status" | "hoursWorked" | "notes" | "employeeId" | "createdAt" | "updatedAt", ExtArgs["result"]["employeeSchedule"]> - export type EmployeeScheduleInclude = { - employee?: boolean | EmployeeDefaultArgs - } - export type EmployeeScheduleIncludeCreateManyAndReturn = { - employee?: boolean | EmployeeDefaultArgs - } - export type EmployeeScheduleIncludeUpdateManyAndReturn = { - employee?: boolean | EmployeeDefaultArgs - } - - export type $EmployeeSchedulePayload = { - name: "EmployeeSchedule" - objects: { - employee: Prisma.$EmployeePayload - } - scalars: $Extensions.GetPayloadResult<{ - id: string - date: Date - status: $Enums.ScheduleStatus - hoursWorked: number | null - notes: string | null - employeeId: string - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["employeeSchedule"]> - composites: {} - } - - type EmployeeScheduleGetPayload = $Result.GetResult - - type EmployeeScheduleCountArgs = - Omit & { - select?: EmployeeScheduleCountAggregateInputType | true - } - - export interface EmployeeScheduleDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['EmployeeSchedule'], meta: { name: 'EmployeeSchedule' } } - /** - * Find zero or one EmployeeSchedule that matches the filter. - * @param {EmployeeScheduleFindUniqueArgs} args - Arguments to find a EmployeeSchedule - * @example - * // Get one EmployeeSchedule - * const employeeSchedule = await prisma.employeeSchedule.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__EmployeeScheduleClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one EmployeeSchedule that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {EmployeeScheduleFindUniqueOrThrowArgs} args - Arguments to find a EmployeeSchedule - * @example - * // Get one EmployeeSchedule - * const employeeSchedule = await prisma.employeeSchedule.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__EmployeeScheduleClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first EmployeeSchedule 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 {EmployeeScheduleFindFirstArgs} args - Arguments to find a EmployeeSchedule - * @example - * // Get one EmployeeSchedule - * const employeeSchedule = await prisma.employeeSchedule.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__EmployeeScheduleClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first EmployeeSchedule 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 {EmployeeScheduleFindFirstOrThrowArgs} args - Arguments to find a EmployeeSchedule - * @example - * // Get one EmployeeSchedule - * const employeeSchedule = await prisma.employeeSchedule.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__EmployeeScheduleClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more EmployeeSchedules 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 {EmployeeScheduleFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all EmployeeSchedules - * const employeeSchedules = await prisma.employeeSchedule.findMany() - * - * // Get first 10 EmployeeSchedules - * const employeeSchedules = await prisma.employeeSchedule.findMany({ take: 10 }) - * - * // Only select the `id` - * const employeeScheduleWithIdOnly = await prisma.employeeSchedule.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> - - /** - * Create a EmployeeSchedule. - * @param {EmployeeScheduleCreateArgs} args - Arguments to create a EmployeeSchedule. - * @example - * // Create one EmployeeSchedule - * const EmployeeSchedule = await prisma.employeeSchedule.create({ - * data: { - * // ... data to create a EmployeeSchedule - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__EmployeeScheduleClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many EmployeeSchedules. - * @param {EmployeeScheduleCreateManyArgs} args - Arguments to create many EmployeeSchedules. - * @example - * // Create many EmployeeSchedules - * const employeeSchedule = await prisma.employeeSchedule.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many EmployeeSchedules and returns the data saved in the database. - * @param {EmployeeScheduleCreateManyAndReturnArgs} args - Arguments to create many EmployeeSchedules. - * @example - * // Create many EmployeeSchedules - * const employeeSchedule = await prisma.employeeSchedule.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many EmployeeSchedules and only return the `id` - * const employeeScheduleWithIdOnly = await prisma.employeeSchedule.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a EmployeeSchedule. - * @param {EmployeeScheduleDeleteArgs} args - Arguments to delete one EmployeeSchedule. - * @example - * // Delete one EmployeeSchedule - * const EmployeeSchedule = await prisma.employeeSchedule.delete({ - * where: { - * // ... filter to delete one EmployeeSchedule - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__EmployeeScheduleClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one EmployeeSchedule. - * @param {EmployeeScheduleUpdateArgs} args - Arguments to update one EmployeeSchedule. - * @example - * // Update one EmployeeSchedule - * const employeeSchedule = await prisma.employeeSchedule.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__EmployeeScheduleClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more EmployeeSchedules. - * @param {EmployeeScheduleDeleteManyArgs} args - Arguments to filter EmployeeSchedules to delete. - * @example - * // Delete a few EmployeeSchedules - * const { count } = await prisma.employeeSchedule.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more EmployeeSchedules. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {EmployeeScheduleUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many EmployeeSchedules - * const employeeSchedule = await prisma.employeeSchedule.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more EmployeeSchedules and returns the data updated in the database. - * @param {EmployeeScheduleUpdateManyAndReturnArgs} args - Arguments to update many EmployeeSchedules. - * @example - * // Update many EmployeeSchedules - * const employeeSchedule = await prisma.employeeSchedule.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more EmployeeSchedules and only return the `id` - * const employeeScheduleWithIdOnly = await prisma.employeeSchedule.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one EmployeeSchedule. - * @param {EmployeeScheduleUpsertArgs} args - Arguments to update or create a EmployeeSchedule. - * @example - * // Update or create a EmployeeSchedule - * const employeeSchedule = await prisma.employeeSchedule.upsert({ - * create: { - * // ... data to create a EmployeeSchedule - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the EmployeeSchedule we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__EmployeeScheduleClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of EmployeeSchedules. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {EmployeeScheduleCountArgs} args - Arguments to filter EmployeeSchedules to count. - * @example - * // Count the number of EmployeeSchedules - * const count = await prisma.employeeSchedule.count({ - * where: { - * // ... the filter for the EmployeeSchedules we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a EmployeeSchedule. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {EmployeeScheduleAggregateArgs} 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: Subset): Prisma.PrismaPromise> - - /** - * Group by EmployeeSchedule. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {EmployeeScheduleGroupByArgs} 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 EmployeeScheduleGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: EmployeeScheduleGroupByArgs['orderBy'] } - : { orderBy?: EmployeeScheduleGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetEmployeeScheduleGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the EmployeeSchedule model - */ - readonly fields: EmployeeScheduleFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for EmployeeSchedule. - * 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__EmployeeScheduleClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - employee = {}>(args?: Subset>): Prisma__EmployeeClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $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): $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): $Utils.JsPromise - } - - - - - /** - * Fields of the EmployeeSchedule model - */ - interface EmployeeScheduleFieldRefs { - readonly id: FieldRef<"EmployeeSchedule", 'String'> - readonly date: FieldRef<"EmployeeSchedule", 'DateTime'> - readonly status: FieldRef<"EmployeeSchedule", 'ScheduleStatus'> - readonly hoursWorked: FieldRef<"EmployeeSchedule", 'Float'> - readonly notes: FieldRef<"EmployeeSchedule", 'String'> - readonly employeeId: FieldRef<"EmployeeSchedule", 'String'> - readonly createdAt: FieldRef<"EmployeeSchedule", 'DateTime'> - readonly updatedAt: FieldRef<"EmployeeSchedule", 'DateTime'> - } - - - // Custom InputTypes - /** - * EmployeeSchedule findUnique - */ - export type EmployeeScheduleFindUniqueArgs = { - /** - * Select specific fields to fetch from the EmployeeSchedule - */ - select?: EmployeeScheduleSelect | null - /** - * Omit specific fields from the EmployeeSchedule - */ - omit?: EmployeeScheduleOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeScheduleInclude | null - /** - * Filter, which EmployeeSchedule to fetch. - */ - where: EmployeeScheduleWhereUniqueInput - } - - /** - * EmployeeSchedule findUniqueOrThrow - */ - export type EmployeeScheduleFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the EmployeeSchedule - */ - select?: EmployeeScheduleSelect | null - /** - * Omit specific fields from the EmployeeSchedule - */ - omit?: EmployeeScheduleOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeScheduleInclude | null - /** - * Filter, which EmployeeSchedule to fetch. - */ - where: EmployeeScheduleWhereUniqueInput - } - - /** - * EmployeeSchedule findFirst - */ - export type EmployeeScheduleFindFirstArgs = { - /** - * Select specific fields to fetch from the EmployeeSchedule - */ - select?: EmployeeScheduleSelect | null - /** - * Omit specific fields from the EmployeeSchedule - */ - omit?: EmployeeScheduleOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeScheduleInclude | null - /** - * Filter, which EmployeeSchedule to fetch. - */ - where?: EmployeeScheduleWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of EmployeeSchedules to fetch. - */ - orderBy?: EmployeeScheduleOrderByWithRelationInput | EmployeeScheduleOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for EmployeeSchedules. - */ - cursor?: EmployeeScheduleWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` EmployeeSchedules 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` EmployeeSchedules. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of EmployeeSchedules. - */ - distinct?: EmployeeScheduleScalarFieldEnum | EmployeeScheduleScalarFieldEnum[] - } - - /** - * EmployeeSchedule findFirstOrThrow - */ - export type EmployeeScheduleFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the EmployeeSchedule - */ - select?: EmployeeScheduleSelect | null - /** - * Omit specific fields from the EmployeeSchedule - */ - omit?: EmployeeScheduleOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeScheduleInclude | null - /** - * Filter, which EmployeeSchedule to fetch. - */ - where?: EmployeeScheduleWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of EmployeeSchedules to fetch. - */ - orderBy?: EmployeeScheduleOrderByWithRelationInput | EmployeeScheduleOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for EmployeeSchedules. - */ - cursor?: EmployeeScheduleWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` EmployeeSchedules 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` EmployeeSchedules. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of EmployeeSchedules. - */ - distinct?: EmployeeScheduleScalarFieldEnum | EmployeeScheduleScalarFieldEnum[] - } - - /** - * EmployeeSchedule findMany - */ - export type EmployeeScheduleFindManyArgs = { - /** - * Select specific fields to fetch from the EmployeeSchedule - */ - select?: EmployeeScheduleSelect | null - /** - * Omit specific fields from the EmployeeSchedule - */ - omit?: EmployeeScheduleOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeScheduleInclude | null - /** - * Filter, which EmployeeSchedules to fetch. - */ - where?: EmployeeScheduleWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of EmployeeSchedules to fetch. - */ - orderBy?: EmployeeScheduleOrderByWithRelationInput | EmployeeScheduleOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing EmployeeSchedules. - */ - cursor?: EmployeeScheduleWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` EmployeeSchedules 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` EmployeeSchedules. - */ - skip?: number - distinct?: EmployeeScheduleScalarFieldEnum | EmployeeScheduleScalarFieldEnum[] - } - - /** - * EmployeeSchedule create - */ - export type EmployeeScheduleCreateArgs = { - /** - * Select specific fields to fetch from the EmployeeSchedule - */ - select?: EmployeeScheduleSelect | null - /** - * Omit specific fields from the EmployeeSchedule - */ - omit?: EmployeeScheduleOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeScheduleInclude | null - /** - * The data needed to create a EmployeeSchedule. - */ - data: XOR - } - - /** - * EmployeeSchedule createMany - */ - export type EmployeeScheduleCreateManyArgs = { - /** - * The data used to create many EmployeeSchedules. - */ - data: EmployeeScheduleCreateManyInput | EmployeeScheduleCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * EmployeeSchedule createManyAndReturn - */ - export type EmployeeScheduleCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the EmployeeSchedule - */ - select?: EmployeeScheduleSelectCreateManyAndReturn | null - /** - * Omit specific fields from the EmployeeSchedule - */ - omit?: EmployeeScheduleOmit | null - /** - * The data used to create many EmployeeSchedules. - */ - data: EmployeeScheduleCreateManyInput | EmployeeScheduleCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeScheduleIncludeCreateManyAndReturn | null - } - - /** - * EmployeeSchedule update - */ - export type EmployeeScheduleUpdateArgs = { - /** - * Select specific fields to fetch from the EmployeeSchedule - */ - select?: EmployeeScheduleSelect | null - /** - * Omit specific fields from the EmployeeSchedule - */ - omit?: EmployeeScheduleOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeScheduleInclude | null - /** - * The data needed to update a EmployeeSchedule. - */ - data: XOR - /** - * Choose, which EmployeeSchedule to update. - */ - where: EmployeeScheduleWhereUniqueInput - } - - /** - * EmployeeSchedule updateMany - */ - export type EmployeeScheduleUpdateManyArgs = { - /** - * The data used to update EmployeeSchedules. - */ - data: XOR - /** - * Filter which EmployeeSchedules to update - */ - where?: EmployeeScheduleWhereInput - /** - * Limit how many EmployeeSchedules to update. - */ - limit?: number - } - - /** - * EmployeeSchedule updateManyAndReturn - */ - export type EmployeeScheduleUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the EmployeeSchedule - */ - select?: EmployeeScheduleSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the EmployeeSchedule - */ - omit?: EmployeeScheduleOmit | null - /** - * The data used to update EmployeeSchedules. - */ - data: XOR - /** - * Filter which EmployeeSchedules to update - */ - where?: EmployeeScheduleWhereInput - /** - * Limit how many EmployeeSchedules to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeScheduleIncludeUpdateManyAndReturn | null - } - - /** - * EmployeeSchedule upsert - */ - export type EmployeeScheduleUpsertArgs = { - /** - * Select specific fields to fetch from the EmployeeSchedule - */ - select?: EmployeeScheduleSelect | null - /** - * Omit specific fields from the EmployeeSchedule - */ - omit?: EmployeeScheduleOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeScheduleInclude | null - /** - * The filter to search for the EmployeeSchedule to update in case it exists. - */ - where: EmployeeScheduleWhereUniqueInput - /** - * In case the EmployeeSchedule found by the `where` argument doesn't exist, create a new EmployeeSchedule with this data. - */ - create: XOR - /** - * In case the EmployeeSchedule was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * EmployeeSchedule delete - */ - export type EmployeeScheduleDeleteArgs = { - /** - * Select specific fields to fetch from the EmployeeSchedule - */ - select?: EmployeeScheduleSelect | null - /** - * Omit specific fields from the EmployeeSchedule - */ - omit?: EmployeeScheduleOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeScheduleInclude | null - /** - * Filter which EmployeeSchedule to delete. - */ - where: EmployeeScheduleWhereUniqueInput - } - - /** - * EmployeeSchedule deleteMany - */ - export type EmployeeScheduleDeleteManyArgs = { - /** - * Filter which EmployeeSchedules to delete - */ - where?: EmployeeScheduleWhereInput - /** - * Limit how many EmployeeSchedules to delete. - */ - limit?: number - } - - /** - * EmployeeSchedule without action - */ - export type EmployeeScheduleDefaultArgs = { - /** - * Select specific fields to fetch from the EmployeeSchedule - */ - select?: EmployeeScheduleSelect | null - /** - * Omit specific fields from the EmployeeSchedule - */ - omit?: EmployeeScheduleOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: EmployeeScheduleInclude | null - } - - - /** - * Model WildberriesSupply - */ - - export type AggregateWildberriesSupply = { - _count: WildberriesSupplyCountAggregateOutputType | null - _avg: WildberriesSupplyAvgAggregateOutputType | null - _sum: WildberriesSupplySumAggregateOutputType | null - _min: WildberriesSupplyMinAggregateOutputType | null - _max: WildberriesSupplyMaxAggregateOutputType | null - } - - export type WildberriesSupplyAvgAggregateOutputType = { - totalAmount: Decimal | null - totalItems: number | null - } - - export type WildberriesSupplySumAggregateOutputType = { - totalAmount: Decimal | null - totalItems: number | null - } - - export type WildberriesSupplyMinAggregateOutputType = { - id: string | null - organizationId: string | null - deliveryDate: Date | null - status: $Enums.WildberriesSupplyStatus | null - totalAmount: Decimal | null - totalItems: number | null - createdAt: Date | null - updatedAt: Date | null - } - - export type WildberriesSupplyMaxAggregateOutputType = { - id: string | null - organizationId: string | null - deliveryDate: Date | null - status: $Enums.WildberriesSupplyStatus | null - totalAmount: Decimal | null - totalItems: number | null - createdAt: Date | null - updatedAt: Date | null - } - - export type WildberriesSupplyCountAggregateOutputType = { - id: number - organizationId: number - deliveryDate: number - status: number - totalAmount: number - totalItems: number - createdAt: number - updatedAt: number - _all: number - } - - - export type WildberriesSupplyAvgAggregateInputType = { - totalAmount?: true - totalItems?: true - } - - export type WildberriesSupplySumAggregateInputType = { - totalAmount?: true - totalItems?: true - } - - export type WildberriesSupplyMinAggregateInputType = { - id?: true - organizationId?: true - deliveryDate?: true - status?: true - totalAmount?: true - totalItems?: true - createdAt?: true - updatedAt?: true - } - - export type WildberriesSupplyMaxAggregateInputType = { - id?: true - organizationId?: true - deliveryDate?: true - status?: true - totalAmount?: true - totalItems?: true - createdAt?: true - updatedAt?: true - } - - export type WildberriesSupplyCountAggregateInputType = { - id?: true - organizationId?: true - deliveryDate?: true - status?: true - totalAmount?: true - totalItems?: true - createdAt?: true - updatedAt?: true - _all?: true - } - - export type WildberriesSupplyAggregateArgs = { - /** - * Filter which WildberriesSupply to aggregate. - */ - where?: WildberriesSupplyWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of WildberriesSupplies to fetch. - */ - orderBy?: WildberriesSupplyOrderByWithRelationInput | WildberriesSupplyOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: WildberriesSupplyWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` WildberriesSupplies 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` WildberriesSupplies. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned WildberriesSupplies - **/ - _count?: true | WildberriesSupplyCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: WildberriesSupplyAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: WildberriesSupplySumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: WildberriesSupplyMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: WildberriesSupplyMaxAggregateInputType - } - - export type GetWildberriesSupplyAggregateType = { - [P in keyof T & keyof AggregateWildberriesSupply]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type WildberriesSupplyGroupByArgs = { - where?: WildberriesSupplyWhereInput - orderBy?: WildberriesSupplyOrderByWithAggregationInput | WildberriesSupplyOrderByWithAggregationInput[] - by: WildberriesSupplyScalarFieldEnum[] | WildberriesSupplyScalarFieldEnum - having?: WildberriesSupplyScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: WildberriesSupplyCountAggregateInputType | true - _avg?: WildberriesSupplyAvgAggregateInputType - _sum?: WildberriesSupplySumAggregateInputType - _min?: WildberriesSupplyMinAggregateInputType - _max?: WildberriesSupplyMaxAggregateInputType - } - - export type WildberriesSupplyGroupByOutputType = { - id: string - organizationId: string - deliveryDate: Date | null - status: $Enums.WildberriesSupplyStatus - totalAmount: Decimal - totalItems: number - createdAt: Date - updatedAt: Date - _count: WildberriesSupplyCountAggregateOutputType | null - _avg: WildberriesSupplyAvgAggregateOutputType | null - _sum: WildberriesSupplySumAggregateOutputType | null - _min: WildberriesSupplyMinAggregateOutputType | null - _max: WildberriesSupplyMaxAggregateOutputType | null - } - - type GetWildberriesSupplyGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof WildberriesSupplyGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type WildberriesSupplySelect = $Extensions.GetSelect<{ - id?: boolean - organizationId?: boolean - deliveryDate?: boolean - status?: boolean - totalAmount?: boolean - totalItems?: boolean - createdAt?: boolean - updatedAt?: boolean - organization?: boolean | OrganizationDefaultArgs - cards?: boolean | WildberriesSupply$cardsArgs - _count?: boolean | WildberriesSupplyCountOutputTypeDefaultArgs - }, ExtArgs["result"]["wildberriesSupply"]> - - export type WildberriesSupplySelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - organizationId?: boolean - deliveryDate?: boolean - status?: boolean - totalAmount?: boolean - totalItems?: boolean - createdAt?: boolean - updatedAt?: boolean - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["wildberriesSupply"]> - - export type WildberriesSupplySelectUpdateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - organizationId?: boolean - deliveryDate?: boolean - status?: boolean - totalAmount?: boolean - totalItems?: boolean - createdAt?: boolean - updatedAt?: boolean - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["wildberriesSupply"]> - - export type WildberriesSupplySelectScalar = { - id?: boolean - organizationId?: boolean - deliveryDate?: boolean - status?: boolean - totalAmount?: boolean - totalItems?: boolean - createdAt?: boolean - updatedAt?: boolean - } - - export type WildberriesSupplyOmit = $Extensions.GetOmit<"id" | "organizationId" | "deliveryDate" | "status" | "totalAmount" | "totalItems" | "createdAt" | "updatedAt", ExtArgs["result"]["wildberriesSupply"]> - export type WildberriesSupplyInclude = { - organization?: boolean | OrganizationDefaultArgs - cards?: boolean | WildberriesSupply$cardsArgs - _count?: boolean | WildberriesSupplyCountOutputTypeDefaultArgs - } - export type WildberriesSupplyIncludeCreateManyAndReturn = { - organization?: boolean | OrganizationDefaultArgs - } - export type WildberriesSupplyIncludeUpdateManyAndReturn = { - organization?: boolean | OrganizationDefaultArgs - } - - export type $WildberriesSupplyPayload = { - name: "WildberriesSupply" - objects: { - organization: Prisma.$OrganizationPayload - cards: Prisma.$WildberriesSupplyCardPayload[] - } - scalars: $Extensions.GetPayloadResult<{ - id: string - organizationId: string - deliveryDate: Date | null - status: $Enums.WildberriesSupplyStatus - totalAmount: Prisma.Decimal - totalItems: number - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["wildberriesSupply"]> - composites: {} - } - - type WildberriesSupplyGetPayload = $Result.GetResult - - type WildberriesSupplyCountArgs = - Omit & { - select?: WildberriesSupplyCountAggregateInputType | true - } - - export interface WildberriesSupplyDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['WildberriesSupply'], meta: { name: 'WildberriesSupply' } } - /** - * Find zero or one WildberriesSupply that matches the filter. - * @param {WildberriesSupplyFindUniqueArgs} args - Arguments to find a WildberriesSupply - * @example - * // Get one WildberriesSupply - * const wildberriesSupply = await prisma.wildberriesSupply.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__WildberriesSupplyClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one WildberriesSupply that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {WildberriesSupplyFindUniqueOrThrowArgs} args - Arguments to find a WildberriesSupply - * @example - * // Get one WildberriesSupply - * const wildberriesSupply = await prisma.wildberriesSupply.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__WildberriesSupplyClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first WildberriesSupply 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 {WildberriesSupplyFindFirstArgs} args - Arguments to find a WildberriesSupply - * @example - * // Get one WildberriesSupply - * const wildberriesSupply = await prisma.wildberriesSupply.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__WildberriesSupplyClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first WildberriesSupply 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 {WildberriesSupplyFindFirstOrThrowArgs} args - Arguments to find a WildberriesSupply - * @example - * // Get one WildberriesSupply - * const wildberriesSupply = await prisma.wildberriesSupply.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__WildberriesSupplyClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more WildberriesSupplies 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 {WildberriesSupplyFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all WildberriesSupplies - * const wildberriesSupplies = await prisma.wildberriesSupply.findMany() - * - * // Get first 10 WildberriesSupplies - * const wildberriesSupplies = await prisma.wildberriesSupply.findMany({ take: 10 }) - * - * // Only select the `id` - * const wildberriesSupplyWithIdOnly = await prisma.wildberriesSupply.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> - - /** - * Create a WildberriesSupply. - * @param {WildberriesSupplyCreateArgs} args - Arguments to create a WildberriesSupply. - * @example - * // Create one WildberriesSupply - * const WildberriesSupply = await prisma.wildberriesSupply.create({ - * data: { - * // ... data to create a WildberriesSupply - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__WildberriesSupplyClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many WildberriesSupplies. - * @param {WildberriesSupplyCreateManyArgs} args - Arguments to create many WildberriesSupplies. - * @example - * // Create many WildberriesSupplies - * const wildberriesSupply = await prisma.wildberriesSupply.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many WildberriesSupplies and returns the data saved in the database. - * @param {WildberriesSupplyCreateManyAndReturnArgs} args - Arguments to create many WildberriesSupplies. - * @example - * // Create many WildberriesSupplies - * const wildberriesSupply = await prisma.wildberriesSupply.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many WildberriesSupplies and only return the `id` - * const wildberriesSupplyWithIdOnly = await prisma.wildberriesSupply.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a WildberriesSupply. - * @param {WildberriesSupplyDeleteArgs} args - Arguments to delete one WildberriesSupply. - * @example - * // Delete one WildberriesSupply - * const WildberriesSupply = await prisma.wildberriesSupply.delete({ - * where: { - * // ... filter to delete one WildberriesSupply - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__WildberriesSupplyClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one WildberriesSupply. - * @param {WildberriesSupplyUpdateArgs} args - Arguments to update one WildberriesSupply. - * @example - * // Update one WildberriesSupply - * const wildberriesSupply = await prisma.wildberriesSupply.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__WildberriesSupplyClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more WildberriesSupplies. - * @param {WildberriesSupplyDeleteManyArgs} args - Arguments to filter WildberriesSupplies to delete. - * @example - * // Delete a few WildberriesSupplies - * const { count } = await prisma.wildberriesSupply.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more WildberriesSupplies. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {WildberriesSupplyUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many WildberriesSupplies - * const wildberriesSupply = await prisma.wildberriesSupply.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more WildberriesSupplies and returns the data updated in the database. - * @param {WildberriesSupplyUpdateManyAndReturnArgs} args - Arguments to update many WildberriesSupplies. - * @example - * // Update many WildberriesSupplies - * const wildberriesSupply = await prisma.wildberriesSupply.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more WildberriesSupplies and only return the `id` - * const wildberriesSupplyWithIdOnly = await prisma.wildberriesSupply.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one WildberriesSupply. - * @param {WildberriesSupplyUpsertArgs} args - Arguments to update or create a WildberriesSupply. - * @example - * // Update or create a WildberriesSupply - * const wildberriesSupply = await prisma.wildberriesSupply.upsert({ - * create: { - * // ... data to create a WildberriesSupply - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the WildberriesSupply we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__WildberriesSupplyClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of WildberriesSupplies. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {WildberriesSupplyCountArgs} args - Arguments to filter WildberriesSupplies to count. - * @example - * // Count the number of WildberriesSupplies - * const count = await prisma.wildberriesSupply.count({ - * where: { - * // ... the filter for the WildberriesSupplies we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a WildberriesSupply. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {WildberriesSupplyAggregateArgs} 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: Subset): Prisma.PrismaPromise> - - /** - * Group by WildberriesSupply. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {WildberriesSupplyGroupByArgs} 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 WildberriesSupplyGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: WildberriesSupplyGroupByArgs['orderBy'] } - : { orderBy?: WildberriesSupplyGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetWildberriesSupplyGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the WildberriesSupply model - */ - readonly fields: WildberriesSupplyFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for WildberriesSupply. - * 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__WildberriesSupplyClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - organization = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - cards = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $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): $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): $Utils.JsPromise - } - - - - - /** - * Fields of the WildberriesSupply model - */ - interface WildberriesSupplyFieldRefs { - readonly id: FieldRef<"WildberriesSupply", 'String'> - readonly organizationId: FieldRef<"WildberriesSupply", 'String'> - readonly deliveryDate: FieldRef<"WildberriesSupply", 'DateTime'> - readonly status: FieldRef<"WildberriesSupply", 'WildberriesSupplyStatus'> - readonly totalAmount: FieldRef<"WildberriesSupply", 'Decimal'> - readonly totalItems: FieldRef<"WildberriesSupply", 'Int'> - readonly createdAt: FieldRef<"WildberriesSupply", 'DateTime'> - readonly updatedAt: FieldRef<"WildberriesSupply", 'DateTime'> - } - - - // Custom InputTypes - /** - * WildberriesSupply findUnique - */ - export type WildberriesSupplyFindUniqueArgs = { - /** - * Select specific fields to fetch from the WildberriesSupply - */ - select?: WildberriesSupplySelect | null - /** - * Omit specific fields from the WildberriesSupply - */ - omit?: WildberriesSupplyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyInclude | null - /** - * Filter, which WildberriesSupply to fetch. - */ - where: WildberriesSupplyWhereUniqueInput - } - - /** - * WildberriesSupply findUniqueOrThrow - */ - export type WildberriesSupplyFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the WildberriesSupply - */ - select?: WildberriesSupplySelect | null - /** - * Omit specific fields from the WildberriesSupply - */ - omit?: WildberriesSupplyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyInclude | null - /** - * Filter, which WildberriesSupply to fetch. - */ - where: WildberriesSupplyWhereUniqueInput - } - - /** - * WildberriesSupply findFirst - */ - export type WildberriesSupplyFindFirstArgs = { - /** - * Select specific fields to fetch from the WildberriesSupply - */ - select?: WildberriesSupplySelect | null - /** - * Omit specific fields from the WildberriesSupply - */ - omit?: WildberriesSupplyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyInclude | null - /** - * Filter, which WildberriesSupply to fetch. - */ - where?: WildberriesSupplyWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of WildberriesSupplies to fetch. - */ - orderBy?: WildberriesSupplyOrderByWithRelationInput | WildberriesSupplyOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for WildberriesSupplies. - */ - cursor?: WildberriesSupplyWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` WildberriesSupplies 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` WildberriesSupplies. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of WildberriesSupplies. - */ - distinct?: WildberriesSupplyScalarFieldEnum | WildberriesSupplyScalarFieldEnum[] - } - - /** - * WildberriesSupply findFirstOrThrow - */ - export type WildberriesSupplyFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the WildberriesSupply - */ - select?: WildberriesSupplySelect | null - /** - * Omit specific fields from the WildberriesSupply - */ - omit?: WildberriesSupplyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyInclude | null - /** - * Filter, which WildberriesSupply to fetch. - */ - where?: WildberriesSupplyWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of WildberriesSupplies to fetch. - */ - orderBy?: WildberriesSupplyOrderByWithRelationInput | WildberriesSupplyOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for WildberriesSupplies. - */ - cursor?: WildberriesSupplyWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` WildberriesSupplies 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` WildberriesSupplies. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of WildberriesSupplies. - */ - distinct?: WildberriesSupplyScalarFieldEnum | WildberriesSupplyScalarFieldEnum[] - } - - /** - * WildberriesSupply findMany - */ - export type WildberriesSupplyFindManyArgs = { - /** - * Select specific fields to fetch from the WildberriesSupply - */ - select?: WildberriesSupplySelect | null - /** - * Omit specific fields from the WildberriesSupply - */ - omit?: WildberriesSupplyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyInclude | null - /** - * Filter, which WildberriesSupplies to fetch. - */ - where?: WildberriesSupplyWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of WildberriesSupplies to fetch. - */ - orderBy?: WildberriesSupplyOrderByWithRelationInput | WildberriesSupplyOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing WildberriesSupplies. - */ - cursor?: WildberriesSupplyWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` WildberriesSupplies 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` WildberriesSupplies. - */ - skip?: number - distinct?: WildberriesSupplyScalarFieldEnum | WildberriesSupplyScalarFieldEnum[] - } - - /** - * WildberriesSupply create - */ - export type WildberriesSupplyCreateArgs = { - /** - * Select specific fields to fetch from the WildberriesSupply - */ - select?: WildberriesSupplySelect | null - /** - * Omit specific fields from the WildberriesSupply - */ - omit?: WildberriesSupplyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyInclude | null - /** - * The data needed to create a WildberriesSupply. - */ - data: XOR - } - - /** - * WildberriesSupply createMany - */ - export type WildberriesSupplyCreateManyArgs = { - /** - * The data used to create many WildberriesSupplies. - */ - data: WildberriesSupplyCreateManyInput | WildberriesSupplyCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * WildberriesSupply createManyAndReturn - */ - export type WildberriesSupplyCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the WildberriesSupply - */ - select?: WildberriesSupplySelectCreateManyAndReturn | null - /** - * Omit specific fields from the WildberriesSupply - */ - omit?: WildberriesSupplyOmit | null - /** - * The data used to create many WildberriesSupplies. - */ - data: WildberriesSupplyCreateManyInput | WildberriesSupplyCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyIncludeCreateManyAndReturn | null - } - - /** - * WildberriesSupply update - */ - export type WildberriesSupplyUpdateArgs = { - /** - * Select specific fields to fetch from the WildberriesSupply - */ - select?: WildberriesSupplySelect | null - /** - * Omit specific fields from the WildberriesSupply - */ - omit?: WildberriesSupplyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyInclude | null - /** - * The data needed to update a WildberriesSupply. - */ - data: XOR - /** - * Choose, which WildberriesSupply to update. - */ - where: WildberriesSupplyWhereUniqueInput - } - - /** - * WildberriesSupply updateMany - */ - export type WildberriesSupplyUpdateManyArgs = { - /** - * The data used to update WildberriesSupplies. - */ - data: XOR - /** - * Filter which WildberriesSupplies to update - */ - where?: WildberriesSupplyWhereInput - /** - * Limit how many WildberriesSupplies to update. - */ - limit?: number - } - - /** - * WildberriesSupply updateManyAndReturn - */ - export type WildberriesSupplyUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the WildberriesSupply - */ - select?: WildberriesSupplySelectUpdateManyAndReturn | null - /** - * Omit specific fields from the WildberriesSupply - */ - omit?: WildberriesSupplyOmit | null - /** - * The data used to update WildberriesSupplies. - */ - data: XOR - /** - * Filter which WildberriesSupplies to update - */ - where?: WildberriesSupplyWhereInput - /** - * Limit how many WildberriesSupplies to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyIncludeUpdateManyAndReturn | null - } - - /** - * WildberriesSupply upsert - */ - export type WildberriesSupplyUpsertArgs = { - /** - * Select specific fields to fetch from the WildberriesSupply - */ - select?: WildberriesSupplySelect | null - /** - * Omit specific fields from the WildberriesSupply - */ - omit?: WildberriesSupplyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyInclude | null - /** - * The filter to search for the WildberriesSupply to update in case it exists. - */ - where: WildberriesSupplyWhereUniqueInput - /** - * In case the WildberriesSupply found by the `where` argument doesn't exist, create a new WildberriesSupply with this data. - */ - create: XOR - /** - * In case the WildberriesSupply was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * WildberriesSupply delete - */ - export type WildberriesSupplyDeleteArgs = { - /** - * Select specific fields to fetch from the WildberriesSupply - */ - select?: WildberriesSupplySelect | null - /** - * Omit specific fields from the WildberriesSupply - */ - omit?: WildberriesSupplyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyInclude | null - /** - * Filter which WildberriesSupply to delete. - */ - where: WildberriesSupplyWhereUniqueInput - } - - /** - * WildberriesSupply deleteMany - */ - export type WildberriesSupplyDeleteManyArgs = { - /** - * Filter which WildberriesSupplies to delete - */ - where?: WildberriesSupplyWhereInput - /** - * Limit how many WildberriesSupplies to delete. - */ - limit?: number - } - - /** - * WildberriesSupply.cards - */ - export type WildberriesSupply$cardsArgs = { - /** - * Select specific fields to fetch from the WildberriesSupplyCard - */ - select?: WildberriesSupplyCardSelect | null - /** - * Omit specific fields from the WildberriesSupplyCard - */ - omit?: WildberriesSupplyCardOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyCardInclude | null - where?: WildberriesSupplyCardWhereInput - orderBy?: WildberriesSupplyCardOrderByWithRelationInput | WildberriesSupplyCardOrderByWithRelationInput[] - cursor?: WildberriesSupplyCardWhereUniqueInput - take?: number - skip?: number - distinct?: WildberriesSupplyCardScalarFieldEnum | WildberriesSupplyCardScalarFieldEnum[] - } - - /** - * WildberriesSupply without action - */ - export type WildberriesSupplyDefaultArgs = { - /** - * Select specific fields to fetch from the WildberriesSupply - */ - select?: WildberriesSupplySelect | null - /** - * Omit specific fields from the WildberriesSupply - */ - omit?: WildberriesSupplyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyInclude | null - } - - - /** - * Model WildberriesSupplyCard - */ - - export type AggregateWildberriesSupplyCard = { - _count: WildberriesSupplyCardCountAggregateOutputType | null - _avg: WildberriesSupplyCardAvgAggregateOutputType | null - _sum: WildberriesSupplyCardSumAggregateOutputType | null - _min: WildberriesSupplyCardMinAggregateOutputType | null - _max: WildberriesSupplyCardMaxAggregateOutputType | null - } - - export type WildberriesSupplyCardAvgAggregateOutputType = { - price: Decimal | null - discountedPrice: Decimal | null - quantity: number | null - selectedQuantity: number | null - } - - export type WildberriesSupplyCardSumAggregateOutputType = { - price: Decimal | null - discountedPrice: Decimal | null - quantity: number | null - selectedQuantity: number | null - } - - export type WildberriesSupplyCardMinAggregateOutputType = { - id: string | null - supplyId: string | null - nmId: string | null - vendorCode: string | null - title: string | null - brand: string | null - price: Decimal | null - discountedPrice: Decimal | null - quantity: number | null - selectedQuantity: number | null - selectedMarket: string | null - selectedPlace: string | null - sellerName: string | null - sellerPhone: string | null - deliveryDate: Date | null - createdAt: Date | null - updatedAt: Date | null - } - - export type WildberriesSupplyCardMaxAggregateOutputType = { - id: string | null - supplyId: string | null - nmId: string | null - vendorCode: string | null - title: string | null - brand: string | null - price: Decimal | null - discountedPrice: Decimal | null - quantity: number | null - selectedQuantity: number | null - selectedMarket: string | null - selectedPlace: string | null - sellerName: string | null - sellerPhone: string | null - deliveryDate: Date | null - createdAt: Date | null - updatedAt: Date | null - } - - export type WildberriesSupplyCardCountAggregateOutputType = { - id: number - supplyId: number - nmId: number - vendorCode: number - title: number - brand: number - price: number - discountedPrice: number - quantity: number - selectedQuantity: number - selectedMarket: number - selectedPlace: number - sellerName: number - sellerPhone: number - deliveryDate: number - mediaFiles: number - selectedServices: number - createdAt: number - updatedAt: number - _all: number - } - - - export type WildberriesSupplyCardAvgAggregateInputType = { - price?: true - discountedPrice?: true - quantity?: true - selectedQuantity?: true - } - - export type WildberriesSupplyCardSumAggregateInputType = { - price?: true - discountedPrice?: true - quantity?: true - selectedQuantity?: true - } - - export type WildberriesSupplyCardMinAggregateInputType = { - id?: true - supplyId?: true - nmId?: true - vendorCode?: true - title?: true - brand?: true - price?: true - discountedPrice?: true - quantity?: true - selectedQuantity?: true - selectedMarket?: true - selectedPlace?: true - sellerName?: true - sellerPhone?: true - deliveryDate?: true - createdAt?: true - updatedAt?: true - } - - export type WildberriesSupplyCardMaxAggregateInputType = { - id?: true - supplyId?: true - nmId?: true - vendorCode?: true - title?: true - brand?: true - price?: true - discountedPrice?: true - quantity?: true - selectedQuantity?: true - selectedMarket?: true - selectedPlace?: true - sellerName?: true - sellerPhone?: true - deliveryDate?: true - createdAt?: true - updatedAt?: true - } - - export type WildberriesSupplyCardCountAggregateInputType = { - id?: true - supplyId?: true - nmId?: true - vendorCode?: true - title?: true - brand?: true - price?: true - discountedPrice?: true - quantity?: true - selectedQuantity?: true - selectedMarket?: true - selectedPlace?: true - sellerName?: true - sellerPhone?: true - deliveryDate?: true - mediaFiles?: true - selectedServices?: true - createdAt?: true - updatedAt?: true - _all?: true - } - - export type WildberriesSupplyCardAggregateArgs = { - /** - * Filter which WildberriesSupplyCard to aggregate. - */ - where?: WildberriesSupplyCardWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of WildberriesSupplyCards to fetch. - */ - orderBy?: WildberriesSupplyCardOrderByWithRelationInput | WildberriesSupplyCardOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: WildberriesSupplyCardWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` WildberriesSupplyCards 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` WildberriesSupplyCards. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned WildberriesSupplyCards - **/ - _count?: true | WildberriesSupplyCardCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: WildberriesSupplyCardAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: WildberriesSupplyCardSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: WildberriesSupplyCardMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: WildberriesSupplyCardMaxAggregateInputType - } - - export type GetWildberriesSupplyCardAggregateType = { - [P in keyof T & keyof AggregateWildberriesSupplyCard]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type WildberriesSupplyCardGroupByArgs = { - where?: WildberriesSupplyCardWhereInput - orderBy?: WildberriesSupplyCardOrderByWithAggregationInput | WildberriesSupplyCardOrderByWithAggregationInput[] - by: WildberriesSupplyCardScalarFieldEnum[] | WildberriesSupplyCardScalarFieldEnum - having?: WildberriesSupplyCardScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: WildberriesSupplyCardCountAggregateInputType | true - _avg?: WildberriesSupplyCardAvgAggregateInputType - _sum?: WildberriesSupplyCardSumAggregateInputType - _min?: WildberriesSupplyCardMinAggregateInputType - _max?: WildberriesSupplyCardMaxAggregateInputType - } - - export type WildberriesSupplyCardGroupByOutputType = { - id: string - supplyId: string - nmId: string - vendorCode: string - title: string - brand: string | null - price: Decimal - discountedPrice: Decimal | null - quantity: number - selectedQuantity: number - selectedMarket: string | null - selectedPlace: string | null - sellerName: string | null - sellerPhone: string | null - deliveryDate: Date | null - mediaFiles: JsonValue - selectedServices: JsonValue - createdAt: Date - updatedAt: Date - _count: WildberriesSupplyCardCountAggregateOutputType | null - _avg: WildberriesSupplyCardAvgAggregateOutputType | null - _sum: WildberriesSupplyCardSumAggregateOutputType | null - _min: WildberriesSupplyCardMinAggregateOutputType | null - _max: WildberriesSupplyCardMaxAggregateOutputType | null - } - - type GetWildberriesSupplyCardGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof WildberriesSupplyCardGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type WildberriesSupplyCardSelect = $Extensions.GetSelect<{ - id?: boolean - supplyId?: boolean - nmId?: boolean - vendorCode?: boolean - title?: boolean - brand?: boolean - price?: boolean - discountedPrice?: boolean - quantity?: boolean - selectedQuantity?: boolean - selectedMarket?: boolean - selectedPlace?: boolean - sellerName?: boolean - sellerPhone?: boolean - deliveryDate?: boolean - mediaFiles?: boolean - selectedServices?: boolean - createdAt?: boolean - updatedAt?: boolean - supply?: boolean | WildberriesSupplyDefaultArgs - }, ExtArgs["result"]["wildberriesSupplyCard"]> - - export type WildberriesSupplyCardSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - supplyId?: boolean - nmId?: boolean - vendorCode?: boolean - title?: boolean - brand?: boolean - price?: boolean - discountedPrice?: boolean - quantity?: boolean - selectedQuantity?: boolean - selectedMarket?: boolean - selectedPlace?: boolean - sellerName?: boolean - sellerPhone?: boolean - deliveryDate?: boolean - mediaFiles?: boolean - selectedServices?: boolean - createdAt?: boolean - updatedAt?: boolean - supply?: boolean | WildberriesSupplyDefaultArgs - }, ExtArgs["result"]["wildberriesSupplyCard"]> - - export type WildberriesSupplyCardSelectUpdateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - supplyId?: boolean - nmId?: boolean - vendorCode?: boolean - title?: boolean - brand?: boolean - price?: boolean - discountedPrice?: boolean - quantity?: boolean - selectedQuantity?: boolean - selectedMarket?: boolean - selectedPlace?: boolean - sellerName?: boolean - sellerPhone?: boolean - deliveryDate?: boolean - mediaFiles?: boolean - selectedServices?: boolean - createdAt?: boolean - updatedAt?: boolean - supply?: boolean | WildberriesSupplyDefaultArgs - }, ExtArgs["result"]["wildberriesSupplyCard"]> - - export type WildberriesSupplyCardSelectScalar = { - id?: boolean - supplyId?: boolean - nmId?: boolean - vendorCode?: boolean - title?: boolean - brand?: boolean - price?: boolean - discountedPrice?: boolean - quantity?: boolean - selectedQuantity?: boolean - selectedMarket?: boolean - selectedPlace?: boolean - sellerName?: boolean - sellerPhone?: boolean - deliveryDate?: boolean - mediaFiles?: boolean - selectedServices?: boolean - createdAt?: boolean - updatedAt?: boolean - } - - export type WildberriesSupplyCardOmit = $Extensions.GetOmit<"id" | "supplyId" | "nmId" | "vendorCode" | "title" | "brand" | "price" | "discountedPrice" | "quantity" | "selectedQuantity" | "selectedMarket" | "selectedPlace" | "sellerName" | "sellerPhone" | "deliveryDate" | "mediaFiles" | "selectedServices" | "createdAt" | "updatedAt", ExtArgs["result"]["wildberriesSupplyCard"]> - export type WildberriesSupplyCardInclude = { - supply?: boolean | WildberriesSupplyDefaultArgs - } - export type WildberriesSupplyCardIncludeCreateManyAndReturn = { - supply?: boolean | WildberriesSupplyDefaultArgs - } - export type WildberriesSupplyCardIncludeUpdateManyAndReturn = { - supply?: boolean | WildberriesSupplyDefaultArgs - } - - export type $WildberriesSupplyCardPayload = { - name: "WildberriesSupplyCard" - objects: { - supply: Prisma.$WildberriesSupplyPayload - } - scalars: $Extensions.GetPayloadResult<{ - id: string - supplyId: string - nmId: string - vendorCode: string - title: string - brand: string | null - price: Prisma.Decimal - discountedPrice: Prisma.Decimal | null - quantity: number - selectedQuantity: number - selectedMarket: string | null - selectedPlace: string | null - sellerName: string | null - sellerPhone: string | null - deliveryDate: Date | null - mediaFiles: Prisma.JsonValue - selectedServices: Prisma.JsonValue - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["wildberriesSupplyCard"]> - composites: {} - } - - type WildberriesSupplyCardGetPayload = $Result.GetResult - - type WildberriesSupplyCardCountArgs = - Omit & { - select?: WildberriesSupplyCardCountAggregateInputType | true - } - - export interface WildberriesSupplyCardDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['WildberriesSupplyCard'], meta: { name: 'WildberriesSupplyCard' } } - /** - * Find zero or one WildberriesSupplyCard that matches the filter. - * @param {WildberriesSupplyCardFindUniqueArgs} args - Arguments to find a WildberriesSupplyCard - * @example - * // Get one WildberriesSupplyCard - * const wildberriesSupplyCard = await prisma.wildberriesSupplyCard.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__WildberriesSupplyCardClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one WildberriesSupplyCard that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {WildberriesSupplyCardFindUniqueOrThrowArgs} args - Arguments to find a WildberriesSupplyCard - * @example - * // Get one WildberriesSupplyCard - * const wildberriesSupplyCard = await prisma.wildberriesSupplyCard.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__WildberriesSupplyCardClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first WildberriesSupplyCard 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 {WildberriesSupplyCardFindFirstArgs} args - Arguments to find a WildberriesSupplyCard - * @example - * // Get one WildberriesSupplyCard - * const wildberriesSupplyCard = await prisma.wildberriesSupplyCard.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__WildberriesSupplyCardClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first WildberriesSupplyCard 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 {WildberriesSupplyCardFindFirstOrThrowArgs} args - Arguments to find a WildberriesSupplyCard - * @example - * // Get one WildberriesSupplyCard - * const wildberriesSupplyCard = await prisma.wildberriesSupplyCard.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__WildberriesSupplyCardClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more WildberriesSupplyCards 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 {WildberriesSupplyCardFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all WildberriesSupplyCards - * const wildberriesSupplyCards = await prisma.wildberriesSupplyCard.findMany() - * - * // Get first 10 WildberriesSupplyCards - * const wildberriesSupplyCards = await prisma.wildberriesSupplyCard.findMany({ take: 10 }) - * - * // Only select the `id` - * const wildberriesSupplyCardWithIdOnly = await prisma.wildberriesSupplyCard.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> - - /** - * Create a WildberriesSupplyCard. - * @param {WildberriesSupplyCardCreateArgs} args - Arguments to create a WildberriesSupplyCard. - * @example - * // Create one WildberriesSupplyCard - * const WildberriesSupplyCard = await prisma.wildberriesSupplyCard.create({ - * data: { - * // ... data to create a WildberriesSupplyCard - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__WildberriesSupplyCardClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many WildberriesSupplyCards. - * @param {WildberriesSupplyCardCreateManyArgs} args - Arguments to create many WildberriesSupplyCards. - * @example - * // Create many WildberriesSupplyCards - * const wildberriesSupplyCard = await prisma.wildberriesSupplyCard.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many WildberriesSupplyCards and returns the data saved in the database. - * @param {WildberriesSupplyCardCreateManyAndReturnArgs} args - Arguments to create many WildberriesSupplyCards. - * @example - * // Create many WildberriesSupplyCards - * const wildberriesSupplyCard = await prisma.wildberriesSupplyCard.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many WildberriesSupplyCards and only return the `id` - * const wildberriesSupplyCardWithIdOnly = await prisma.wildberriesSupplyCard.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a WildberriesSupplyCard. - * @param {WildberriesSupplyCardDeleteArgs} args - Arguments to delete one WildberriesSupplyCard. - * @example - * // Delete one WildberriesSupplyCard - * const WildberriesSupplyCard = await prisma.wildberriesSupplyCard.delete({ - * where: { - * // ... filter to delete one WildberriesSupplyCard - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__WildberriesSupplyCardClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one WildberriesSupplyCard. - * @param {WildberriesSupplyCardUpdateArgs} args - Arguments to update one WildberriesSupplyCard. - * @example - * // Update one WildberriesSupplyCard - * const wildberriesSupplyCard = await prisma.wildberriesSupplyCard.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__WildberriesSupplyCardClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more WildberriesSupplyCards. - * @param {WildberriesSupplyCardDeleteManyArgs} args - Arguments to filter WildberriesSupplyCards to delete. - * @example - * // Delete a few WildberriesSupplyCards - * const { count } = await prisma.wildberriesSupplyCard.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more WildberriesSupplyCards. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {WildberriesSupplyCardUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many WildberriesSupplyCards - * const wildberriesSupplyCard = await prisma.wildberriesSupplyCard.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more WildberriesSupplyCards and returns the data updated in the database. - * @param {WildberriesSupplyCardUpdateManyAndReturnArgs} args - Arguments to update many WildberriesSupplyCards. - * @example - * // Update many WildberriesSupplyCards - * const wildberriesSupplyCard = await prisma.wildberriesSupplyCard.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more WildberriesSupplyCards and only return the `id` - * const wildberriesSupplyCardWithIdOnly = await prisma.wildberriesSupplyCard.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one WildberriesSupplyCard. - * @param {WildberriesSupplyCardUpsertArgs} args - Arguments to update or create a WildberriesSupplyCard. - * @example - * // Update or create a WildberriesSupplyCard - * const wildberriesSupplyCard = await prisma.wildberriesSupplyCard.upsert({ - * create: { - * // ... data to create a WildberriesSupplyCard - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the WildberriesSupplyCard we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__WildberriesSupplyCardClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of WildberriesSupplyCards. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {WildberriesSupplyCardCountArgs} args - Arguments to filter WildberriesSupplyCards to count. - * @example - * // Count the number of WildberriesSupplyCards - * const count = await prisma.wildberriesSupplyCard.count({ - * where: { - * // ... the filter for the WildberriesSupplyCards we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a WildberriesSupplyCard. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {WildberriesSupplyCardAggregateArgs} 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: Subset): Prisma.PrismaPromise> - - /** - * Group by WildberriesSupplyCard. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {WildberriesSupplyCardGroupByArgs} 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 WildberriesSupplyCardGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: WildberriesSupplyCardGroupByArgs['orderBy'] } - : { orderBy?: WildberriesSupplyCardGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetWildberriesSupplyCardGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the WildberriesSupplyCard model - */ - readonly fields: WildberriesSupplyCardFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for WildberriesSupplyCard. - * 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__WildberriesSupplyCardClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - supply = {}>(args?: Subset>): Prisma__WildberriesSupplyClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $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): $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): $Utils.JsPromise - } - - - - - /** - * Fields of the WildberriesSupplyCard model - */ - interface WildberriesSupplyCardFieldRefs { - readonly id: FieldRef<"WildberriesSupplyCard", 'String'> - readonly supplyId: FieldRef<"WildberriesSupplyCard", 'String'> - readonly nmId: FieldRef<"WildberriesSupplyCard", 'String'> - readonly vendorCode: FieldRef<"WildberriesSupplyCard", 'String'> - readonly title: FieldRef<"WildberriesSupplyCard", 'String'> - readonly brand: FieldRef<"WildberriesSupplyCard", 'String'> - readonly price: FieldRef<"WildberriesSupplyCard", 'Decimal'> - readonly discountedPrice: FieldRef<"WildberriesSupplyCard", 'Decimal'> - readonly quantity: FieldRef<"WildberriesSupplyCard", 'Int'> - readonly selectedQuantity: FieldRef<"WildberriesSupplyCard", 'Int'> - readonly selectedMarket: FieldRef<"WildberriesSupplyCard", 'String'> - readonly selectedPlace: FieldRef<"WildberriesSupplyCard", 'String'> - readonly sellerName: FieldRef<"WildberriesSupplyCard", 'String'> - readonly sellerPhone: FieldRef<"WildberriesSupplyCard", 'String'> - readonly deliveryDate: FieldRef<"WildberriesSupplyCard", 'DateTime'> - readonly mediaFiles: FieldRef<"WildberriesSupplyCard", 'Json'> - readonly selectedServices: FieldRef<"WildberriesSupplyCard", 'Json'> - readonly createdAt: FieldRef<"WildberriesSupplyCard", 'DateTime'> - readonly updatedAt: FieldRef<"WildberriesSupplyCard", 'DateTime'> - } - - - // Custom InputTypes - /** - * WildberriesSupplyCard findUnique - */ - export type WildberriesSupplyCardFindUniqueArgs = { - /** - * Select specific fields to fetch from the WildberriesSupplyCard - */ - select?: WildberriesSupplyCardSelect | null - /** - * Omit specific fields from the WildberriesSupplyCard - */ - omit?: WildberriesSupplyCardOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyCardInclude | null - /** - * Filter, which WildberriesSupplyCard to fetch. - */ - where: WildberriesSupplyCardWhereUniqueInput - } - - /** - * WildberriesSupplyCard findUniqueOrThrow - */ - export type WildberriesSupplyCardFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the WildberriesSupplyCard - */ - select?: WildberriesSupplyCardSelect | null - /** - * Omit specific fields from the WildberriesSupplyCard - */ - omit?: WildberriesSupplyCardOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyCardInclude | null - /** - * Filter, which WildberriesSupplyCard to fetch. - */ - where: WildberriesSupplyCardWhereUniqueInput - } - - /** - * WildberriesSupplyCard findFirst - */ - export type WildberriesSupplyCardFindFirstArgs = { - /** - * Select specific fields to fetch from the WildberriesSupplyCard - */ - select?: WildberriesSupplyCardSelect | null - /** - * Omit specific fields from the WildberriesSupplyCard - */ - omit?: WildberriesSupplyCardOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyCardInclude | null - /** - * Filter, which WildberriesSupplyCard to fetch. - */ - where?: WildberriesSupplyCardWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of WildberriesSupplyCards to fetch. - */ - orderBy?: WildberriesSupplyCardOrderByWithRelationInput | WildberriesSupplyCardOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for WildberriesSupplyCards. - */ - cursor?: WildberriesSupplyCardWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` WildberriesSupplyCards 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` WildberriesSupplyCards. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of WildberriesSupplyCards. - */ - distinct?: WildberriesSupplyCardScalarFieldEnum | WildberriesSupplyCardScalarFieldEnum[] - } - - /** - * WildberriesSupplyCard findFirstOrThrow - */ - export type WildberriesSupplyCardFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the WildberriesSupplyCard - */ - select?: WildberriesSupplyCardSelect | null - /** - * Omit specific fields from the WildberriesSupplyCard - */ - omit?: WildberriesSupplyCardOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyCardInclude | null - /** - * Filter, which WildberriesSupplyCard to fetch. - */ - where?: WildberriesSupplyCardWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of WildberriesSupplyCards to fetch. - */ - orderBy?: WildberriesSupplyCardOrderByWithRelationInput | WildberriesSupplyCardOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for WildberriesSupplyCards. - */ - cursor?: WildberriesSupplyCardWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` WildberriesSupplyCards 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` WildberriesSupplyCards. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of WildberriesSupplyCards. - */ - distinct?: WildberriesSupplyCardScalarFieldEnum | WildberriesSupplyCardScalarFieldEnum[] - } - - /** - * WildberriesSupplyCard findMany - */ - export type WildberriesSupplyCardFindManyArgs = { - /** - * Select specific fields to fetch from the WildberriesSupplyCard - */ - select?: WildberriesSupplyCardSelect | null - /** - * Omit specific fields from the WildberriesSupplyCard - */ - omit?: WildberriesSupplyCardOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyCardInclude | null - /** - * Filter, which WildberriesSupplyCards to fetch. - */ - where?: WildberriesSupplyCardWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of WildberriesSupplyCards to fetch. - */ - orderBy?: WildberriesSupplyCardOrderByWithRelationInput | WildberriesSupplyCardOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing WildberriesSupplyCards. - */ - cursor?: WildberriesSupplyCardWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` WildberriesSupplyCards 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` WildberriesSupplyCards. - */ - skip?: number - distinct?: WildberriesSupplyCardScalarFieldEnum | WildberriesSupplyCardScalarFieldEnum[] - } - - /** - * WildberriesSupplyCard create - */ - export type WildberriesSupplyCardCreateArgs = { - /** - * Select specific fields to fetch from the WildberriesSupplyCard - */ - select?: WildberriesSupplyCardSelect | null - /** - * Omit specific fields from the WildberriesSupplyCard - */ - omit?: WildberriesSupplyCardOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyCardInclude | null - /** - * The data needed to create a WildberriesSupplyCard. - */ - data: XOR - } - - /** - * WildberriesSupplyCard createMany - */ - export type WildberriesSupplyCardCreateManyArgs = { - /** - * The data used to create many WildberriesSupplyCards. - */ - data: WildberriesSupplyCardCreateManyInput | WildberriesSupplyCardCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * WildberriesSupplyCard createManyAndReturn - */ - export type WildberriesSupplyCardCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the WildberriesSupplyCard - */ - select?: WildberriesSupplyCardSelectCreateManyAndReturn | null - /** - * Omit specific fields from the WildberriesSupplyCard - */ - omit?: WildberriesSupplyCardOmit | null - /** - * The data used to create many WildberriesSupplyCards. - */ - data: WildberriesSupplyCardCreateManyInput | WildberriesSupplyCardCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyCardIncludeCreateManyAndReturn | null - } - - /** - * WildberriesSupplyCard update - */ - export type WildberriesSupplyCardUpdateArgs = { - /** - * Select specific fields to fetch from the WildberriesSupplyCard - */ - select?: WildberriesSupplyCardSelect | null - /** - * Omit specific fields from the WildberriesSupplyCard - */ - omit?: WildberriesSupplyCardOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyCardInclude | null - /** - * The data needed to update a WildberriesSupplyCard. - */ - data: XOR - /** - * Choose, which WildberriesSupplyCard to update. - */ - where: WildberriesSupplyCardWhereUniqueInput - } - - /** - * WildberriesSupplyCard updateMany - */ - export type WildberriesSupplyCardUpdateManyArgs = { - /** - * The data used to update WildberriesSupplyCards. - */ - data: XOR - /** - * Filter which WildberriesSupplyCards to update - */ - where?: WildberriesSupplyCardWhereInput - /** - * Limit how many WildberriesSupplyCards to update. - */ - limit?: number - } - - /** - * WildberriesSupplyCard updateManyAndReturn - */ - export type WildberriesSupplyCardUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the WildberriesSupplyCard - */ - select?: WildberriesSupplyCardSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the WildberriesSupplyCard - */ - omit?: WildberriesSupplyCardOmit | null - /** - * The data used to update WildberriesSupplyCards. - */ - data: XOR - /** - * Filter which WildberriesSupplyCards to update - */ - where?: WildberriesSupplyCardWhereInput - /** - * Limit how many WildberriesSupplyCards to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyCardIncludeUpdateManyAndReturn | null - } - - /** - * WildberriesSupplyCard upsert - */ - export type WildberriesSupplyCardUpsertArgs = { - /** - * Select specific fields to fetch from the WildberriesSupplyCard - */ - select?: WildberriesSupplyCardSelect | null - /** - * Omit specific fields from the WildberriesSupplyCard - */ - omit?: WildberriesSupplyCardOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyCardInclude | null - /** - * The filter to search for the WildberriesSupplyCard to update in case it exists. - */ - where: WildberriesSupplyCardWhereUniqueInput - /** - * In case the WildberriesSupplyCard found by the `where` argument doesn't exist, create a new WildberriesSupplyCard with this data. - */ - create: XOR - /** - * In case the WildberriesSupplyCard was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * WildberriesSupplyCard delete - */ - export type WildberriesSupplyCardDeleteArgs = { - /** - * Select specific fields to fetch from the WildberriesSupplyCard - */ - select?: WildberriesSupplyCardSelect | null - /** - * Omit specific fields from the WildberriesSupplyCard - */ - omit?: WildberriesSupplyCardOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyCardInclude | null - /** - * Filter which WildberriesSupplyCard to delete. - */ - where: WildberriesSupplyCardWhereUniqueInput - } - - /** - * WildberriesSupplyCard deleteMany - */ - export type WildberriesSupplyCardDeleteManyArgs = { - /** - * Filter which WildberriesSupplyCards to delete - */ - where?: WildberriesSupplyCardWhereInput - /** - * Limit how many WildberriesSupplyCards to delete. - */ - limit?: number - } - - /** - * WildberriesSupplyCard without action - */ - export type WildberriesSupplyCardDefaultArgs = { - /** - * Select specific fields to fetch from the WildberriesSupplyCard - */ - select?: WildberriesSupplyCardSelect | null - /** - * Omit specific fields from the WildberriesSupplyCard - */ - omit?: WildberriesSupplyCardOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: WildberriesSupplyCardInclude | null - } - - - /** - * Model Logistics - */ - - export type AggregateLogistics = { - _count: LogisticsCountAggregateOutputType | null - _avg: LogisticsAvgAggregateOutputType | null - _sum: LogisticsSumAggregateOutputType | null - _min: LogisticsMinAggregateOutputType | null - _max: LogisticsMaxAggregateOutputType | null - } - - export type LogisticsAvgAggregateOutputType = { - priceUnder1m3: number | null - priceOver1m3: number | null - } - - export type LogisticsSumAggregateOutputType = { - priceUnder1m3: number | null - priceOver1m3: number | null - } - - export type LogisticsMinAggregateOutputType = { - id: string | null - fromLocation: string | null - toLocation: string | null - priceUnder1m3: number | null - priceOver1m3: number | null - description: string | null - createdAt: Date | null - updatedAt: Date | null - organizationId: string | null - } - - export type LogisticsMaxAggregateOutputType = { - id: string | null - fromLocation: string | null - toLocation: string | null - priceUnder1m3: number | null - priceOver1m3: number | null - description: string | null - createdAt: Date | null - updatedAt: Date | null - organizationId: string | null - } - - export type LogisticsCountAggregateOutputType = { - id: number - fromLocation: number - toLocation: number - priceUnder1m3: number - priceOver1m3: number - description: number - createdAt: number - updatedAt: number - organizationId: number - _all: number - } - - - export type LogisticsAvgAggregateInputType = { - priceUnder1m3?: true - priceOver1m3?: true - } - - export type LogisticsSumAggregateInputType = { - priceUnder1m3?: true - priceOver1m3?: true - } - - export type LogisticsMinAggregateInputType = { - id?: true - fromLocation?: true - toLocation?: true - priceUnder1m3?: true - priceOver1m3?: true - description?: true - createdAt?: true - updatedAt?: true - organizationId?: true - } - - export type LogisticsMaxAggregateInputType = { - id?: true - fromLocation?: true - toLocation?: true - priceUnder1m3?: true - priceOver1m3?: true - description?: true - createdAt?: true - updatedAt?: true - organizationId?: true - } - - export type LogisticsCountAggregateInputType = { - id?: true - fromLocation?: true - toLocation?: true - priceUnder1m3?: true - priceOver1m3?: true - description?: true - createdAt?: true - updatedAt?: true - organizationId?: true - _all?: true - } - - export type LogisticsAggregateArgs = { - /** - * Filter which Logistics to aggregate. - */ - where?: LogisticsWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Logistics to fetch. - */ - orderBy?: LogisticsOrderByWithRelationInput | LogisticsOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: LogisticsWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Logistics 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` Logistics. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Logistics - **/ - _count?: true | LogisticsCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: LogisticsAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: LogisticsSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: LogisticsMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: LogisticsMaxAggregateInputType - } - - export type GetLogisticsAggregateType = { - [P in keyof T & keyof AggregateLogistics]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type LogisticsGroupByArgs = { - where?: LogisticsWhereInput - orderBy?: LogisticsOrderByWithAggregationInput | LogisticsOrderByWithAggregationInput[] - by: LogisticsScalarFieldEnum[] | LogisticsScalarFieldEnum - having?: LogisticsScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: LogisticsCountAggregateInputType | true - _avg?: LogisticsAvgAggregateInputType - _sum?: LogisticsSumAggregateInputType - _min?: LogisticsMinAggregateInputType - _max?: LogisticsMaxAggregateInputType - } - - export type LogisticsGroupByOutputType = { - id: string - fromLocation: string - toLocation: string - priceUnder1m3: number - priceOver1m3: number - description: string | null - createdAt: Date - updatedAt: Date - organizationId: string - _count: LogisticsCountAggregateOutputType | null - _avg: LogisticsAvgAggregateOutputType | null - _sum: LogisticsSumAggregateOutputType | null - _min: LogisticsMinAggregateOutputType | null - _max: LogisticsMaxAggregateOutputType | null - } - - type GetLogisticsGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof LogisticsGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type LogisticsSelect = $Extensions.GetSelect<{ - id?: boolean - fromLocation?: boolean - toLocation?: boolean - priceUnder1m3?: boolean - priceOver1m3?: boolean - description?: boolean - createdAt?: boolean - updatedAt?: boolean - organizationId?: boolean - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["logistics"]> - - export type LogisticsSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - fromLocation?: boolean - toLocation?: boolean - priceUnder1m3?: boolean - priceOver1m3?: boolean - description?: boolean - createdAt?: boolean - updatedAt?: boolean - organizationId?: boolean - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["logistics"]> - - export type LogisticsSelectUpdateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - fromLocation?: boolean - toLocation?: boolean - priceUnder1m3?: boolean - priceOver1m3?: boolean - description?: boolean - createdAt?: boolean - updatedAt?: boolean - organizationId?: boolean - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["logistics"]> - - export type LogisticsSelectScalar = { - id?: boolean - fromLocation?: boolean - toLocation?: boolean - priceUnder1m3?: boolean - priceOver1m3?: boolean - description?: boolean - createdAt?: boolean - updatedAt?: boolean - organizationId?: boolean - } - - export type LogisticsOmit = $Extensions.GetOmit<"id" | "fromLocation" | "toLocation" | "priceUnder1m3" | "priceOver1m3" | "description" | "createdAt" | "updatedAt" | "organizationId", ExtArgs["result"]["logistics"]> - export type LogisticsInclude = { - organization?: boolean | OrganizationDefaultArgs - } - export type LogisticsIncludeCreateManyAndReturn = { - organization?: boolean | OrganizationDefaultArgs - } - export type LogisticsIncludeUpdateManyAndReturn = { - organization?: boolean | OrganizationDefaultArgs - } - - export type $LogisticsPayload = { - name: "Logistics" - objects: { - organization: Prisma.$OrganizationPayload - } - scalars: $Extensions.GetPayloadResult<{ - id: string - fromLocation: string - toLocation: string - priceUnder1m3: number - priceOver1m3: number - description: string | null - createdAt: Date - updatedAt: Date - organizationId: string - }, ExtArgs["result"]["logistics"]> - composites: {} - } - - type LogisticsGetPayload = $Result.GetResult - - type LogisticsCountArgs = - Omit & { - select?: LogisticsCountAggregateInputType | true - } - - export interface LogisticsDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Logistics'], meta: { name: 'Logistics' } } - /** - * Find zero or one Logistics that matches the filter. - * @param {LogisticsFindUniqueArgs} args - Arguments to find a Logistics - * @example - * // Get one Logistics - * const logistics = await prisma.logistics.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__LogisticsClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Logistics that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {LogisticsFindUniqueOrThrowArgs} args - Arguments to find a Logistics - * @example - * // Get one Logistics - * const logistics = await prisma.logistics.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__LogisticsClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Logistics 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 {LogisticsFindFirstArgs} args - Arguments to find a Logistics - * @example - * // Get one Logistics - * const logistics = await prisma.logistics.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__LogisticsClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Logistics 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 {LogisticsFindFirstOrThrowArgs} args - Arguments to find a Logistics - * @example - * // Get one Logistics - * const logistics = await prisma.logistics.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__LogisticsClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Logistics 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 {LogisticsFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Logistics - * const logistics = await prisma.logistics.findMany() - * - * // Get first 10 Logistics - * const logistics = await prisma.logistics.findMany({ take: 10 }) - * - * // Only select the `id` - * const logisticsWithIdOnly = await prisma.logistics.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Logistics. - * @param {LogisticsCreateArgs} args - Arguments to create a Logistics. - * @example - * // Create one Logistics - * const Logistics = await prisma.logistics.create({ - * data: { - * // ... data to create a Logistics - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__LogisticsClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Logistics. - * @param {LogisticsCreateManyArgs} args - Arguments to create many Logistics. - * @example - * // Create many Logistics - * const logistics = await prisma.logistics.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Logistics and returns the data saved in the database. - * @param {LogisticsCreateManyAndReturnArgs} args - Arguments to create many Logistics. - * @example - * // Create many Logistics - * const logistics = await prisma.logistics.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Logistics and only return the `id` - * const logisticsWithIdOnly = await prisma.logistics.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a Logistics. - * @param {LogisticsDeleteArgs} args - Arguments to delete one Logistics. - * @example - * // Delete one Logistics - * const Logistics = await prisma.logistics.delete({ - * where: { - * // ... filter to delete one Logistics - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__LogisticsClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Logistics. - * @param {LogisticsUpdateArgs} args - Arguments to update one Logistics. - * @example - * // Update one Logistics - * const logistics = await prisma.logistics.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__LogisticsClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Logistics. - * @param {LogisticsDeleteManyArgs} args - Arguments to filter Logistics to delete. - * @example - * // Delete a few Logistics - * const { count } = await prisma.logistics.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Logistics. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {LogisticsUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Logistics - * const logistics = await prisma.logistics.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Logistics and returns the data updated in the database. - * @param {LogisticsUpdateManyAndReturnArgs} args - Arguments to update many Logistics. - * @example - * // Update many Logistics - * const logistics = await prisma.logistics.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Logistics and only return the `id` - * const logisticsWithIdOnly = await prisma.logistics.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one Logistics. - * @param {LogisticsUpsertArgs} args - Arguments to update or create a Logistics. - * @example - * // Update or create a Logistics - * const logistics = await prisma.logistics.upsert({ - * create: { - * // ... data to create a Logistics - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Logistics we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__LogisticsClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Logistics. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {LogisticsCountArgs} args - Arguments to filter Logistics to count. - * @example - * // Count the number of Logistics - * const count = await prisma.logistics.count({ - * where: { - * // ... the filter for the Logistics we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Logistics. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {LogisticsAggregateArgs} 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: Subset): Prisma.PrismaPromise> - - /** - * Group by Logistics. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {LogisticsGroupByArgs} 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 LogisticsGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: LogisticsGroupByArgs['orderBy'] } - : { orderBy?: LogisticsGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetLogisticsGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Logistics model - */ - readonly fields: LogisticsFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for Logistics. - * 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__LogisticsClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - organization = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $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): $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): $Utils.JsPromise - } - - - - - /** - * Fields of the Logistics model - */ - interface LogisticsFieldRefs { - readonly id: FieldRef<"Logistics", 'String'> - readonly fromLocation: FieldRef<"Logistics", 'String'> - readonly toLocation: FieldRef<"Logistics", 'String'> - readonly priceUnder1m3: FieldRef<"Logistics", 'Float'> - readonly priceOver1m3: FieldRef<"Logistics", 'Float'> - readonly description: FieldRef<"Logistics", 'String'> - readonly createdAt: FieldRef<"Logistics", 'DateTime'> - readonly updatedAt: FieldRef<"Logistics", 'DateTime'> - readonly organizationId: FieldRef<"Logistics", 'String'> - } - - - // Custom InputTypes - /** - * Logistics findUnique - */ - export type LogisticsFindUniqueArgs = { - /** - * Select specific fields to fetch from the Logistics - */ - select?: LogisticsSelect | null - /** - * Omit specific fields from the Logistics - */ - omit?: LogisticsOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: LogisticsInclude | null - /** - * Filter, which Logistics to fetch. - */ - where: LogisticsWhereUniqueInput - } - - /** - * Logistics findUniqueOrThrow - */ - export type LogisticsFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Logistics - */ - select?: LogisticsSelect | null - /** - * Omit specific fields from the Logistics - */ - omit?: LogisticsOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: LogisticsInclude | null - /** - * Filter, which Logistics to fetch. - */ - where: LogisticsWhereUniqueInput - } - - /** - * Logistics findFirst - */ - export type LogisticsFindFirstArgs = { - /** - * Select specific fields to fetch from the Logistics - */ - select?: LogisticsSelect | null - /** - * Omit specific fields from the Logistics - */ - omit?: LogisticsOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: LogisticsInclude | null - /** - * Filter, which Logistics to fetch. - */ - where?: LogisticsWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Logistics to fetch. - */ - orderBy?: LogisticsOrderByWithRelationInput | LogisticsOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Logistics. - */ - cursor?: LogisticsWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Logistics 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` Logistics. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Logistics. - */ - distinct?: LogisticsScalarFieldEnum | LogisticsScalarFieldEnum[] - } - - /** - * Logistics findFirstOrThrow - */ - export type LogisticsFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Logistics - */ - select?: LogisticsSelect | null - /** - * Omit specific fields from the Logistics - */ - omit?: LogisticsOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: LogisticsInclude | null - /** - * Filter, which Logistics to fetch. - */ - where?: LogisticsWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Logistics to fetch. - */ - orderBy?: LogisticsOrderByWithRelationInput | LogisticsOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Logistics. - */ - cursor?: LogisticsWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Logistics 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` Logistics. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Logistics. - */ - distinct?: LogisticsScalarFieldEnum | LogisticsScalarFieldEnum[] - } - - /** - * Logistics findMany - */ - export type LogisticsFindManyArgs = { - /** - * Select specific fields to fetch from the Logistics - */ - select?: LogisticsSelect | null - /** - * Omit specific fields from the Logistics - */ - omit?: LogisticsOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: LogisticsInclude | null - /** - * Filter, which Logistics to fetch. - */ - where?: LogisticsWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Logistics to fetch. - */ - orderBy?: LogisticsOrderByWithRelationInput | LogisticsOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Logistics. - */ - cursor?: LogisticsWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Logistics 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` Logistics. - */ - skip?: number - distinct?: LogisticsScalarFieldEnum | LogisticsScalarFieldEnum[] - } - - /** - * Logistics create - */ - export type LogisticsCreateArgs = { - /** - * Select specific fields to fetch from the Logistics - */ - select?: LogisticsSelect | null - /** - * Omit specific fields from the Logistics - */ - omit?: LogisticsOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: LogisticsInclude | null - /** - * The data needed to create a Logistics. - */ - data: XOR - } - - /** - * Logistics createMany - */ - export type LogisticsCreateManyArgs = { - /** - * The data used to create many Logistics. - */ - data: LogisticsCreateManyInput | LogisticsCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * Logistics createManyAndReturn - */ - export type LogisticsCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Logistics - */ - select?: LogisticsSelectCreateManyAndReturn | null - /** - * Omit specific fields from the Logistics - */ - omit?: LogisticsOmit | null - /** - * The data used to create many Logistics. - */ - data: LogisticsCreateManyInput | LogisticsCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: LogisticsIncludeCreateManyAndReturn | null - } - - /** - * Logistics update - */ - export type LogisticsUpdateArgs = { - /** - * Select specific fields to fetch from the Logistics - */ - select?: LogisticsSelect | null - /** - * Omit specific fields from the Logistics - */ - omit?: LogisticsOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: LogisticsInclude | null - /** - * The data needed to update a Logistics. - */ - data: XOR - /** - * Choose, which Logistics to update. - */ - where: LogisticsWhereUniqueInput - } - - /** - * Logistics updateMany - */ - export type LogisticsUpdateManyArgs = { - /** - * The data used to update Logistics. - */ - data: XOR - /** - * Filter which Logistics to update - */ - where?: LogisticsWhereInput - /** - * Limit how many Logistics to update. - */ - limit?: number - } - - /** - * Logistics updateManyAndReturn - */ - export type LogisticsUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Logistics - */ - select?: LogisticsSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Logistics - */ - omit?: LogisticsOmit | null - /** - * The data used to update Logistics. - */ - data: XOR - /** - * Filter which Logistics to update - */ - where?: LogisticsWhereInput - /** - * Limit how many Logistics to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: LogisticsIncludeUpdateManyAndReturn | null - } - - /** - * Logistics upsert - */ - export type LogisticsUpsertArgs = { - /** - * Select specific fields to fetch from the Logistics - */ - select?: LogisticsSelect | null - /** - * Omit specific fields from the Logistics - */ - omit?: LogisticsOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: LogisticsInclude | null - /** - * The filter to search for the Logistics to update in case it exists. - */ - where: LogisticsWhereUniqueInput - /** - * In case the Logistics found by the `where` argument doesn't exist, create a new Logistics with this data. - */ - create: XOR - /** - * In case the Logistics was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * Logistics delete - */ - export type LogisticsDeleteArgs = { - /** - * Select specific fields to fetch from the Logistics - */ - select?: LogisticsSelect | null - /** - * Omit specific fields from the Logistics - */ - omit?: LogisticsOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: LogisticsInclude | null - /** - * Filter which Logistics to delete. - */ - where: LogisticsWhereUniqueInput - } - - /** - * Logistics deleteMany - */ - export type LogisticsDeleteManyArgs = { - /** - * Filter which Logistics to delete - */ - where?: LogisticsWhereInput - /** - * Limit how many Logistics to delete. - */ - limit?: number - } - - /** - * Logistics without action - */ - export type LogisticsDefaultArgs = { - /** - * Select specific fields to fetch from the Logistics - */ - select?: LogisticsSelect | null - /** - * Omit specific fields from the Logistics - */ - omit?: LogisticsOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: LogisticsInclude | null - } - - - /** - * Model SupplyOrder - */ - - export type AggregateSupplyOrder = { - _count: SupplyOrderCountAggregateOutputType | null - _avg: SupplyOrderAvgAggregateOutputType | null - _sum: SupplyOrderSumAggregateOutputType | null - _min: SupplyOrderMinAggregateOutputType | null - _max: SupplyOrderMaxAggregateOutputType | null - } - - export type SupplyOrderAvgAggregateOutputType = { - totalAmount: Decimal | null - totalItems: number | null - } - - export type SupplyOrderSumAggregateOutputType = { - totalAmount: Decimal | null - totalItems: number | null - } - - export type SupplyOrderMinAggregateOutputType = { - id: string | null - partnerId: string | null - deliveryDate: Date | null - status: $Enums.SupplyOrderStatus | null - totalAmount: Decimal | null - totalItems: number | null - fulfillmentCenterId: string | null - createdAt: Date | null - updatedAt: Date | null - organizationId: string | null - } - - export type SupplyOrderMaxAggregateOutputType = { - id: string | null - partnerId: string | null - deliveryDate: Date | null - status: $Enums.SupplyOrderStatus | null - totalAmount: Decimal | null - totalItems: number | null - fulfillmentCenterId: string | null - createdAt: Date | null - updatedAt: Date | null - organizationId: string | null - } - - export type SupplyOrderCountAggregateOutputType = { - id: number - partnerId: number - deliveryDate: number - status: number - totalAmount: number - totalItems: number - fulfillmentCenterId: number - createdAt: number - updatedAt: number - organizationId: number - _all: number - } - - - export type SupplyOrderAvgAggregateInputType = { - totalAmount?: true - totalItems?: true - } - - export type SupplyOrderSumAggregateInputType = { - totalAmount?: true - totalItems?: true - } - - export type SupplyOrderMinAggregateInputType = { - id?: true - partnerId?: true - deliveryDate?: true - status?: true - totalAmount?: true - totalItems?: true - fulfillmentCenterId?: true - createdAt?: true - updatedAt?: true - organizationId?: true - } - - export type SupplyOrderMaxAggregateInputType = { - id?: true - partnerId?: true - deliveryDate?: true - status?: true - totalAmount?: true - totalItems?: true - fulfillmentCenterId?: true - createdAt?: true - updatedAt?: true - organizationId?: true - } - - export type SupplyOrderCountAggregateInputType = { - id?: true - partnerId?: true - deliveryDate?: true - status?: true - totalAmount?: true - totalItems?: true - fulfillmentCenterId?: true - createdAt?: true - updatedAt?: true - organizationId?: true - _all?: true - } - - export type SupplyOrderAggregateArgs = { - /** - * Filter which SupplyOrder to aggregate. - */ - where?: SupplyOrderWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SupplyOrders to fetch. - */ - orderBy?: SupplyOrderOrderByWithRelationInput | SupplyOrderOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: SupplyOrderWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SupplyOrders 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` SupplyOrders. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned SupplyOrders - **/ - _count?: true | SupplyOrderCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: SupplyOrderAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: SupplyOrderSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: SupplyOrderMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: SupplyOrderMaxAggregateInputType - } - - export type GetSupplyOrderAggregateType = { - [P in keyof T & keyof AggregateSupplyOrder]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type SupplyOrderGroupByArgs = { - where?: SupplyOrderWhereInput - orderBy?: SupplyOrderOrderByWithAggregationInput | SupplyOrderOrderByWithAggregationInput[] - by: SupplyOrderScalarFieldEnum[] | SupplyOrderScalarFieldEnum - having?: SupplyOrderScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: SupplyOrderCountAggregateInputType | true - _avg?: SupplyOrderAvgAggregateInputType - _sum?: SupplyOrderSumAggregateInputType - _min?: SupplyOrderMinAggregateInputType - _max?: SupplyOrderMaxAggregateInputType - } - - export type SupplyOrderGroupByOutputType = { - id: string - partnerId: string - deliveryDate: Date - status: $Enums.SupplyOrderStatus - totalAmount: Decimal - totalItems: number - fulfillmentCenterId: string | null - createdAt: Date - updatedAt: Date - organizationId: string - _count: SupplyOrderCountAggregateOutputType | null - _avg: SupplyOrderAvgAggregateOutputType | null - _sum: SupplyOrderSumAggregateOutputType | null - _min: SupplyOrderMinAggregateOutputType | null - _max: SupplyOrderMaxAggregateOutputType | null - } - - type GetSupplyOrderGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof SupplyOrderGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type SupplyOrderSelect = $Extensions.GetSelect<{ - id?: boolean - partnerId?: boolean - deliveryDate?: boolean - status?: boolean - totalAmount?: boolean - totalItems?: boolean - fulfillmentCenterId?: boolean - createdAt?: boolean - updatedAt?: boolean - organizationId?: boolean - items?: boolean | SupplyOrder$itemsArgs - organization?: boolean | OrganizationDefaultArgs - partner?: boolean | OrganizationDefaultArgs - fulfillmentCenter?: boolean | SupplyOrder$fulfillmentCenterArgs - _count?: boolean | SupplyOrderCountOutputTypeDefaultArgs - }, ExtArgs["result"]["supplyOrder"]> - - export type SupplyOrderSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - partnerId?: boolean - deliveryDate?: boolean - status?: boolean - totalAmount?: boolean - totalItems?: boolean - fulfillmentCenterId?: boolean - createdAt?: boolean - updatedAt?: boolean - organizationId?: boolean - organization?: boolean | OrganizationDefaultArgs - partner?: boolean | OrganizationDefaultArgs - fulfillmentCenter?: boolean | SupplyOrder$fulfillmentCenterArgs - }, ExtArgs["result"]["supplyOrder"]> - - export type SupplyOrderSelectUpdateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - partnerId?: boolean - deliveryDate?: boolean - status?: boolean - totalAmount?: boolean - totalItems?: boolean - fulfillmentCenterId?: boolean - createdAt?: boolean - updatedAt?: boolean - organizationId?: boolean - organization?: boolean | OrganizationDefaultArgs - partner?: boolean | OrganizationDefaultArgs - fulfillmentCenter?: boolean | SupplyOrder$fulfillmentCenterArgs - }, ExtArgs["result"]["supplyOrder"]> - - export type SupplyOrderSelectScalar = { - id?: boolean - partnerId?: boolean - deliveryDate?: boolean - status?: boolean - totalAmount?: boolean - totalItems?: boolean - fulfillmentCenterId?: boolean - createdAt?: boolean - updatedAt?: boolean - organizationId?: boolean - } - - export type SupplyOrderOmit = $Extensions.GetOmit<"id" | "partnerId" | "deliveryDate" | "status" | "totalAmount" | "totalItems" | "fulfillmentCenterId" | "createdAt" | "updatedAt" | "organizationId", ExtArgs["result"]["supplyOrder"]> - export type SupplyOrderInclude = { - items?: boolean | SupplyOrder$itemsArgs - organization?: boolean | OrganizationDefaultArgs - partner?: boolean | OrganizationDefaultArgs - fulfillmentCenter?: boolean | SupplyOrder$fulfillmentCenterArgs - _count?: boolean | SupplyOrderCountOutputTypeDefaultArgs - } - export type SupplyOrderIncludeCreateManyAndReturn = { - organization?: boolean | OrganizationDefaultArgs - partner?: boolean | OrganizationDefaultArgs - fulfillmentCenter?: boolean | SupplyOrder$fulfillmentCenterArgs - } - export type SupplyOrderIncludeUpdateManyAndReturn = { - organization?: boolean | OrganizationDefaultArgs - partner?: boolean | OrganizationDefaultArgs - fulfillmentCenter?: boolean | SupplyOrder$fulfillmentCenterArgs - } - - export type $SupplyOrderPayload = { - name: "SupplyOrder" - objects: { - items: Prisma.$SupplyOrderItemPayload[] - organization: Prisma.$OrganizationPayload - partner: Prisma.$OrganizationPayload - fulfillmentCenter: Prisma.$OrganizationPayload | null - } - scalars: $Extensions.GetPayloadResult<{ - id: string - partnerId: string - deliveryDate: Date - status: $Enums.SupplyOrderStatus - totalAmount: Prisma.Decimal - totalItems: number - fulfillmentCenterId: string | null - createdAt: Date - updatedAt: Date - organizationId: string - }, ExtArgs["result"]["supplyOrder"]> - composites: {} - } - - type SupplyOrderGetPayload = $Result.GetResult - - type SupplyOrderCountArgs = - Omit & { - select?: SupplyOrderCountAggregateInputType | true - } - - export interface SupplyOrderDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['SupplyOrder'], meta: { name: 'SupplyOrder' } } - /** - * Find zero or one SupplyOrder that matches the filter. - * @param {SupplyOrderFindUniqueArgs} args - Arguments to find a SupplyOrder - * @example - * // Get one SupplyOrder - * const supplyOrder = await prisma.supplyOrder.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__SupplyOrderClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one SupplyOrder that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {SupplyOrderFindUniqueOrThrowArgs} args - Arguments to find a SupplyOrder - * @example - * // Get one SupplyOrder - * const supplyOrder = await prisma.supplyOrder.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__SupplyOrderClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first SupplyOrder 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 {SupplyOrderFindFirstArgs} args - Arguments to find a SupplyOrder - * @example - * // Get one SupplyOrder - * const supplyOrder = await prisma.supplyOrder.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__SupplyOrderClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first SupplyOrder 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 {SupplyOrderFindFirstOrThrowArgs} args - Arguments to find a SupplyOrder - * @example - * // Get one SupplyOrder - * const supplyOrder = await prisma.supplyOrder.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__SupplyOrderClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more SupplyOrders 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 {SupplyOrderFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all SupplyOrders - * const supplyOrders = await prisma.supplyOrder.findMany() - * - * // Get first 10 SupplyOrders - * const supplyOrders = await prisma.supplyOrder.findMany({ take: 10 }) - * - * // Only select the `id` - * const supplyOrderWithIdOnly = await prisma.supplyOrder.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> - - /** - * Create a SupplyOrder. - * @param {SupplyOrderCreateArgs} args - Arguments to create a SupplyOrder. - * @example - * // Create one SupplyOrder - * const SupplyOrder = await prisma.supplyOrder.create({ - * data: { - * // ... data to create a SupplyOrder - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__SupplyOrderClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many SupplyOrders. - * @param {SupplyOrderCreateManyArgs} args - Arguments to create many SupplyOrders. - * @example - * // Create many SupplyOrders - * const supplyOrder = await prisma.supplyOrder.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many SupplyOrders and returns the data saved in the database. - * @param {SupplyOrderCreateManyAndReturnArgs} args - Arguments to create many SupplyOrders. - * @example - * // Create many SupplyOrders - * const supplyOrder = await prisma.supplyOrder.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many SupplyOrders and only return the `id` - * const supplyOrderWithIdOnly = await prisma.supplyOrder.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a SupplyOrder. - * @param {SupplyOrderDeleteArgs} args - Arguments to delete one SupplyOrder. - * @example - * // Delete one SupplyOrder - * const SupplyOrder = await prisma.supplyOrder.delete({ - * where: { - * // ... filter to delete one SupplyOrder - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__SupplyOrderClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one SupplyOrder. - * @param {SupplyOrderUpdateArgs} args - Arguments to update one SupplyOrder. - * @example - * // Update one SupplyOrder - * const supplyOrder = await prisma.supplyOrder.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__SupplyOrderClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more SupplyOrders. - * @param {SupplyOrderDeleteManyArgs} args - Arguments to filter SupplyOrders to delete. - * @example - * // Delete a few SupplyOrders - * const { count } = await prisma.supplyOrder.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more SupplyOrders. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SupplyOrderUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many SupplyOrders - * const supplyOrder = await prisma.supplyOrder.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more SupplyOrders and returns the data updated in the database. - * @param {SupplyOrderUpdateManyAndReturnArgs} args - Arguments to update many SupplyOrders. - * @example - * // Update many SupplyOrders - * const supplyOrder = await prisma.supplyOrder.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more SupplyOrders and only return the `id` - * const supplyOrderWithIdOnly = await prisma.supplyOrder.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one SupplyOrder. - * @param {SupplyOrderUpsertArgs} args - Arguments to update or create a SupplyOrder. - * @example - * // Update or create a SupplyOrder - * const supplyOrder = await prisma.supplyOrder.upsert({ - * create: { - * // ... data to create a SupplyOrder - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the SupplyOrder we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__SupplyOrderClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of SupplyOrders. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SupplyOrderCountArgs} args - Arguments to filter SupplyOrders to count. - * @example - * // Count the number of SupplyOrders - * const count = await prisma.supplyOrder.count({ - * where: { - * // ... the filter for the SupplyOrders we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a SupplyOrder. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SupplyOrderAggregateArgs} 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: Subset): Prisma.PrismaPromise> - - /** - * Group by SupplyOrder. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SupplyOrderGroupByArgs} 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 SupplyOrderGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: SupplyOrderGroupByArgs['orderBy'] } - : { orderBy?: SupplyOrderGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetSupplyOrderGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the SupplyOrder model - */ - readonly fields: SupplyOrderFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for SupplyOrder. - * 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__SupplyOrderClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - items = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> - organization = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - partner = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - fulfillmentCenter = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $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): $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): $Utils.JsPromise - } - - - - - /** - * Fields of the SupplyOrder model - */ - interface SupplyOrderFieldRefs { - readonly id: FieldRef<"SupplyOrder", 'String'> - readonly partnerId: FieldRef<"SupplyOrder", 'String'> - readonly deliveryDate: FieldRef<"SupplyOrder", 'DateTime'> - readonly status: FieldRef<"SupplyOrder", 'SupplyOrderStatus'> - readonly totalAmount: FieldRef<"SupplyOrder", 'Decimal'> - readonly totalItems: FieldRef<"SupplyOrder", 'Int'> - readonly fulfillmentCenterId: FieldRef<"SupplyOrder", 'String'> - readonly createdAt: FieldRef<"SupplyOrder", 'DateTime'> - readonly updatedAt: FieldRef<"SupplyOrder", 'DateTime'> - readonly organizationId: FieldRef<"SupplyOrder", 'String'> - } - - - // Custom InputTypes - /** - * SupplyOrder findUnique - */ - export type SupplyOrderFindUniqueArgs = { - /** - * Select specific fields to fetch from the SupplyOrder - */ - select?: SupplyOrderSelect | null - /** - * Omit specific fields from the SupplyOrder - */ - omit?: SupplyOrderOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderInclude | null - /** - * Filter, which SupplyOrder to fetch. - */ - where: SupplyOrderWhereUniqueInput - } - - /** - * SupplyOrder findUniqueOrThrow - */ - export type SupplyOrderFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the SupplyOrder - */ - select?: SupplyOrderSelect | null - /** - * Omit specific fields from the SupplyOrder - */ - omit?: SupplyOrderOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderInclude | null - /** - * Filter, which SupplyOrder to fetch. - */ - where: SupplyOrderWhereUniqueInput - } - - /** - * SupplyOrder findFirst - */ - export type SupplyOrderFindFirstArgs = { - /** - * Select specific fields to fetch from the SupplyOrder - */ - select?: SupplyOrderSelect | null - /** - * Omit specific fields from the SupplyOrder - */ - omit?: SupplyOrderOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderInclude | null - /** - * Filter, which SupplyOrder to fetch. - */ - where?: SupplyOrderWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SupplyOrders to fetch. - */ - orderBy?: SupplyOrderOrderByWithRelationInput | SupplyOrderOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for SupplyOrders. - */ - cursor?: SupplyOrderWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SupplyOrders 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` SupplyOrders. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of SupplyOrders. - */ - distinct?: SupplyOrderScalarFieldEnum | SupplyOrderScalarFieldEnum[] - } - - /** - * SupplyOrder findFirstOrThrow - */ - export type SupplyOrderFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the SupplyOrder - */ - select?: SupplyOrderSelect | null - /** - * Omit specific fields from the SupplyOrder - */ - omit?: SupplyOrderOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderInclude | null - /** - * Filter, which SupplyOrder to fetch. - */ - where?: SupplyOrderWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SupplyOrders to fetch. - */ - orderBy?: SupplyOrderOrderByWithRelationInput | SupplyOrderOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for SupplyOrders. - */ - cursor?: SupplyOrderWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SupplyOrders 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` SupplyOrders. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of SupplyOrders. - */ - distinct?: SupplyOrderScalarFieldEnum | SupplyOrderScalarFieldEnum[] - } - - /** - * SupplyOrder findMany - */ - export type SupplyOrderFindManyArgs = { - /** - * Select specific fields to fetch from the SupplyOrder - */ - select?: SupplyOrderSelect | null - /** - * Omit specific fields from the SupplyOrder - */ - omit?: SupplyOrderOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderInclude | null - /** - * Filter, which SupplyOrders to fetch. - */ - where?: SupplyOrderWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SupplyOrders to fetch. - */ - orderBy?: SupplyOrderOrderByWithRelationInput | SupplyOrderOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing SupplyOrders. - */ - cursor?: SupplyOrderWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SupplyOrders 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` SupplyOrders. - */ - skip?: number - distinct?: SupplyOrderScalarFieldEnum | SupplyOrderScalarFieldEnum[] - } - - /** - * SupplyOrder create - */ - export type SupplyOrderCreateArgs = { - /** - * Select specific fields to fetch from the SupplyOrder - */ - select?: SupplyOrderSelect | null - /** - * Omit specific fields from the SupplyOrder - */ - omit?: SupplyOrderOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderInclude | null - /** - * The data needed to create a SupplyOrder. - */ - data: XOR - } - - /** - * SupplyOrder createMany - */ - export type SupplyOrderCreateManyArgs = { - /** - * The data used to create many SupplyOrders. - */ - data: SupplyOrderCreateManyInput | SupplyOrderCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * SupplyOrder createManyAndReturn - */ - export type SupplyOrderCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the SupplyOrder - */ - select?: SupplyOrderSelectCreateManyAndReturn | null - /** - * Omit specific fields from the SupplyOrder - */ - omit?: SupplyOrderOmit | null - /** - * The data used to create many SupplyOrders. - */ - data: SupplyOrderCreateManyInput | SupplyOrderCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderIncludeCreateManyAndReturn | null - } - - /** - * SupplyOrder update - */ - export type SupplyOrderUpdateArgs = { - /** - * Select specific fields to fetch from the SupplyOrder - */ - select?: SupplyOrderSelect | null - /** - * Omit specific fields from the SupplyOrder - */ - omit?: SupplyOrderOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderInclude | null - /** - * The data needed to update a SupplyOrder. - */ - data: XOR - /** - * Choose, which SupplyOrder to update. - */ - where: SupplyOrderWhereUniqueInput - } - - /** - * SupplyOrder updateMany - */ - export type SupplyOrderUpdateManyArgs = { - /** - * The data used to update SupplyOrders. - */ - data: XOR - /** - * Filter which SupplyOrders to update - */ - where?: SupplyOrderWhereInput - /** - * Limit how many SupplyOrders to update. - */ - limit?: number - } - - /** - * SupplyOrder updateManyAndReturn - */ - export type SupplyOrderUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the SupplyOrder - */ - select?: SupplyOrderSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the SupplyOrder - */ - omit?: SupplyOrderOmit | null - /** - * The data used to update SupplyOrders. - */ - data: XOR - /** - * Filter which SupplyOrders to update - */ - where?: SupplyOrderWhereInput - /** - * Limit how many SupplyOrders to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderIncludeUpdateManyAndReturn | null - } - - /** - * SupplyOrder upsert - */ - export type SupplyOrderUpsertArgs = { - /** - * Select specific fields to fetch from the SupplyOrder - */ - select?: SupplyOrderSelect | null - /** - * Omit specific fields from the SupplyOrder - */ - omit?: SupplyOrderOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderInclude | null - /** - * The filter to search for the SupplyOrder to update in case it exists. - */ - where: SupplyOrderWhereUniqueInput - /** - * In case the SupplyOrder found by the `where` argument doesn't exist, create a new SupplyOrder with this data. - */ - create: XOR - /** - * In case the SupplyOrder was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * SupplyOrder delete - */ - export type SupplyOrderDeleteArgs = { - /** - * Select specific fields to fetch from the SupplyOrder - */ - select?: SupplyOrderSelect | null - /** - * Omit specific fields from the SupplyOrder - */ - omit?: SupplyOrderOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderInclude | null - /** - * Filter which SupplyOrder to delete. - */ - where: SupplyOrderWhereUniqueInput - } - - /** - * SupplyOrder deleteMany - */ - export type SupplyOrderDeleteManyArgs = { - /** - * Filter which SupplyOrders to delete - */ - where?: SupplyOrderWhereInput - /** - * Limit how many SupplyOrders to delete. - */ - limit?: number - } - - /** - * SupplyOrder.items - */ - export type SupplyOrder$itemsArgs = { - /** - * Select specific fields to fetch from the SupplyOrderItem - */ - select?: SupplyOrderItemSelect | null - /** - * Omit specific fields from the SupplyOrderItem - */ - omit?: SupplyOrderItemOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderItemInclude | null - where?: SupplyOrderItemWhereInput - orderBy?: SupplyOrderItemOrderByWithRelationInput | SupplyOrderItemOrderByWithRelationInput[] - cursor?: SupplyOrderItemWhereUniqueInput - take?: number - skip?: number - distinct?: SupplyOrderItemScalarFieldEnum | SupplyOrderItemScalarFieldEnum[] - } - - /** - * SupplyOrder.fulfillmentCenter - */ - export type SupplyOrder$fulfillmentCenterArgs = { - /** - * Select specific fields to fetch from the Organization - */ - select?: OrganizationSelect | null - /** - * Omit specific fields from the Organization - */ - omit?: OrganizationOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: OrganizationInclude | null - where?: OrganizationWhereInput - } - - /** - * SupplyOrder without action - */ - export type SupplyOrderDefaultArgs = { - /** - * Select specific fields to fetch from the SupplyOrder - */ - select?: SupplyOrderSelect | null - /** - * Omit specific fields from the SupplyOrder - */ - omit?: SupplyOrderOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderInclude | null - } - - - /** - * Model SupplyOrderItem - */ - - export type AggregateSupplyOrderItem = { - _count: SupplyOrderItemCountAggregateOutputType | null - _avg: SupplyOrderItemAvgAggregateOutputType | null - _sum: SupplyOrderItemSumAggregateOutputType | null - _min: SupplyOrderItemMinAggregateOutputType | null - _max: SupplyOrderItemMaxAggregateOutputType | null - } - - export type SupplyOrderItemAvgAggregateOutputType = { - quantity: number | null - price: Decimal | null - totalPrice: Decimal | null - } - - export type SupplyOrderItemSumAggregateOutputType = { - quantity: number | null - price: Decimal | null - totalPrice: Decimal | null - } - - export type SupplyOrderItemMinAggregateOutputType = { - id: string | null - supplyOrderId: string | null - productId: string | null - quantity: number | null - price: Decimal | null - totalPrice: Decimal | null - createdAt: Date | null - updatedAt: Date | null - } - - export type SupplyOrderItemMaxAggregateOutputType = { - id: string | null - supplyOrderId: string | null - productId: string | null - quantity: number | null - price: Decimal | null - totalPrice: Decimal | null - createdAt: Date | null - updatedAt: Date | null - } - - export type SupplyOrderItemCountAggregateOutputType = { - id: number - supplyOrderId: number - productId: number - quantity: number - price: number - totalPrice: number - createdAt: number - updatedAt: number - _all: number - } - - - export type SupplyOrderItemAvgAggregateInputType = { - quantity?: true - price?: true - totalPrice?: true - } - - export type SupplyOrderItemSumAggregateInputType = { - quantity?: true - price?: true - totalPrice?: true - } - - export type SupplyOrderItemMinAggregateInputType = { - id?: true - supplyOrderId?: true - productId?: true - quantity?: true - price?: true - totalPrice?: true - createdAt?: true - updatedAt?: true - } - - export type SupplyOrderItemMaxAggregateInputType = { - id?: true - supplyOrderId?: true - productId?: true - quantity?: true - price?: true - totalPrice?: true - createdAt?: true - updatedAt?: true - } - - export type SupplyOrderItemCountAggregateInputType = { - id?: true - supplyOrderId?: true - productId?: true - quantity?: true - price?: true - totalPrice?: true - createdAt?: true - updatedAt?: true - _all?: true - } - - export type SupplyOrderItemAggregateArgs = { - /** - * Filter which SupplyOrderItem to aggregate. - */ - where?: SupplyOrderItemWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SupplyOrderItems to fetch. - */ - orderBy?: SupplyOrderItemOrderByWithRelationInput | SupplyOrderItemOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: SupplyOrderItemWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SupplyOrderItems 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` SupplyOrderItems. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned SupplyOrderItems - **/ - _count?: true | SupplyOrderItemCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: SupplyOrderItemAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: SupplyOrderItemSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: SupplyOrderItemMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: SupplyOrderItemMaxAggregateInputType - } - - export type GetSupplyOrderItemAggregateType = { - [P in keyof T & keyof AggregateSupplyOrderItem]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type SupplyOrderItemGroupByArgs = { - where?: SupplyOrderItemWhereInput - orderBy?: SupplyOrderItemOrderByWithAggregationInput | SupplyOrderItemOrderByWithAggregationInput[] - by: SupplyOrderItemScalarFieldEnum[] | SupplyOrderItemScalarFieldEnum - having?: SupplyOrderItemScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: SupplyOrderItemCountAggregateInputType | true - _avg?: SupplyOrderItemAvgAggregateInputType - _sum?: SupplyOrderItemSumAggregateInputType - _min?: SupplyOrderItemMinAggregateInputType - _max?: SupplyOrderItemMaxAggregateInputType - } - - export type SupplyOrderItemGroupByOutputType = { - id: string - supplyOrderId: string - productId: string - quantity: number - price: Decimal - totalPrice: Decimal - createdAt: Date - updatedAt: Date - _count: SupplyOrderItemCountAggregateOutputType | null - _avg: SupplyOrderItemAvgAggregateOutputType | null - _sum: SupplyOrderItemSumAggregateOutputType | null - _min: SupplyOrderItemMinAggregateOutputType | null - _max: SupplyOrderItemMaxAggregateOutputType | null - } - - type GetSupplyOrderItemGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof SupplyOrderItemGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type SupplyOrderItemSelect = $Extensions.GetSelect<{ - id?: boolean - supplyOrderId?: boolean - productId?: boolean - quantity?: boolean - price?: boolean - totalPrice?: boolean - createdAt?: boolean - updatedAt?: boolean - supplyOrder?: boolean | SupplyOrderDefaultArgs - product?: boolean | ProductDefaultArgs - }, ExtArgs["result"]["supplyOrderItem"]> - - export type SupplyOrderItemSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - supplyOrderId?: boolean - productId?: boolean - quantity?: boolean - price?: boolean - totalPrice?: boolean - createdAt?: boolean - updatedAt?: boolean - supplyOrder?: boolean | SupplyOrderDefaultArgs - product?: boolean | ProductDefaultArgs - }, ExtArgs["result"]["supplyOrderItem"]> - - export type SupplyOrderItemSelectUpdateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - supplyOrderId?: boolean - productId?: boolean - quantity?: boolean - price?: boolean - totalPrice?: boolean - createdAt?: boolean - updatedAt?: boolean - supplyOrder?: boolean | SupplyOrderDefaultArgs - product?: boolean | ProductDefaultArgs - }, ExtArgs["result"]["supplyOrderItem"]> - - export type SupplyOrderItemSelectScalar = { - id?: boolean - supplyOrderId?: boolean - productId?: boolean - quantity?: boolean - price?: boolean - totalPrice?: boolean - createdAt?: boolean - updatedAt?: boolean - } - - export type SupplyOrderItemOmit = $Extensions.GetOmit<"id" | "supplyOrderId" | "productId" | "quantity" | "price" | "totalPrice" | "createdAt" | "updatedAt", ExtArgs["result"]["supplyOrderItem"]> - export type SupplyOrderItemInclude = { - supplyOrder?: boolean | SupplyOrderDefaultArgs - product?: boolean | ProductDefaultArgs - } - export type SupplyOrderItemIncludeCreateManyAndReturn = { - supplyOrder?: boolean | SupplyOrderDefaultArgs - product?: boolean | ProductDefaultArgs - } - export type SupplyOrderItemIncludeUpdateManyAndReturn = { - supplyOrder?: boolean | SupplyOrderDefaultArgs - product?: boolean | ProductDefaultArgs - } - - export type $SupplyOrderItemPayload = { - name: "SupplyOrderItem" - objects: { - supplyOrder: Prisma.$SupplyOrderPayload - product: Prisma.$ProductPayload - } - scalars: $Extensions.GetPayloadResult<{ - id: string - supplyOrderId: string - productId: string - quantity: number - price: Prisma.Decimal - totalPrice: Prisma.Decimal - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["supplyOrderItem"]> - composites: {} - } - - type SupplyOrderItemGetPayload = $Result.GetResult - - type SupplyOrderItemCountArgs = - Omit & { - select?: SupplyOrderItemCountAggregateInputType | true - } - - export interface SupplyOrderItemDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['SupplyOrderItem'], meta: { name: 'SupplyOrderItem' } } - /** - * Find zero or one SupplyOrderItem that matches the filter. - * @param {SupplyOrderItemFindUniqueArgs} args - Arguments to find a SupplyOrderItem - * @example - * // Get one SupplyOrderItem - * const supplyOrderItem = await prisma.supplyOrderItem.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__SupplyOrderItemClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one SupplyOrderItem that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {SupplyOrderItemFindUniqueOrThrowArgs} args - Arguments to find a SupplyOrderItem - * @example - * // Get one SupplyOrderItem - * const supplyOrderItem = await prisma.supplyOrderItem.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__SupplyOrderItemClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first SupplyOrderItem 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 {SupplyOrderItemFindFirstArgs} args - Arguments to find a SupplyOrderItem - * @example - * // Get one SupplyOrderItem - * const supplyOrderItem = await prisma.supplyOrderItem.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__SupplyOrderItemClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first SupplyOrderItem 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 {SupplyOrderItemFindFirstOrThrowArgs} args - Arguments to find a SupplyOrderItem - * @example - * // Get one SupplyOrderItem - * const supplyOrderItem = await prisma.supplyOrderItem.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__SupplyOrderItemClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more SupplyOrderItems 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 {SupplyOrderItemFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all SupplyOrderItems - * const supplyOrderItems = await prisma.supplyOrderItem.findMany() - * - * // Get first 10 SupplyOrderItems - * const supplyOrderItems = await prisma.supplyOrderItem.findMany({ take: 10 }) - * - * // Only select the `id` - * const supplyOrderItemWithIdOnly = await prisma.supplyOrderItem.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> - - /** - * Create a SupplyOrderItem. - * @param {SupplyOrderItemCreateArgs} args - Arguments to create a SupplyOrderItem. - * @example - * // Create one SupplyOrderItem - * const SupplyOrderItem = await prisma.supplyOrderItem.create({ - * data: { - * // ... data to create a SupplyOrderItem - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__SupplyOrderItemClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many SupplyOrderItems. - * @param {SupplyOrderItemCreateManyArgs} args - Arguments to create many SupplyOrderItems. - * @example - * // Create many SupplyOrderItems - * const supplyOrderItem = await prisma.supplyOrderItem.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many SupplyOrderItems and returns the data saved in the database. - * @param {SupplyOrderItemCreateManyAndReturnArgs} args - Arguments to create many SupplyOrderItems. - * @example - * // Create many SupplyOrderItems - * const supplyOrderItem = await prisma.supplyOrderItem.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many SupplyOrderItems and only return the `id` - * const supplyOrderItemWithIdOnly = await prisma.supplyOrderItem.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a SupplyOrderItem. - * @param {SupplyOrderItemDeleteArgs} args - Arguments to delete one SupplyOrderItem. - * @example - * // Delete one SupplyOrderItem - * const SupplyOrderItem = await prisma.supplyOrderItem.delete({ - * where: { - * // ... filter to delete one SupplyOrderItem - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__SupplyOrderItemClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one SupplyOrderItem. - * @param {SupplyOrderItemUpdateArgs} args - Arguments to update one SupplyOrderItem. - * @example - * // Update one SupplyOrderItem - * const supplyOrderItem = await prisma.supplyOrderItem.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__SupplyOrderItemClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more SupplyOrderItems. - * @param {SupplyOrderItemDeleteManyArgs} args - Arguments to filter SupplyOrderItems to delete. - * @example - * // Delete a few SupplyOrderItems - * const { count } = await prisma.supplyOrderItem.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more SupplyOrderItems. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SupplyOrderItemUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many SupplyOrderItems - * const supplyOrderItem = await prisma.supplyOrderItem.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more SupplyOrderItems and returns the data updated in the database. - * @param {SupplyOrderItemUpdateManyAndReturnArgs} args - Arguments to update many SupplyOrderItems. - * @example - * // Update many SupplyOrderItems - * const supplyOrderItem = await prisma.supplyOrderItem.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more SupplyOrderItems and only return the `id` - * const supplyOrderItemWithIdOnly = await prisma.supplyOrderItem.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one SupplyOrderItem. - * @param {SupplyOrderItemUpsertArgs} args - Arguments to update or create a SupplyOrderItem. - * @example - * // Update or create a SupplyOrderItem - * const supplyOrderItem = await prisma.supplyOrderItem.upsert({ - * create: { - * // ... data to create a SupplyOrderItem - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the SupplyOrderItem we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__SupplyOrderItemClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of SupplyOrderItems. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SupplyOrderItemCountArgs} args - Arguments to filter SupplyOrderItems to count. - * @example - * // Count the number of SupplyOrderItems - * const count = await prisma.supplyOrderItem.count({ - * where: { - * // ... the filter for the SupplyOrderItems we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a SupplyOrderItem. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SupplyOrderItemAggregateArgs} 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: Subset): Prisma.PrismaPromise> - - /** - * Group by SupplyOrderItem. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SupplyOrderItemGroupByArgs} 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 SupplyOrderItemGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: SupplyOrderItemGroupByArgs['orderBy'] } - : { orderBy?: SupplyOrderItemGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetSupplyOrderItemGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the SupplyOrderItem model - */ - readonly fields: SupplyOrderItemFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for SupplyOrderItem. - * 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__SupplyOrderItemClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - supplyOrder = {}>(args?: Subset>): Prisma__SupplyOrderClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - product = {}>(args?: Subset>): Prisma__ProductClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $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): $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): $Utils.JsPromise - } - - - - - /** - * Fields of the SupplyOrderItem model - */ - interface SupplyOrderItemFieldRefs { - readonly id: FieldRef<"SupplyOrderItem", 'String'> - readonly supplyOrderId: FieldRef<"SupplyOrderItem", 'String'> - readonly productId: FieldRef<"SupplyOrderItem", 'String'> - readonly quantity: FieldRef<"SupplyOrderItem", 'Int'> - readonly price: FieldRef<"SupplyOrderItem", 'Decimal'> - readonly totalPrice: FieldRef<"SupplyOrderItem", 'Decimal'> - readonly createdAt: FieldRef<"SupplyOrderItem", 'DateTime'> - readonly updatedAt: FieldRef<"SupplyOrderItem", 'DateTime'> - } - - - // Custom InputTypes - /** - * SupplyOrderItem findUnique - */ - export type SupplyOrderItemFindUniqueArgs = { - /** - * Select specific fields to fetch from the SupplyOrderItem - */ - select?: SupplyOrderItemSelect | null - /** - * Omit specific fields from the SupplyOrderItem - */ - omit?: SupplyOrderItemOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderItemInclude | null - /** - * Filter, which SupplyOrderItem to fetch. - */ - where: SupplyOrderItemWhereUniqueInput - } - - /** - * SupplyOrderItem findUniqueOrThrow - */ - export type SupplyOrderItemFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the SupplyOrderItem - */ - select?: SupplyOrderItemSelect | null - /** - * Omit specific fields from the SupplyOrderItem - */ - omit?: SupplyOrderItemOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderItemInclude | null - /** - * Filter, which SupplyOrderItem to fetch. - */ - where: SupplyOrderItemWhereUniqueInput - } - - /** - * SupplyOrderItem findFirst - */ - export type SupplyOrderItemFindFirstArgs = { - /** - * Select specific fields to fetch from the SupplyOrderItem - */ - select?: SupplyOrderItemSelect | null - /** - * Omit specific fields from the SupplyOrderItem - */ - omit?: SupplyOrderItemOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderItemInclude | null - /** - * Filter, which SupplyOrderItem to fetch. - */ - where?: SupplyOrderItemWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SupplyOrderItems to fetch. - */ - orderBy?: SupplyOrderItemOrderByWithRelationInput | SupplyOrderItemOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for SupplyOrderItems. - */ - cursor?: SupplyOrderItemWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SupplyOrderItems 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` SupplyOrderItems. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of SupplyOrderItems. - */ - distinct?: SupplyOrderItemScalarFieldEnum | SupplyOrderItemScalarFieldEnum[] - } - - /** - * SupplyOrderItem findFirstOrThrow - */ - export type SupplyOrderItemFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the SupplyOrderItem - */ - select?: SupplyOrderItemSelect | null - /** - * Omit specific fields from the SupplyOrderItem - */ - omit?: SupplyOrderItemOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderItemInclude | null - /** - * Filter, which SupplyOrderItem to fetch. - */ - where?: SupplyOrderItemWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SupplyOrderItems to fetch. - */ - orderBy?: SupplyOrderItemOrderByWithRelationInput | SupplyOrderItemOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for SupplyOrderItems. - */ - cursor?: SupplyOrderItemWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SupplyOrderItems 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` SupplyOrderItems. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of SupplyOrderItems. - */ - distinct?: SupplyOrderItemScalarFieldEnum | SupplyOrderItemScalarFieldEnum[] - } - - /** - * SupplyOrderItem findMany - */ - export type SupplyOrderItemFindManyArgs = { - /** - * Select specific fields to fetch from the SupplyOrderItem - */ - select?: SupplyOrderItemSelect | null - /** - * Omit specific fields from the SupplyOrderItem - */ - omit?: SupplyOrderItemOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderItemInclude | null - /** - * Filter, which SupplyOrderItems to fetch. - */ - where?: SupplyOrderItemWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SupplyOrderItems to fetch. - */ - orderBy?: SupplyOrderItemOrderByWithRelationInput | SupplyOrderItemOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing SupplyOrderItems. - */ - cursor?: SupplyOrderItemWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SupplyOrderItems 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` SupplyOrderItems. - */ - skip?: number - distinct?: SupplyOrderItemScalarFieldEnum | SupplyOrderItemScalarFieldEnum[] - } - - /** - * SupplyOrderItem create - */ - export type SupplyOrderItemCreateArgs = { - /** - * Select specific fields to fetch from the SupplyOrderItem - */ - select?: SupplyOrderItemSelect | null - /** - * Omit specific fields from the SupplyOrderItem - */ - omit?: SupplyOrderItemOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderItemInclude | null - /** - * The data needed to create a SupplyOrderItem. - */ - data: XOR - } - - /** - * SupplyOrderItem createMany - */ - export type SupplyOrderItemCreateManyArgs = { - /** - * The data used to create many SupplyOrderItems. - */ - data: SupplyOrderItemCreateManyInput | SupplyOrderItemCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * SupplyOrderItem createManyAndReturn - */ - export type SupplyOrderItemCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the SupplyOrderItem - */ - select?: SupplyOrderItemSelectCreateManyAndReturn | null - /** - * Omit specific fields from the SupplyOrderItem - */ - omit?: SupplyOrderItemOmit | null - /** - * The data used to create many SupplyOrderItems. - */ - data: SupplyOrderItemCreateManyInput | SupplyOrderItemCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderItemIncludeCreateManyAndReturn | null - } - - /** - * SupplyOrderItem update - */ - export type SupplyOrderItemUpdateArgs = { - /** - * Select specific fields to fetch from the SupplyOrderItem - */ - select?: SupplyOrderItemSelect | null - /** - * Omit specific fields from the SupplyOrderItem - */ - omit?: SupplyOrderItemOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderItemInclude | null - /** - * The data needed to update a SupplyOrderItem. - */ - data: XOR - /** - * Choose, which SupplyOrderItem to update. - */ - where: SupplyOrderItemWhereUniqueInput - } - - /** - * SupplyOrderItem updateMany - */ - export type SupplyOrderItemUpdateManyArgs = { - /** - * The data used to update SupplyOrderItems. - */ - data: XOR - /** - * Filter which SupplyOrderItems to update - */ - where?: SupplyOrderItemWhereInput - /** - * Limit how many SupplyOrderItems to update. - */ - limit?: number - } - - /** - * SupplyOrderItem updateManyAndReturn - */ - export type SupplyOrderItemUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the SupplyOrderItem - */ - select?: SupplyOrderItemSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the SupplyOrderItem - */ - omit?: SupplyOrderItemOmit | null - /** - * The data used to update SupplyOrderItems. - */ - data: XOR - /** - * Filter which SupplyOrderItems to update - */ - where?: SupplyOrderItemWhereInput - /** - * Limit how many SupplyOrderItems to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderItemIncludeUpdateManyAndReturn | null - } - - /** - * SupplyOrderItem upsert - */ - export type SupplyOrderItemUpsertArgs = { - /** - * Select specific fields to fetch from the SupplyOrderItem - */ - select?: SupplyOrderItemSelect | null - /** - * Omit specific fields from the SupplyOrderItem - */ - omit?: SupplyOrderItemOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderItemInclude | null - /** - * The filter to search for the SupplyOrderItem to update in case it exists. - */ - where: SupplyOrderItemWhereUniqueInput - /** - * In case the SupplyOrderItem found by the `where` argument doesn't exist, create a new SupplyOrderItem with this data. - */ - create: XOR - /** - * In case the SupplyOrderItem was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * SupplyOrderItem delete - */ - export type SupplyOrderItemDeleteArgs = { - /** - * Select specific fields to fetch from the SupplyOrderItem - */ - select?: SupplyOrderItemSelect | null - /** - * Omit specific fields from the SupplyOrderItem - */ - omit?: SupplyOrderItemOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderItemInclude | null - /** - * Filter which SupplyOrderItem to delete. - */ - where: SupplyOrderItemWhereUniqueInput - } - - /** - * SupplyOrderItem deleteMany - */ - export type SupplyOrderItemDeleteManyArgs = { - /** - * Filter which SupplyOrderItems to delete - */ - where?: SupplyOrderItemWhereInput - /** - * Limit how many SupplyOrderItems to delete. - */ - limit?: number - } - - /** - * SupplyOrderItem without action - */ - export type SupplyOrderItemDefaultArgs = { - /** - * Select specific fields to fetch from the SupplyOrderItem - */ - select?: SupplyOrderItemSelect | null - /** - * Omit specific fields from the SupplyOrderItem - */ - omit?: SupplyOrderItemOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplyOrderItemInclude | null - } - - - /** - * Model SupplySupplier - */ - - export type AggregateSupplySupplier = { - _count: SupplySupplierCountAggregateOutputType | null - _min: SupplySupplierMinAggregateOutputType | null - _max: SupplySupplierMaxAggregateOutputType | null - } - - export type SupplySupplierMinAggregateOutputType = { - id: string | null - name: string | null - contactName: string | null - phone: string | null - market: string | null - address: string | null - place: string | null - telegram: string | null - organizationId: string | null - createdAt: Date | null - updatedAt: Date | null - } - - export type SupplySupplierMaxAggregateOutputType = { - id: string | null - name: string | null - contactName: string | null - phone: string | null - market: string | null - address: string | null - place: string | null - telegram: string | null - organizationId: string | null - createdAt: Date | null - updatedAt: Date | null - } - - export type SupplySupplierCountAggregateOutputType = { - id: number - name: number - contactName: number - phone: number - market: number - address: number - place: number - telegram: number - organizationId: number - createdAt: number - updatedAt: number - _all: number - } - - - export type SupplySupplierMinAggregateInputType = { - id?: true - name?: true - contactName?: true - phone?: true - market?: true - address?: true - place?: true - telegram?: true - organizationId?: true - createdAt?: true - updatedAt?: true - } - - export type SupplySupplierMaxAggregateInputType = { - id?: true - name?: true - contactName?: true - phone?: true - market?: true - address?: true - place?: true - telegram?: true - organizationId?: true - createdAt?: true - updatedAt?: true - } - - export type SupplySupplierCountAggregateInputType = { - id?: true - name?: true - contactName?: true - phone?: true - market?: true - address?: true - place?: true - telegram?: true - organizationId?: true - createdAt?: true - updatedAt?: true - _all?: true - } - - export type SupplySupplierAggregateArgs = { - /** - * Filter which SupplySupplier to aggregate. - */ - where?: SupplySupplierWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SupplySuppliers to fetch. - */ - orderBy?: SupplySupplierOrderByWithRelationInput | SupplySupplierOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: SupplySupplierWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SupplySuppliers 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` SupplySuppliers. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned SupplySuppliers - **/ - _count?: true | SupplySupplierCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: SupplySupplierMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: SupplySupplierMaxAggregateInputType - } - - export type GetSupplySupplierAggregateType = { - [P in keyof T & keyof AggregateSupplySupplier]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type SupplySupplierGroupByArgs = { - where?: SupplySupplierWhereInput - orderBy?: SupplySupplierOrderByWithAggregationInput | SupplySupplierOrderByWithAggregationInput[] - by: SupplySupplierScalarFieldEnum[] | SupplySupplierScalarFieldEnum - having?: SupplySupplierScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: SupplySupplierCountAggregateInputType | true - _min?: SupplySupplierMinAggregateInputType - _max?: SupplySupplierMaxAggregateInputType - } - - export type SupplySupplierGroupByOutputType = { - id: string - name: string - contactName: string - phone: string - market: string | null - address: string | null - place: string | null - telegram: string | null - organizationId: string - createdAt: Date - updatedAt: Date - _count: SupplySupplierCountAggregateOutputType | null - _min: SupplySupplierMinAggregateOutputType | null - _max: SupplySupplierMaxAggregateOutputType | null - } - - type GetSupplySupplierGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof SupplySupplierGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type SupplySupplierSelect = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - contactName?: boolean - phone?: boolean - market?: boolean - address?: boolean - place?: boolean - telegram?: boolean - organizationId?: boolean - createdAt?: boolean - updatedAt?: boolean - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["supplySupplier"]> - - export type SupplySupplierSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - contactName?: boolean - phone?: boolean - market?: boolean - address?: boolean - place?: boolean - telegram?: boolean - organizationId?: boolean - createdAt?: boolean - updatedAt?: boolean - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["supplySupplier"]> - - export type SupplySupplierSelectUpdateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - contactName?: boolean - phone?: boolean - market?: boolean - address?: boolean - place?: boolean - telegram?: boolean - organizationId?: boolean - createdAt?: boolean - updatedAt?: boolean - organization?: boolean | OrganizationDefaultArgs - }, ExtArgs["result"]["supplySupplier"]> - - export type SupplySupplierSelectScalar = { - id?: boolean - name?: boolean - contactName?: boolean - phone?: boolean - market?: boolean - address?: boolean - place?: boolean - telegram?: boolean - organizationId?: boolean - createdAt?: boolean - updatedAt?: boolean - } - - export type SupplySupplierOmit = $Extensions.GetOmit<"id" | "name" | "contactName" | "phone" | "market" | "address" | "place" | "telegram" | "organizationId" | "createdAt" | "updatedAt", ExtArgs["result"]["supplySupplier"]> - export type SupplySupplierInclude = { - organization?: boolean | OrganizationDefaultArgs - } - export type SupplySupplierIncludeCreateManyAndReturn = { - organization?: boolean | OrganizationDefaultArgs - } - export type SupplySupplierIncludeUpdateManyAndReturn = { - organization?: boolean | OrganizationDefaultArgs - } - - export type $SupplySupplierPayload = { - name: "SupplySupplier" - objects: { - organization: Prisma.$OrganizationPayload - } - scalars: $Extensions.GetPayloadResult<{ - id: string - name: string - contactName: string - phone: string - market: string | null - address: string | null - place: string | null - telegram: string | null - organizationId: string - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["supplySupplier"]> - composites: {} - } - - type SupplySupplierGetPayload = $Result.GetResult - - type SupplySupplierCountArgs = - Omit & { - select?: SupplySupplierCountAggregateInputType | true - } - - export interface SupplySupplierDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['SupplySupplier'], meta: { name: 'SupplySupplier' } } - /** - * Find zero or one SupplySupplier that matches the filter. - * @param {SupplySupplierFindUniqueArgs} args - Arguments to find a SupplySupplier - * @example - * // Get one SupplySupplier - * const supplySupplier = await prisma.supplySupplier.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__SupplySupplierClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one SupplySupplier that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {SupplySupplierFindUniqueOrThrowArgs} args - Arguments to find a SupplySupplier - * @example - * // Get one SupplySupplier - * const supplySupplier = await prisma.supplySupplier.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__SupplySupplierClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first SupplySupplier 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 {SupplySupplierFindFirstArgs} args - Arguments to find a SupplySupplier - * @example - * // Get one SupplySupplier - * const supplySupplier = await prisma.supplySupplier.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__SupplySupplierClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first SupplySupplier 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 {SupplySupplierFindFirstOrThrowArgs} args - Arguments to find a SupplySupplier - * @example - * // Get one SupplySupplier - * const supplySupplier = await prisma.supplySupplier.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__SupplySupplierClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more SupplySuppliers 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 {SupplySupplierFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all SupplySuppliers - * const supplySuppliers = await prisma.supplySupplier.findMany() - * - * // Get first 10 SupplySuppliers - * const supplySuppliers = await prisma.supplySupplier.findMany({ take: 10 }) - * - * // Only select the `id` - * const supplySupplierWithIdOnly = await prisma.supplySupplier.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> - - /** - * Create a SupplySupplier. - * @param {SupplySupplierCreateArgs} args - Arguments to create a SupplySupplier. - * @example - * // Create one SupplySupplier - * const SupplySupplier = await prisma.supplySupplier.create({ - * data: { - * // ... data to create a SupplySupplier - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__SupplySupplierClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many SupplySuppliers. - * @param {SupplySupplierCreateManyArgs} args - Arguments to create many SupplySuppliers. - * @example - * // Create many SupplySuppliers - * const supplySupplier = await prisma.supplySupplier.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many SupplySuppliers and returns the data saved in the database. - * @param {SupplySupplierCreateManyAndReturnArgs} args - Arguments to create many SupplySuppliers. - * @example - * // Create many SupplySuppliers - * const supplySupplier = await prisma.supplySupplier.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many SupplySuppliers and only return the `id` - * const supplySupplierWithIdOnly = await prisma.supplySupplier.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a SupplySupplier. - * @param {SupplySupplierDeleteArgs} args - Arguments to delete one SupplySupplier. - * @example - * // Delete one SupplySupplier - * const SupplySupplier = await prisma.supplySupplier.delete({ - * where: { - * // ... filter to delete one SupplySupplier - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__SupplySupplierClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one SupplySupplier. - * @param {SupplySupplierUpdateArgs} args - Arguments to update one SupplySupplier. - * @example - * // Update one SupplySupplier - * const supplySupplier = await prisma.supplySupplier.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__SupplySupplierClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more SupplySuppliers. - * @param {SupplySupplierDeleteManyArgs} args - Arguments to filter SupplySuppliers to delete. - * @example - * // Delete a few SupplySuppliers - * const { count } = await prisma.supplySupplier.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more SupplySuppliers. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SupplySupplierUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many SupplySuppliers - * const supplySupplier = await prisma.supplySupplier.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more SupplySuppliers and returns the data updated in the database. - * @param {SupplySupplierUpdateManyAndReturnArgs} args - Arguments to update many SupplySuppliers. - * @example - * // Update many SupplySuppliers - * const supplySupplier = await prisma.supplySupplier.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more SupplySuppliers and only return the `id` - * const supplySupplierWithIdOnly = await prisma.supplySupplier.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one SupplySupplier. - * @param {SupplySupplierUpsertArgs} args - Arguments to update or create a SupplySupplier. - * @example - * // Update or create a SupplySupplier - * const supplySupplier = await prisma.supplySupplier.upsert({ - * create: { - * // ... data to create a SupplySupplier - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the SupplySupplier we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__SupplySupplierClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of SupplySuppliers. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SupplySupplierCountArgs} args - Arguments to filter SupplySuppliers to count. - * @example - * // Count the number of SupplySuppliers - * const count = await prisma.supplySupplier.count({ - * where: { - * // ... the filter for the SupplySuppliers we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a SupplySupplier. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SupplySupplierAggregateArgs} 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: Subset): Prisma.PrismaPromise> - - /** - * Group by SupplySupplier. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SupplySupplierGroupByArgs} 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 SupplySupplierGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: SupplySupplierGroupByArgs['orderBy'] } - : { orderBy?: SupplySupplierGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetSupplySupplierGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the SupplySupplier model - */ - readonly fields: SupplySupplierFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for SupplySupplier. - * 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__SupplySupplierClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - organization = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $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): $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): $Utils.JsPromise - } - - - - - /** - * Fields of the SupplySupplier model - */ - interface SupplySupplierFieldRefs { - readonly id: FieldRef<"SupplySupplier", 'String'> - readonly name: FieldRef<"SupplySupplier", 'String'> - readonly contactName: FieldRef<"SupplySupplier", 'String'> - readonly phone: FieldRef<"SupplySupplier", 'String'> - readonly market: FieldRef<"SupplySupplier", 'String'> - readonly address: FieldRef<"SupplySupplier", 'String'> - readonly place: FieldRef<"SupplySupplier", 'String'> - readonly telegram: FieldRef<"SupplySupplier", 'String'> - readonly organizationId: FieldRef<"SupplySupplier", 'String'> - readonly createdAt: FieldRef<"SupplySupplier", 'DateTime'> - readonly updatedAt: FieldRef<"SupplySupplier", 'DateTime'> - } - - - // Custom InputTypes - /** - * SupplySupplier findUnique - */ - export type SupplySupplierFindUniqueArgs = { - /** - * Select specific fields to fetch from the SupplySupplier - */ - select?: SupplySupplierSelect | null - /** - * Omit specific fields from the SupplySupplier - */ - omit?: SupplySupplierOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplySupplierInclude | null - /** - * Filter, which SupplySupplier to fetch. - */ - where: SupplySupplierWhereUniqueInput - } - - /** - * SupplySupplier findUniqueOrThrow - */ - export type SupplySupplierFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the SupplySupplier - */ - select?: SupplySupplierSelect | null - /** - * Omit specific fields from the SupplySupplier - */ - omit?: SupplySupplierOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplySupplierInclude | null - /** - * Filter, which SupplySupplier to fetch. - */ - where: SupplySupplierWhereUniqueInput - } - - /** - * SupplySupplier findFirst - */ - export type SupplySupplierFindFirstArgs = { - /** - * Select specific fields to fetch from the SupplySupplier - */ - select?: SupplySupplierSelect | null - /** - * Omit specific fields from the SupplySupplier - */ - omit?: SupplySupplierOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplySupplierInclude | null - /** - * Filter, which SupplySupplier to fetch. - */ - where?: SupplySupplierWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SupplySuppliers to fetch. - */ - orderBy?: SupplySupplierOrderByWithRelationInput | SupplySupplierOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for SupplySuppliers. - */ - cursor?: SupplySupplierWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SupplySuppliers 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` SupplySuppliers. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of SupplySuppliers. - */ - distinct?: SupplySupplierScalarFieldEnum | SupplySupplierScalarFieldEnum[] - } - - /** - * SupplySupplier findFirstOrThrow - */ - export type SupplySupplierFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the SupplySupplier - */ - select?: SupplySupplierSelect | null - /** - * Omit specific fields from the SupplySupplier - */ - omit?: SupplySupplierOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplySupplierInclude | null - /** - * Filter, which SupplySupplier to fetch. - */ - where?: SupplySupplierWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SupplySuppliers to fetch. - */ - orderBy?: SupplySupplierOrderByWithRelationInput | SupplySupplierOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for SupplySuppliers. - */ - cursor?: SupplySupplierWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SupplySuppliers 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` SupplySuppliers. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of SupplySuppliers. - */ - distinct?: SupplySupplierScalarFieldEnum | SupplySupplierScalarFieldEnum[] - } - - /** - * SupplySupplier findMany - */ - export type SupplySupplierFindManyArgs = { - /** - * Select specific fields to fetch from the SupplySupplier - */ - select?: SupplySupplierSelect | null - /** - * Omit specific fields from the SupplySupplier - */ - omit?: SupplySupplierOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplySupplierInclude | null - /** - * Filter, which SupplySuppliers to fetch. - */ - where?: SupplySupplierWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SupplySuppliers to fetch. - */ - orderBy?: SupplySupplierOrderByWithRelationInput | SupplySupplierOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing SupplySuppliers. - */ - cursor?: SupplySupplierWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SupplySuppliers 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` SupplySuppliers. - */ - skip?: number - distinct?: SupplySupplierScalarFieldEnum | SupplySupplierScalarFieldEnum[] - } - - /** - * SupplySupplier create - */ - export type SupplySupplierCreateArgs = { - /** - * Select specific fields to fetch from the SupplySupplier - */ - select?: SupplySupplierSelect | null - /** - * Omit specific fields from the SupplySupplier - */ - omit?: SupplySupplierOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplySupplierInclude | null - /** - * The data needed to create a SupplySupplier. - */ - data: XOR - } - - /** - * SupplySupplier createMany - */ - export type SupplySupplierCreateManyArgs = { - /** - * The data used to create many SupplySuppliers. - */ - data: SupplySupplierCreateManyInput | SupplySupplierCreateManyInput[] - skipDuplicates?: boolean - } - - /** - * SupplySupplier createManyAndReturn - */ - export type SupplySupplierCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the SupplySupplier - */ - select?: SupplySupplierSelectCreateManyAndReturn | null - /** - * Omit specific fields from the SupplySupplier - */ - omit?: SupplySupplierOmit | null - /** - * The data used to create many SupplySuppliers. - */ - data: SupplySupplierCreateManyInput | SupplySupplierCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplySupplierIncludeCreateManyAndReturn | null - } - - /** - * SupplySupplier update - */ - export type SupplySupplierUpdateArgs = { - /** - * Select specific fields to fetch from the SupplySupplier - */ - select?: SupplySupplierSelect | null - /** - * Omit specific fields from the SupplySupplier - */ - omit?: SupplySupplierOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplySupplierInclude | null - /** - * The data needed to update a SupplySupplier. - */ - data: XOR - /** - * Choose, which SupplySupplier to update. - */ - where: SupplySupplierWhereUniqueInput - } - - /** - * SupplySupplier updateMany - */ - export type SupplySupplierUpdateManyArgs = { - /** - * The data used to update SupplySuppliers. - */ - data: XOR - /** - * Filter which SupplySuppliers to update - */ - where?: SupplySupplierWhereInput - /** - * Limit how many SupplySuppliers to update. - */ - limit?: number - } - - /** - * SupplySupplier updateManyAndReturn - */ - export type SupplySupplierUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the SupplySupplier - */ - select?: SupplySupplierSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the SupplySupplier - */ - omit?: SupplySupplierOmit | null - /** - * The data used to update SupplySuppliers. - */ - data: XOR - /** - * Filter which SupplySuppliers to update - */ - where?: SupplySupplierWhereInput - /** - * Limit how many SupplySuppliers to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplySupplierIncludeUpdateManyAndReturn | null - } - - /** - * SupplySupplier upsert - */ - export type SupplySupplierUpsertArgs = { - /** - * Select specific fields to fetch from the SupplySupplier - */ - select?: SupplySupplierSelect | null - /** - * Omit specific fields from the SupplySupplier - */ - omit?: SupplySupplierOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplySupplierInclude | null - /** - * The filter to search for the SupplySupplier to update in case it exists. - */ - where: SupplySupplierWhereUniqueInput - /** - * In case the SupplySupplier found by the `where` argument doesn't exist, create a new SupplySupplier with this data. - */ - create: XOR - /** - * In case the SupplySupplier was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * SupplySupplier delete - */ - export type SupplySupplierDeleteArgs = { - /** - * Select specific fields to fetch from the SupplySupplier - */ - select?: SupplySupplierSelect | null - /** - * Omit specific fields from the SupplySupplier - */ - omit?: SupplySupplierOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplySupplierInclude | null - /** - * Filter which SupplySupplier to delete. - */ - where: SupplySupplierWhereUniqueInput - } - - /** - * SupplySupplier deleteMany - */ - export type SupplySupplierDeleteManyArgs = { - /** - * Filter which SupplySuppliers to delete - */ - where?: SupplySupplierWhereInput - /** - * Limit how many SupplySuppliers to delete. - */ - limit?: number - } - - /** - * SupplySupplier without action - */ - export type SupplySupplierDefaultArgs = { - /** - * Select specific fields to fetch from the SupplySupplier - */ - select?: SupplySupplierSelect | null - /** - * Omit specific fields from the SupplySupplier - */ - omit?: SupplySupplierOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SupplySupplierInclude | null - } - - - /** - * Enums - */ - - export const TransactionIsolationLevel: { - ReadUncommitted: 'ReadUncommitted', - ReadCommitted: 'ReadCommitted', - RepeatableRead: 'RepeatableRead', - Serializable: 'Serializable' - }; - - export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] - - - export const UserScalarFieldEnum: { - id: 'id', - phone: 'phone', - avatar: 'avatar', - managerName: 'managerName', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' - }; - - export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] - - - export const AdminScalarFieldEnum: { - id: 'id', - username: 'username', - password: 'password', - email: 'email', - isActive: 'isActive', - lastLogin: 'lastLogin', - createdAt: 'createdAt', - updatedAt: 'updatedAt' - }; - - export type AdminScalarFieldEnum = (typeof AdminScalarFieldEnum)[keyof typeof AdminScalarFieldEnum] - - - export const SmsCodeScalarFieldEnum: { - id: 'id', - code: 'code', - phone: 'phone', - expiresAt: 'expiresAt', - isUsed: 'isUsed', - attempts: 'attempts', - maxAttempts: 'maxAttempts', - createdAt: 'createdAt', - userId: 'userId' - }; - - export type SmsCodeScalarFieldEnum = (typeof SmsCodeScalarFieldEnum)[keyof typeof SmsCodeScalarFieldEnum] - - - export const OrganizationScalarFieldEnum: { - id: 'id', - inn: 'inn', - kpp: 'kpp', - name: 'name', - fullName: 'fullName', - ogrn: 'ogrn', - ogrnDate: 'ogrnDate', - type: 'type', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - address: 'address', - addressFull: 'addressFull', - status: 'status', - actualityDate: 'actualityDate', - registrationDate: 'registrationDate', - liquidationDate: 'liquidationDate', - managementName: 'managementName', - managementPost: 'managementPost', - opfCode: 'opfCode', - opfFull: 'opfFull', - opfShort: 'opfShort', - okato: 'okato', - oktmo: 'oktmo', - okpo: 'okpo', - okved: 'okved', - phones: 'phones', - emails: 'emails', - employeeCount: 'employeeCount', - revenue: 'revenue', - taxSystem: 'taxSystem', - dadataData: 'dadataData' - }; - - export type OrganizationScalarFieldEnum = (typeof OrganizationScalarFieldEnum)[keyof typeof OrganizationScalarFieldEnum] - - - export const ApiKeyScalarFieldEnum: { - id: 'id', - marketplace: 'marketplace', - apiKey: 'apiKey', - isActive: 'isActive', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - validationData: 'validationData', - organizationId: 'organizationId' - }; - - export type ApiKeyScalarFieldEnum = (typeof ApiKeyScalarFieldEnum)[keyof typeof ApiKeyScalarFieldEnum] - - - export const CounterpartyRequestScalarFieldEnum: { - id: 'id', - status: 'status', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - senderId: 'senderId', - receiverId: 'receiverId', - message: 'message' - }; - - export type CounterpartyRequestScalarFieldEnum = (typeof CounterpartyRequestScalarFieldEnum)[keyof typeof CounterpartyRequestScalarFieldEnum] - - - export const CounterpartyScalarFieldEnum: { - id: 'id', - createdAt: 'createdAt', - organizationId: 'organizationId', - counterpartyId: 'counterpartyId' - }; - - export type CounterpartyScalarFieldEnum = (typeof CounterpartyScalarFieldEnum)[keyof typeof CounterpartyScalarFieldEnum] - - - export const MessageScalarFieldEnum: { - id: 'id', - content: 'content', - type: 'type', - voiceUrl: 'voiceUrl', - voiceDuration: 'voiceDuration', - fileUrl: 'fileUrl', - fileName: 'fileName', - fileSize: 'fileSize', - fileType: 'fileType', - isRead: 'isRead', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - senderId: 'senderId', - senderOrganizationId: 'senderOrganizationId', - receiverOrganizationId: 'receiverOrganizationId' - }; - - export type MessageScalarFieldEnum = (typeof MessageScalarFieldEnum)[keyof typeof MessageScalarFieldEnum] - - - export const ServiceScalarFieldEnum: { - id: 'id', - name: 'name', - description: 'description', - price: 'price', - imageUrl: 'imageUrl', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' - }; - - export type ServiceScalarFieldEnum = (typeof ServiceScalarFieldEnum)[keyof typeof ServiceScalarFieldEnum] - - - export const SupplyScalarFieldEnum: { - id: 'id', - name: 'name', - description: 'description', - price: 'price', - quantity: 'quantity', - unit: 'unit', - category: 'category', - status: 'status', - date: 'date', - supplier: 'supplier', - minStock: 'minStock', - currentStock: 'currentStock', - imageUrl: 'imageUrl', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' - }; - - export type SupplyScalarFieldEnum = (typeof SupplyScalarFieldEnum)[keyof typeof SupplyScalarFieldEnum] - - - export const CategoryScalarFieldEnum: { - id: 'id', - name: 'name', - createdAt: 'createdAt', - updatedAt: 'updatedAt' - }; - - export type CategoryScalarFieldEnum = (typeof CategoryScalarFieldEnum)[keyof typeof CategoryScalarFieldEnum] - - - export const ProductScalarFieldEnum: { - id: 'id', - name: 'name', - article: 'article', - description: 'description', - price: 'price', - quantity: 'quantity', - categoryId: 'categoryId', - brand: 'brand', - color: 'color', - size: 'size', - weight: 'weight', - dimensions: 'dimensions', - material: 'material', - images: 'images', - mainImage: 'mainImage', - isActive: 'isActive', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' - }; - - export type ProductScalarFieldEnum = (typeof ProductScalarFieldEnum)[keyof typeof ProductScalarFieldEnum] - - - export const CartScalarFieldEnum: { - id: 'id', - organizationId: 'organizationId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' - }; - - export type CartScalarFieldEnum = (typeof CartScalarFieldEnum)[keyof typeof CartScalarFieldEnum] - - - export const CartItemScalarFieldEnum: { - id: 'id', - cartId: 'cartId', - productId: 'productId', - quantity: 'quantity', - createdAt: 'createdAt', - updatedAt: 'updatedAt' - }; - - export type CartItemScalarFieldEnum = (typeof CartItemScalarFieldEnum)[keyof typeof CartItemScalarFieldEnum] - - - export const FavoritesScalarFieldEnum: { - id: 'id', - organizationId: 'organizationId', - productId: 'productId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' - }; - - export type FavoritesScalarFieldEnum = (typeof FavoritesScalarFieldEnum)[keyof typeof FavoritesScalarFieldEnum] - - - export const EmployeeScalarFieldEnum: { - id: 'id', - firstName: 'firstName', - lastName: 'lastName', - middleName: 'middleName', - birthDate: 'birthDate', - avatar: 'avatar', - passportPhoto: 'passportPhoto', - passportSeries: 'passportSeries', - passportNumber: 'passportNumber', - passportIssued: 'passportIssued', - passportDate: 'passportDate', - address: 'address', - position: 'position', - department: 'department', - hireDate: 'hireDate', - salary: 'salary', - status: 'status', - phone: 'phone', - email: 'email', - telegram: 'telegram', - whatsapp: 'whatsapp', - emergencyContact: 'emergencyContact', - emergencyPhone: 'emergencyPhone', - organizationId: 'organizationId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' - }; - - export type EmployeeScalarFieldEnum = (typeof EmployeeScalarFieldEnum)[keyof typeof EmployeeScalarFieldEnum] - - - export const EmployeeScheduleScalarFieldEnum: { - id: 'id', - date: 'date', - status: 'status', - hoursWorked: 'hoursWorked', - notes: 'notes', - employeeId: 'employeeId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' - }; - - export type EmployeeScheduleScalarFieldEnum = (typeof EmployeeScheduleScalarFieldEnum)[keyof typeof EmployeeScheduleScalarFieldEnum] - - - export const WildberriesSupplyScalarFieldEnum: { - id: 'id', - organizationId: 'organizationId', - deliveryDate: 'deliveryDate', - status: 'status', - totalAmount: 'totalAmount', - totalItems: 'totalItems', - createdAt: 'createdAt', - updatedAt: 'updatedAt' - }; - - export type WildberriesSupplyScalarFieldEnum = (typeof WildberriesSupplyScalarFieldEnum)[keyof typeof WildberriesSupplyScalarFieldEnum] - - - export const WildberriesSupplyCardScalarFieldEnum: { - id: 'id', - supplyId: 'supplyId', - nmId: 'nmId', - vendorCode: 'vendorCode', - title: 'title', - brand: 'brand', - price: 'price', - discountedPrice: 'discountedPrice', - quantity: 'quantity', - selectedQuantity: 'selectedQuantity', - selectedMarket: 'selectedMarket', - selectedPlace: 'selectedPlace', - sellerName: 'sellerName', - sellerPhone: 'sellerPhone', - deliveryDate: 'deliveryDate', - mediaFiles: 'mediaFiles', - selectedServices: 'selectedServices', - createdAt: 'createdAt', - updatedAt: 'updatedAt' - }; - - export type WildberriesSupplyCardScalarFieldEnum = (typeof WildberriesSupplyCardScalarFieldEnum)[keyof typeof WildberriesSupplyCardScalarFieldEnum] - - - export const LogisticsScalarFieldEnum: { - id: 'id', - fromLocation: 'fromLocation', - toLocation: 'toLocation', - priceUnder1m3: 'priceUnder1m3', - priceOver1m3: 'priceOver1m3', - description: 'description', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' - }; - - export type LogisticsScalarFieldEnum = (typeof LogisticsScalarFieldEnum)[keyof typeof LogisticsScalarFieldEnum] - - - export const SupplyOrderScalarFieldEnum: { - id: 'id', - partnerId: 'partnerId', - deliveryDate: 'deliveryDate', - status: 'status', - totalAmount: 'totalAmount', - totalItems: 'totalItems', - fulfillmentCenterId: 'fulfillmentCenterId', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' - }; - - export type SupplyOrderScalarFieldEnum = (typeof SupplyOrderScalarFieldEnum)[keyof typeof SupplyOrderScalarFieldEnum] - - - export const SupplyOrderItemScalarFieldEnum: { - id: 'id', - supplyOrderId: 'supplyOrderId', - productId: 'productId', - quantity: 'quantity', - price: 'price', - totalPrice: 'totalPrice', - createdAt: 'createdAt', - updatedAt: 'updatedAt' - }; - - export type SupplyOrderItemScalarFieldEnum = (typeof SupplyOrderItemScalarFieldEnum)[keyof typeof SupplyOrderItemScalarFieldEnum] - - - export const SupplySupplierScalarFieldEnum: { - id: 'id', - name: 'name', - contactName: 'contactName', - phone: 'phone', - market: 'market', - address: 'address', - place: 'place', - telegram: 'telegram', - organizationId: 'organizationId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' - }; - - export type SupplySupplierScalarFieldEnum = (typeof SupplySupplierScalarFieldEnum)[keyof typeof SupplySupplierScalarFieldEnum] - - - export const SortOrder: { - asc: 'asc', - desc: 'desc' - }; - - export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] - - - export const NullableJsonNullValueInput: { - DbNull: typeof DbNull, - JsonNull: typeof JsonNull - }; - - export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput] - - - export const JsonNullValueInput: { - JsonNull: typeof JsonNull - }; - - export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput] - - - export const QueryMode: { - default: 'default', - insensitive: 'insensitive' - }; - - export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] - - - export const NullsOrder: { - first: 'first', - last: 'last' - }; - - export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] - - - export const JsonNullValueFilter: { - DbNull: typeof DbNull, - JsonNull: typeof JsonNull, - AnyNull: typeof AnyNull - }; - - export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter] - - - /** - * Field references - */ - - - /** - * Reference to a field of type '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 'Boolean' - */ - export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> - - - - /** - * 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 'OrganizationType' - */ - export type EnumOrganizationTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'OrganizationType'> - - - - /** - * Reference to a field of type 'OrganizationType[]' - */ - export type ListEnumOrganizationTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'OrganizationType[]'> - - - - /** - * Reference to a field of type 'Json' - */ - export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'> - - - - /** - * Reference to a field of type 'QueryMode' - */ - export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'> - - - - /** - * Reference to a field of type '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 'MarketplaceType' - */ - export type EnumMarketplaceTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'MarketplaceType'> - - - - /** - * Reference to a field of type 'MarketplaceType[]' - */ - export type ListEnumMarketplaceTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'MarketplaceType[]'> - - - - /** - * Reference to a field of type 'CounterpartyRequestStatus' - */ - export type EnumCounterpartyRequestStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'CounterpartyRequestStatus'> - - - - /** - * Reference to a field of type 'CounterpartyRequestStatus[]' - */ - export type ListEnumCounterpartyRequestStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'CounterpartyRequestStatus[]'> - - - - /** - * Reference to a field of type 'MessageType' - */ - export type EnumMessageTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'MessageType'> - - - - /** - * Reference to a field of type 'MessageType[]' - */ - export type ListEnumMessageTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'MessageType[]'> - - - - /** - * Reference to a field of type 'Decimal' - */ - export type DecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal'> - - - - /** - * Reference to a field of type 'Decimal[]' - */ - export type ListDecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal[]'> - - - - /** - * Reference to a field of type 'Float' - */ - export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> - - - - /** - * Reference to a field of type 'Float[]' - */ - export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'> - - - - /** - * Reference to a field of type 'EmployeeStatus' - */ - export type EnumEmployeeStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'EmployeeStatus'> - - - - /** - * Reference to a field of type 'EmployeeStatus[]' - */ - export type ListEnumEmployeeStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'EmployeeStatus[]'> - - - - /** - * Reference to a field of type 'ScheduleStatus' - */ - export type EnumScheduleStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ScheduleStatus'> - - - - /** - * Reference to a field of type 'ScheduleStatus[]' - */ - export type ListEnumScheduleStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ScheduleStatus[]'> - - - - /** - * Reference to a field of type 'WildberriesSupplyStatus' - */ - export type EnumWildberriesSupplyStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'WildberriesSupplyStatus'> - - - - /** - * Reference to a field of type 'WildberriesSupplyStatus[]' - */ - export type ListEnumWildberriesSupplyStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'WildberriesSupplyStatus[]'> - - - - /** - * Reference to a field of type 'SupplyOrderStatus' - */ - export type EnumSupplyOrderStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'SupplyOrderStatus'> - - - - /** - * Reference to a field of type 'SupplyOrderStatus[]' - */ - export type ListEnumSupplyOrderStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'SupplyOrderStatus[]'> - - /** - * Deep Input Types - */ - - - export type UserWhereInput = { - AND?: UserWhereInput | UserWhereInput[] - OR?: UserWhereInput[] - NOT?: UserWhereInput | UserWhereInput[] - id?: StringFilter<"User"> | string - phone?: StringFilter<"User"> | string - avatar?: StringNullableFilter<"User"> | string | null - managerName?: StringNullableFilter<"User"> | string | null - createdAt?: DateTimeFilter<"User"> | Date | string - updatedAt?: DateTimeFilter<"User"> | Date | string - organizationId?: StringNullableFilter<"User"> | string | null - sentMessages?: MessageListRelationFilter - smsCodes?: SmsCodeListRelationFilter - organization?: XOR | null - } - - export type UserOrderByWithRelationInput = { - id?: SortOrder - phone?: SortOrder - avatar?: SortOrderInput | SortOrder - managerName?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrderInput | SortOrder - sentMessages?: MessageOrderByRelationAggregateInput - smsCodes?: SmsCodeOrderByRelationAggregateInput - organization?: OrganizationOrderByWithRelationInput - } - - export type UserWhereUniqueInput = Prisma.AtLeast<{ - id?: string - phone?: string - AND?: UserWhereInput | UserWhereInput[] - OR?: UserWhereInput[] - NOT?: UserWhereInput | UserWhereInput[] - avatar?: StringNullableFilter<"User"> | string | null - managerName?: StringNullableFilter<"User"> | string | null - createdAt?: DateTimeFilter<"User"> | Date | string - updatedAt?: DateTimeFilter<"User"> | Date | string - organizationId?: StringNullableFilter<"User"> | string | null - sentMessages?: MessageListRelationFilter - smsCodes?: SmsCodeListRelationFilter - organization?: XOR | null - }, "id" | "phone"> - - export type UserOrderByWithAggregationInput = { - id?: SortOrder - phone?: SortOrder - avatar?: SortOrderInput | SortOrder - managerName?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrderInput | SortOrder - _count?: UserCountOrderByAggregateInput - _max?: UserMaxOrderByAggregateInput - _min?: UserMinOrderByAggregateInput - } - - export type UserScalarWhereWithAggregatesInput = { - AND?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] - OR?: UserScalarWhereWithAggregatesInput[] - NOT?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"User"> | string - phone?: StringWithAggregatesFilter<"User"> | string - avatar?: StringNullableWithAggregatesFilter<"User"> | string | null - managerName?: StringNullableWithAggregatesFilter<"User"> | string | null - createdAt?: DateTimeWithAggregatesFilter<"User"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"User"> | Date | string - organizationId?: StringNullableWithAggregatesFilter<"User"> | string | null - } - - export type AdminWhereInput = { - AND?: AdminWhereInput | AdminWhereInput[] - OR?: AdminWhereInput[] - NOT?: AdminWhereInput | AdminWhereInput[] - id?: StringFilter<"Admin"> | string - username?: StringFilter<"Admin"> | string - password?: StringFilter<"Admin"> | string - email?: StringNullableFilter<"Admin"> | string | null - isActive?: BoolFilter<"Admin"> | boolean - lastLogin?: DateTimeNullableFilter<"Admin"> | Date | string | null - createdAt?: DateTimeFilter<"Admin"> | Date | string - updatedAt?: DateTimeFilter<"Admin"> | Date | string - } - - export type AdminOrderByWithRelationInput = { - id?: SortOrder - username?: SortOrder - password?: SortOrder - email?: SortOrderInput | SortOrder - isActive?: SortOrder - lastLogin?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type AdminWhereUniqueInput = Prisma.AtLeast<{ - id?: string - username?: string - email?: string - AND?: AdminWhereInput | AdminWhereInput[] - OR?: AdminWhereInput[] - NOT?: AdminWhereInput | AdminWhereInput[] - password?: StringFilter<"Admin"> | string - isActive?: BoolFilter<"Admin"> | boolean - lastLogin?: DateTimeNullableFilter<"Admin"> | Date | string | null - createdAt?: DateTimeFilter<"Admin"> | Date | string - updatedAt?: DateTimeFilter<"Admin"> | Date | string - }, "id" | "username" | "email"> - - export type AdminOrderByWithAggregationInput = { - id?: SortOrder - username?: SortOrder - password?: SortOrder - email?: SortOrderInput | SortOrder - isActive?: SortOrder - lastLogin?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - _count?: AdminCountOrderByAggregateInput - _max?: AdminMaxOrderByAggregateInput - _min?: AdminMinOrderByAggregateInput - } - - export type AdminScalarWhereWithAggregatesInput = { - AND?: AdminScalarWhereWithAggregatesInput | AdminScalarWhereWithAggregatesInput[] - OR?: AdminScalarWhereWithAggregatesInput[] - NOT?: AdminScalarWhereWithAggregatesInput | AdminScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"Admin"> | string - username?: StringWithAggregatesFilter<"Admin"> | string - password?: StringWithAggregatesFilter<"Admin"> | string - email?: StringNullableWithAggregatesFilter<"Admin"> | string | null - isActive?: BoolWithAggregatesFilter<"Admin"> | boolean - lastLogin?: DateTimeNullableWithAggregatesFilter<"Admin"> | Date | string | null - createdAt?: DateTimeWithAggregatesFilter<"Admin"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"Admin"> | Date | string - } - - export type SmsCodeWhereInput = { - AND?: SmsCodeWhereInput | SmsCodeWhereInput[] - OR?: SmsCodeWhereInput[] - NOT?: SmsCodeWhereInput | SmsCodeWhereInput[] - id?: StringFilter<"SmsCode"> | string - code?: StringFilter<"SmsCode"> | string - phone?: StringFilter<"SmsCode"> | string - expiresAt?: DateTimeFilter<"SmsCode"> | Date | string - isUsed?: BoolFilter<"SmsCode"> | boolean - attempts?: IntFilter<"SmsCode"> | number - maxAttempts?: IntFilter<"SmsCode"> | number - createdAt?: DateTimeFilter<"SmsCode"> | Date | string - userId?: StringNullableFilter<"SmsCode"> | string | null - user?: XOR | null - } - - export type SmsCodeOrderByWithRelationInput = { - id?: SortOrder - code?: SortOrder - phone?: SortOrder - expiresAt?: SortOrder - isUsed?: SortOrder - attempts?: SortOrder - maxAttempts?: SortOrder - createdAt?: SortOrder - userId?: SortOrderInput | SortOrder - user?: UserOrderByWithRelationInput - } - - export type SmsCodeWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: SmsCodeWhereInput | SmsCodeWhereInput[] - OR?: SmsCodeWhereInput[] - NOT?: SmsCodeWhereInput | SmsCodeWhereInput[] - code?: StringFilter<"SmsCode"> | string - phone?: StringFilter<"SmsCode"> | string - expiresAt?: DateTimeFilter<"SmsCode"> | Date | string - isUsed?: BoolFilter<"SmsCode"> | boolean - attempts?: IntFilter<"SmsCode"> | number - maxAttempts?: IntFilter<"SmsCode"> | number - createdAt?: DateTimeFilter<"SmsCode"> | Date | string - userId?: StringNullableFilter<"SmsCode"> | string | null - user?: XOR | null - }, "id"> - - export type SmsCodeOrderByWithAggregationInput = { - id?: SortOrder - code?: SortOrder - phone?: SortOrder - expiresAt?: SortOrder - isUsed?: SortOrder - attempts?: SortOrder - maxAttempts?: SortOrder - createdAt?: SortOrder - userId?: SortOrderInput | SortOrder - _count?: SmsCodeCountOrderByAggregateInput - _avg?: SmsCodeAvgOrderByAggregateInput - _max?: SmsCodeMaxOrderByAggregateInput - _min?: SmsCodeMinOrderByAggregateInput - _sum?: SmsCodeSumOrderByAggregateInput - } - - export type SmsCodeScalarWhereWithAggregatesInput = { - AND?: SmsCodeScalarWhereWithAggregatesInput | SmsCodeScalarWhereWithAggregatesInput[] - OR?: SmsCodeScalarWhereWithAggregatesInput[] - NOT?: SmsCodeScalarWhereWithAggregatesInput | SmsCodeScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"SmsCode"> | string - code?: StringWithAggregatesFilter<"SmsCode"> | string - phone?: StringWithAggregatesFilter<"SmsCode"> | string - expiresAt?: DateTimeWithAggregatesFilter<"SmsCode"> | Date | string - isUsed?: BoolWithAggregatesFilter<"SmsCode"> | boolean - attempts?: IntWithAggregatesFilter<"SmsCode"> | number - maxAttempts?: IntWithAggregatesFilter<"SmsCode"> | number - createdAt?: DateTimeWithAggregatesFilter<"SmsCode"> | Date | string - userId?: StringNullableWithAggregatesFilter<"SmsCode"> | string | null - } - - export type OrganizationWhereInput = { - AND?: OrganizationWhereInput | OrganizationWhereInput[] - OR?: OrganizationWhereInput[] - NOT?: OrganizationWhereInput | OrganizationWhereInput[] - id?: StringFilter<"Organization"> | string - inn?: StringFilter<"Organization"> | string - kpp?: StringNullableFilter<"Organization"> | string | null - name?: StringNullableFilter<"Organization"> | string | null - fullName?: StringNullableFilter<"Organization"> | string | null - ogrn?: StringNullableFilter<"Organization"> | string | null - ogrnDate?: DateTimeNullableFilter<"Organization"> | Date | string | null - type?: EnumOrganizationTypeFilter<"Organization"> | $Enums.OrganizationType - createdAt?: DateTimeFilter<"Organization"> | Date | string - updatedAt?: DateTimeFilter<"Organization"> | Date | string - address?: StringNullableFilter<"Organization"> | string | null - addressFull?: StringNullableFilter<"Organization"> | string | null - status?: StringNullableFilter<"Organization"> | string | null - actualityDate?: DateTimeNullableFilter<"Organization"> | Date | string | null - registrationDate?: DateTimeNullableFilter<"Organization"> | Date | string | null - liquidationDate?: DateTimeNullableFilter<"Organization"> | Date | string | null - managementName?: StringNullableFilter<"Organization"> | string | null - managementPost?: StringNullableFilter<"Organization"> | string | null - opfCode?: StringNullableFilter<"Organization"> | string | null - opfFull?: StringNullableFilter<"Organization"> | string | null - opfShort?: StringNullableFilter<"Organization"> | string | null - okato?: StringNullableFilter<"Organization"> | string | null - oktmo?: StringNullableFilter<"Organization"> | string | null - okpo?: StringNullableFilter<"Organization"> | string | null - okved?: StringNullableFilter<"Organization"> | string | null - phones?: JsonNullableFilter<"Organization"> - emails?: JsonNullableFilter<"Organization"> - employeeCount?: IntNullableFilter<"Organization"> | number | null - revenue?: BigIntNullableFilter<"Organization"> | bigint | number | null - taxSystem?: StringNullableFilter<"Organization"> | string | null - dadataData?: JsonNullableFilter<"Organization"> - apiKeys?: ApiKeyListRelationFilter - carts?: XOR | null - counterpartyOf?: CounterpartyListRelationFilter - organizationCounterparties?: CounterpartyListRelationFilter - receivedRequests?: CounterpartyRequestListRelationFilter - sentRequests?: CounterpartyRequestListRelationFilter - employees?: EmployeeListRelationFilter - favorites?: FavoritesListRelationFilter - receivedMessages?: MessageListRelationFilter - sentMessages?: MessageListRelationFilter - products?: ProductListRelationFilter - services?: ServiceListRelationFilter - supplies?: SupplyListRelationFilter - users?: UserListRelationFilter - logistics?: LogisticsListRelationFilter - supplyOrders?: SupplyOrderListRelationFilter - partnerSupplyOrders?: SupplyOrderListRelationFilter - fulfillmentSupplyOrders?: SupplyOrderListRelationFilter - wildberriesSupplies?: WildberriesSupplyListRelationFilter - supplySuppliers?: SupplySupplierListRelationFilter - } - - export type OrganizationOrderByWithRelationInput = { - id?: SortOrder - inn?: SortOrder - kpp?: SortOrderInput | SortOrder - name?: SortOrderInput | SortOrder - fullName?: SortOrderInput | SortOrder - ogrn?: SortOrderInput | SortOrder - ogrnDate?: SortOrderInput | SortOrder - type?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - address?: SortOrderInput | SortOrder - addressFull?: SortOrderInput | SortOrder - status?: SortOrderInput | SortOrder - actualityDate?: SortOrderInput | SortOrder - registrationDate?: SortOrderInput | SortOrder - liquidationDate?: SortOrderInput | SortOrder - managementName?: SortOrderInput | SortOrder - managementPost?: SortOrderInput | SortOrder - opfCode?: SortOrderInput | SortOrder - opfFull?: SortOrderInput | SortOrder - opfShort?: SortOrderInput | SortOrder - okato?: SortOrderInput | SortOrder - oktmo?: SortOrderInput | SortOrder - okpo?: SortOrderInput | SortOrder - okved?: SortOrderInput | SortOrder - phones?: SortOrderInput | SortOrder - emails?: SortOrderInput | SortOrder - employeeCount?: SortOrderInput | SortOrder - revenue?: SortOrderInput | SortOrder - taxSystem?: SortOrderInput | SortOrder - dadataData?: SortOrderInput | SortOrder - apiKeys?: ApiKeyOrderByRelationAggregateInput - carts?: CartOrderByWithRelationInput - counterpartyOf?: CounterpartyOrderByRelationAggregateInput - organizationCounterparties?: CounterpartyOrderByRelationAggregateInput - receivedRequests?: CounterpartyRequestOrderByRelationAggregateInput - sentRequests?: CounterpartyRequestOrderByRelationAggregateInput - employees?: EmployeeOrderByRelationAggregateInput - favorites?: FavoritesOrderByRelationAggregateInput - receivedMessages?: MessageOrderByRelationAggregateInput - sentMessages?: MessageOrderByRelationAggregateInput - products?: ProductOrderByRelationAggregateInput - services?: ServiceOrderByRelationAggregateInput - supplies?: SupplyOrderByRelationAggregateInput - users?: UserOrderByRelationAggregateInput - logistics?: LogisticsOrderByRelationAggregateInput - supplyOrders?: SupplyOrderOrderByRelationAggregateInput - partnerSupplyOrders?: SupplyOrderOrderByRelationAggregateInput - fulfillmentSupplyOrders?: SupplyOrderOrderByRelationAggregateInput - wildberriesSupplies?: WildberriesSupplyOrderByRelationAggregateInput - supplySuppliers?: SupplySupplierOrderByRelationAggregateInput - } - - export type OrganizationWhereUniqueInput = Prisma.AtLeast<{ - id?: string - inn?: string - AND?: OrganizationWhereInput | OrganizationWhereInput[] - OR?: OrganizationWhereInput[] - NOT?: OrganizationWhereInput | OrganizationWhereInput[] - kpp?: StringNullableFilter<"Organization"> | string | null - name?: StringNullableFilter<"Organization"> | string | null - fullName?: StringNullableFilter<"Organization"> | string | null - ogrn?: StringNullableFilter<"Organization"> | string | null - ogrnDate?: DateTimeNullableFilter<"Organization"> | Date | string | null - type?: EnumOrganizationTypeFilter<"Organization"> | $Enums.OrganizationType - createdAt?: DateTimeFilter<"Organization"> | Date | string - updatedAt?: DateTimeFilter<"Organization"> | Date | string - address?: StringNullableFilter<"Organization"> | string | null - addressFull?: StringNullableFilter<"Organization"> | string | null - status?: StringNullableFilter<"Organization"> | string | null - actualityDate?: DateTimeNullableFilter<"Organization"> | Date | string | null - registrationDate?: DateTimeNullableFilter<"Organization"> | Date | string | null - liquidationDate?: DateTimeNullableFilter<"Organization"> | Date | string | null - managementName?: StringNullableFilter<"Organization"> | string | null - managementPost?: StringNullableFilter<"Organization"> | string | null - opfCode?: StringNullableFilter<"Organization"> | string | null - opfFull?: StringNullableFilter<"Organization"> | string | null - opfShort?: StringNullableFilter<"Organization"> | string | null - okato?: StringNullableFilter<"Organization"> | string | null - oktmo?: StringNullableFilter<"Organization"> | string | null - okpo?: StringNullableFilter<"Organization"> | string | null - okved?: StringNullableFilter<"Organization"> | string | null - phones?: JsonNullableFilter<"Organization"> - emails?: JsonNullableFilter<"Organization"> - employeeCount?: IntNullableFilter<"Organization"> | number | null - revenue?: BigIntNullableFilter<"Organization"> | bigint | number | null - taxSystem?: StringNullableFilter<"Organization"> | string | null - dadataData?: JsonNullableFilter<"Organization"> - apiKeys?: ApiKeyListRelationFilter - carts?: XOR | null - counterpartyOf?: CounterpartyListRelationFilter - organizationCounterparties?: CounterpartyListRelationFilter - receivedRequests?: CounterpartyRequestListRelationFilter - sentRequests?: CounterpartyRequestListRelationFilter - employees?: EmployeeListRelationFilter - favorites?: FavoritesListRelationFilter - receivedMessages?: MessageListRelationFilter - sentMessages?: MessageListRelationFilter - products?: ProductListRelationFilter - services?: ServiceListRelationFilter - supplies?: SupplyListRelationFilter - users?: UserListRelationFilter - logistics?: LogisticsListRelationFilter - supplyOrders?: SupplyOrderListRelationFilter - partnerSupplyOrders?: SupplyOrderListRelationFilter - fulfillmentSupplyOrders?: SupplyOrderListRelationFilter - wildberriesSupplies?: WildberriesSupplyListRelationFilter - supplySuppliers?: SupplySupplierListRelationFilter - }, "id" | "inn"> - - export type OrganizationOrderByWithAggregationInput = { - id?: SortOrder - inn?: SortOrder - kpp?: SortOrderInput | SortOrder - name?: SortOrderInput | SortOrder - fullName?: SortOrderInput | SortOrder - ogrn?: SortOrderInput | SortOrder - ogrnDate?: SortOrderInput | SortOrder - type?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - address?: SortOrderInput | SortOrder - addressFull?: SortOrderInput | SortOrder - status?: SortOrderInput | SortOrder - actualityDate?: SortOrderInput | SortOrder - registrationDate?: SortOrderInput | SortOrder - liquidationDate?: SortOrderInput | SortOrder - managementName?: SortOrderInput | SortOrder - managementPost?: SortOrderInput | SortOrder - opfCode?: SortOrderInput | SortOrder - opfFull?: SortOrderInput | SortOrder - opfShort?: SortOrderInput | SortOrder - okato?: SortOrderInput | SortOrder - oktmo?: SortOrderInput | SortOrder - okpo?: SortOrderInput | SortOrder - okved?: SortOrderInput | SortOrder - phones?: SortOrderInput | SortOrder - emails?: SortOrderInput | SortOrder - employeeCount?: SortOrderInput | SortOrder - revenue?: SortOrderInput | SortOrder - taxSystem?: SortOrderInput | SortOrder - dadataData?: SortOrderInput | SortOrder - _count?: OrganizationCountOrderByAggregateInput - _avg?: OrganizationAvgOrderByAggregateInput - _max?: OrganizationMaxOrderByAggregateInput - _min?: OrganizationMinOrderByAggregateInput - _sum?: OrganizationSumOrderByAggregateInput - } - - export type OrganizationScalarWhereWithAggregatesInput = { - AND?: OrganizationScalarWhereWithAggregatesInput | OrganizationScalarWhereWithAggregatesInput[] - OR?: OrganizationScalarWhereWithAggregatesInput[] - NOT?: OrganizationScalarWhereWithAggregatesInput | OrganizationScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"Organization"> | string - inn?: StringWithAggregatesFilter<"Organization"> | string - kpp?: StringNullableWithAggregatesFilter<"Organization"> | string | null - name?: StringNullableWithAggregatesFilter<"Organization"> | string | null - fullName?: StringNullableWithAggregatesFilter<"Organization"> | string | null - ogrn?: StringNullableWithAggregatesFilter<"Organization"> | string | null - ogrnDate?: DateTimeNullableWithAggregatesFilter<"Organization"> | Date | string | null - type?: EnumOrganizationTypeWithAggregatesFilter<"Organization"> | $Enums.OrganizationType - createdAt?: DateTimeWithAggregatesFilter<"Organization"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"Organization"> | Date | string - address?: StringNullableWithAggregatesFilter<"Organization"> | string | null - addressFull?: StringNullableWithAggregatesFilter<"Organization"> | string | null - status?: StringNullableWithAggregatesFilter<"Organization"> | string | null - actualityDate?: DateTimeNullableWithAggregatesFilter<"Organization"> | Date | string | null - registrationDate?: DateTimeNullableWithAggregatesFilter<"Organization"> | Date | string | null - liquidationDate?: DateTimeNullableWithAggregatesFilter<"Organization"> | Date | string | null - managementName?: StringNullableWithAggregatesFilter<"Organization"> | string | null - managementPost?: StringNullableWithAggregatesFilter<"Organization"> | string | null - opfCode?: StringNullableWithAggregatesFilter<"Organization"> | string | null - opfFull?: StringNullableWithAggregatesFilter<"Organization"> | string | null - opfShort?: StringNullableWithAggregatesFilter<"Organization"> | string | null - okato?: StringNullableWithAggregatesFilter<"Organization"> | string | null - oktmo?: StringNullableWithAggregatesFilter<"Organization"> | string | null - okpo?: StringNullableWithAggregatesFilter<"Organization"> | string | null - okved?: StringNullableWithAggregatesFilter<"Organization"> | string | null - phones?: JsonNullableWithAggregatesFilter<"Organization"> - emails?: JsonNullableWithAggregatesFilter<"Organization"> - employeeCount?: IntNullableWithAggregatesFilter<"Organization"> | number | null - revenue?: BigIntNullableWithAggregatesFilter<"Organization"> | bigint | number | null - taxSystem?: StringNullableWithAggregatesFilter<"Organization"> | string | null - dadataData?: JsonNullableWithAggregatesFilter<"Organization"> - } - - export type ApiKeyWhereInput = { - AND?: ApiKeyWhereInput | ApiKeyWhereInput[] - OR?: ApiKeyWhereInput[] - NOT?: ApiKeyWhereInput | ApiKeyWhereInput[] - id?: StringFilter<"ApiKey"> | string - marketplace?: EnumMarketplaceTypeFilter<"ApiKey"> | $Enums.MarketplaceType - apiKey?: StringFilter<"ApiKey"> | string - isActive?: BoolFilter<"ApiKey"> | boolean - createdAt?: DateTimeFilter<"ApiKey"> | Date | string - updatedAt?: DateTimeFilter<"ApiKey"> | Date | string - validationData?: JsonNullableFilter<"ApiKey"> - organizationId?: StringFilter<"ApiKey"> | string - organization?: XOR - } - - export type ApiKeyOrderByWithRelationInput = { - id?: SortOrder - marketplace?: SortOrder - apiKey?: SortOrder - isActive?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - validationData?: SortOrderInput | SortOrder - organizationId?: SortOrder - organization?: OrganizationOrderByWithRelationInput - } - - export type ApiKeyWhereUniqueInput = Prisma.AtLeast<{ - id?: string - organizationId_marketplace?: ApiKeyOrganizationIdMarketplaceCompoundUniqueInput - AND?: ApiKeyWhereInput | ApiKeyWhereInput[] - OR?: ApiKeyWhereInput[] - NOT?: ApiKeyWhereInput | ApiKeyWhereInput[] - marketplace?: EnumMarketplaceTypeFilter<"ApiKey"> | $Enums.MarketplaceType - apiKey?: StringFilter<"ApiKey"> | string - isActive?: BoolFilter<"ApiKey"> | boolean - createdAt?: DateTimeFilter<"ApiKey"> | Date | string - updatedAt?: DateTimeFilter<"ApiKey"> | Date | string - validationData?: JsonNullableFilter<"ApiKey"> - organizationId?: StringFilter<"ApiKey"> | string - organization?: XOR - }, "id" | "organizationId_marketplace"> - - export type ApiKeyOrderByWithAggregationInput = { - id?: SortOrder - marketplace?: SortOrder - apiKey?: SortOrder - isActive?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - validationData?: SortOrderInput | SortOrder - organizationId?: SortOrder - _count?: ApiKeyCountOrderByAggregateInput - _max?: ApiKeyMaxOrderByAggregateInput - _min?: ApiKeyMinOrderByAggregateInput - } - - export type ApiKeyScalarWhereWithAggregatesInput = { - AND?: ApiKeyScalarWhereWithAggregatesInput | ApiKeyScalarWhereWithAggregatesInput[] - OR?: ApiKeyScalarWhereWithAggregatesInput[] - NOT?: ApiKeyScalarWhereWithAggregatesInput | ApiKeyScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"ApiKey"> | string - marketplace?: EnumMarketplaceTypeWithAggregatesFilter<"ApiKey"> | $Enums.MarketplaceType - apiKey?: StringWithAggregatesFilter<"ApiKey"> | string - isActive?: BoolWithAggregatesFilter<"ApiKey"> | boolean - createdAt?: DateTimeWithAggregatesFilter<"ApiKey"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"ApiKey"> | Date | string - validationData?: JsonNullableWithAggregatesFilter<"ApiKey"> - organizationId?: StringWithAggregatesFilter<"ApiKey"> | string - } - - export type CounterpartyRequestWhereInput = { - AND?: CounterpartyRequestWhereInput | CounterpartyRequestWhereInput[] - OR?: CounterpartyRequestWhereInput[] - NOT?: CounterpartyRequestWhereInput | CounterpartyRequestWhereInput[] - id?: StringFilter<"CounterpartyRequest"> | string - status?: EnumCounterpartyRequestStatusFilter<"CounterpartyRequest"> | $Enums.CounterpartyRequestStatus - createdAt?: DateTimeFilter<"CounterpartyRequest"> | Date | string - updatedAt?: DateTimeFilter<"CounterpartyRequest"> | Date | string - senderId?: StringFilter<"CounterpartyRequest"> | string - receiverId?: StringFilter<"CounterpartyRequest"> | string - message?: StringNullableFilter<"CounterpartyRequest"> | string | null - receiver?: XOR - sender?: XOR - } - - export type CounterpartyRequestOrderByWithRelationInput = { - id?: SortOrder - status?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - senderId?: SortOrder - receiverId?: SortOrder - message?: SortOrderInput | SortOrder - receiver?: OrganizationOrderByWithRelationInput - sender?: OrganizationOrderByWithRelationInput - } - - export type CounterpartyRequestWhereUniqueInput = Prisma.AtLeast<{ - id?: string - senderId_receiverId?: CounterpartyRequestSenderIdReceiverIdCompoundUniqueInput - AND?: CounterpartyRequestWhereInput | CounterpartyRequestWhereInput[] - OR?: CounterpartyRequestWhereInput[] - NOT?: CounterpartyRequestWhereInput | CounterpartyRequestWhereInput[] - status?: EnumCounterpartyRequestStatusFilter<"CounterpartyRequest"> | $Enums.CounterpartyRequestStatus - createdAt?: DateTimeFilter<"CounterpartyRequest"> | Date | string - updatedAt?: DateTimeFilter<"CounterpartyRequest"> | Date | string - senderId?: StringFilter<"CounterpartyRequest"> | string - receiverId?: StringFilter<"CounterpartyRequest"> | string - message?: StringNullableFilter<"CounterpartyRequest"> | string | null - receiver?: XOR - sender?: XOR - }, "id" | "senderId_receiverId"> - - export type CounterpartyRequestOrderByWithAggregationInput = { - id?: SortOrder - status?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - senderId?: SortOrder - receiverId?: SortOrder - message?: SortOrderInput | SortOrder - _count?: CounterpartyRequestCountOrderByAggregateInput - _max?: CounterpartyRequestMaxOrderByAggregateInput - _min?: CounterpartyRequestMinOrderByAggregateInput - } - - export type CounterpartyRequestScalarWhereWithAggregatesInput = { - AND?: CounterpartyRequestScalarWhereWithAggregatesInput | CounterpartyRequestScalarWhereWithAggregatesInput[] - OR?: CounterpartyRequestScalarWhereWithAggregatesInput[] - NOT?: CounterpartyRequestScalarWhereWithAggregatesInput | CounterpartyRequestScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"CounterpartyRequest"> | string - status?: EnumCounterpartyRequestStatusWithAggregatesFilter<"CounterpartyRequest"> | $Enums.CounterpartyRequestStatus - createdAt?: DateTimeWithAggregatesFilter<"CounterpartyRequest"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"CounterpartyRequest"> | Date | string - senderId?: StringWithAggregatesFilter<"CounterpartyRequest"> | string - receiverId?: StringWithAggregatesFilter<"CounterpartyRequest"> | string - message?: StringNullableWithAggregatesFilter<"CounterpartyRequest"> | string | null - } - - export type CounterpartyWhereInput = { - AND?: CounterpartyWhereInput | CounterpartyWhereInput[] - OR?: CounterpartyWhereInput[] - NOT?: CounterpartyWhereInput | CounterpartyWhereInput[] - id?: StringFilter<"Counterparty"> | string - createdAt?: DateTimeFilter<"Counterparty"> | Date | string - organizationId?: StringFilter<"Counterparty"> | string - counterpartyId?: StringFilter<"Counterparty"> | string - counterparty?: XOR - organization?: XOR - } - - export type CounterpartyOrderByWithRelationInput = { - id?: SortOrder - createdAt?: SortOrder - organizationId?: SortOrder - counterpartyId?: SortOrder - counterparty?: OrganizationOrderByWithRelationInput - organization?: OrganizationOrderByWithRelationInput - } - - export type CounterpartyWhereUniqueInput = Prisma.AtLeast<{ - id?: string - organizationId_counterpartyId?: CounterpartyOrganizationIdCounterpartyIdCompoundUniqueInput - AND?: CounterpartyWhereInput | CounterpartyWhereInput[] - OR?: CounterpartyWhereInput[] - NOT?: CounterpartyWhereInput | CounterpartyWhereInput[] - createdAt?: DateTimeFilter<"Counterparty"> | Date | string - organizationId?: StringFilter<"Counterparty"> | string - counterpartyId?: StringFilter<"Counterparty"> | string - counterparty?: XOR - organization?: XOR - }, "id" | "organizationId_counterpartyId"> - - export type CounterpartyOrderByWithAggregationInput = { - id?: SortOrder - createdAt?: SortOrder - organizationId?: SortOrder - counterpartyId?: SortOrder - _count?: CounterpartyCountOrderByAggregateInput - _max?: CounterpartyMaxOrderByAggregateInput - _min?: CounterpartyMinOrderByAggregateInput - } - - export type CounterpartyScalarWhereWithAggregatesInput = { - AND?: CounterpartyScalarWhereWithAggregatesInput | CounterpartyScalarWhereWithAggregatesInput[] - OR?: CounterpartyScalarWhereWithAggregatesInput[] - NOT?: CounterpartyScalarWhereWithAggregatesInput | CounterpartyScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"Counterparty"> | string - createdAt?: DateTimeWithAggregatesFilter<"Counterparty"> | Date | string - organizationId?: StringWithAggregatesFilter<"Counterparty"> | string - counterpartyId?: StringWithAggregatesFilter<"Counterparty"> | string - } - - export type MessageWhereInput = { - AND?: MessageWhereInput | MessageWhereInput[] - OR?: MessageWhereInput[] - NOT?: MessageWhereInput | MessageWhereInput[] - id?: StringFilter<"Message"> | string - content?: StringNullableFilter<"Message"> | string | null - type?: EnumMessageTypeFilter<"Message"> | $Enums.MessageType - voiceUrl?: StringNullableFilter<"Message"> | string | null - voiceDuration?: IntNullableFilter<"Message"> | number | null - fileUrl?: StringNullableFilter<"Message"> | string | null - fileName?: StringNullableFilter<"Message"> | string | null - fileSize?: IntNullableFilter<"Message"> | number | null - fileType?: StringNullableFilter<"Message"> | string | null - isRead?: BoolFilter<"Message"> | boolean - createdAt?: DateTimeFilter<"Message"> | Date | string - updatedAt?: DateTimeFilter<"Message"> | Date | string - senderId?: StringFilter<"Message"> | string - senderOrganizationId?: StringFilter<"Message"> | string - receiverOrganizationId?: StringFilter<"Message"> | string - receiverOrganization?: XOR - sender?: XOR - senderOrganization?: XOR - } - - export type MessageOrderByWithRelationInput = { - id?: SortOrder - content?: SortOrderInput | SortOrder - type?: SortOrder - voiceUrl?: SortOrderInput | SortOrder - voiceDuration?: SortOrderInput | SortOrder - fileUrl?: SortOrderInput | SortOrder - fileName?: SortOrderInput | SortOrder - fileSize?: SortOrderInput | SortOrder - fileType?: SortOrderInput | SortOrder - isRead?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - senderId?: SortOrder - senderOrganizationId?: SortOrder - receiverOrganizationId?: SortOrder - receiverOrganization?: OrganizationOrderByWithRelationInput - sender?: UserOrderByWithRelationInput - senderOrganization?: OrganizationOrderByWithRelationInput - } - - export type MessageWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: MessageWhereInput | MessageWhereInput[] - OR?: MessageWhereInput[] - NOT?: MessageWhereInput | MessageWhereInput[] - content?: StringNullableFilter<"Message"> | string | null - type?: EnumMessageTypeFilter<"Message"> | $Enums.MessageType - voiceUrl?: StringNullableFilter<"Message"> | string | null - voiceDuration?: IntNullableFilter<"Message"> | number | null - fileUrl?: StringNullableFilter<"Message"> | string | null - fileName?: StringNullableFilter<"Message"> | string | null - fileSize?: IntNullableFilter<"Message"> | number | null - fileType?: StringNullableFilter<"Message"> | string | null - isRead?: BoolFilter<"Message"> | boolean - createdAt?: DateTimeFilter<"Message"> | Date | string - updatedAt?: DateTimeFilter<"Message"> | Date | string - senderId?: StringFilter<"Message"> | string - senderOrganizationId?: StringFilter<"Message"> | string - receiverOrganizationId?: StringFilter<"Message"> | string - receiverOrganization?: XOR - sender?: XOR - senderOrganization?: XOR - }, "id"> - - export type MessageOrderByWithAggregationInput = { - id?: SortOrder - content?: SortOrderInput | SortOrder - type?: SortOrder - voiceUrl?: SortOrderInput | SortOrder - voiceDuration?: SortOrderInput | SortOrder - fileUrl?: SortOrderInput | SortOrder - fileName?: SortOrderInput | SortOrder - fileSize?: SortOrderInput | SortOrder - fileType?: SortOrderInput | SortOrder - isRead?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - senderId?: SortOrder - senderOrganizationId?: SortOrder - receiverOrganizationId?: SortOrder - _count?: MessageCountOrderByAggregateInput - _avg?: MessageAvgOrderByAggregateInput - _max?: MessageMaxOrderByAggregateInput - _min?: MessageMinOrderByAggregateInput - _sum?: MessageSumOrderByAggregateInput - } - - export type MessageScalarWhereWithAggregatesInput = { - AND?: MessageScalarWhereWithAggregatesInput | MessageScalarWhereWithAggregatesInput[] - OR?: MessageScalarWhereWithAggregatesInput[] - NOT?: MessageScalarWhereWithAggregatesInput | MessageScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"Message"> | string - content?: StringNullableWithAggregatesFilter<"Message"> | string | null - type?: EnumMessageTypeWithAggregatesFilter<"Message"> | $Enums.MessageType - voiceUrl?: StringNullableWithAggregatesFilter<"Message"> | string | null - voiceDuration?: IntNullableWithAggregatesFilter<"Message"> | number | null - fileUrl?: StringNullableWithAggregatesFilter<"Message"> | string | null - fileName?: StringNullableWithAggregatesFilter<"Message"> | string | null - fileSize?: IntNullableWithAggregatesFilter<"Message"> | number | null - fileType?: StringNullableWithAggregatesFilter<"Message"> | string | null - isRead?: BoolWithAggregatesFilter<"Message"> | boolean - createdAt?: DateTimeWithAggregatesFilter<"Message"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"Message"> | Date | string - senderId?: StringWithAggregatesFilter<"Message"> | string - senderOrganizationId?: StringWithAggregatesFilter<"Message"> | string - receiverOrganizationId?: StringWithAggregatesFilter<"Message"> | string - } - - export type ServiceWhereInput = { - AND?: ServiceWhereInput | ServiceWhereInput[] - OR?: ServiceWhereInput[] - NOT?: ServiceWhereInput | ServiceWhereInput[] - id?: StringFilter<"Service"> | string - name?: StringFilter<"Service"> | string - description?: StringNullableFilter<"Service"> | string | null - price?: DecimalFilter<"Service"> | Decimal | DecimalJsLike | number | string - imageUrl?: StringNullableFilter<"Service"> | string | null - createdAt?: DateTimeFilter<"Service"> | Date | string - updatedAt?: DateTimeFilter<"Service"> | Date | string - organizationId?: StringFilter<"Service"> | string - organization?: XOR - } - - export type ServiceOrderByWithRelationInput = { - id?: SortOrder - name?: SortOrder - description?: SortOrderInput | SortOrder - price?: SortOrder - imageUrl?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - organization?: OrganizationOrderByWithRelationInput - } - - export type ServiceWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: ServiceWhereInput | ServiceWhereInput[] - OR?: ServiceWhereInput[] - NOT?: ServiceWhereInput | ServiceWhereInput[] - name?: StringFilter<"Service"> | string - description?: StringNullableFilter<"Service"> | string | null - price?: DecimalFilter<"Service"> | Decimal | DecimalJsLike | number | string - imageUrl?: StringNullableFilter<"Service"> | string | null - createdAt?: DateTimeFilter<"Service"> | Date | string - updatedAt?: DateTimeFilter<"Service"> | Date | string - organizationId?: StringFilter<"Service"> | string - organization?: XOR - }, "id"> - - export type ServiceOrderByWithAggregationInput = { - id?: SortOrder - name?: SortOrder - description?: SortOrderInput | SortOrder - price?: SortOrder - imageUrl?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - _count?: ServiceCountOrderByAggregateInput - _avg?: ServiceAvgOrderByAggregateInput - _max?: ServiceMaxOrderByAggregateInput - _min?: ServiceMinOrderByAggregateInput - _sum?: ServiceSumOrderByAggregateInput - } - - export type ServiceScalarWhereWithAggregatesInput = { - AND?: ServiceScalarWhereWithAggregatesInput | ServiceScalarWhereWithAggregatesInput[] - OR?: ServiceScalarWhereWithAggregatesInput[] - NOT?: ServiceScalarWhereWithAggregatesInput | ServiceScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"Service"> | string - name?: StringWithAggregatesFilter<"Service"> | string - description?: StringNullableWithAggregatesFilter<"Service"> | string | null - price?: DecimalWithAggregatesFilter<"Service"> | Decimal | DecimalJsLike | number | string - imageUrl?: StringNullableWithAggregatesFilter<"Service"> | string | null - createdAt?: DateTimeWithAggregatesFilter<"Service"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"Service"> | Date | string - organizationId?: StringWithAggregatesFilter<"Service"> | string - } - - export type SupplyWhereInput = { - AND?: SupplyWhereInput | SupplyWhereInput[] - OR?: SupplyWhereInput[] - NOT?: SupplyWhereInput | SupplyWhereInput[] - id?: StringFilter<"Supply"> | string - name?: StringFilter<"Supply"> | string - description?: StringNullableFilter<"Supply"> | string | null - price?: DecimalFilter<"Supply"> | Decimal | DecimalJsLike | number | string - quantity?: IntFilter<"Supply"> | number - unit?: StringFilter<"Supply"> | string - category?: StringFilter<"Supply"> | string - status?: StringFilter<"Supply"> | string - date?: DateTimeFilter<"Supply"> | Date | string - supplier?: StringFilter<"Supply"> | string - minStock?: IntFilter<"Supply"> | number - currentStock?: IntFilter<"Supply"> | number - imageUrl?: StringNullableFilter<"Supply"> | string | null - createdAt?: DateTimeFilter<"Supply"> | Date | string - updatedAt?: DateTimeFilter<"Supply"> | Date | string - organizationId?: StringFilter<"Supply"> | string - organization?: XOR - } - - export type SupplyOrderByWithRelationInput = { - id?: SortOrder - name?: SortOrder - description?: SortOrderInput | SortOrder - price?: SortOrder - quantity?: SortOrder - unit?: SortOrder - category?: SortOrder - status?: SortOrder - date?: SortOrder - supplier?: SortOrder - minStock?: SortOrder - currentStock?: SortOrder - imageUrl?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - organization?: OrganizationOrderByWithRelationInput - } - - export type SupplyWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: SupplyWhereInput | SupplyWhereInput[] - OR?: SupplyWhereInput[] - NOT?: SupplyWhereInput | SupplyWhereInput[] - name?: StringFilter<"Supply"> | string - description?: StringNullableFilter<"Supply"> | string | null - price?: DecimalFilter<"Supply"> | Decimal | DecimalJsLike | number | string - quantity?: IntFilter<"Supply"> | number - unit?: StringFilter<"Supply"> | string - category?: StringFilter<"Supply"> | string - status?: StringFilter<"Supply"> | string - date?: DateTimeFilter<"Supply"> | Date | string - supplier?: StringFilter<"Supply"> | string - minStock?: IntFilter<"Supply"> | number - currentStock?: IntFilter<"Supply"> | number - imageUrl?: StringNullableFilter<"Supply"> | string | null - createdAt?: DateTimeFilter<"Supply"> | Date | string - updatedAt?: DateTimeFilter<"Supply"> | Date | string - organizationId?: StringFilter<"Supply"> | string - organization?: XOR - }, "id"> - - export type SupplyOrderByWithAggregationInput = { - id?: SortOrder - name?: SortOrder - description?: SortOrderInput | SortOrder - price?: SortOrder - quantity?: SortOrder - unit?: SortOrder - category?: SortOrder - status?: SortOrder - date?: SortOrder - supplier?: SortOrder - minStock?: SortOrder - currentStock?: SortOrder - imageUrl?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - _count?: SupplyCountOrderByAggregateInput - _avg?: SupplyAvgOrderByAggregateInput - _max?: SupplyMaxOrderByAggregateInput - _min?: SupplyMinOrderByAggregateInput - _sum?: SupplySumOrderByAggregateInput - } - - export type SupplyScalarWhereWithAggregatesInput = { - AND?: SupplyScalarWhereWithAggregatesInput | SupplyScalarWhereWithAggregatesInput[] - OR?: SupplyScalarWhereWithAggregatesInput[] - NOT?: SupplyScalarWhereWithAggregatesInput | SupplyScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"Supply"> | string - name?: StringWithAggregatesFilter<"Supply"> | string - description?: StringNullableWithAggregatesFilter<"Supply"> | string | null - price?: DecimalWithAggregatesFilter<"Supply"> | Decimal | DecimalJsLike | number | string - quantity?: IntWithAggregatesFilter<"Supply"> | number - unit?: StringWithAggregatesFilter<"Supply"> | string - category?: StringWithAggregatesFilter<"Supply"> | string - status?: StringWithAggregatesFilter<"Supply"> | string - date?: DateTimeWithAggregatesFilter<"Supply"> | Date | string - supplier?: StringWithAggregatesFilter<"Supply"> | string - minStock?: IntWithAggregatesFilter<"Supply"> | number - currentStock?: IntWithAggregatesFilter<"Supply"> | number - imageUrl?: StringNullableWithAggregatesFilter<"Supply"> | string | null - createdAt?: DateTimeWithAggregatesFilter<"Supply"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"Supply"> | Date | string - organizationId?: StringWithAggregatesFilter<"Supply"> | string - } - - export type CategoryWhereInput = { - AND?: CategoryWhereInput | CategoryWhereInput[] - OR?: CategoryWhereInput[] - NOT?: CategoryWhereInput | CategoryWhereInput[] - id?: StringFilter<"Category"> | string - name?: StringFilter<"Category"> | string - createdAt?: DateTimeFilter<"Category"> | Date | string - updatedAt?: DateTimeFilter<"Category"> | Date | string - products?: ProductListRelationFilter - } - - export type CategoryOrderByWithRelationInput = { - id?: SortOrder - name?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - products?: ProductOrderByRelationAggregateInput - } - - export type CategoryWhereUniqueInput = Prisma.AtLeast<{ - id?: string - name?: string - AND?: CategoryWhereInput | CategoryWhereInput[] - OR?: CategoryWhereInput[] - NOT?: CategoryWhereInput | CategoryWhereInput[] - createdAt?: DateTimeFilter<"Category"> | Date | string - updatedAt?: DateTimeFilter<"Category"> | Date | string - products?: ProductListRelationFilter - }, "id" | "name"> - - export type CategoryOrderByWithAggregationInput = { - id?: SortOrder - name?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - _count?: CategoryCountOrderByAggregateInput - _max?: CategoryMaxOrderByAggregateInput - _min?: CategoryMinOrderByAggregateInput - } - - export type CategoryScalarWhereWithAggregatesInput = { - AND?: CategoryScalarWhereWithAggregatesInput | CategoryScalarWhereWithAggregatesInput[] - OR?: CategoryScalarWhereWithAggregatesInput[] - NOT?: CategoryScalarWhereWithAggregatesInput | CategoryScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"Category"> | string - name?: StringWithAggregatesFilter<"Category"> | string - createdAt?: DateTimeWithAggregatesFilter<"Category"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"Category"> | Date | string - } - - export type ProductWhereInput = { - AND?: ProductWhereInput | ProductWhereInput[] - OR?: ProductWhereInput[] - NOT?: ProductWhereInput | ProductWhereInput[] - id?: StringFilter<"Product"> | string - name?: StringFilter<"Product"> | string - article?: StringFilter<"Product"> | string - description?: StringNullableFilter<"Product"> | string | null - price?: DecimalFilter<"Product"> | Decimal | DecimalJsLike | number | string - quantity?: IntFilter<"Product"> | number - categoryId?: StringNullableFilter<"Product"> | string | null - brand?: StringNullableFilter<"Product"> | string | null - color?: StringNullableFilter<"Product"> | string | null - size?: StringNullableFilter<"Product"> | string | null - weight?: DecimalNullableFilter<"Product"> | Decimal | DecimalJsLike | number | string | null - dimensions?: StringNullableFilter<"Product"> | string | null - material?: StringNullableFilter<"Product"> | string | null - images?: JsonFilter<"Product"> - mainImage?: StringNullableFilter<"Product"> | string | null - isActive?: BoolFilter<"Product"> | boolean - createdAt?: DateTimeFilter<"Product"> | Date | string - updatedAt?: DateTimeFilter<"Product"> | Date | string - organizationId?: StringFilter<"Product"> | string - cartItems?: CartItemListRelationFilter - favorites?: FavoritesListRelationFilter - supplyOrderItems?: SupplyOrderItemListRelationFilter - category?: XOR | null - organization?: XOR - } - - export type ProductOrderByWithRelationInput = { - id?: SortOrder - name?: SortOrder - article?: SortOrder - description?: SortOrderInput | SortOrder - price?: SortOrder - quantity?: SortOrder - categoryId?: SortOrderInput | SortOrder - brand?: SortOrderInput | SortOrder - color?: SortOrderInput | SortOrder - size?: SortOrderInput | SortOrder - weight?: SortOrderInput | SortOrder - dimensions?: SortOrderInput | SortOrder - material?: SortOrderInput | SortOrder - images?: SortOrder - mainImage?: SortOrderInput | SortOrder - isActive?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - cartItems?: CartItemOrderByRelationAggregateInput - favorites?: FavoritesOrderByRelationAggregateInput - supplyOrderItems?: SupplyOrderItemOrderByRelationAggregateInput - category?: CategoryOrderByWithRelationInput - organization?: OrganizationOrderByWithRelationInput - } - - export type ProductWhereUniqueInput = Prisma.AtLeast<{ - id?: string - organizationId_article?: ProductOrganizationIdArticleCompoundUniqueInput - AND?: ProductWhereInput | ProductWhereInput[] - OR?: ProductWhereInput[] - NOT?: ProductWhereInput | ProductWhereInput[] - name?: StringFilter<"Product"> | string - article?: StringFilter<"Product"> | string - description?: StringNullableFilter<"Product"> | string | null - price?: DecimalFilter<"Product"> | Decimal | DecimalJsLike | number | string - quantity?: IntFilter<"Product"> | number - categoryId?: StringNullableFilter<"Product"> | string | null - brand?: StringNullableFilter<"Product"> | string | null - color?: StringNullableFilter<"Product"> | string | null - size?: StringNullableFilter<"Product"> | string | null - weight?: DecimalNullableFilter<"Product"> | Decimal | DecimalJsLike | number | string | null - dimensions?: StringNullableFilter<"Product"> | string | null - material?: StringNullableFilter<"Product"> | string | null - images?: JsonFilter<"Product"> - mainImage?: StringNullableFilter<"Product"> | string | null - isActive?: BoolFilter<"Product"> | boolean - createdAt?: DateTimeFilter<"Product"> | Date | string - updatedAt?: DateTimeFilter<"Product"> | Date | string - organizationId?: StringFilter<"Product"> | string - cartItems?: CartItemListRelationFilter - favorites?: FavoritesListRelationFilter - supplyOrderItems?: SupplyOrderItemListRelationFilter - category?: XOR | null - organization?: XOR - }, "id" | "organizationId_article"> - - export type ProductOrderByWithAggregationInput = { - id?: SortOrder - name?: SortOrder - article?: SortOrder - description?: SortOrderInput | SortOrder - price?: SortOrder - quantity?: SortOrder - categoryId?: SortOrderInput | SortOrder - brand?: SortOrderInput | SortOrder - color?: SortOrderInput | SortOrder - size?: SortOrderInput | SortOrder - weight?: SortOrderInput | SortOrder - dimensions?: SortOrderInput | SortOrder - material?: SortOrderInput | SortOrder - images?: SortOrder - mainImage?: SortOrderInput | SortOrder - isActive?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - _count?: ProductCountOrderByAggregateInput - _avg?: ProductAvgOrderByAggregateInput - _max?: ProductMaxOrderByAggregateInput - _min?: ProductMinOrderByAggregateInput - _sum?: ProductSumOrderByAggregateInput - } - - export type ProductScalarWhereWithAggregatesInput = { - AND?: ProductScalarWhereWithAggregatesInput | ProductScalarWhereWithAggregatesInput[] - OR?: ProductScalarWhereWithAggregatesInput[] - NOT?: ProductScalarWhereWithAggregatesInput | ProductScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"Product"> | string - name?: StringWithAggregatesFilter<"Product"> | string - article?: StringWithAggregatesFilter<"Product"> | string - description?: StringNullableWithAggregatesFilter<"Product"> | string | null - price?: DecimalWithAggregatesFilter<"Product"> | Decimal | DecimalJsLike | number | string - quantity?: IntWithAggregatesFilter<"Product"> | number - categoryId?: StringNullableWithAggregatesFilter<"Product"> | string | null - brand?: StringNullableWithAggregatesFilter<"Product"> | string | null - color?: StringNullableWithAggregatesFilter<"Product"> | string | null - size?: StringNullableWithAggregatesFilter<"Product"> | string | null - weight?: DecimalNullableWithAggregatesFilter<"Product"> | Decimal | DecimalJsLike | number | string | null - dimensions?: StringNullableWithAggregatesFilter<"Product"> | string | null - material?: StringNullableWithAggregatesFilter<"Product"> | string | null - images?: JsonWithAggregatesFilter<"Product"> - mainImage?: StringNullableWithAggregatesFilter<"Product"> | string | null - isActive?: BoolWithAggregatesFilter<"Product"> | boolean - createdAt?: DateTimeWithAggregatesFilter<"Product"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"Product"> | Date | string - organizationId?: StringWithAggregatesFilter<"Product"> | string - } - - export type CartWhereInput = { - AND?: CartWhereInput | CartWhereInput[] - OR?: CartWhereInput[] - NOT?: CartWhereInput | CartWhereInput[] - id?: StringFilter<"Cart"> | string - organizationId?: StringFilter<"Cart"> | string - createdAt?: DateTimeFilter<"Cart"> | Date | string - updatedAt?: DateTimeFilter<"Cart"> | Date | string - items?: CartItemListRelationFilter - organization?: XOR - } - - export type CartOrderByWithRelationInput = { - id?: SortOrder - organizationId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - items?: CartItemOrderByRelationAggregateInput - organization?: OrganizationOrderByWithRelationInput - } - - export type CartWhereUniqueInput = Prisma.AtLeast<{ - id?: string - organizationId?: string - AND?: CartWhereInput | CartWhereInput[] - OR?: CartWhereInput[] - NOT?: CartWhereInput | CartWhereInput[] - createdAt?: DateTimeFilter<"Cart"> | Date | string - updatedAt?: DateTimeFilter<"Cart"> | Date | string - items?: CartItemListRelationFilter - organization?: XOR - }, "id" | "organizationId"> - - export type CartOrderByWithAggregationInput = { - id?: SortOrder - organizationId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - _count?: CartCountOrderByAggregateInput - _max?: CartMaxOrderByAggregateInput - _min?: CartMinOrderByAggregateInput - } - - export type CartScalarWhereWithAggregatesInput = { - AND?: CartScalarWhereWithAggregatesInput | CartScalarWhereWithAggregatesInput[] - OR?: CartScalarWhereWithAggregatesInput[] - NOT?: CartScalarWhereWithAggregatesInput | CartScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"Cart"> | string - organizationId?: StringWithAggregatesFilter<"Cart"> | string - createdAt?: DateTimeWithAggregatesFilter<"Cart"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"Cart"> | Date | string - } - - export type CartItemWhereInput = { - AND?: CartItemWhereInput | CartItemWhereInput[] - OR?: CartItemWhereInput[] - NOT?: CartItemWhereInput | CartItemWhereInput[] - id?: StringFilter<"CartItem"> | string - cartId?: StringFilter<"CartItem"> | string - productId?: StringFilter<"CartItem"> | string - quantity?: IntFilter<"CartItem"> | number - createdAt?: DateTimeFilter<"CartItem"> | Date | string - updatedAt?: DateTimeFilter<"CartItem"> | Date | string - cart?: XOR - product?: XOR - } - - export type CartItemOrderByWithRelationInput = { - id?: SortOrder - cartId?: SortOrder - productId?: SortOrder - quantity?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - cart?: CartOrderByWithRelationInput - product?: ProductOrderByWithRelationInput - } - - export type CartItemWhereUniqueInput = Prisma.AtLeast<{ - id?: string - cartId_productId?: CartItemCartIdProductIdCompoundUniqueInput - AND?: CartItemWhereInput | CartItemWhereInput[] - OR?: CartItemWhereInput[] - NOT?: CartItemWhereInput | CartItemWhereInput[] - cartId?: StringFilter<"CartItem"> | string - productId?: StringFilter<"CartItem"> | string - quantity?: IntFilter<"CartItem"> | number - createdAt?: DateTimeFilter<"CartItem"> | Date | string - updatedAt?: DateTimeFilter<"CartItem"> | Date | string - cart?: XOR - product?: XOR - }, "id" | "cartId_productId"> - - export type CartItemOrderByWithAggregationInput = { - id?: SortOrder - cartId?: SortOrder - productId?: SortOrder - quantity?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - _count?: CartItemCountOrderByAggregateInput - _avg?: CartItemAvgOrderByAggregateInput - _max?: CartItemMaxOrderByAggregateInput - _min?: CartItemMinOrderByAggregateInput - _sum?: CartItemSumOrderByAggregateInput - } - - export type CartItemScalarWhereWithAggregatesInput = { - AND?: CartItemScalarWhereWithAggregatesInput | CartItemScalarWhereWithAggregatesInput[] - OR?: CartItemScalarWhereWithAggregatesInput[] - NOT?: CartItemScalarWhereWithAggregatesInput | CartItemScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"CartItem"> | string - cartId?: StringWithAggregatesFilter<"CartItem"> | string - productId?: StringWithAggregatesFilter<"CartItem"> | string - quantity?: IntWithAggregatesFilter<"CartItem"> | number - createdAt?: DateTimeWithAggregatesFilter<"CartItem"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"CartItem"> | Date | string - } - - export type FavoritesWhereInput = { - AND?: FavoritesWhereInput | FavoritesWhereInput[] - OR?: FavoritesWhereInput[] - NOT?: FavoritesWhereInput | FavoritesWhereInput[] - id?: StringFilter<"Favorites"> | string - organizationId?: StringFilter<"Favorites"> | string - productId?: StringFilter<"Favorites"> | string - createdAt?: DateTimeFilter<"Favorites"> | Date | string - updatedAt?: DateTimeFilter<"Favorites"> | Date | string - organization?: XOR - product?: XOR - } - - export type FavoritesOrderByWithRelationInput = { - id?: SortOrder - organizationId?: SortOrder - productId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organization?: OrganizationOrderByWithRelationInput - product?: ProductOrderByWithRelationInput - } - - export type FavoritesWhereUniqueInput = Prisma.AtLeast<{ - id?: string - organizationId_productId?: FavoritesOrganizationIdProductIdCompoundUniqueInput - AND?: FavoritesWhereInput | FavoritesWhereInput[] - OR?: FavoritesWhereInput[] - NOT?: FavoritesWhereInput | FavoritesWhereInput[] - organizationId?: StringFilter<"Favorites"> | string - productId?: StringFilter<"Favorites"> | string - createdAt?: DateTimeFilter<"Favorites"> | Date | string - updatedAt?: DateTimeFilter<"Favorites"> | Date | string - organization?: XOR - product?: XOR - }, "id" | "organizationId_productId"> - - export type FavoritesOrderByWithAggregationInput = { - id?: SortOrder - organizationId?: SortOrder - productId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - _count?: FavoritesCountOrderByAggregateInput - _max?: FavoritesMaxOrderByAggregateInput - _min?: FavoritesMinOrderByAggregateInput - } - - export type FavoritesScalarWhereWithAggregatesInput = { - AND?: FavoritesScalarWhereWithAggregatesInput | FavoritesScalarWhereWithAggregatesInput[] - OR?: FavoritesScalarWhereWithAggregatesInput[] - NOT?: FavoritesScalarWhereWithAggregatesInput | FavoritesScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"Favorites"> | string - organizationId?: StringWithAggregatesFilter<"Favorites"> | string - productId?: StringWithAggregatesFilter<"Favorites"> | string - createdAt?: DateTimeWithAggregatesFilter<"Favorites"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"Favorites"> | Date | string - } - - export type EmployeeWhereInput = { - AND?: EmployeeWhereInput | EmployeeWhereInput[] - OR?: EmployeeWhereInput[] - NOT?: EmployeeWhereInput | EmployeeWhereInput[] - id?: StringFilter<"Employee"> | string - firstName?: StringFilter<"Employee"> | string - lastName?: StringFilter<"Employee"> | string - middleName?: StringNullableFilter<"Employee"> | string | null - birthDate?: DateTimeNullableFilter<"Employee"> | Date | string | null - avatar?: StringNullableFilter<"Employee"> | string | null - passportPhoto?: StringNullableFilter<"Employee"> | string | null - passportSeries?: StringNullableFilter<"Employee"> | string | null - passportNumber?: StringNullableFilter<"Employee"> | string | null - passportIssued?: StringNullableFilter<"Employee"> | string | null - passportDate?: DateTimeNullableFilter<"Employee"> | Date | string | null - address?: StringNullableFilter<"Employee"> | string | null - position?: StringFilter<"Employee"> | string - department?: StringNullableFilter<"Employee"> | string | null - hireDate?: DateTimeFilter<"Employee"> | Date | string - salary?: FloatNullableFilter<"Employee"> | number | null - status?: EnumEmployeeStatusFilter<"Employee"> | $Enums.EmployeeStatus - phone?: StringFilter<"Employee"> | string - email?: StringNullableFilter<"Employee"> | string | null - telegram?: StringNullableFilter<"Employee"> | string | null - whatsapp?: StringNullableFilter<"Employee"> | string | null - emergencyContact?: StringNullableFilter<"Employee"> | string | null - emergencyPhone?: StringNullableFilter<"Employee"> | string | null - organizationId?: StringFilter<"Employee"> | string - createdAt?: DateTimeFilter<"Employee"> | Date | string - updatedAt?: DateTimeFilter<"Employee"> | Date | string - scheduleRecords?: EmployeeScheduleListRelationFilter - organization?: XOR - } - - export type EmployeeOrderByWithRelationInput = { - id?: SortOrder - firstName?: SortOrder - lastName?: SortOrder - middleName?: SortOrderInput | SortOrder - birthDate?: SortOrderInput | SortOrder - avatar?: SortOrderInput | SortOrder - passportPhoto?: SortOrderInput | SortOrder - passportSeries?: SortOrderInput | SortOrder - passportNumber?: SortOrderInput | SortOrder - passportIssued?: SortOrderInput | SortOrder - passportDate?: SortOrderInput | SortOrder - address?: SortOrderInput | SortOrder - position?: SortOrder - department?: SortOrderInput | SortOrder - hireDate?: SortOrder - salary?: SortOrderInput | SortOrder - status?: SortOrder - phone?: SortOrder - email?: SortOrderInput | SortOrder - telegram?: SortOrderInput | SortOrder - whatsapp?: SortOrderInput | SortOrder - emergencyContact?: SortOrderInput | SortOrder - emergencyPhone?: SortOrderInput | SortOrder - organizationId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - scheduleRecords?: EmployeeScheduleOrderByRelationAggregateInput - organization?: OrganizationOrderByWithRelationInput - } - - export type EmployeeWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: EmployeeWhereInput | EmployeeWhereInput[] - OR?: EmployeeWhereInput[] - NOT?: EmployeeWhereInput | EmployeeWhereInput[] - firstName?: StringFilter<"Employee"> | string - lastName?: StringFilter<"Employee"> | string - middleName?: StringNullableFilter<"Employee"> | string | null - birthDate?: DateTimeNullableFilter<"Employee"> | Date | string | null - avatar?: StringNullableFilter<"Employee"> | string | null - passportPhoto?: StringNullableFilter<"Employee"> | string | null - passportSeries?: StringNullableFilter<"Employee"> | string | null - passportNumber?: StringNullableFilter<"Employee"> | string | null - passportIssued?: StringNullableFilter<"Employee"> | string | null - passportDate?: DateTimeNullableFilter<"Employee"> | Date | string | null - address?: StringNullableFilter<"Employee"> | string | null - position?: StringFilter<"Employee"> | string - department?: StringNullableFilter<"Employee"> | string | null - hireDate?: DateTimeFilter<"Employee"> | Date | string - salary?: FloatNullableFilter<"Employee"> | number | null - status?: EnumEmployeeStatusFilter<"Employee"> | $Enums.EmployeeStatus - phone?: StringFilter<"Employee"> | string - email?: StringNullableFilter<"Employee"> | string | null - telegram?: StringNullableFilter<"Employee"> | string | null - whatsapp?: StringNullableFilter<"Employee"> | string | null - emergencyContact?: StringNullableFilter<"Employee"> | string | null - emergencyPhone?: StringNullableFilter<"Employee"> | string | null - organizationId?: StringFilter<"Employee"> | string - createdAt?: DateTimeFilter<"Employee"> | Date | string - updatedAt?: DateTimeFilter<"Employee"> | Date | string - scheduleRecords?: EmployeeScheduleListRelationFilter - organization?: XOR - }, "id"> - - export type EmployeeOrderByWithAggregationInput = { - id?: SortOrder - firstName?: SortOrder - lastName?: SortOrder - middleName?: SortOrderInput | SortOrder - birthDate?: SortOrderInput | SortOrder - avatar?: SortOrderInput | SortOrder - passportPhoto?: SortOrderInput | SortOrder - passportSeries?: SortOrderInput | SortOrder - passportNumber?: SortOrderInput | SortOrder - passportIssued?: SortOrderInput | SortOrder - passportDate?: SortOrderInput | SortOrder - address?: SortOrderInput | SortOrder - position?: SortOrder - department?: SortOrderInput | SortOrder - hireDate?: SortOrder - salary?: SortOrderInput | SortOrder - status?: SortOrder - phone?: SortOrder - email?: SortOrderInput | SortOrder - telegram?: SortOrderInput | SortOrder - whatsapp?: SortOrderInput | SortOrder - emergencyContact?: SortOrderInput | SortOrder - emergencyPhone?: SortOrderInput | SortOrder - organizationId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - _count?: EmployeeCountOrderByAggregateInput - _avg?: EmployeeAvgOrderByAggregateInput - _max?: EmployeeMaxOrderByAggregateInput - _min?: EmployeeMinOrderByAggregateInput - _sum?: EmployeeSumOrderByAggregateInput - } - - export type EmployeeScalarWhereWithAggregatesInput = { - AND?: EmployeeScalarWhereWithAggregatesInput | EmployeeScalarWhereWithAggregatesInput[] - OR?: EmployeeScalarWhereWithAggregatesInput[] - NOT?: EmployeeScalarWhereWithAggregatesInput | EmployeeScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"Employee"> | string - firstName?: StringWithAggregatesFilter<"Employee"> | string - lastName?: StringWithAggregatesFilter<"Employee"> | string - middleName?: StringNullableWithAggregatesFilter<"Employee"> | string | null - birthDate?: DateTimeNullableWithAggregatesFilter<"Employee"> | Date | string | null - avatar?: StringNullableWithAggregatesFilter<"Employee"> | string | null - passportPhoto?: StringNullableWithAggregatesFilter<"Employee"> | string | null - passportSeries?: StringNullableWithAggregatesFilter<"Employee"> | string | null - passportNumber?: StringNullableWithAggregatesFilter<"Employee"> | string | null - passportIssued?: StringNullableWithAggregatesFilter<"Employee"> | string | null - passportDate?: DateTimeNullableWithAggregatesFilter<"Employee"> | Date | string | null - address?: StringNullableWithAggregatesFilter<"Employee"> | string | null - position?: StringWithAggregatesFilter<"Employee"> | string - department?: StringNullableWithAggregatesFilter<"Employee"> | string | null - hireDate?: DateTimeWithAggregatesFilter<"Employee"> | Date | string - salary?: FloatNullableWithAggregatesFilter<"Employee"> | number | null - status?: EnumEmployeeStatusWithAggregatesFilter<"Employee"> | $Enums.EmployeeStatus - phone?: StringWithAggregatesFilter<"Employee"> | string - email?: StringNullableWithAggregatesFilter<"Employee"> | string | null - telegram?: StringNullableWithAggregatesFilter<"Employee"> | string | null - whatsapp?: StringNullableWithAggregatesFilter<"Employee"> | string | null - emergencyContact?: StringNullableWithAggregatesFilter<"Employee"> | string | null - emergencyPhone?: StringNullableWithAggregatesFilter<"Employee"> | string | null - organizationId?: StringWithAggregatesFilter<"Employee"> | string - createdAt?: DateTimeWithAggregatesFilter<"Employee"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"Employee"> | Date | string - } - - export type EmployeeScheduleWhereInput = { - AND?: EmployeeScheduleWhereInput | EmployeeScheduleWhereInput[] - OR?: EmployeeScheduleWhereInput[] - NOT?: EmployeeScheduleWhereInput | EmployeeScheduleWhereInput[] - id?: StringFilter<"EmployeeSchedule"> | string - date?: DateTimeFilter<"EmployeeSchedule"> | Date | string - status?: EnumScheduleStatusFilter<"EmployeeSchedule"> | $Enums.ScheduleStatus - hoursWorked?: FloatNullableFilter<"EmployeeSchedule"> | number | null - notes?: StringNullableFilter<"EmployeeSchedule"> | string | null - employeeId?: StringFilter<"EmployeeSchedule"> | string - createdAt?: DateTimeFilter<"EmployeeSchedule"> | Date | string - updatedAt?: DateTimeFilter<"EmployeeSchedule"> | Date | string - employee?: XOR - } - - export type EmployeeScheduleOrderByWithRelationInput = { - id?: SortOrder - date?: SortOrder - status?: SortOrder - hoursWorked?: SortOrderInput | SortOrder - notes?: SortOrderInput | SortOrder - employeeId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - employee?: EmployeeOrderByWithRelationInput - } - - export type EmployeeScheduleWhereUniqueInput = Prisma.AtLeast<{ - id?: string - employeeId_date?: EmployeeScheduleEmployeeIdDateCompoundUniqueInput - AND?: EmployeeScheduleWhereInput | EmployeeScheduleWhereInput[] - OR?: EmployeeScheduleWhereInput[] - NOT?: EmployeeScheduleWhereInput | EmployeeScheduleWhereInput[] - date?: DateTimeFilter<"EmployeeSchedule"> | Date | string - status?: EnumScheduleStatusFilter<"EmployeeSchedule"> | $Enums.ScheduleStatus - hoursWorked?: FloatNullableFilter<"EmployeeSchedule"> | number | null - notes?: StringNullableFilter<"EmployeeSchedule"> | string | null - employeeId?: StringFilter<"EmployeeSchedule"> | string - createdAt?: DateTimeFilter<"EmployeeSchedule"> | Date | string - updatedAt?: DateTimeFilter<"EmployeeSchedule"> | Date | string - employee?: XOR - }, "id" | "employeeId_date"> - - export type EmployeeScheduleOrderByWithAggregationInput = { - id?: SortOrder - date?: SortOrder - status?: SortOrder - hoursWorked?: SortOrderInput | SortOrder - notes?: SortOrderInput | SortOrder - employeeId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - _count?: EmployeeScheduleCountOrderByAggregateInput - _avg?: EmployeeScheduleAvgOrderByAggregateInput - _max?: EmployeeScheduleMaxOrderByAggregateInput - _min?: EmployeeScheduleMinOrderByAggregateInput - _sum?: EmployeeScheduleSumOrderByAggregateInput - } - - export type EmployeeScheduleScalarWhereWithAggregatesInput = { - AND?: EmployeeScheduleScalarWhereWithAggregatesInput | EmployeeScheduleScalarWhereWithAggregatesInput[] - OR?: EmployeeScheduleScalarWhereWithAggregatesInput[] - NOT?: EmployeeScheduleScalarWhereWithAggregatesInput | EmployeeScheduleScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"EmployeeSchedule"> | string - date?: DateTimeWithAggregatesFilter<"EmployeeSchedule"> | Date | string - status?: EnumScheduleStatusWithAggregatesFilter<"EmployeeSchedule"> | $Enums.ScheduleStatus - hoursWorked?: FloatNullableWithAggregatesFilter<"EmployeeSchedule"> | number | null - notes?: StringNullableWithAggregatesFilter<"EmployeeSchedule"> | string | null - employeeId?: StringWithAggregatesFilter<"EmployeeSchedule"> | string - createdAt?: DateTimeWithAggregatesFilter<"EmployeeSchedule"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"EmployeeSchedule"> | Date | string - } - - export type WildberriesSupplyWhereInput = { - AND?: WildberriesSupplyWhereInput | WildberriesSupplyWhereInput[] - OR?: WildberriesSupplyWhereInput[] - NOT?: WildberriesSupplyWhereInput | WildberriesSupplyWhereInput[] - id?: StringFilter<"WildberriesSupply"> | string - organizationId?: StringFilter<"WildberriesSupply"> | string - deliveryDate?: DateTimeNullableFilter<"WildberriesSupply"> | Date | string | null - status?: EnumWildberriesSupplyStatusFilter<"WildberriesSupply"> | $Enums.WildberriesSupplyStatus - totalAmount?: DecimalFilter<"WildberriesSupply"> | Decimal | DecimalJsLike | number | string - totalItems?: IntFilter<"WildberriesSupply"> | number - createdAt?: DateTimeFilter<"WildberriesSupply"> | Date | string - updatedAt?: DateTimeFilter<"WildberriesSupply"> | Date | string - organization?: XOR - cards?: WildberriesSupplyCardListRelationFilter - } - - export type WildberriesSupplyOrderByWithRelationInput = { - id?: SortOrder - organizationId?: SortOrder - deliveryDate?: SortOrderInput | SortOrder - status?: SortOrder - totalAmount?: SortOrder - totalItems?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organization?: OrganizationOrderByWithRelationInput - cards?: WildberriesSupplyCardOrderByRelationAggregateInput - } - - export type WildberriesSupplyWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: WildberriesSupplyWhereInput | WildberriesSupplyWhereInput[] - OR?: WildberriesSupplyWhereInput[] - NOT?: WildberriesSupplyWhereInput | WildberriesSupplyWhereInput[] - organizationId?: StringFilter<"WildberriesSupply"> | string - deliveryDate?: DateTimeNullableFilter<"WildberriesSupply"> | Date | string | null - status?: EnumWildberriesSupplyStatusFilter<"WildberriesSupply"> | $Enums.WildberriesSupplyStatus - totalAmount?: DecimalFilter<"WildberriesSupply"> | Decimal | DecimalJsLike | number | string - totalItems?: IntFilter<"WildberriesSupply"> | number - createdAt?: DateTimeFilter<"WildberriesSupply"> | Date | string - updatedAt?: DateTimeFilter<"WildberriesSupply"> | Date | string - organization?: XOR - cards?: WildberriesSupplyCardListRelationFilter - }, "id"> - - export type WildberriesSupplyOrderByWithAggregationInput = { - id?: SortOrder - organizationId?: SortOrder - deliveryDate?: SortOrderInput | SortOrder - status?: SortOrder - totalAmount?: SortOrder - totalItems?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - _count?: WildberriesSupplyCountOrderByAggregateInput - _avg?: WildberriesSupplyAvgOrderByAggregateInput - _max?: WildberriesSupplyMaxOrderByAggregateInput - _min?: WildberriesSupplyMinOrderByAggregateInput - _sum?: WildberriesSupplySumOrderByAggregateInput - } - - export type WildberriesSupplyScalarWhereWithAggregatesInput = { - AND?: WildberriesSupplyScalarWhereWithAggregatesInput | WildberriesSupplyScalarWhereWithAggregatesInput[] - OR?: WildberriesSupplyScalarWhereWithAggregatesInput[] - NOT?: WildberriesSupplyScalarWhereWithAggregatesInput | WildberriesSupplyScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"WildberriesSupply"> | string - organizationId?: StringWithAggregatesFilter<"WildberriesSupply"> | string - deliveryDate?: DateTimeNullableWithAggregatesFilter<"WildberriesSupply"> | Date | string | null - status?: EnumWildberriesSupplyStatusWithAggregatesFilter<"WildberriesSupply"> | $Enums.WildberriesSupplyStatus - totalAmount?: DecimalWithAggregatesFilter<"WildberriesSupply"> | Decimal | DecimalJsLike | number | string - totalItems?: IntWithAggregatesFilter<"WildberriesSupply"> | number - createdAt?: DateTimeWithAggregatesFilter<"WildberriesSupply"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"WildberriesSupply"> | Date | string - } - - export type WildberriesSupplyCardWhereInput = { - AND?: WildberriesSupplyCardWhereInput | WildberriesSupplyCardWhereInput[] - OR?: WildberriesSupplyCardWhereInput[] - NOT?: WildberriesSupplyCardWhereInput | WildberriesSupplyCardWhereInput[] - id?: StringFilter<"WildberriesSupplyCard"> | string - supplyId?: StringFilter<"WildberriesSupplyCard"> | string - nmId?: StringFilter<"WildberriesSupplyCard"> | string - vendorCode?: StringFilter<"WildberriesSupplyCard"> | string - title?: StringFilter<"WildberriesSupplyCard"> | string - brand?: StringNullableFilter<"WildberriesSupplyCard"> | string | null - price?: DecimalFilter<"WildberriesSupplyCard"> | Decimal | DecimalJsLike | number | string - discountedPrice?: DecimalNullableFilter<"WildberriesSupplyCard"> | Decimal | DecimalJsLike | number | string | null - quantity?: IntFilter<"WildberriesSupplyCard"> | number - selectedQuantity?: IntFilter<"WildberriesSupplyCard"> | number - selectedMarket?: StringNullableFilter<"WildberriesSupplyCard"> | string | null - selectedPlace?: StringNullableFilter<"WildberriesSupplyCard"> | string | null - sellerName?: StringNullableFilter<"WildberriesSupplyCard"> | string | null - sellerPhone?: StringNullableFilter<"WildberriesSupplyCard"> | string | null - deliveryDate?: DateTimeNullableFilter<"WildberriesSupplyCard"> | Date | string | null - mediaFiles?: JsonFilter<"WildberriesSupplyCard"> - selectedServices?: JsonFilter<"WildberriesSupplyCard"> - createdAt?: DateTimeFilter<"WildberriesSupplyCard"> | Date | string - updatedAt?: DateTimeFilter<"WildberriesSupplyCard"> | Date | string - supply?: XOR - } - - export type WildberriesSupplyCardOrderByWithRelationInput = { - id?: SortOrder - supplyId?: SortOrder - nmId?: SortOrder - vendorCode?: SortOrder - title?: SortOrder - brand?: SortOrderInput | SortOrder - price?: SortOrder - discountedPrice?: SortOrderInput | SortOrder - quantity?: SortOrder - selectedQuantity?: SortOrder - selectedMarket?: SortOrderInput | SortOrder - selectedPlace?: SortOrderInput | SortOrder - sellerName?: SortOrderInput | SortOrder - sellerPhone?: SortOrderInput | SortOrder - deliveryDate?: SortOrderInput | SortOrder - mediaFiles?: SortOrder - selectedServices?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - supply?: WildberriesSupplyOrderByWithRelationInput - } - - export type WildberriesSupplyCardWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: WildberriesSupplyCardWhereInput | WildberriesSupplyCardWhereInput[] - OR?: WildberriesSupplyCardWhereInput[] - NOT?: WildberriesSupplyCardWhereInput | WildberriesSupplyCardWhereInput[] - supplyId?: StringFilter<"WildberriesSupplyCard"> | string - nmId?: StringFilter<"WildberriesSupplyCard"> | string - vendorCode?: StringFilter<"WildberriesSupplyCard"> | string - title?: StringFilter<"WildberriesSupplyCard"> | string - brand?: StringNullableFilter<"WildberriesSupplyCard"> | string | null - price?: DecimalFilter<"WildberriesSupplyCard"> | Decimal | DecimalJsLike | number | string - discountedPrice?: DecimalNullableFilter<"WildberriesSupplyCard"> | Decimal | DecimalJsLike | number | string | null - quantity?: IntFilter<"WildberriesSupplyCard"> | number - selectedQuantity?: IntFilter<"WildberriesSupplyCard"> | number - selectedMarket?: StringNullableFilter<"WildberriesSupplyCard"> | string | null - selectedPlace?: StringNullableFilter<"WildberriesSupplyCard"> | string | null - sellerName?: StringNullableFilter<"WildberriesSupplyCard"> | string | null - sellerPhone?: StringNullableFilter<"WildberriesSupplyCard"> | string | null - deliveryDate?: DateTimeNullableFilter<"WildberriesSupplyCard"> | Date | string | null - mediaFiles?: JsonFilter<"WildberriesSupplyCard"> - selectedServices?: JsonFilter<"WildberriesSupplyCard"> - createdAt?: DateTimeFilter<"WildberriesSupplyCard"> | Date | string - updatedAt?: DateTimeFilter<"WildberriesSupplyCard"> | Date | string - supply?: XOR - }, "id"> - - export type WildberriesSupplyCardOrderByWithAggregationInput = { - id?: SortOrder - supplyId?: SortOrder - nmId?: SortOrder - vendorCode?: SortOrder - title?: SortOrder - brand?: SortOrderInput | SortOrder - price?: SortOrder - discountedPrice?: SortOrderInput | SortOrder - quantity?: SortOrder - selectedQuantity?: SortOrder - selectedMarket?: SortOrderInput | SortOrder - selectedPlace?: SortOrderInput | SortOrder - sellerName?: SortOrderInput | SortOrder - sellerPhone?: SortOrderInput | SortOrder - deliveryDate?: SortOrderInput | SortOrder - mediaFiles?: SortOrder - selectedServices?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - _count?: WildberriesSupplyCardCountOrderByAggregateInput - _avg?: WildberriesSupplyCardAvgOrderByAggregateInput - _max?: WildberriesSupplyCardMaxOrderByAggregateInput - _min?: WildberriesSupplyCardMinOrderByAggregateInput - _sum?: WildberriesSupplyCardSumOrderByAggregateInput - } - - export type WildberriesSupplyCardScalarWhereWithAggregatesInput = { - AND?: WildberriesSupplyCardScalarWhereWithAggregatesInput | WildberriesSupplyCardScalarWhereWithAggregatesInput[] - OR?: WildberriesSupplyCardScalarWhereWithAggregatesInput[] - NOT?: WildberriesSupplyCardScalarWhereWithAggregatesInput | WildberriesSupplyCardScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"WildberriesSupplyCard"> | string - supplyId?: StringWithAggregatesFilter<"WildberriesSupplyCard"> | string - nmId?: StringWithAggregatesFilter<"WildberriesSupplyCard"> | string - vendorCode?: StringWithAggregatesFilter<"WildberriesSupplyCard"> | string - title?: StringWithAggregatesFilter<"WildberriesSupplyCard"> | string - brand?: StringNullableWithAggregatesFilter<"WildberriesSupplyCard"> | string | null - price?: DecimalWithAggregatesFilter<"WildberriesSupplyCard"> | Decimal | DecimalJsLike | number | string - discountedPrice?: DecimalNullableWithAggregatesFilter<"WildberriesSupplyCard"> | Decimal | DecimalJsLike | number | string | null - quantity?: IntWithAggregatesFilter<"WildberriesSupplyCard"> | number - selectedQuantity?: IntWithAggregatesFilter<"WildberriesSupplyCard"> | number - selectedMarket?: StringNullableWithAggregatesFilter<"WildberriesSupplyCard"> | string | null - selectedPlace?: StringNullableWithAggregatesFilter<"WildberriesSupplyCard"> | string | null - sellerName?: StringNullableWithAggregatesFilter<"WildberriesSupplyCard"> | string | null - sellerPhone?: StringNullableWithAggregatesFilter<"WildberriesSupplyCard"> | string | null - deliveryDate?: DateTimeNullableWithAggregatesFilter<"WildberriesSupplyCard"> | Date | string | null - mediaFiles?: JsonWithAggregatesFilter<"WildberriesSupplyCard"> - selectedServices?: JsonWithAggregatesFilter<"WildberriesSupplyCard"> - createdAt?: DateTimeWithAggregatesFilter<"WildberriesSupplyCard"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"WildberriesSupplyCard"> | Date | string - } - - export type LogisticsWhereInput = { - AND?: LogisticsWhereInput | LogisticsWhereInput[] - OR?: LogisticsWhereInput[] - NOT?: LogisticsWhereInput | LogisticsWhereInput[] - id?: StringFilter<"Logistics"> | string - fromLocation?: StringFilter<"Logistics"> | string - toLocation?: StringFilter<"Logistics"> | string - priceUnder1m3?: FloatFilter<"Logistics"> | number - priceOver1m3?: FloatFilter<"Logistics"> | number - description?: StringNullableFilter<"Logistics"> | string | null - createdAt?: DateTimeFilter<"Logistics"> | Date | string - updatedAt?: DateTimeFilter<"Logistics"> | Date | string - organizationId?: StringFilter<"Logistics"> | string - organization?: XOR - } - - export type LogisticsOrderByWithRelationInput = { - id?: SortOrder - fromLocation?: SortOrder - toLocation?: SortOrder - priceUnder1m3?: SortOrder - priceOver1m3?: SortOrder - description?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - organization?: OrganizationOrderByWithRelationInput - } - - export type LogisticsWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: LogisticsWhereInput | LogisticsWhereInput[] - OR?: LogisticsWhereInput[] - NOT?: LogisticsWhereInput | LogisticsWhereInput[] - fromLocation?: StringFilter<"Logistics"> | string - toLocation?: StringFilter<"Logistics"> | string - priceUnder1m3?: FloatFilter<"Logistics"> | number - priceOver1m3?: FloatFilter<"Logistics"> | number - description?: StringNullableFilter<"Logistics"> | string | null - createdAt?: DateTimeFilter<"Logistics"> | Date | string - updatedAt?: DateTimeFilter<"Logistics"> | Date | string - organizationId?: StringFilter<"Logistics"> | string - organization?: XOR - }, "id"> - - export type LogisticsOrderByWithAggregationInput = { - id?: SortOrder - fromLocation?: SortOrder - toLocation?: SortOrder - priceUnder1m3?: SortOrder - priceOver1m3?: SortOrder - description?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - _count?: LogisticsCountOrderByAggregateInput - _avg?: LogisticsAvgOrderByAggregateInput - _max?: LogisticsMaxOrderByAggregateInput - _min?: LogisticsMinOrderByAggregateInput - _sum?: LogisticsSumOrderByAggregateInput - } - - export type LogisticsScalarWhereWithAggregatesInput = { - AND?: LogisticsScalarWhereWithAggregatesInput | LogisticsScalarWhereWithAggregatesInput[] - OR?: LogisticsScalarWhereWithAggregatesInput[] - NOT?: LogisticsScalarWhereWithAggregatesInput | LogisticsScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"Logistics"> | string - fromLocation?: StringWithAggregatesFilter<"Logistics"> | string - toLocation?: StringWithAggregatesFilter<"Logistics"> | string - priceUnder1m3?: FloatWithAggregatesFilter<"Logistics"> | number - priceOver1m3?: FloatWithAggregatesFilter<"Logistics"> | number - description?: StringNullableWithAggregatesFilter<"Logistics"> | string | null - createdAt?: DateTimeWithAggregatesFilter<"Logistics"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"Logistics"> | Date | string - organizationId?: StringWithAggregatesFilter<"Logistics"> | string - } - - export type SupplyOrderWhereInput = { - AND?: SupplyOrderWhereInput | SupplyOrderWhereInput[] - OR?: SupplyOrderWhereInput[] - NOT?: SupplyOrderWhereInput | SupplyOrderWhereInput[] - id?: StringFilter<"SupplyOrder"> | string - partnerId?: StringFilter<"SupplyOrder"> | string - deliveryDate?: DateTimeFilter<"SupplyOrder"> | Date | string - status?: EnumSupplyOrderStatusFilter<"SupplyOrder"> | $Enums.SupplyOrderStatus - totalAmount?: DecimalFilter<"SupplyOrder"> | Decimal | DecimalJsLike | number | string - totalItems?: IntFilter<"SupplyOrder"> | number - fulfillmentCenterId?: StringNullableFilter<"SupplyOrder"> | string | null - createdAt?: DateTimeFilter<"SupplyOrder"> | Date | string - updatedAt?: DateTimeFilter<"SupplyOrder"> | Date | string - organizationId?: StringFilter<"SupplyOrder"> | string - items?: SupplyOrderItemListRelationFilter - organization?: XOR - partner?: XOR - fulfillmentCenter?: XOR | null - } - - export type SupplyOrderOrderByWithRelationInput = { - id?: SortOrder - partnerId?: SortOrder - deliveryDate?: SortOrder - status?: SortOrder - totalAmount?: SortOrder - totalItems?: SortOrder - fulfillmentCenterId?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - items?: SupplyOrderItemOrderByRelationAggregateInput - organization?: OrganizationOrderByWithRelationInput - partner?: OrganizationOrderByWithRelationInput - fulfillmentCenter?: OrganizationOrderByWithRelationInput - } - - export type SupplyOrderWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: SupplyOrderWhereInput | SupplyOrderWhereInput[] - OR?: SupplyOrderWhereInput[] - NOT?: SupplyOrderWhereInput | SupplyOrderWhereInput[] - partnerId?: StringFilter<"SupplyOrder"> | string - deliveryDate?: DateTimeFilter<"SupplyOrder"> | Date | string - status?: EnumSupplyOrderStatusFilter<"SupplyOrder"> | $Enums.SupplyOrderStatus - totalAmount?: DecimalFilter<"SupplyOrder"> | Decimal | DecimalJsLike | number | string - totalItems?: IntFilter<"SupplyOrder"> | number - fulfillmentCenterId?: StringNullableFilter<"SupplyOrder"> | string | null - createdAt?: DateTimeFilter<"SupplyOrder"> | Date | string - updatedAt?: DateTimeFilter<"SupplyOrder"> | Date | string - organizationId?: StringFilter<"SupplyOrder"> | string - items?: SupplyOrderItemListRelationFilter - organization?: XOR - partner?: XOR - fulfillmentCenter?: XOR | null - }, "id"> - - export type SupplyOrderOrderByWithAggregationInput = { - id?: SortOrder - partnerId?: SortOrder - deliveryDate?: SortOrder - status?: SortOrder - totalAmount?: SortOrder - totalItems?: SortOrder - fulfillmentCenterId?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - _count?: SupplyOrderCountOrderByAggregateInput - _avg?: SupplyOrderAvgOrderByAggregateInput - _max?: SupplyOrderMaxOrderByAggregateInput - _min?: SupplyOrderMinOrderByAggregateInput - _sum?: SupplyOrderSumOrderByAggregateInput - } - - export type SupplyOrderScalarWhereWithAggregatesInput = { - AND?: SupplyOrderScalarWhereWithAggregatesInput | SupplyOrderScalarWhereWithAggregatesInput[] - OR?: SupplyOrderScalarWhereWithAggregatesInput[] - NOT?: SupplyOrderScalarWhereWithAggregatesInput | SupplyOrderScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"SupplyOrder"> | string - partnerId?: StringWithAggregatesFilter<"SupplyOrder"> | string - deliveryDate?: DateTimeWithAggregatesFilter<"SupplyOrder"> | Date | string - status?: EnumSupplyOrderStatusWithAggregatesFilter<"SupplyOrder"> | $Enums.SupplyOrderStatus - totalAmount?: DecimalWithAggregatesFilter<"SupplyOrder"> | Decimal | DecimalJsLike | number | string - totalItems?: IntWithAggregatesFilter<"SupplyOrder"> | number - fulfillmentCenterId?: StringNullableWithAggregatesFilter<"SupplyOrder"> | string | null - createdAt?: DateTimeWithAggregatesFilter<"SupplyOrder"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"SupplyOrder"> | Date | string - organizationId?: StringWithAggregatesFilter<"SupplyOrder"> | string - } - - export type SupplyOrderItemWhereInput = { - AND?: SupplyOrderItemWhereInput | SupplyOrderItemWhereInput[] - OR?: SupplyOrderItemWhereInput[] - NOT?: SupplyOrderItemWhereInput | SupplyOrderItemWhereInput[] - id?: StringFilter<"SupplyOrderItem"> | string - supplyOrderId?: StringFilter<"SupplyOrderItem"> | string - productId?: StringFilter<"SupplyOrderItem"> | string - quantity?: IntFilter<"SupplyOrderItem"> | number - price?: DecimalFilter<"SupplyOrderItem"> | Decimal | DecimalJsLike | number | string - totalPrice?: DecimalFilter<"SupplyOrderItem"> | Decimal | DecimalJsLike | number | string - createdAt?: DateTimeFilter<"SupplyOrderItem"> | Date | string - updatedAt?: DateTimeFilter<"SupplyOrderItem"> | Date | string - supplyOrder?: XOR - product?: XOR - } - - export type SupplyOrderItemOrderByWithRelationInput = { - id?: SortOrder - supplyOrderId?: SortOrder - productId?: SortOrder - quantity?: SortOrder - price?: SortOrder - totalPrice?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - supplyOrder?: SupplyOrderOrderByWithRelationInput - product?: ProductOrderByWithRelationInput - } - - export type SupplyOrderItemWhereUniqueInput = Prisma.AtLeast<{ - id?: string - supplyOrderId_productId?: SupplyOrderItemSupplyOrderIdProductIdCompoundUniqueInput - AND?: SupplyOrderItemWhereInput | SupplyOrderItemWhereInput[] - OR?: SupplyOrderItemWhereInput[] - NOT?: SupplyOrderItemWhereInput | SupplyOrderItemWhereInput[] - supplyOrderId?: StringFilter<"SupplyOrderItem"> | string - productId?: StringFilter<"SupplyOrderItem"> | string - quantity?: IntFilter<"SupplyOrderItem"> | number - price?: DecimalFilter<"SupplyOrderItem"> | Decimal | DecimalJsLike | number | string - totalPrice?: DecimalFilter<"SupplyOrderItem"> | Decimal | DecimalJsLike | number | string - createdAt?: DateTimeFilter<"SupplyOrderItem"> | Date | string - updatedAt?: DateTimeFilter<"SupplyOrderItem"> | Date | string - supplyOrder?: XOR - product?: XOR - }, "id" | "supplyOrderId_productId"> - - export type SupplyOrderItemOrderByWithAggregationInput = { - id?: SortOrder - supplyOrderId?: SortOrder - productId?: SortOrder - quantity?: SortOrder - price?: SortOrder - totalPrice?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - _count?: SupplyOrderItemCountOrderByAggregateInput - _avg?: SupplyOrderItemAvgOrderByAggregateInput - _max?: SupplyOrderItemMaxOrderByAggregateInput - _min?: SupplyOrderItemMinOrderByAggregateInput - _sum?: SupplyOrderItemSumOrderByAggregateInput - } - - export type SupplyOrderItemScalarWhereWithAggregatesInput = { - AND?: SupplyOrderItemScalarWhereWithAggregatesInput | SupplyOrderItemScalarWhereWithAggregatesInput[] - OR?: SupplyOrderItemScalarWhereWithAggregatesInput[] - NOT?: SupplyOrderItemScalarWhereWithAggregatesInput | SupplyOrderItemScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"SupplyOrderItem"> | string - supplyOrderId?: StringWithAggregatesFilter<"SupplyOrderItem"> | string - productId?: StringWithAggregatesFilter<"SupplyOrderItem"> | string - quantity?: IntWithAggregatesFilter<"SupplyOrderItem"> | number - price?: DecimalWithAggregatesFilter<"SupplyOrderItem"> | Decimal | DecimalJsLike | number | string - totalPrice?: DecimalWithAggregatesFilter<"SupplyOrderItem"> | Decimal | DecimalJsLike | number | string - createdAt?: DateTimeWithAggregatesFilter<"SupplyOrderItem"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"SupplyOrderItem"> | Date | string - } - - export type SupplySupplierWhereInput = { - AND?: SupplySupplierWhereInput | SupplySupplierWhereInput[] - OR?: SupplySupplierWhereInput[] - NOT?: SupplySupplierWhereInput | SupplySupplierWhereInput[] - id?: StringFilter<"SupplySupplier"> | string - name?: StringFilter<"SupplySupplier"> | string - contactName?: StringFilter<"SupplySupplier"> | string - phone?: StringFilter<"SupplySupplier"> | string - market?: StringNullableFilter<"SupplySupplier"> | string | null - address?: StringNullableFilter<"SupplySupplier"> | string | null - place?: StringNullableFilter<"SupplySupplier"> | string | null - telegram?: StringNullableFilter<"SupplySupplier"> | string | null - organizationId?: StringFilter<"SupplySupplier"> | string - createdAt?: DateTimeFilter<"SupplySupplier"> | Date | string - updatedAt?: DateTimeFilter<"SupplySupplier"> | Date | string - organization?: XOR - } - - export type SupplySupplierOrderByWithRelationInput = { - id?: SortOrder - name?: SortOrder - contactName?: SortOrder - phone?: SortOrder - market?: SortOrderInput | SortOrder - address?: SortOrderInput | SortOrder - place?: SortOrderInput | SortOrder - telegram?: SortOrderInput | SortOrder - organizationId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organization?: OrganizationOrderByWithRelationInput - } - - export type SupplySupplierWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: SupplySupplierWhereInput | SupplySupplierWhereInput[] - OR?: SupplySupplierWhereInput[] - NOT?: SupplySupplierWhereInput | SupplySupplierWhereInput[] - name?: StringFilter<"SupplySupplier"> | string - contactName?: StringFilter<"SupplySupplier"> | string - phone?: StringFilter<"SupplySupplier"> | string - market?: StringNullableFilter<"SupplySupplier"> | string | null - address?: StringNullableFilter<"SupplySupplier"> | string | null - place?: StringNullableFilter<"SupplySupplier"> | string | null - telegram?: StringNullableFilter<"SupplySupplier"> | string | null - organizationId?: StringFilter<"SupplySupplier"> | string - createdAt?: DateTimeFilter<"SupplySupplier"> | Date | string - updatedAt?: DateTimeFilter<"SupplySupplier"> | Date | string - organization?: XOR - }, "id"> - - export type SupplySupplierOrderByWithAggregationInput = { - id?: SortOrder - name?: SortOrder - contactName?: SortOrder - phone?: SortOrder - market?: SortOrderInput | SortOrder - address?: SortOrderInput | SortOrder - place?: SortOrderInput | SortOrder - telegram?: SortOrderInput | SortOrder - organizationId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - _count?: SupplySupplierCountOrderByAggregateInput - _max?: SupplySupplierMaxOrderByAggregateInput - _min?: SupplySupplierMinOrderByAggregateInput - } - - export type SupplySupplierScalarWhereWithAggregatesInput = { - AND?: SupplySupplierScalarWhereWithAggregatesInput | SupplySupplierScalarWhereWithAggregatesInput[] - OR?: SupplySupplierScalarWhereWithAggregatesInput[] - NOT?: SupplySupplierScalarWhereWithAggregatesInput | SupplySupplierScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"SupplySupplier"> | string - name?: StringWithAggregatesFilter<"SupplySupplier"> | string - contactName?: StringWithAggregatesFilter<"SupplySupplier"> | string - phone?: StringWithAggregatesFilter<"SupplySupplier"> | string - market?: StringNullableWithAggregatesFilter<"SupplySupplier"> | string | null - address?: StringNullableWithAggregatesFilter<"SupplySupplier"> | string | null - place?: StringNullableWithAggregatesFilter<"SupplySupplier"> | string | null - telegram?: StringNullableWithAggregatesFilter<"SupplySupplier"> | string | null - organizationId?: StringWithAggregatesFilter<"SupplySupplier"> | string - createdAt?: DateTimeWithAggregatesFilter<"SupplySupplier"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"SupplySupplier"> | Date | string - } - - export type UserCreateInput = { - id?: string - phone: string - avatar?: string | null - managerName?: string | null - createdAt?: Date | string - updatedAt?: Date | string - sentMessages?: MessageCreateNestedManyWithoutSenderInput - smsCodes?: SmsCodeCreateNestedManyWithoutUserInput - organization?: OrganizationCreateNestedOneWithoutUsersInput - } - - export type UserUncheckedCreateInput = { - id?: string - phone: string - avatar?: string | null - managerName?: string | null - createdAt?: Date | string - updatedAt?: Date | string - organizationId?: string | null - sentMessages?: MessageUncheckedCreateNestedManyWithoutSenderInput - smsCodes?: SmsCodeUncheckedCreateNestedManyWithoutUserInput - } - - export type UserUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - avatar?: NullableStringFieldUpdateOperationsInput | string | null - managerName?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - sentMessages?: MessageUpdateManyWithoutSenderNestedInput - smsCodes?: SmsCodeUpdateManyWithoutUserNestedInput - organization?: OrganizationUpdateOneWithoutUsersNestedInput - } - - export type UserUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - avatar?: NullableStringFieldUpdateOperationsInput | string | null - managerName?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: NullableStringFieldUpdateOperationsInput | string | null - sentMessages?: MessageUncheckedUpdateManyWithoutSenderNestedInput - smsCodes?: SmsCodeUncheckedUpdateManyWithoutUserNestedInput - } - - export type UserCreateManyInput = { - id?: string - phone: string - avatar?: string | null - managerName?: string | null - createdAt?: Date | string - updatedAt?: Date | string - organizationId?: string | null - } - - export type UserUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - avatar?: NullableStringFieldUpdateOperationsInput | string | null - managerName?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type UserUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - avatar?: NullableStringFieldUpdateOperationsInput | string | null - managerName?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: NullableStringFieldUpdateOperationsInput | string | null - } - - export type AdminCreateInput = { - id?: string - username: string - password: string - email?: string | null - isActive?: boolean - lastLogin?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type AdminUncheckedCreateInput = { - id?: string - username: string - password: string - email?: string | null - isActive?: boolean - lastLogin?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type AdminUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - username?: StringFieldUpdateOperationsInput | string - password?: StringFieldUpdateOperationsInput | string - email?: NullableStringFieldUpdateOperationsInput | string | null - isActive?: BoolFieldUpdateOperationsInput | boolean - lastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type AdminUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - username?: StringFieldUpdateOperationsInput | string - password?: StringFieldUpdateOperationsInput | string - email?: NullableStringFieldUpdateOperationsInput | string | null - isActive?: BoolFieldUpdateOperationsInput | boolean - lastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type AdminCreateManyInput = { - id?: string - username: string - password: string - email?: string | null - isActive?: boolean - lastLogin?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type AdminUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - username?: StringFieldUpdateOperationsInput | string - password?: StringFieldUpdateOperationsInput | string - email?: NullableStringFieldUpdateOperationsInput | string | null - isActive?: BoolFieldUpdateOperationsInput | boolean - lastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type AdminUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - username?: StringFieldUpdateOperationsInput | string - password?: StringFieldUpdateOperationsInput | string - email?: NullableStringFieldUpdateOperationsInput | string | null - isActive?: BoolFieldUpdateOperationsInput | boolean - lastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SmsCodeCreateInput = { - id?: string - code: string - phone: string - expiresAt: Date | string - isUsed?: boolean - attempts?: number - maxAttempts?: number - createdAt?: Date | string - user?: UserCreateNestedOneWithoutSmsCodesInput - } - - export type SmsCodeUncheckedCreateInput = { - id?: string - code: string - phone: string - expiresAt: Date | string - isUsed?: boolean - attempts?: number - maxAttempts?: number - createdAt?: Date | string - userId?: string | null - } - - export type SmsCodeUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - code?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string - isUsed?: BoolFieldUpdateOperationsInput | boolean - attempts?: IntFieldUpdateOperationsInput | number - maxAttempts?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - user?: UserUpdateOneWithoutSmsCodesNestedInput - } - - export type SmsCodeUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - code?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string - isUsed?: BoolFieldUpdateOperationsInput | boolean - attempts?: IntFieldUpdateOperationsInput | number - maxAttempts?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - } - - export type SmsCodeCreateManyInput = { - id?: string - code: string - phone: string - expiresAt: Date | string - isUsed?: boolean - attempts?: number - maxAttempts?: number - createdAt?: Date | string - userId?: string | null - } - - export type SmsCodeUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - code?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string - isUsed?: BoolFieldUpdateOperationsInput | boolean - attempts?: IntFieldUpdateOperationsInput | number - maxAttempts?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SmsCodeUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - code?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string - isUsed?: BoolFieldUpdateOperationsInput | boolean - attempts?: IntFieldUpdateOperationsInput | number - maxAttempts?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - } - - export type OrganizationCreateInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyCreateNestedManyWithoutOrganizationInput - carts?: CartCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestCreateNestedManyWithoutSenderInput - employees?: EmployeeCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageCreateNestedManyWithoutSenderOrganizationInput - products?: ProductCreateNestedManyWithoutOrganizationInput - services?: ServiceCreateNestedManyWithoutOrganizationInput - supplies?: SupplyCreateNestedManyWithoutOrganizationInput - users?: UserCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationUncheckedCreateInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedCreateNestedManyWithoutOrganizationInput - carts?: CartUncheckedCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyUncheckedCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyUncheckedCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutSenderInput - employees?: EmployeeUncheckedCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesUncheckedCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageUncheckedCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageUncheckedCreateNestedManyWithoutSenderOrganizationInput - products?: ProductUncheckedCreateNestedManyWithoutOrganizationInput - services?: ServiceUncheckedCreateNestedManyWithoutOrganizationInput - supplies?: SupplyUncheckedCreateNestedManyWithoutOrganizationInput - users?: UserUncheckedCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsUncheckedCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyUncheckedCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierUncheckedCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUpdateManyWithoutOrganizationNestedInput - carts?: CartUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUpdateManyWithoutSenderNestedInput - employees?: EmployeeUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUpdateManyWithoutOrganizationNestedInput - services?: ServiceUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUpdateManyWithoutOrganizationNestedInput - users?: UserUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedUpdateManyWithoutOrganizationNestedInput - carts?: CartUncheckedUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUncheckedUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUncheckedUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUncheckedUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUncheckedUpdateManyWithoutSenderNestedInput - employees?: EmployeeUncheckedUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUncheckedUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUncheckedUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUncheckedUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUncheckedUpdateManyWithoutOrganizationNestedInput - services?: ServiceUncheckedUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUncheckedUpdateManyWithoutOrganizationNestedInput - users?: UserUncheckedUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUncheckedUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUncheckedUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUncheckedUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUncheckedUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationCreateManyInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - } - - export type OrganizationUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - } - - export type OrganizationUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - } - - export type ApiKeyCreateInput = { - id?: string - marketplace: $Enums.MarketplaceType - apiKey: string - isActive?: boolean - createdAt?: Date | string - updatedAt?: Date | string - validationData?: NullableJsonNullValueInput | InputJsonValue - organization: OrganizationCreateNestedOneWithoutApiKeysInput - } - - export type ApiKeyUncheckedCreateInput = { - id?: string - marketplace: $Enums.MarketplaceType - apiKey: string - isActive?: boolean - createdAt?: Date | string - updatedAt?: Date | string - validationData?: NullableJsonNullValueInput | InputJsonValue - organizationId: string - } - - export type ApiKeyUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - marketplace?: EnumMarketplaceTypeFieldUpdateOperationsInput | $Enums.MarketplaceType - apiKey?: StringFieldUpdateOperationsInput | string - isActive?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - validationData?: NullableJsonNullValueInput | InputJsonValue - organization?: OrganizationUpdateOneRequiredWithoutApiKeysNestedInput - } - - export type ApiKeyUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - marketplace?: EnumMarketplaceTypeFieldUpdateOperationsInput | $Enums.MarketplaceType - apiKey?: StringFieldUpdateOperationsInput | string - isActive?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - validationData?: NullableJsonNullValueInput | InputJsonValue - organizationId?: StringFieldUpdateOperationsInput | string - } - - export type ApiKeyCreateManyInput = { - id?: string - marketplace: $Enums.MarketplaceType - apiKey: string - isActive?: boolean - createdAt?: Date | string - updatedAt?: Date | string - validationData?: NullableJsonNullValueInput | InputJsonValue - organizationId: string - } - - export type ApiKeyUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - marketplace?: EnumMarketplaceTypeFieldUpdateOperationsInput | $Enums.MarketplaceType - apiKey?: StringFieldUpdateOperationsInput | string - isActive?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - validationData?: NullableJsonNullValueInput | InputJsonValue - } - - export type ApiKeyUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - marketplace?: EnumMarketplaceTypeFieldUpdateOperationsInput | $Enums.MarketplaceType - apiKey?: StringFieldUpdateOperationsInput | string - isActive?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - validationData?: NullableJsonNullValueInput | InputJsonValue - organizationId?: StringFieldUpdateOperationsInput | string - } - - export type CounterpartyRequestCreateInput = { - id?: string - status?: $Enums.CounterpartyRequestStatus - createdAt?: Date | string - updatedAt?: Date | string - message?: string | null - receiver: OrganizationCreateNestedOneWithoutReceivedRequestsInput - sender: OrganizationCreateNestedOneWithoutSentRequestsInput - } - - export type CounterpartyRequestUncheckedCreateInput = { - id?: string - status?: $Enums.CounterpartyRequestStatus - createdAt?: Date | string - updatedAt?: Date | string - senderId: string - receiverId: string - message?: string | null - } - - export type CounterpartyRequestUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - status?: EnumCounterpartyRequestStatusFieldUpdateOperationsInput | $Enums.CounterpartyRequestStatus - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - message?: NullableStringFieldUpdateOperationsInput | string | null - receiver?: OrganizationUpdateOneRequiredWithoutReceivedRequestsNestedInput - sender?: OrganizationUpdateOneRequiredWithoutSentRequestsNestedInput - } - - export type CounterpartyRequestUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - status?: EnumCounterpartyRequestStatusFieldUpdateOperationsInput | $Enums.CounterpartyRequestStatus - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - senderId?: StringFieldUpdateOperationsInput | string - receiverId?: StringFieldUpdateOperationsInput | string - message?: NullableStringFieldUpdateOperationsInput | string | null - } - - export type CounterpartyRequestCreateManyInput = { - id?: string - status?: $Enums.CounterpartyRequestStatus - createdAt?: Date | string - updatedAt?: Date | string - senderId: string - receiverId: string - message?: string | null - } - - export type CounterpartyRequestUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - status?: EnumCounterpartyRequestStatusFieldUpdateOperationsInput | $Enums.CounterpartyRequestStatus - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - message?: NullableStringFieldUpdateOperationsInput | string | null - } - - export type CounterpartyRequestUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - status?: EnumCounterpartyRequestStatusFieldUpdateOperationsInput | $Enums.CounterpartyRequestStatus - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - senderId?: StringFieldUpdateOperationsInput | string - receiverId?: StringFieldUpdateOperationsInput | string - message?: NullableStringFieldUpdateOperationsInput | string | null - } - - export type CounterpartyCreateInput = { - id?: string - createdAt?: Date | string - counterparty: OrganizationCreateNestedOneWithoutCounterpartyOfInput - organization: OrganizationCreateNestedOneWithoutOrganizationCounterpartiesInput - } - - export type CounterpartyUncheckedCreateInput = { - id?: string - createdAt?: Date | string - organizationId: string - counterpartyId: string - } - - export type CounterpartyUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - counterparty?: OrganizationUpdateOneRequiredWithoutCounterpartyOfNestedInput - organization?: OrganizationUpdateOneRequiredWithoutOrganizationCounterpartiesNestedInput - } - - export type CounterpartyUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: StringFieldUpdateOperationsInput | string - counterpartyId?: StringFieldUpdateOperationsInput | string - } - - export type CounterpartyCreateManyInput = { - id?: string - createdAt?: Date | string - organizationId: string - counterpartyId: string - } - - export type CounterpartyUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type CounterpartyUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: StringFieldUpdateOperationsInput | string - counterpartyId?: StringFieldUpdateOperationsInput | string - } - - export type MessageCreateInput = { - id?: string - content?: string | null - type?: $Enums.MessageType - voiceUrl?: string | null - voiceDuration?: number | null - fileUrl?: string | null - fileName?: string | null - fileSize?: number | null - fileType?: string | null - isRead?: boolean - createdAt?: Date | string - updatedAt?: Date | string - receiverOrganization: OrganizationCreateNestedOneWithoutReceivedMessagesInput - sender: UserCreateNestedOneWithoutSentMessagesInput - senderOrganization: OrganizationCreateNestedOneWithoutSentMessagesInput - } - - export type MessageUncheckedCreateInput = { - id?: string - content?: string | null - type?: $Enums.MessageType - voiceUrl?: string | null - voiceDuration?: number | null - fileUrl?: string | null - fileName?: string | null - fileSize?: number | null - fileType?: string | null - isRead?: boolean - createdAt?: Date | string - updatedAt?: Date | string - senderId: string - senderOrganizationId: string - receiverOrganizationId: string - } - - export type MessageUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - content?: NullableStringFieldUpdateOperationsInput | string | null - type?: EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType - voiceUrl?: NullableStringFieldUpdateOperationsInput | string | null - voiceDuration?: NullableIntFieldUpdateOperationsInput | number | null - fileUrl?: NullableStringFieldUpdateOperationsInput | string | null - fileName?: NullableStringFieldUpdateOperationsInput | string | null - fileSize?: NullableIntFieldUpdateOperationsInput | number | null - fileType?: NullableStringFieldUpdateOperationsInput | string | null - isRead?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - receiverOrganization?: OrganizationUpdateOneRequiredWithoutReceivedMessagesNestedInput - sender?: UserUpdateOneRequiredWithoutSentMessagesNestedInput - senderOrganization?: OrganizationUpdateOneRequiredWithoutSentMessagesNestedInput - } - - export type MessageUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - content?: NullableStringFieldUpdateOperationsInput | string | null - type?: EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType - voiceUrl?: NullableStringFieldUpdateOperationsInput | string | null - voiceDuration?: NullableIntFieldUpdateOperationsInput | number | null - fileUrl?: NullableStringFieldUpdateOperationsInput | string | null - fileName?: NullableStringFieldUpdateOperationsInput | string | null - fileSize?: NullableIntFieldUpdateOperationsInput | number | null - fileType?: NullableStringFieldUpdateOperationsInput | string | null - isRead?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - senderId?: StringFieldUpdateOperationsInput | string - senderOrganizationId?: StringFieldUpdateOperationsInput | string - receiverOrganizationId?: StringFieldUpdateOperationsInput | string - } - - export type MessageCreateManyInput = { - id?: string - content?: string | null - type?: $Enums.MessageType - voiceUrl?: string | null - voiceDuration?: number | null - fileUrl?: string | null - fileName?: string | null - fileSize?: number | null - fileType?: string | null - isRead?: boolean - createdAt?: Date | string - updatedAt?: Date | string - senderId: string - senderOrganizationId: string - receiverOrganizationId: string - } - - export type MessageUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - content?: NullableStringFieldUpdateOperationsInput | string | null - type?: EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType - voiceUrl?: NullableStringFieldUpdateOperationsInput | string | null - voiceDuration?: NullableIntFieldUpdateOperationsInput | number | null - fileUrl?: NullableStringFieldUpdateOperationsInput | string | null - fileName?: NullableStringFieldUpdateOperationsInput | string | null - fileSize?: NullableIntFieldUpdateOperationsInput | number | null - fileType?: NullableStringFieldUpdateOperationsInput | string | null - isRead?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type MessageUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - content?: NullableStringFieldUpdateOperationsInput | string | null - type?: EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType - voiceUrl?: NullableStringFieldUpdateOperationsInput | string | null - voiceDuration?: NullableIntFieldUpdateOperationsInput | number | null - fileUrl?: NullableStringFieldUpdateOperationsInput | string | null - fileName?: NullableStringFieldUpdateOperationsInput | string | null - fileSize?: NullableIntFieldUpdateOperationsInput | number | null - fileType?: NullableStringFieldUpdateOperationsInput | string | null - isRead?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - senderId?: StringFieldUpdateOperationsInput | string - senderOrganizationId?: StringFieldUpdateOperationsInput | string - receiverOrganizationId?: StringFieldUpdateOperationsInput | string - } - - export type ServiceCreateInput = { - id?: string - name: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - imageUrl?: string | null - createdAt?: Date | string - updatedAt?: Date | string - organization: OrganizationCreateNestedOneWithoutServicesInput - } - - export type ServiceUncheckedCreateInput = { - id?: string - name: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - imageUrl?: string | null - createdAt?: Date | string - updatedAt?: Date | string - organizationId: string - } - - export type ServiceUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - imageUrl?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organization?: OrganizationUpdateOneRequiredWithoutServicesNestedInput - } - - export type ServiceUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - imageUrl?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: StringFieldUpdateOperationsInput | string - } - - export type ServiceCreateManyInput = { - id?: string - name: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - imageUrl?: string | null - createdAt?: Date | string - updatedAt?: Date | string - organizationId: string - } - - export type ServiceUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - imageUrl?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type ServiceUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - imageUrl?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: StringFieldUpdateOperationsInput | string - } - - export type SupplyCreateInput = { - id?: string - name: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - quantity?: number - unit?: string - category?: string - status?: string - date?: Date | string - supplier?: string - minStock?: number - currentStock?: number - imageUrl?: string | null - createdAt?: Date | string - updatedAt?: Date | string - organization: OrganizationCreateNestedOneWithoutSuppliesInput - } - - export type SupplyUncheckedCreateInput = { - id?: string - name: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - quantity?: number - unit?: string - category?: string - status?: string - date?: Date | string - supplier?: string - minStock?: number - currentStock?: number - imageUrl?: string | null - createdAt?: Date | string - updatedAt?: Date | string - organizationId: string - } - - export type SupplyUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - quantity?: IntFieldUpdateOperationsInput | number - unit?: StringFieldUpdateOperationsInput | string - category?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - date?: DateTimeFieldUpdateOperationsInput | Date | string - supplier?: StringFieldUpdateOperationsInput | string - minStock?: IntFieldUpdateOperationsInput | number - currentStock?: IntFieldUpdateOperationsInput | number - imageUrl?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organization?: OrganizationUpdateOneRequiredWithoutSuppliesNestedInput - } - - export type SupplyUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - quantity?: IntFieldUpdateOperationsInput | number - unit?: StringFieldUpdateOperationsInput | string - category?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - date?: DateTimeFieldUpdateOperationsInput | Date | string - supplier?: StringFieldUpdateOperationsInput | string - minStock?: IntFieldUpdateOperationsInput | number - currentStock?: IntFieldUpdateOperationsInput | number - imageUrl?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: StringFieldUpdateOperationsInput | string - } - - export type SupplyCreateManyInput = { - id?: string - name: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - quantity?: number - unit?: string - category?: string - status?: string - date?: Date | string - supplier?: string - minStock?: number - currentStock?: number - imageUrl?: string | null - createdAt?: Date | string - updatedAt?: Date | string - organizationId: string - } - - export type SupplyUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - quantity?: IntFieldUpdateOperationsInput | number - unit?: StringFieldUpdateOperationsInput | string - category?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - date?: DateTimeFieldUpdateOperationsInput | Date | string - supplier?: StringFieldUpdateOperationsInput | string - minStock?: IntFieldUpdateOperationsInput | number - currentStock?: IntFieldUpdateOperationsInput | number - imageUrl?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SupplyUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - quantity?: IntFieldUpdateOperationsInput | number - unit?: StringFieldUpdateOperationsInput | string - category?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - date?: DateTimeFieldUpdateOperationsInput | Date | string - supplier?: StringFieldUpdateOperationsInput | string - minStock?: IntFieldUpdateOperationsInput | number - currentStock?: IntFieldUpdateOperationsInput | number - imageUrl?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: StringFieldUpdateOperationsInput | string - } - - export type CategoryCreateInput = { - id?: string - name: string - createdAt?: Date | string - updatedAt?: Date | string - products?: ProductCreateNestedManyWithoutCategoryInput - } - - export type CategoryUncheckedCreateInput = { - id?: string - name: string - createdAt?: Date | string - updatedAt?: Date | string - products?: ProductUncheckedCreateNestedManyWithoutCategoryInput - } - - export type CategoryUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - products?: ProductUpdateManyWithoutCategoryNestedInput - } - - export type CategoryUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - products?: ProductUncheckedUpdateManyWithoutCategoryNestedInput - } - - export type CategoryCreateManyInput = { - id?: string - name: string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type CategoryUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type CategoryUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type ProductCreateInput = { - id?: string - name: string - article: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - quantity?: number - brand?: string | null - color?: string | null - size?: string | null - weight?: Decimal | DecimalJsLike | number | string | null - dimensions?: string | null - material?: string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: string | null - isActive?: boolean - createdAt?: Date | string - updatedAt?: Date | string - cartItems?: CartItemCreateNestedManyWithoutProductInput - favorites?: FavoritesCreateNestedManyWithoutProductInput - supplyOrderItems?: SupplyOrderItemCreateNestedManyWithoutProductInput - category?: CategoryCreateNestedOneWithoutProductsInput - organization: OrganizationCreateNestedOneWithoutProductsInput - } - - export type ProductUncheckedCreateInput = { - id?: string - name: string - article: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - quantity?: number - categoryId?: string | null - brand?: string | null - color?: string | null - size?: string | null - weight?: Decimal | DecimalJsLike | number | string | null - dimensions?: string | null - material?: string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: string | null - isActive?: boolean - createdAt?: Date | string - updatedAt?: Date | string - organizationId: string - cartItems?: CartItemUncheckedCreateNestedManyWithoutProductInput - favorites?: FavoritesUncheckedCreateNestedManyWithoutProductInput - supplyOrderItems?: SupplyOrderItemUncheckedCreateNestedManyWithoutProductInput - } - - export type ProductUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - article?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - quantity?: IntFieldUpdateOperationsInput | number - brand?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - size?: NullableStringFieldUpdateOperationsInput | string | null - weight?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null - dimensions?: NullableStringFieldUpdateOperationsInput | string | null - material?: NullableStringFieldUpdateOperationsInput | string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: NullableStringFieldUpdateOperationsInput | string | null - isActive?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - cartItems?: CartItemUpdateManyWithoutProductNestedInput - favorites?: FavoritesUpdateManyWithoutProductNestedInput - supplyOrderItems?: SupplyOrderItemUpdateManyWithoutProductNestedInput - category?: CategoryUpdateOneWithoutProductsNestedInput - organization?: OrganizationUpdateOneRequiredWithoutProductsNestedInput - } - - export type ProductUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - article?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - quantity?: IntFieldUpdateOperationsInput | number - categoryId?: NullableStringFieldUpdateOperationsInput | string | null - brand?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - size?: NullableStringFieldUpdateOperationsInput | string | null - weight?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null - dimensions?: NullableStringFieldUpdateOperationsInput | string | null - material?: NullableStringFieldUpdateOperationsInput | string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: NullableStringFieldUpdateOperationsInput | string | null - isActive?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: StringFieldUpdateOperationsInput | string - cartItems?: CartItemUncheckedUpdateManyWithoutProductNestedInput - favorites?: FavoritesUncheckedUpdateManyWithoutProductNestedInput - supplyOrderItems?: SupplyOrderItemUncheckedUpdateManyWithoutProductNestedInput - } - - export type ProductCreateManyInput = { - id?: string - name: string - article: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - quantity?: number - categoryId?: string | null - brand?: string | null - color?: string | null - size?: string | null - weight?: Decimal | DecimalJsLike | number | string | null - dimensions?: string | null - material?: string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: string | null - isActive?: boolean - createdAt?: Date | string - updatedAt?: Date | string - organizationId: string - } - - export type ProductUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - article?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - quantity?: IntFieldUpdateOperationsInput | number - brand?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - size?: NullableStringFieldUpdateOperationsInput | string | null - weight?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null - dimensions?: NullableStringFieldUpdateOperationsInput | string | null - material?: NullableStringFieldUpdateOperationsInput | string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: NullableStringFieldUpdateOperationsInput | string | null - isActive?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type ProductUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - article?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - quantity?: IntFieldUpdateOperationsInput | number - categoryId?: NullableStringFieldUpdateOperationsInput | string | null - brand?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - size?: NullableStringFieldUpdateOperationsInput | string | null - weight?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null - dimensions?: NullableStringFieldUpdateOperationsInput | string | null - material?: NullableStringFieldUpdateOperationsInput | string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: NullableStringFieldUpdateOperationsInput | string | null - isActive?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: StringFieldUpdateOperationsInput | string - } - - export type CartCreateInput = { - id?: string - createdAt?: Date | string - updatedAt?: Date | string - items?: CartItemCreateNestedManyWithoutCartInput - organization: OrganizationCreateNestedOneWithoutCartsInput - } - - export type CartUncheckedCreateInput = { - id?: string - organizationId: string - createdAt?: Date | string - updatedAt?: Date | string - items?: CartItemUncheckedCreateNestedManyWithoutCartInput - } - - export type CartUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - items?: CartItemUpdateManyWithoutCartNestedInput - organization?: OrganizationUpdateOneRequiredWithoutCartsNestedInput - } - - export type CartUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - organizationId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - items?: CartItemUncheckedUpdateManyWithoutCartNestedInput - } - - export type CartCreateManyInput = { - id?: string - organizationId: string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type CartUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type CartUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - organizationId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type CartItemCreateInput = { - id?: string - quantity?: number - createdAt?: Date | string - updatedAt?: Date | string - cart: CartCreateNestedOneWithoutItemsInput - product: ProductCreateNestedOneWithoutCartItemsInput - } - - export type CartItemUncheckedCreateInput = { - id?: string - cartId: string - productId: string - quantity?: number - createdAt?: Date | string - updatedAt?: Date | string - } - - export type CartItemUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - quantity?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - cart?: CartUpdateOneRequiredWithoutItemsNestedInput - product?: ProductUpdateOneRequiredWithoutCartItemsNestedInput - } - - export type CartItemUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - cartId?: StringFieldUpdateOperationsInput | string - productId?: StringFieldUpdateOperationsInput | string - quantity?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type CartItemCreateManyInput = { - id?: string - cartId: string - productId: string - quantity?: number - createdAt?: Date | string - updatedAt?: Date | string - } - - export type CartItemUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - quantity?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type CartItemUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - cartId?: StringFieldUpdateOperationsInput | string - productId?: StringFieldUpdateOperationsInput | string - quantity?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type FavoritesCreateInput = { - id?: string - createdAt?: Date | string - updatedAt?: Date | string - organization: OrganizationCreateNestedOneWithoutFavoritesInput - product: ProductCreateNestedOneWithoutFavoritesInput - } - - export type FavoritesUncheckedCreateInput = { - id?: string - organizationId: string - productId: string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type FavoritesUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organization?: OrganizationUpdateOneRequiredWithoutFavoritesNestedInput - product?: ProductUpdateOneRequiredWithoutFavoritesNestedInput - } - - export type FavoritesUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - organizationId?: StringFieldUpdateOperationsInput | string - productId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type FavoritesCreateManyInput = { - id?: string - organizationId: string - productId: string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type FavoritesUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type FavoritesUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - organizationId?: StringFieldUpdateOperationsInput | string - productId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type EmployeeCreateInput = { - id?: string - firstName: string - lastName: string - middleName?: string | null - birthDate?: Date | string | null - avatar?: string | null - passportPhoto?: string | null - passportSeries?: string | null - passportNumber?: string | null - passportIssued?: string | null - passportDate?: Date | string | null - address?: string | null - position: string - department?: string | null - hireDate: Date | string - salary?: number | null - status?: $Enums.EmployeeStatus - phone: string - email?: string | null - telegram?: string | null - whatsapp?: string | null - emergencyContact?: string | null - emergencyPhone?: string | null - createdAt?: Date | string - updatedAt?: Date | string - scheduleRecords?: EmployeeScheduleCreateNestedManyWithoutEmployeeInput - organization: OrganizationCreateNestedOneWithoutEmployeesInput - } - - export type EmployeeUncheckedCreateInput = { - id?: string - firstName: string - lastName: string - middleName?: string | null - birthDate?: Date | string | null - avatar?: string | null - passportPhoto?: string | null - passportSeries?: string | null - passportNumber?: string | null - passportIssued?: string | null - passportDate?: Date | string | null - address?: string | null - position: string - department?: string | null - hireDate: Date | string - salary?: number | null - status?: $Enums.EmployeeStatus - phone: string - email?: string | null - telegram?: string | null - whatsapp?: string | null - emergencyContact?: string | null - emergencyPhone?: string | null - organizationId: string - createdAt?: Date | string - updatedAt?: Date | string - scheduleRecords?: EmployeeScheduleUncheckedCreateNestedManyWithoutEmployeeInput - } - - export type EmployeeUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - firstName?: StringFieldUpdateOperationsInput | string - lastName?: StringFieldUpdateOperationsInput | string - middleName?: NullableStringFieldUpdateOperationsInput | string | null - birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - avatar?: NullableStringFieldUpdateOperationsInput | string | null - passportPhoto?: NullableStringFieldUpdateOperationsInput | string | null - passportSeries?: NullableStringFieldUpdateOperationsInput | string | null - passportNumber?: NullableStringFieldUpdateOperationsInput | string | null - passportIssued?: NullableStringFieldUpdateOperationsInput | string | null - passportDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - address?: NullableStringFieldUpdateOperationsInput | string | null - position?: StringFieldUpdateOperationsInput | string - department?: NullableStringFieldUpdateOperationsInput | string | null - hireDate?: DateTimeFieldUpdateOperationsInput | Date | string - salary?: NullableFloatFieldUpdateOperationsInput | number | null - status?: EnumEmployeeStatusFieldUpdateOperationsInput | $Enums.EmployeeStatus - phone?: StringFieldUpdateOperationsInput | string - email?: NullableStringFieldUpdateOperationsInput | string | null - telegram?: NullableStringFieldUpdateOperationsInput | string | null - whatsapp?: NullableStringFieldUpdateOperationsInput | string | null - emergencyContact?: NullableStringFieldUpdateOperationsInput | string | null - emergencyPhone?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - scheduleRecords?: EmployeeScheduleUpdateManyWithoutEmployeeNestedInput - organization?: OrganizationUpdateOneRequiredWithoutEmployeesNestedInput - } - - export type EmployeeUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - firstName?: StringFieldUpdateOperationsInput | string - lastName?: StringFieldUpdateOperationsInput | string - middleName?: NullableStringFieldUpdateOperationsInput | string | null - birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - avatar?: NullableStringFieldUpdateOperationsInput | string | null - passportPhoto?: NullableStringFieldUpdateOperationsInput | string | null - passportSeries?: NullableStringFieldUpdateOperationsInput | string | null - passportNumber?: NullableStringFieldUpdateOperationsInput | string | null - passportIssued?: NullableStringFieldUpdateOperationsInput | string | null - passportDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - address?: NullableStringFieldUpdateOperationsInput | string | null - position?: StringFieldUpdateOperationsInput | string - department?: NullableStringFieldUpdateOperationsInput | string | null - hireDate?: DateTimeFieldUpdateOperationsInput | Date | string - salary?: NullableFloatFieldUpdateOperationsInput | number | null - status?: EnumEmployeeStatusFieldUpdateOperationsInput | $Enums.EmployeeStatus - phone?: StringFieldUpdateOperationsInput | string - email?: NullableStringFieldUpdateOperationsInput | string | null - telegram?: NullableStringFieldUpdateOperationsInput | string | null - whatsapp?: NullableStringFieldUpdateOperationsInput | string | null - emergencyContact?: NullableStringFieldUpdateOperationsInput | string | null - emergencyPhone?: NullableStringFieldUpdateOperationsInput | string | null - organizationId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - scheduleRecords?: EmployeeScheduleUncheckedUpdateManyWithoutEmployeeNestedInput - } - - export type EmployeeCreateManyInput = { - id?: string - firstName: string - lastName: string - middleName?: string | null - birthDate?: Date | string | null - avatar?: string | null - passportPhoto?: string | null - passportSeries?: string | null - passportNumber?: string | null - passportIssued?: string | null - passportDate?: Date | string | null - address?: string | null - position: string - department?: string | null - hireDate: Date | string - salary?: number | null - status?: $Enums.EmployeeStatus - phone: string - email?: string | null - telegram?: string | null - whatsapp?: string | null - emergencyContact?: string | null - emergencyPhone?: string | null - organizationId: string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type EmployeeUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - firstName?: StringFieldUpdateOperationsInput | string - lastName?: StringFieldUpdateOperationsInput | string - middleName?: NullableStringFieldUpdateOperationsInput | string | null - birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - avatar?: NullableStringFieldUpdateOperationsInput | string | null - passportPhoto?: NullableStringFieldUpdateOperationsInput | string | null - passportSeries?: NullableStringFieldUpdateOperationsInput | string | null - passportNumber?: NullableStringFieldUpdateOperationsInput | string | null - passportIssued?: NullableStringFieldUpdateOperationsInput | string | null - passportDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - address?: NullableStringFieldUpdateOperationsInput | string | null - position?: StringFieldUpdateOperationsInput | string - department?: NullableStringFieldUpdateOperationsInput | string | null - hireDate?: DateTimeFieldUpdateOperationsInput | Date | string - salary?: NullableFloatFieldUpdateOperationsInput | number | null - status?: EnumEmployeeStatusFieldUpdateOperationsInput | $Enums.EmployeeStatus - phone?: StringFieldUpdateOperationsInput | string - email?: NullableStringFieldUpdateOperationsInput | string | null - telegram?: NullableStringFieldUpdateOperationsInput | string | null - whatsapp?: NullableStringFieldUpdateOperationsInput | string | null - emergencyContact?: NullableStringFieldUpdateOperationsInput | string | null - emergencyPhone?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type EmployeeUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - firstName?: StringFieldUpdateOperationsInput | string - lastName?: StringFieldUpdateOperationsInput | string - middleName?: NullableStringFieldUpdateOperationsInput | string | null - birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - avatar?: NullableStringFieldUpdateOperationsInput | string | null - passportPhoto?: NullableStringFieldUpdateOperationsInput | string | null - passportSeries?: NullableStringFieldUpdateOperationsInput | string | null - passportNumber?: NullableStringFieldUpdateOperationsInput | string | null - passportIssued?: NullableStringFieldUpdateOperationsInput | string | null - passportDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - address?: NullableStringFieldUpdateOperationsInput | string | null - position?: StringFieldUpdateOperationsInput | string - department?: NullableStringFieldUpdateOperationsInput | string | null - hireDate?: DateTimeFieldUpdateOperationsInput | Date | string - salary?: NullableFloatFieldUpdateOperationsInput | number | null - status?: EnumEmployeeStatusFieldUpdateOperationsInput | $Enums.EmployeeStatus - phone?: StringFieldUpdateOperationsInput | string - email?: NullableStringFieldUpdateOperationsInput | string | null - telegram?: NullableStringFieldUpdateOperationsInput | string | null - whatsapp?: NullableStringFieldUpdateOperationsInput | string | null - emergencyContact?: NullableStringFieldUpdateOperationsInput | string | null - emergencyPhone?: NullableStringFieldUpdateOperationsInput | string | null - organizationId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type EmployeeScheduleCreateInput = { - id?: string - date: Date | string - status: $Enums.ScheduleStatus - hoursWorked?: number | null - notes?: string | null - createdAt?: Date | string - updatedAt?: Date | string - employee: EmployeeCreateNestedOneWithoutScheduleRecordsInput - } - - export type EmployeeScheduleUncheckedCreateInput = { - id?: string - date: Date | string - status: $Enums.ScheduleStatus - hoursWorked?: number | null - notes?: string | null - employeeId: string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type EmployeeScheduleUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - date?: DateTimeFieldUpdateOperationsInput | Date | string - status?: EnumScheduleStatusFieldUpdateOperationsInput | $Enums.ScheduleStatus - hoursWorked?: NullableFloatFieldUpdateOperationsInput | number | null - notes?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - employee?: EmployeeUpdateOneRequiredWithoutScheduleRecordsNestedInput - } - - export type EmployeeScheduleUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - date?: DateTimeFieldUpdateOperationsInput | Date | string - status?: EnumScheduleStatusFieldUpdateOperationsInput | $Enums.ScheduleStatus - hoursWorked?: NullableFloatFieldUpdateOperationsInput | number | null - notes?: NullableStringFieldUpdateOperationsInput | string | null - employeeId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type EmployeeScheduleCreateManyInput = { - id?: string - date: Date | string - status: $Enums.ScheduleStatus - hoursWorked?: number | null - notes?: string | null - employeeId: string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type EmployeeScheduleUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - date?: DateTimeFieldUpdateOperationsInput | Date | string - status?: EnumScheduleStatusFieldUpdateOperationsInput | $Enums.ScheduleStatus - hoursWorked?: NullableFloatFieldUpdateOperationsInput | number | null - notes?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type EmployeeScheduleUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - date?: DateTimeFieldUpdateOperationsInput | Date | string - status?: EnumScheduleStatusFieldUpdateOperationsInput | $Enums.ScheduleStatus - hoursWorked?: NullableFloatFieldUpdateOperationsInput | number | null - notes?: NullableStringFieldUpdateOperationsInput | string | null - employeeId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type WildberriesSupplyCreateInput = { - id?: string - deliveryDate?: Date | string | null - status?: $Enums.WildberriesSupplyStatus - totalAmount: Decimal | DecimalJsLike | number | string - totalItems: number - createdAt?: Date | string - updatedAt?: Date | string - organization: OrganizationCreateNestedOneWithoutWildberriesSuppliesInput - cards?: WildberriesSupplyCardCreateNestedManyWithoutSupplyInput - } - - export type WildberriesSupplyUncheckedCreateInput = { - id?: string - organizationId: string - deliveryDate?: Date | string | null - status?: $Enums.WildberriesSupplyStatus - totalAmount: Decimal | DecimalJsLike | number | string - totalItems: number - createdAt?: Date | string - updatedAt?: Date | string - cards?: WildberriesSupplyCardUncheckedCreateNestedManyWithoutSupplyInput - } - - export type WildberriesSupplyUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - deliveryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - status?: EnumWildberriesSupplyStatusFieldUpdateOperationsInput | $Enums.WildberriesSupplyStatus - totalAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalItems?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organization?: OrganizationUpdateOneRequiredWithoutWildberriesSuppliesNestedInput - cards?: WildberriesSupplyCardUpdateManyWithoutSupplyNestedInput - } - - export type WildberriesSupplyUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - organizationId?: StringFieldUpdateOperationsInput | string - deliveryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - status?: EnumWildberriesSupplyStatusFieldUpdateOperationsInput | $Enums.WildberriesSupplyStatus - totalAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalItems?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - cards?: WildberriesSupplyCardUncheckedUpdateManyWithoutSupplyNestedInput - } - - export type WildberriesSupplyCreateManyInput = { - id?: string - organizationId: string - deliveryDate?: Date | string | null - status?: $Enums.WildberriesSupplyStatus - totalAmount: Decimal | DecimalJsLike | number | string - totalItems: number - createdAt?: Date | string - updatedAt?: Date | string - } - - export type WildberriesSupplyUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - deliveryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - status?: EnumWildberriesSupplyStatusFieldUpdateOperationsInput | $Enums.WildberriesSupplyStatus - totalAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalItems?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type WildberriesSupplyUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - organizationId?: StringFieldUpdateOperationsInput | string - deliveryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - status?: EnumWildberriesSupplyStatusFieldUpdateOperationsInput | $Enums.WildberriesSupplyStatus - totalAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalItems?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type WildberriesSupplyCardCreateInput = { - id?: string - nmId: string - vendorCode: string - title: string - brand?: string | null - price: Decimal | DecimalJsLike | number | string - discountedPrice?: Decimal | DecimalJsLike | number | string | null - quantity: number - selectedQuantity: number - selectedMarket?: string | null - selectedPlace?: string | null - sellerName?: string | null - sellerPhone?: string | null - deliveryDate?: Date | string | null - mediaFiles?: JsonNullValueInput | InputJsonValue - selectedServices?: JsonNullValueInput | InputJsonValue - createdAt?: Date | string - updatedAt?: Date | string - supply: WildberriesSupplyCreateNestedOneWithoutCardsInput - } - - export type WildberriesSupplyCardUncheckedCreateInput = { - id?: string - supplyId: string - nmId: string - vendorCode: string - title: string - brand?: string | null - price: Decimal | DecimalJsLike | number | string - discountedPrice?: Decimal | DecimalJsLike | number | string | null - quantity: number - selectedQuantity: number - selectedMarket?: string | null - selectedPlace?: string | null - sellerName?: string | null - sellerPhone?: string | null - deliveryDate?: Date | string | null - mediaFiles?: JsonNullValueInput | InputJsonValue - selectedServices?: JsonNullValueInput | InputJsonValue - createdAt?: Date | string - updatedAt?: Date | string - } - - export type WildberriesSupplyCardUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - nmId?: StringFieldUpdateOperationsInput | string - vendorCode?: StringFieldUpdateOperationsInput | string - title?: StringFieldUpdateOperationsInput | string - brand?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - discountedPrice?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null - quantity?: IntFieldUpdateOperationsInput | number - selectedQuantity?: IntFieldUpdateOperationsInput | number - selectedMarket?: NullableStringFieldUpdateOperationsInput | string | null - selectedPlace?: NullableStringFieldUpdateOperationsInput | string | null - sellerName?: NullableStringFieldUpdateOperationsInput | string | null - sellerPhone?: NullableStringFieldUpdateOperationsInput | string | null - deliveryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - mediaFiles?: JsonNullValueInput | InputJsonValue - selectedServices?: JsonNullValueInput | InputJsonValue - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - supply?: WildberriesSupplyUpdateOneRequiredWithoutCardsNestedInput - } - - export type WildberriesSupplyCardUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - supplyId?: StringFieldUpdateOperationsInput | string - nmId?: StringFieldUpdateOperationsInput | string - vendorCode?: StringFieldUpdateOperationsInput | string - title?: StringFieldUpdateOperationsInput | string - brand?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - discountedPrice?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null - quantity?: IntFieldUpdateOperationsInput | number - selectedQuantity?: IntFieldUpdateOperationsInput | number - selectedMarket?: NullableStringFieldUpdateOperationsInput | string | null - selectedPlace?: NullableStringFieldUpdateOperationsInput | string | null - sellerName?: NullableStringFieldUpdateOperationsInput | string | null - sellerPhone?: NullableStringFieldUpdateOperationsInput | string | null - deliveryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - mediaFiles?: JsonNullValueInput | InputJsonValue - selectedServices?: JsonNullValueInput | InputJsonValue - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type WildberriesSupplyCardCreateManyInput = { - id?: string - supplyId: string - nmId: string - vendorCode: string - title: string - brand?: string | null - price: Decimal | DecimalJsLike | number | string - discountedPrice?: Decimal | DecimalJsLike | number | string | null - quantity: number - selectedQuantity: number - selectedMarket?: string | null - selectedPlace?: string | null - sellerName?: string | null - sellerPhone?: string | null - deliveryDate?: Date | string | null - mediaFiles?: JsonNullValueInput | InputJsonValue - selectedServices?: JsonNullValueInput | InputJsonValue - createdAt?: Date | string - updatedAt?: Date | string - } - - export type WildberriesSupplyCardUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - nmId?: StringFieldUpdateOperationsInput | string - vendorCode?: StringFieldUpdateOperationsInput | string - title?: StringFieldUpdateOperationsInput | string - brand?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - discountedPrice?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null - quantity?: IntFieldUpdateOperationsInput | number - selectedQuantity?: IntFieldUpdateOperationsInput | number - selectedMarket?: NullableStringFieldUpdateOperationsInput | string | null - selectedPlace?: NullableStringFieldUpdateOperationsInput | string | null - sellerName?: NullableStringFieldUpdateOperationsInput | string | null - sellerPhone?: NullableStringFieldUpdateOperationsInput | string | null - deliveryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - mediaFiles?: JsonNullValueInput | InputJsonValue - selectedServices?: JsonNullValueInput | InputJsonValue - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type WildberriesSupplyCardUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - supplyId?: StringFieldUpdateOperationsInput | string - nmId?: StringFieldUpdateOperationsInput | string - vendorCode?: StringFieldUpdateOperationsInput | string - title?: StringFieldUpdateOperationsInput | string - brand?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - discountedPrice?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null - quantity?: IntFieldUpdateOperationsInput | number - selectedQuantity?: IntFieldUpdateOperationsInput | number - selectedMarket?: NullableStringFieldUpdateOperationsInput | string | null - selectedPlace?: NullableStringFieldUpdateOperationsInput | string | null - sellerName?: NullableStringFieldUpdateOperationsInput | string | null - sellerPhone?: NullableStringFieldUpdateOperationsInput | string | null - deliveryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - mediaFiles?: JsonNullValueInput | InputJsonValue - selectedServices?: JsonNullValueInput | InputJsonValue - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type LogisticsCreateInput = { - id?: string - fromLocation: string - toLocation: string - priceUnder1m3: number - priceOver1m3: number - description?: string | null - createdAt?: Date | string - updatedAt?: Date | string - organization: OrganizationCreateNestedOneWithoutLogisticsInput - } - - export type LogisticsUncheckedCreateInput = { - id?: string - fromLocation: string - toLocation: string - priceUnder1m3: number - priceOver1m3: number - description?: string | null - createdAt?: Date | string - updatedAt?: Date | string - organizationId: string - } - - export type LogisticsUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - fromLocation?: StringFieldUpdateOperationsInput | string - toLocation?: StringFieldUpdateOperationsInput | string - priceUnder1m3?: FloatFieldUpdateOperationsInput | number - priceOver1m3?: FloatFieldUpdateOperationsInput | number - description?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organization?: OrganizationUpdateOneRequiredWithoutLogisticsNestedInput - } - - export type LogisticsUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - fromLocation?: StringFieldUpdateOperationsInput | string - toLocation?: StringFieldUpdateOperationsInput | string - priceUnder1m3?: FloatFieldUpdateOperationsInput | number - priceOver1m3?: FloatFieldUpdateOperationsInput | number - description?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: StringFieldUpdateOperationsInput | string - } - - export type LogisticsCreateManyInput = { - id?: string - fromLocation: string - toLocation: string - priceUnder1m3: number - priceOver1m3: number - description?: string | null - createdAt?: Date | string - updatedAt?: Date | string - organizationId: string - } - - export type LogisticsUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - fromLocation?: StringFieldUpdateOperationsInput | string - toLocation?: StringFieldUpdateOperationsInput | string - priceUnder1m3?: FloatFieldUpdateOperationsInput | number - priceOver1m3?: FloatFieldUpdateOperationsInput | number - description?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type LogisticsUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - fromLocation?: StringFieldUpdateOperationsInput | string - toLocation?: StringFieldUpdateOperationsInput | string - priceUnder1m3?: FloatFieldUpdateOperationsInput | number - priceOver1m3?: FloatFieldUpdateOperationsInput | number - description?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: StringFieldUpdateOperationsInput | string - } - - export type SupplyOrderCreateInput = { - id?: string - deliveryDate: Date | string - status?: $Enums.SupplyOrderStatus - totalAmount: Decimal | DecimalJsLike | number | string - totalItems: number - createdAt?: Date | string - updatedAt?: Date | string - items?: SupplyOrderItemCreateNestedManyWithoutSupplyOrderInput - organization: OrganizationCreateNestedOneWithoutSupplyOrdersInput - partner: OrganizationCreateNestedOneWithoutPartnerSupplyOrdersInput - fulfillmentCenter?: OrganizationCreateNestedOneWithoutFulfillmentSupplyOrdersInput - } - - export type SupplyOrderUncheckedCreateInput = { - id?: string - partnerId: string - deliveryDate: Date | string - status?: $Enums.SupplyOrderStatus - totalAmount: Decimal | DecimalJsLike | number | string - totalItems: number - fulfillmentCenterId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - organizationId: string - items?: SupplyOrderItemUncheckedCreateNestedManyWithoutSupplyOrderInput - } - - export type SupplyOrderUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - deliveryDate?: DateTimeFieldUpdateOperationsInput | Date | string - status?: EnumSupplyOrderStatusFieldUpdateOperationsInput | $Enums.SupplyOrderStatus - totalAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalItems?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - items?: SupplyOrderItemUpdateManyWithoutSupplyOrderNestedInput - organization?: OrganizationUpdateOneRequiredWithoutSupplyOrdersNestedInput - partner?: OrganizationUpdateOneRequiredWithoutPartnerSupplyOrdersNestedInput - fulfillmentCenter?: OrganizationUpdateOneWithoutFulfillmentSupplyOrdersNestedInput - } - - export type SupplyOrderUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - partnerId?: StringFieldUpdateOperationsInput | string - deliveryDate?: DateTimeFieldUpdateOperationsInput | Date | string - status?: EnumSupplyOrderStatusFieldUpdateOperationsInput | $Enums.SupplyOrderStatus - totalAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalItems?: IntFieldUpdateOperationsInput | number - fulfillmentCenterId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: StringFieldUpdateOperationsInput | string - items?: SupplyOrderItemUncheckedUpdateManyWithoutSupplyOrderNestedInput - } - - export type SupplyOrderCreateManyInput = { - id?: string - partnerId: string - deliveryDate: Date | string - status?: $Enums.SupplyOrderStatus - totalAmount: Decimal | DecimalJsLike | number | string - totalItems: number - fulfillmentCenterId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - organizationId: string - } - - export type SupplyOrderUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - deliveryDate?: DateTimeFieldUpdateOperationsInput | Date | string - status?: EnumSupplyOrderStatusFieldUpdateOperationsInput | $Enums.SupplyOrderStatus - totalAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalItems?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SupplyOrderUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - partnerId?: StringFieldUpdateOperationsInput | string - deliveryDate?: DateTimeFieldUpdateOperationsInput | Date | string - status?: EnumSupplyOrderStatusFieldUpdateOperationsInput | $Enums.SupplyOrderStatus - totalAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalItems?: IntFieldUpdateOperationsInput | number - fulfillmentCenterId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: StringFieldUpdateOperationsInput | string - } - - export type SupplyOrderItemCreateInput = { - id?: string - quantity: number - price: Decimal | DecimalJsLike | number | string - totalPrice: Decimal | DecimalJsLike | number | string - createdAt?: Date | string - updatedAt?: Date | string - supplyOrder: SupplyOrderCreateNestedOneWithoutItemsInput - product: ProductCreateNestedOneWithoutSupplyOrderItemsInput - } - - export type SupplyOrderItemUncheckedCreateInput = { - id?: string - supplyOrderId: string - productId: string - quantity: number - price: Decimal | DecimalJsLike | number | string - totalPrice: Decimal | DecimalJsLike | number | string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type SupplyOrderItemUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - quantity?: IntFieldUpdateOperationsInput | number - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - supplyOrder?: SupplyOrderUpdateOneRequiredWithoutItemsNestedInput - product?: ProductUpdateOneRequiredWithoutSupplyOrderItemsNestedInput - } - - export type SupplyOrderItemUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - supplyOrderId?: StringFieldUpdateOperationsInput | string - productId?: StringFieldUpdateOperationsInput | string - quantity?: IntFieldUpdateOperationsInput | number - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SupplyOrderItemCreateManyInput = { - id?: string - supplyOrderId: string - productId: string - quantity: number - price: Decimal | DecimalJsLike | number | string - totalPrice: Decimal | DecimalJsLike | number | string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type SupplyOrderItemUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - quantity?: IntFieldUpdateOperationsInput | number - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SupplyOrderItemUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - supplyOrderId?: StringFieldUpdateOperationsInput | string - productId?: StringFieldUpdateOperationsInput | string - quantity?: IntFieldUpdateOperationsInput | number - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SupplySupplierCreateInput = { - id?: string - name: string - contactName: string - phone: string - market?: string | null - address?: string | null - place?: string | null - telegram?: string | null - createdAt?: Date | string - updatedAt?: Date | string - organization: OrganizationCreateNestedOneWithoutSupplySuppliersInput - } - - export type SupplySupplierUncheckedCreateInput = { - id?: string - name: string - contactName: string - phone: string - market?: string | null - address?: string | null - place?: string | null - telegram?: string | null - organizationId: string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type SupplySupplierUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - contactName?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - market?: NullableStringFieldUpdateOperationsInput | string | null - address?: NullableStringFieldUpdateOperationsInput | string | null - place?: NullableStringFieldUpdateOperationsInput | string | null - telegram?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organization?: OrganizationUpdateOneRequiredWithoutSupplySuppliersNestedInput - } - - export type SupplySupplierUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - contactName?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - market?: NullableStringFieldUpdateOperationsInput | string | null - address?: NullableStringFieldUpdateOperationsInput | string | null - place?: NullableStringFieldUpdateOperationsInput | string | null - telegram?: NullableStringFieldUpdateOperationsInput | string | null - organizationId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SupplySupplierCreateManyInput = { - id?: string - name: string - contactName: string - phone: string - market?: string | null - address?: string | null - place?: string | null - telegram?: string | null - organizationId: string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type SupplySupplierUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - contactName?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - market?: NullableStringFieldUpdateOperationsInput | string | null - address?: NullableStringFieldUpdateOperationsInput | string | null - place?: NullableStringFieldUpdateOperationsInput | string | null - telegram?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SupplySupplierUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - contactName?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - market?: NullableStringFieldUpdateOperationsInput | string | null - address?: NullableStringFieldUpdateOperationsInput | string | null - place?: NullableStringFieldUpdateOperationsInput | string | null - telegram?: NullableStringFieldUpdateOperationsInput | string | null - organizationId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type StringFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> - in?: string[] | ListStringFieldRefInput<$PrismaModel> - notIn?: string[] | ListStringFieldRefInput<$PrismaModel> - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - mode?: QueryMode - not?: NestedStringFilter<$PrismaModel> | string - } - - export type StringNullableFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> | null - in?: string[] | ListStringFieldRefInput<$PrismaModel> | null - notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - mode?: QueryMode - not?: NestedStringNullableFilter<$PrismaModel> | string | null - } - - export type DateTimeFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> - notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeFilter<$PrismaModel> | Date | string - } - - export type MessageListRelationFilter = { - every?: MessageWhereInput - some?: MessageWhereInput - none?: MessageWhereInput - } - - export type SmsCodeListRelationFilter = { - every?: SmsCodeWhereInput - some?: SmsCodeWhereInput - none?: SmsCodeWhereInput - } - - export type OrganizationNullableScalarRelationFilter = { - is?: OrganizationWhereInput | null - isNot?: OrganizationWhereInput | null - } - - export type SortOrderInput = { - sort: SortOrder - nulls?: NullsOrder - } - - export type MessageOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type SmsCodeOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type UserCountOrderByAggregateInput = { - id?: SortOrder - phone?: SortOrder - avatar?: SortOrder - managerName?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - } - - export type UserMaxOrderByAggregateInput = { - id?: SortOrder - phone?: SortOrder - avatar?: SortOrder - managerName?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - } - - export type UserMinOrderByAggregateInput = { - id?: SortOrder - phone?: SortOrder - avatar?: SortOrder - managerName?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - } - - export type StringWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> - in?: string[] | ListStringFieldRefInput<$PrismaModel> - notIn?: string[] | ListStringFieldRefInput<$PrismaModel> - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - mode?: QueryMode - not?: NestedStringWithAggregatesFilter<$PrismaModel> | string - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedStringFilter<$PrismaModel> - _max?: NestedStringFilter<$PrismaModel> - } - - export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> | null - in?: string[] | ListStringFieldRefInput<$PrismaModel> | null - notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - mode?: QueryMode - not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null - _count?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedStringNullableFilter<$PrismaModel> - _max?: NestedStringNullableFilter<$PrismaModel> - } - - export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> - notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedDateTimeFilter<$PrismaModel> - _max?: NestedDateTimeFilter<$PrismaModel> - } - - export type BoolFilter<$PrismaModel = never> = { - equals?: boolean | BooleanFieldRefInput<$PrismaModel> - not?: NestedBoolFilter<$PrismaModel> | boolean - } - - export type DateTimeNullableFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null - notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null - } - - export type AdminCountOrderByAggregateInput = { - id?: SortOrder - username?: SortOrder - password?: SortOrder - email?: SortOrder - isActive?: SortOrder - lastLogin?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type AdminMaxOrderByAggregateInput = { - id?: SortOrder - username?: SortOrder - password?: SortOrder - email?: SortOrder - isActive?: SortOrder - lastLogin?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type AdminMinOrderByAggregateInput = { - id?: SortOrder - username?: SortOrder - password?: SortOrder - email?: SortOrder - isActive?: SortOrder - lastLogin?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type BoolWithAggregatesFilter<$PrismaModel = never> = { - equals?: boolean | BooleanFieldRefInput<$PrismaModel> - not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedBoolFilter<$PrismaModel> - _max?: NestedBoolFilter<$PrismaModel> - } - - export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null - notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null - _count?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedDateTimeNullableFilter<$PrismaModel> - _max?: NestedDateTimeNullableFilter<$PrismaModel> - } - - export type IntFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> - in?: number[] | ListIntFieldRefInput<$PrismaModel> - notIn?: number[] | ListIntFieldRefInput<$PrismaModel> - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntFilter<$PrismaModel> | number - } - - export type UserNullableScalarRelationFilter = { - is?: UserWhereInput | null - isNot?: UserWhereInput | null - } - - export type SmsCodeCountOrderByAggregateInput = { - id?: SortOrder - code?: SortOrder - phone?: SortOrder - expiresAt?: SortOrder - isUsed?: SortOrder - attempts?: SortOrder - maxAttempts?: SortOrder - createdAt?: SortOrder - userId?: SortOrder - } - - export type SmsCodeAvgOrderByAggregateInput = { - attempts?: SortOrder - maxAttempts?: SortOrder - } - - export type SmsCodeMaxOrderByAggregateInput = { - id?: SortOrder - code?: SortOrder - phone?: SortOrder - expiresAt?: SortOrder - isUsed?: SortOrder - attempts?: SortOrder - maxAttempts?: SortOrder - createdAt?: SortOrder - userId?: SortOrder - } - - export type SmsCodeMinOrderByAggregateInput = { - id?: SortOrder - code?: SortOrder - phone?: SortOrder - expiresAt?: SortOrder - isUsed?: SortOrder - attempts?: SortOrder - maxAttempts?: SortOrder - createdAt?: SortOrder - userId?: SortOrder - } - - export type SmsCodeSumOrderByAggregateInput = { - attempts?: SortOrder - maxAttempts?: SortOrder - } - - export type IntWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> - in?: number[] | ListIntFieldRefInput<$PrismaModel> - notIn?: number[] | ListIntFieldRefInput<$PrismaModel> - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntWithAggregatesFilter<$PrismaModel> | number - _count?: NestedIntFilter<$PrismaModel> - _avg?: NestedFloatFilter<$PrismaModel> - _sum?: NestedIntFilter<$PrismaModel> - _min?: NestedIntFilter<$PrismaModel> - _max?: NestedIntFilter<$PrismaModel> - } - - export type EnumOrganizationTypeFilter<$PrismaModel = never> = { - equals?: $Enums.OrganizationType | EnumOrganizationTypeFieldRefInput<$PrismaModel> - in?: $Enums.OrganizationType[] | ListEnumOrganizationTypeFieldRefInput<$PrismaModel> - notIn?: $Enums.OrganizationType[] | ListEnumOrganizationTypeFieldRefInput<$PrismaModel> - not?: NestedEnumOrganizationTypeFilter<$PrismaModel> | $Enums.OrganizationType - } - export type JsonNullableFilter<$PrismaModel = never> = - | PatchUndefined< - Either>, Exclude>, 'path'>>, - Required> - > - | OptionalFlat>, 'path'>> - - export type JsonNullableFilterBase<$PrismaModel = never> = { - equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter - path?: string[] - mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> - string_contains?: string | StringFieldRefInput<$PrismaModel> - string_starts_with?: string | StringFieldRefInput<$PrismaModel> - string_ends_with?: string | StringFieldRefInput<$PrismaModel> - array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null - array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null - array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null - lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> - lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> - gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> - gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> - not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter - } - - export type IntNullableFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> | null - in?: number[] | ListIntFieldRefInput<$PrismaModel> | null - notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntNullableFilter<$PrismaModel> | number | null - } - - export type BigIntNullableFilter<$PrismaModel = never> = { - equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> | null - in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> | null - notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> | null - lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> - lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> - gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> - gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> - not?: NestedBigIntNullableFilter<$PrismaModel> | bigint | number | null - } - - export type ApiKeyListRelationFilter = { - every?: ApiKeyWhereInput - some?: ApiKeyWhereInput - none?: ApiKeyWhereInput - } - - export type CartNullableScalarRelationFilter = { - is?: CartWhereInput | null - isNot?: CartWhereInput | null - } - - export type CounterpartyListRelationFilter = { - every?: CounterpartyWhereInput - some?: CounterpartyWhereInput - none?: CounterpartyWhereInput - } - - export type CounterpartyRequestListRelationFilter = { - every?: CounterpartyRequestWhereInput - some?: CounterpartyRequestWhereInput - none?: CounterpartyRequestWhereInput - } - - export type EmployeeListRelationFilter = { - every?: EmployeeWhereInput - some?: EmployeeWhereInput - none?: EmployeeWhereInput - } - - export type FavoritesListRelationFilter = { - every?: FavoritesWhereInput - some?: FavoritesWhereInput - none?: FavoritesWhereInput - } - - export type ProductListRelationFilter = { - every?: ProductWhereInput - some?: ProductWhereInput - none?: ProductWhereInput - } - - export type ServiceListRelationFilter = { - every?: ServiceWhereInput - some?: ServiceWhereInput - none?: ServiceWhereInput - } - - export type SupplyListRelationFilter = { - every?: SupplyWhereInput - some?: SupplyWhereInput - none?: SupplyWhereInput - } - - export type UserListRelationFilter = { - every?: UserWhereInput - some?: UserWhereInput - none?: UserWhereInput - } - - export type LogisticsListRelationFilter = { - every?: LogisticsWhereInput - some?: LogisticsWhereInput - none?: LogisticsWhereInput - } - - export type SupplyOrderListRelationFilter = { - every?: SupplyOrderWhereInput - some?: SupplyOrderWhereInput - none?: SupplyOrderWhereInput - } - - export type WildberriesSupplyListRelationFilter = { - every?: WildberriesSupplyWhereInput - some?: WildberriesSupplyWhereInput - none?: WildberriesSupplyWhereInput - } - - export type SupplySupplierListRelationFilter = { - every?: SupplySupplierWhereInput - some?: SupplySupplierWhereInput - none?: SupplySupplierWhereInput - } - - export type ApiKeyOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type CounterpartyOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type CounterpartyRequestOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type EmployeeOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type FavoritesOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type ProductOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type ServiceOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type SupplyOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type UserOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type LogisticsOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type SupplyOrderOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type WildberriesSupplyOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type SupplySupplierOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type OrganizationCountOrderByAggregateInput = { - id?: SortOrder - inn?: SortOrder - kpp?: SortOrder - name?: SortOrder - fullName?: SortOrder - ogrn?: SortOrder - ogrnDate?: SortOrder - type?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - address?: SortOrder - addressFull?: SortOrder - status?: SortOrder - actualityDate?: SortOrder - registrationDate?: SortOrder - liquidationDate?: SortOrder - managementName?: SortOrder - managementPost?: SortOrder - opfCode?: SortOrder - opfFull?: SortOrder - opfShort?: SortOrder - okato?: SortOrder - oktmo?: SortOrder - okpo?: SortOrder - okved?: SortOrder - phones?: SortOrder - emails?: SortOrder - employeeCount?: SortOrder - revenue?: SortOrder - taxSystem?: SortOrder - dadataData?: SortOrder - } - - export type OrganizationAvgOrderByAggregateInput = { - employeeCount?: SortOrder - revenue?: SortOrder - } - - export type OrganizationMaxOrderByAggregateInput = { - id?: SortOrder - inn?: SortOrder - kpp?: SortOrder - name?: SortOrder - fullName?: SortOrder - ogrn?: SortOrder - ogrnDate?: SortOrder - type?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - address?: SortOrder - addressFull?: SortOrder - status?: SortOrder - actualityDate?: SortOrder - registrationDate?: SortOrder - liquidationDate?: SortOrder - managementName?: SortOrder - managementPost?: SortOrder - opfCode?: SortOrder - opfFull?: SortOrder - opfShort?: SortOrder - okato?: SortOrder - oktmo?: SortOrder - okpo?: SortOrder - okved?: SortOrder - employeeCount?: SortOrder - revenue?: SortOrder - taxSystem?: SortOrder - } - - export type OrganizationMinOrderByAggregateInput = { - id?: SortOrder - inn?: SortOrder - kpp?: SortOrder - name?: SortOrder - fullName?: SortOrder - ogrn?: SortOrder - ogrnDate?: SortOrder - type?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - address?: SortOrder - addressFull?: SortOrder - status?: SortOrder - actualityDate?: SortOrder - registrationDate?: SortOrder - liquidationDate?: SortOrder - managementName?: SortOrder - managementPost?: SortOrder - opfCode?: SortOrder - opfFull?: SortOrder - opfShort?: SortOrder - okato?: SortOrder - oktmo?: SortOrder - okpo?: SortOrder - okved?: SortOrder - employeeCount?: SortOrder - revenue?: SortOrder - taxSystem?: SortOrder - } - - export type OrganizationSumOrderByAggregateInput = { - employeeCount?: SortOrder - revenue?: SortOrder - } - - export type EnumOrganizationTypeWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.OrganizationType | EnumOrganizationTypeFieldRefInput<$PrismaModel> - in?: $Enums.OrganizationType[] | ListEnumOrganizationTypeFieldRefInput<$PrismaModel> - notIn?: $Enums.OrganizationType[] | ListEnumOrganizationTypeFieldRefInput<$PrismaModel> - not?: NestedEnumOrganizationTypeWithAggregatesFilter<$PrismaModel> | $Enums.OrganizationType - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedEnumOrganizationTypeFilter<$PrismaModel> - _max?: NestedEnumOrganizationTypeFilter<$PrismaModel> - } - export type JsonNullableWithAggregatesFilter<$PrismaModel = never> = - | PatchUndefined< - Either>, Exclude>, 'path'>>, - Required> - > - | OptionalFlat>, 'path'>> - - export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = { - equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter - path?: string[] - mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> - string_contains?: string | StringFieldRefInput<$PrismaModel> - string_starts_with?: string | StringFieldRefInput<$PrismaModel> - string_ends_with?: string | StringFieldRefInput<$PrismaModel> - array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null - array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null - array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null - lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> - lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> - gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> - gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> - not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter - _count?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedJsonNullableFilter<$PrismaModel> - _max?: NestedJsonNullableFilter<$PrismaModel> - } - - export type IntNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> | null - in?: number[] | ListIntFieldRefInput<$PrismaModel> | null - notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null - _count?: NestedIntNullableFilter<$PrismaModel> - _avg?: NestedFloatNullableFilter<$PrismaModel> - _sum?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedIntNullableFilter<$PrismaModel> - _max?: NestedIntNullableFilter<$PrismaModel> - } - - export type BigIntNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> | null - in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> | null - notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> | null - lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> - lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> - gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> - gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> - not?: NestedBigIntNullableWithAggregatesFilter<$PrismaModel> | bigint | number | null - _count?: NestedIntNullableFilter<$PrismaModel> - _avg?: NestedFloatNullableFilter<$PrismaModel> - _sum?: NestedBigIntNullableFilter<$PrismaModel> - _min?: NestedBigIntNullableFilter<$PrismaModel> - _max?: NestedBigIntNullableFilter<$PrismaModel> - } - - export type EnumMarketplaceTypeFilter<$PrismaModel = never> = { - equals?: $Enums.MarketplaceType | EnumMarketplaceTypeFieldRefInput<$PrismaModel> - in?: $Enums.MarketplaceType[] | ListEnumMarketplaceTypeFieldRefInput<$PrismaModel> - notIn?: $Enums.MarketplaceType[] | ListEnumMarketplaceTypeFieldRefInput<$PrismaModel> - not?: NestedEnumMarketplaceTypeFilter<$PrismaModel> | $Enums.MarketplaceType - } - - export type OrganizationScalarRelationFilter = { - is?: OrganizationWhereInput - isNot?: OrganizationWhereInput - } - - export type ApiKeyOrganizationIdMarketplaceCompoundUniqueInput = { - organizationId: string - marketplace: $Enums.MarketplaceType - } - - export type ApiKeyCountOrderByAggregateInput = { - id?: SortOrder - marketplace?: SortOrder - apiKey?: SortOrder - isActive?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - validationData?: SortOrder - organizationId?: SortOrder - } - - export type ApiKeyMaxOrderByAggregateInput = { - id?: SortOrder - marketplace?: SortOrder - apiKey?: SortOrder - isActive?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - } - - export type ApiKeyMinOrderByAggregateInput = { - id?: SortOrder - marketplace?: SortOrder - apiKey?: SortOrder - isActive?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - } - - export type EnumMarketplaceTypeWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.MarketplaceType | EnumMarketplaceTypeFieldRefInput<$PrismaModel> - in?: $Enums.MarketplaceType[] | ListEnumMarketplaceTypeFieldRefInput<$PrismaModel> - notIn?: $Enums.MarketplaceType[] | ListEnumMarketplaceTypeFieldRefInput<$PrismaModel> - not?: NestedEnumMarketplaceTypeWithAggregatesFilter<$PrismaModel> | $Enums.MarketplaceType - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedEnumMarketplaceTypeFilter<$PrismaModel> - _max?: NestedEnumMarketplaceTypeFilter<$PrismaModel> - } - - export type EnumCounterpartyRequestStatusFilter<$PrismaModel = never> = { - equals?: $Enums.CounterpartyRequestStatus | EnumCounterpartyRequestStatusFieldRefInput<$PrismaModel> - in?: $Enums.CounterpartyRequestStatus[] | ListEnumCounterpartyRequestStatusFieldRefInput<$PrismaModel> - notIn?: $Enums.CounterpartyRequestStatus[] | ListEnumCounterpartyRequestStatusFieldRefInput<$PrismaModel> - not?: NestedEnumCounterpartyRequestStatusFilter<$PrismaModel> | $Enums.CounterpartyRequestStatus - } - - export type CounterpartyRequestSenderIdReceiverIdCompoundUniqueInput = { - senderId: string - receiverId: string - } - - export type CounterpartyRequestCountOrderByAggregateInput = { - id?: SortOrder - status?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - senderId?: SortOrder - receiverId?: SortOrder - message?: SortOrder - } - - export type CounterpartyRequestMaxOrderByAggregateInput = { - id?: SortOrder - status?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - senderId?: SortOrder - receiverId?: SortOrder - message?: SortOrder - } - - export type CounterpartyRequestMinOrderByAggregateInput = { - id?: SortOrder - status?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - senderId?: SortOrder - receiverId?: SortOrder - message?: SortOrder - } - - export type EnumCounterpartyRequestStatusWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.CounterpartyRequestStatus | EnumCounterpartyRequestStatusFieldRefInput<$PrismaModel> - in?: $Enums.CounterpartyRequestStatus[] | ListEnumCounterpartyRequestStatusFieldRefInput<$PrismaModel> - notIn?: $Enums.CounterpartyRequestStatus[] | ListEnumCounterpartyRequestStatusFieldRefInput<$PrismaModel> - not?: NestedEnumCounterpartyRequestStatusWithAggregatesFilter<$PrismaModel> | $Enums.CounterpartyRequestStatus - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedEnumCounterpartyRequestStatusFilter<$PrismaModel> - _max?: NestedEnumCounterpartyRequestStatusFilter<$PrismaModel> - } - - export type CounterpartyOrganizationIdCounterpartyIdCompoundUniqueInput = { - organizationId: string - counterpartyId: string - } - - export type CounterpartyCountOrderByAggregateInput = { - id?: SortOrder - createdAt?: SortOrder - organizationId?: SortOrder - counterpartyId?: SortOrder - } - - export type CounterpartyMaxOrderByAggregateInput = { - id?: SortOrder - createdAt?: SortOrder - organizationId?: SortOrder - counterpartyId?: SortOrder - } - - export type CounterpartyMinOrderByAggregateInput = { - id?: SortOrder - createdAt?: SortOrder - organizationId?: SortOrder - counterpartyId?: SortOrder - } - - export type EnumMessageTypeFilter<$PrismaModel = never> = { - equals?: $Enums.MessageType | EnumMessageTypeFieldRefInput<$PrismaModel> - in?: $Enums.MessageType[] | ListEnumMessageTypeFieldRefInput<$PrismaModel> - notIn?: $Enums.MessageType[] | ListEnumMessageTypeFieldRefInput<$PrismaModel> - not?: NestedEnumMessageTypeFilter<$PrismaModel> | $Enums.MessageType - } - - export type UserScalarRelationFilter = { - is?: UserWhereInput - isNot?: UserWhereInput - } - - export type MessageCountOrderByAggregateInput = { - id?: SortOrder - content?: SortOrder - type?: SortOrder - voiceUrl?: SortOrder - voiceDuration?: SortOrder - fileUrl?: SortOrder - fileName?: SortOrder - fileSize?: SortOrder - fileType?: SortOrder - isRead?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - senderId?: SortOrder - senderOrganizationId?: SortOrder - receiverOrganizationId?: SortOrder - } - - export type MessageAvgOrderByAggregateInput = { - voiceDuration?: SortOrder - fileSize?: SortOrder - } - - export type MessageMaxOrderByAggregateInput = { - id?: SortOrder - content?: SortOrder - type?: SortOrder - voiceUrl?: SortOrder - voiceDuration?: SortOrder - fileUrl?: SortOrder - fileName?: SortOrder - fileSize?: SortOrder - fileType?: SortOrder - isRead?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - senderId?: SortOrder - senderOrganizationId?: SortOrder - receiverOrganizationId?: SortOrder - } - - export type MessageMinOrderByAggregateInput = { - id?: SortOrder - content?: SortOrder - type?: SortOrder - voiceUrl?: SortOrder - voiceDuration?: SortOrder - fileUrl?: SortOrder - fileName?: SortOrder - fileSize?: SortOrder - fileType?: SortOrder - isRead?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - senderId?: SortOrder - senderOrganizationId?: SortOrder - receiverOrganizationId?: SortOrder - } - - export type MessageSumOrderByAggregateInput = { - voiceDuration?: SortOrder - fileSize?: SortOrder - } - - export type EnumMessageTypeWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.MessageType | EnumMessageTypeFieldRefInput<$PrismaModel> - in?: $Enums.MessageType[] | ListEnumMessageTypeFieldRefInput<$PrismaModel> - notIn?: $Enums.MessageType[] | ListEnumMessageTypeFieldRefInput<$PrismaModel> - not?: NestedEnumMessageTypeWithAggregatesFilter<$PrismaModel> | $Enums.MessageType - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedEnumMessageTypeFilter<$PrismaModel> - _max?: NestedEnumMessageTypeFilter<$PrismaModel> - } - - export type DecimalFilter<$PrismaModel = never> = { - equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> - notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> - lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - not?: NestedDecimalFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string - } - - export type ServiceCountOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - description?: SortOrder - price?: SortOrder - imageUrl?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - } - - export type ServiceAvgOrderByAggregateInput = { - price?: SortOrder - } - - export type ServiceMaxOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - description?: SortOrder - price?: SortOrder - imageUrl?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - } - - export type ServiceMinOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - description?: SortOrder - price?: SortOrder - imageUrl?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - } - - export type ServiceSumOrderByAggregateInput = { - price?: SortOrder - } - - export type DecimalWithAggregatesFilter<$PrismaModel = never> = { - equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> - notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> - lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - not?: NestedDecimalWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string - _count?: NestedIntFilter<$PrismaModel> - _avg?: NestedDecimalFilter<$PrismaModel> - _sum?: NestedDecimalFilter<$PrismaModel> - _min?: NestedDecimalFilter<$PrismaModel> - _max?: NestedDecimalFilter<$PrismaModel> - } - - export type SupplyCountOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - description?: SortOrder - price?: SortOrder - quantity?: SortOrder - unit?: SortOrder - category?: SortOrder - status?: SortOrder - date?: SortOrder - supplier?: SortOrder - minStock?: SortOrder - currentStock?: SortOrder - imageUrl?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - } - - export type SupplyAvgOrderByAggregateInput = { - price?: SortOrder - quantity?: SortOrder - minStock?: SortOrder - currentStock?: SortOrder - } - - export type SupplyMaxOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - description?: SortOrder - price?: SortOrder - quantity?: SortOrder - unit?: SortOrder - category?: SortOrder - status?: SortOrder - date?: SortOrder - supplier?: SortOrder - minStock?: SortOrder - currentStock?: SortOrder - imageUrl?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - } - - export type SupplyMinOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - description?: SortOrder - price?: SortOrder - quantity?: SortOrder - unit?: SortOrder - category?: SortOrder - status?: SortOrder - date?: SortOrder - supplier?: SortOrder - minStock?: SortOrder - currentStock?: SortOrder - imageUrl?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - } - - export type SupplySumOrderByAggregateInput = { - price?: SortOrder - quantity?: SortOrder - minStock?: SortOrder - currentStock?: SortOrder - } - - export type CategoryCountOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type CategoryMaxOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type CategoryMinOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type DecimalNullableFilter<$PrismaModel = never> = { - equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null - in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null - notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null - lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - not?: NestedDecimalNullableFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null - } - export type JsonFilter<$PrismaModel = never> = - | PatchUndefined< - Either>, Exclude>, 'path'>>, - Required> - > - | OptionalFlat>, 'path'>> - - export type JsonFilterBase<$PrismaModel = never> = { - equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter - path?: string[] - mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> - string_contains?: string | StringFieldRefInput<$PrismaModel> - string_starts_with?: string | StringFieldRefInput<$PrismaModel> - string_ends_with?: string | StringFieldRefInput<$PrismaModel> - array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null - array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null - array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null - lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> - lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> - gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> - gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> - not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter - } - - export type CartItemListRelationFilter = { - every?: CartItemWhereInput - some?: CartItemWhereInput - none?: CartItemWhereInput - } - - export type SupplyOrderItemListRelationFilter = { - every?: SupplyOrderItemWhereInput - some?: SupplyOrderItemWhereInput - none?: SupplyOrderItemWhereInput - } - - export type CategoryNullableScalarRelationFilter = { - is?: CategoryWhereInput | null - isNot?: CategoryWhereInput | null - } - - export type CartItemOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type SupplyOrderItemOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type ProductOrganizationIdArticleCompoundUniqueInput = { - organizationId: string - article: string - } - - export type ProductCountOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - article?: SortOrder - description?: SortOrder - price?: SortOrder - quantity?: SortOrder - categoryId?: SortOrder - brand?: SortOrder - color?: SortOrder - size?: SortOrder - weight?: SortOrder - dimensions?: SortOrder - material?: SortOrder - images?: SortOrder - mainImage?: SortOrder - isActive?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - } - - export type ProductAvgOrderByAggregateInput = { - price?: SortOrder - quantity?: SortOrder - weight?: SortOrder - } - - export type ProductMaxOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - article?: SortOrder - description?: SortOrder - price?: SortOrder - quantity?: SortOrder - categoryId?: SortOrder - brand?: SortOrder - color?: SortOrder - size?: SortOrder - weight?: SortOrder - dimensions?: SortOrder - material?: SortOrder - mainImage?: SortOrder - isActive?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - } - - export type ProductMinOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - article?: SortOrder - description?: SortOrder - price?: SortOrder - quantity?: SortOrder - categoryId?: SortOrder - brand?: SortOrder - color?: SortOrder - size?: SortOrder - weight?: SortOrder - dimensions?: SortOrder - material?: SortOrder - mainImage?: SortOrder - isActive?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - } - - export type ProductSumOrderByAggregateInput = { - price?: SortOrder - quantity?: SortOrder - weight?: SortOrder - } - - export type DecimalNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null - in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null - notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null - lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - not?: NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null - _count?: NestedIntNullableFilter<$PrismaModel> - _avg?: NestedDecimalNullableFilter<$PrismaModel> - _sum?: NestedDecimalNullableFilter<$PrismaModel> - _min?: NestedDecimalNullableFilter<$PrismaModel> - _max?: NestedDecimalNullableFilter<$PrismaModel> - } - export type JsonWithAggregatesFilter<$PrismaModel = never> = - | PatchUndefined< - Either>, Exclude>, 'path'>>, - Required> - > - | OptionalFlat>, 'path'>> - - export type JsonWithAggregatesFilterBase<$PrismaModel = never> = { - equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter - path?: string[] - mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> - string_contains?: string | StringFieldRefInput<$PrismaModel> - string_starts_with?: string | StringFieldRefInput<$PrismaModel> - string_ends_with?: string | StringFieldRefInput<$PrismaModel> - array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null - array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null - array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null - lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> - lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> - gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> - gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> - not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedJsonFilter<$PrismaModel> - _max?: NestedJsonFilter<$PrismaModel> - } - - export type CartCountOrderByAggregateInput = { - id?: SortOrder - organizationId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type CartMaxOrderByAggregateInput = { - id?: SortOrder - organizationId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type CartMinOrderByAggregateInput = { - id?: SortOrder - organizationId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type CartScalarRelationFilter = { - is?: CartWhereInput - isNot?: CartWhereInput - } - - export type ProductScalarRelationFilter = { - is?: ProductWhereInput - isNot?: ProductWhereInput - } - - export type CartItemCartIdProductIdCompoundUniqueInput = { - cartId: string - productId: string - } - - export type CartItemCountOrderByAggregateInput = { - id?: SortOrder - cartId?: SortOrder - productId?: SortOrder - quantity?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type CartItemAvgOrderByAggregateInput = { - quantity?: SortOrder - } - - export type CartItemMaxOrderByAggregateInput = { - id?: SortOrder - cartId?: SortOrder - productId?: SortOrder - quantity?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type CartItemMinOrderByAggregateInput = { - id?: SortOrder - cartId?: SortOrder - productId?: SortOrder - quantity?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type CartItemSumOrderByAggregateInput = { - quantity?: SortOrder - } - - export type FavoritesOrganizationIdProductIdCompoundUniqueInput = { - organizationId: string - productId: string - } - - export type FavoritesCountOrderByAggregateInput = { - id?: SortOrder - organizationId?: SortOrder - productId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type FavoritesMaxOrderByAggregateInput = { - id?: SortOrder - organizationId?: SortOrder - productId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type FavoritesMinOrderByAggregateInput = { - id?: SortOrder - organizationId?: SortOrder - productId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type FloatNullableFilter<$PrismaModel = never> = { - equals?: number | FloatFieldRefInput<$PrismaModel> | null - in?: number[] | ListFloatFieldRefInput<$PrismaModel> | null - notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> | null - lt?: number | FloatFieldRefInput<$PrismaModel> - lte?: number | FloatFieldRefInput<$PrismaModel> - gt?: number | FloatFieldRefInput<$PrismaModel> - gte?: number | FloatFieldRefInput<$PrismaModel> - not?: NestedFloatNullableFilter<$PrismaModel> | number | null - } - - export type EnumEmployeeStatusFilter<$PrismaModel = never> = { - equals?: $Enums.EmployeeStatus | EnumEmployeeStatusFieldRefInput<$PrismaModel> - in?: $Enums.EmployeeStatus[] | ListEnumEmployeeStatusFieldRefInput<$PrismaModel> - notIn?: $Enums.EmployeeStatus[] | ListEnumEmployeeStatusFieldRefInput<$PrismaModel> - not?: NestedEnumEmployeeStatusFilter<$PrismaModel> | $Enums.EmployeeStatus - } - - export type EmployeeScheduleListRelationFilter = { - every?: EmployeeScheduleWhereInput - some?: EmployeeScheduleWhereInput - none?: EmployeeScheduleWhereInput - } - - export type EmployeeScheduleOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type EmployeeCountOrderByAggregateInput = { - id?: SortOrder - firstName?: SortOrder - lastName?: SortOrder - middleName?: SortOrder - birthDate?: SortOrder - avatar?: SortOrder - passportPhoto?: SortOrder - passportSeries?: SortOrder - passportNumber?: SortOrder - passportIssued?: SortOrder - passportDate?: SortOrder - address?: SortOrder - position?: SortOrder - department?: SortOrder - hireDate?: SortOrder - salary?: SortOrder - status?: SortOrder - phone?: SortOrder - email?: SortOrder - telegram?: SortOrder - whatsapp?: SortOrder - emergencyContact?: SortOrder - emergencyPhone?: SortOrder - organizationId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type EmployeeAvgOrderByAggregateInput = { - salary?: SortOrder - } - - export type EmployeeMaxOrderByAggregateInput = { - id?: SortOrder - firstName?: SortOrder - lastName?: SortOrder - middleName?: SortOrder - birthDate?: SortOrder - avatar?: SortOrder - passportPhoto?: SortOrder - passportSeries?: SortOrder - passportNumber?: SortOrder - passportIssued?: SortOrder - passportDate?: SortOrder - address?: SortOrder - position?: SortOrder - department?: SortOrder - hireDate?: SortOrder - salary?: SortOrder - status?: SortOrder - phone?: SortOrder - email?: SortOrder - telegram?: SortOrder - whatsapp?: SortOrder - emergencyContact?: SortOrder - emergencyPhone?: SortOrder - organizationId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type EmployeeMinOrderByAggregateInput = { - id?: SortOrder - firstName?: SortOrder - lastName?: SortOrder - middleName?: SortOrder - birthDate?: SortOrder - avatar?: SortOrder - passportPhoto?: SortOrder - passportSeries?: SortOrder - passportNumber?: SortOrder - passportIssued?: SortOrder - passportDate?: SortOrder - address?: SortOrder - position?: SortOrder - department?: SortOrder - hireDate?: SortOrder - salary?: SortOrder - status?: SortOrder - phone?: SortOrder - email?: SortOrder - telegram?: SortOrder - whatsapp?: SortOrder - emergencyContact?: SortOrder - emergencyPhone?: SortOrder - organizationId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type EmployeeSumOrderByAggregateInput = { - salary?: SortOrder - } - - export type FloatNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | FloatFieldRefInput<$PrismaModel> | null - in?: number[] | ListFloatFieldRefInput<$PrismaModel> | null - notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> | null - lt?: number | FloatFieldRefInput<$PrismaModel> - lte?: number | FloatFieldRefInput<$PrismaModel> - gt?: number | FloatFieldRefInput<$PrismaModel> - gte?: number | FloatFieldRefInput<$PrismaModel> - not?: NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null - _count?: NestedIntNullableFilter<$PrismaModel> - _avg?: NestedFloatNullableFilter<$PrismaModel> - _sum?: NestedFloatNullableFilter<$PrismaModel> - _min?: NestedFloatNullableFilter<$PrismaModel> - _max?: NestedFloatNullableFilter<$PrismaModel> - } - - export type EnumEmployeeStatusWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.EmployeeStatus | EnumEmployeeStatusFieldRefInput<$PrismaModel> - in?: $Enums.EmployeeStatus[] | ListEnumEmployeeStatusFieldRefInput<$PrismaModel> - notIn?: $Enums.EmployeeStatus[] | ListEnumEmployeeStatusFieldRefInput<$PrismaModel> - not?: NestedEnumEmployeeStatusWithAggregatesFilter<$PrismaModel> | $Enums.EmployeeStatus - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedEnumEmployeeStatusFilter<$PrismaModel> - _max?: NestedEnumEmployeeStatusFilter<$PrismaModel> - } - - export type EnumScheduleStatusFilter<$PrismaModel = never> = { - equals?: $Enums.ScheduleStatus | EnumScheduleStatusFieldRefInput<$PrismaModel> - in?: $Enums.ScheduleStatus[] | ListEnumScheduleStatusFieldRefInput<$PrismaModel> - notIn?: $Enums.ScheduleStatus[] | ListEnumScheduleStatusFieldRefInput<$PrismaModel> - not?: NestedEnumScheduleStatusFilter<$PrismaModel> | $Enums.ScheduleStatus - } - - export type EmployeeScalarRelationFilter = { - is?: EmployeeWhereInput - isNot?: EmployeeWhereInput - } - - export type EmployeeScheduleEmployeeIdDateCompoundUniqueInput = { - employeeId: string - date: Date | string - } - - export type EmployeeScheduleCountOrderByAggregateInput = { - id?: SortOrder - date?: SortOrder - status?: SortOrder - hoursWorked?: SortOrder - notes?: SortOrder - employeeId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type EmployeeScheduleAvgOrderByAggregateInput = { - hoursWorked?: SortOrder - } - - export type EmployeeScheduleMaxOrderByAggregateInput = { - id?: SortOrder - date?: SortOrder - status?: SortOrder - hoursWorked?: SortOrder - notes?: SortOrder - employeeId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type EmployeeScheduleMinOrderByAggregateInput = { - id?: SortOrder - date?: SortOrder - status?: SortOrder - hoursWorked?: SortOrder - notes?: SortOrder - employeeId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type EmployeeScheduleSumOrderByAggregateInput = { - hoursWorked?: SortOrder - } - - export type EnumScheduleStatusWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.ScheduleStatus | EnumScheduleStatusFieldRefInput<$PrismaModel> - in?: $Enums.ScheduleStatus[] | ListEnumScheduleStatusFieldRefInput<$PrismaModel> - notIn?: $Enums.ScheduleStatus[] | ListEnumScheduleStatusFieldRefInput<$PrismaModel> - not?: NestedEnumScheduleStatusWithAggregatesFilter<$PrismaModel> | $Enums.ScheduleStatus - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedEnumScheduleStatusFilter<$PrismaModel> - _max?: NestedEnumScheduleStatusFilter<$PrismaModel> - } - - export type EnumWildberriesSupplyStatusFilter<$PrismaModel = never> = { - equals?: $Enums.WildberriesSupplyStatus | EnumWildberriesSupplyStatusFieldRefInput<$PrismaModel> - in?: $Enums.WildberriesSupplyStatus[] | ListEnumWildberriesSupplyStatusFieldRefInput<$PrismaModel> - notIn?: $Enums.WildberriesSupplyStatus[] | ListEnumWildberriesSupplyStatusFieldRefInput<$PrismaModel> - not?: NestedEnumWildberriesSupplyStatusFilter<$PrismaModel> | $Enums.WildberriesSupplyStatus - } - - export type WildberriesSupplyCardListRelationFilter = { - every?: WildberriesSupplyCardWhereInput - some?: WildberriesSupplyCardWhereInput - none?: WildberriesSupplyCardWhereInput - } - - export type WildberriesSupplyCardOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type WildberriesSupplyCountOrderByAggregateInput = { - id?: SortOrder - organizationId?: SortOrder - deliveryDate?: SortOrder - status?: SortOrder - totalAmount?: SortOrder - totalItems?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type WildberriesSupplyAvgOrderByAggregateInput = { - totalAmount?: SortOrder - totalItems?: SortOrder - } - - export type WildberriesSupplyMaxOrderByAggregateInput = { - id?: SortOrder - organizationId?: SortOrder - deliveryDate?: SortOrder - status?: SortOrder - totalAmount?: SortOrder - totalItems?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type WildberriesSupplyMinOrderByAggregateInput = { - id?: SortOrder - organizationId?: SortOrder - deliveryDate?: SortOrder - status?: SortOrder - totalAmount?: SortOrder - totalItems?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type WildberriesSupplySumOrderByAggregateInput = { - totalAmount?: SortOrder - totalItems?: SortOrder - } - - export type EnumWildberriesSupplyStatusWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.WildberriesSupplyStatus | EnumWildberriesSupplyStatusFieldRefInput<$PrismaModel> - in?: $Enums.WildberriesSupplyStatus[] | ListEnumWildberriesSupplyStatusFieldRefInput<$PrismaModel> - notIn?: $Enums.WildberriesSupplyStatus[] | ListEnumWildberriesSupplyStatusFieldRefInput<$PrismaModel> - not?: NestedEnumWildberriesSupplyStatusWithAggregatesFilter<$PrismaModel> | $Enums.WildberriesSupplyStatus - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedEnumWildberriesSupplyStatusFilter<$PrismaModel> - _max?: NestedEnumWildberriesSupplyStatusFilter<$PrismaModel> - } - - export type WildberriesSupplyScalarRelationFilter = { - is?: WildberriesSupplyWhereInput - isNot?: WildberriesSupplyWhereInput - } - - export type WildberriesSupplyCardCountOrderByAggregateInput = { - id?: SortOrder - supplyId?: SortOrder - nmId?: SortOrder - vendorCode?: SortOrder - title?: SortOrder - brand?: SortOrder - price?: SortOrder - discountedPrice?: SortOrder - quantity?: SortOrder - selectedQuantity?: SortOrder - selectedMarket?: SortOrder - selectedPlace?: SortOrder - sellerName?: SortOrder - sellerPhone?: SortOrder - deliveryDate?: SortOrder - mediaFiles?: SortOrder - selectedServices?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type WildberriesSupplyCardAvgOrderByAggregateInput = { - price?: SortOrder - discountedPrice?: SortOrder - quantity?: SortOrder - selectedQuantity?: SortOrder - } - - export type WildberriesSupplyCardMaxOrderByAggregateInput = { - id?: SortOrder - supplyId?: SortOrder - nmId?: SortOrder - vendorCode?: SortOrder - title?: SortOrder - brand?: SortOrder - price?: SortOrder - discountedPrice?: SortOrder - quantity?: SortOrder - selectedQuantity?: SortOrder - selectedMarket?: SortOrder - selectedPlace?: SortOrder - sellerName?: SortOrder - sellerPhone?: SortOrder - deliveryDate?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type WildberriesSupplyCardMinOrderByAggregateInput = { - id?: SortOrder - supplyId?: SortOrder - nmId?: SortOrder - vendorCode?: SortOrder - title?: SortOrder - brand?: SortOrder - price?: SortOrder - discountedPrice?: SortOrder - quantity?: SortOrder - selectedQuantity?: SortOrder - selectedMarket?: SortOrder - selectedPlace?: SortOrder - sellerName?: SortOrder - sellerPhone?: SortOrder - deliveryDate?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type WildberriesSupplyCardSumOrderByAggregateInput = { - price?: SortOrder - discountedPrice?: SortOrder - quantity?: SortOrder - selectedQuantity?: SortOrder - } - - export type FloatFilter<$PrismaModel = never> = { - equals?: number | FloatFieldRefInput<$PrismaModel> - in?: number[] | ListFloatFieldRefInput<$PrismaModel> - notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> - lt?: number | FloatFieldRefInput<$PrismaModel> - lte?: number | FloatFieldRefInput<$PrismaModel> - gt?: number | FloatFieldRefInput<$PrismaModel> - gte?: number | FloatFieldRefInput<$PrismaModel> - not?: NestedFloatFilter<$PrismaModel> | number - } - - export type LogisticsCountOrderByAggregateInput = { - id?: SortOrder - fromLocation?: SortOrder - toLocation?: SortOrder - priceUnder1m3?: SortOrder - priceOver1m3?: SortOrder - description?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - } - - export type LogisticsAvgOrderByAggregateInput = { - priceUnder1m3?: SortOrder - priceOver1m3?: SortOrder - } - - export type LogisticsMaxOrderByAggregateInput = { - id?: SortOrder - fromLocation?: SortOrder - toLocation?: SortOrder - priceUnder1m3?: SortOrder - priceOver1m3?: SortOrder - description?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - } - - export type LogisticsMinOrderByAggregateInput = { - id?: SortOrder - fromLocation?: SortOrder - toLocation?: SortOrder - priceUnder1m3?: SortOrder - priceOver1m3?: SortOrder - description?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - } - - export type LogisticsSumOrderByAggregateInput = { - priceUnder1m3?: SortOrder - priceOver1m3?: SortOrder - } - - export type FloatWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | FloatFieldRefInput<$PrismaModel> - in?: number[] | ListFloatFieldRefInput<$PrismaModel> - notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> - lt?: number | FloatFieldRefInput<$PrismaModel> - lte?: number | FloatFieldRefInput<$PrismaModel> - gt?: number | FloatFieldRefInput<$PrismaModel> - gte?: number | FloatFieldRefInput<$PrismaModel> - not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number - _count?: NestedIntFilter<$PrismaModel> - _avg?: NestedFloatFilter<$PrismaModel> - _sum?: NestedFloatFilter<$PrismaModel> - _min?: NestedFloatFilter<$PrismaModel> - _max?: NestedFloatFilter<$PrismaModel> - } - - export type EnumSupplyOrderStatusFilter<$PrismaModel = never> = { - equals?: $Enums.SupplyOrderStatus | EnumSupplyOrderStatusFieldRefInput<$PrismaModel> - in?: $Enums.SupplyOrderStatus[] | ListEnumSupplyOrderStatusFieldRefInput<$PrismaModel> - notIn?: $Enums.SupplyOrderStatus[] | ListEnumSupplyOrderStatusFieldRefInput<$PrismaModel> - not?: NestedEnumSupplyOrderStatusFilter<$PrismaModel> | $Enums.SupplyOrderStatus - } - - export type SupplyOrderCountOrderByAggregateInput = { - id?: SortOrder - partnerId?: SortOrder - deliveryDate?: SortOrder - status?: SortOrder - totalAmount?: SortOrder - totalItems?: SortOrder - fulfillmentCenterId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - } - - export type SupplyOrderAvgOrderByAggregateInput = { - totalAmount?: SortOrder - totalItems?: SortOrder - } - - export type SupplyOrderMaxOrderByAggregateInput = { - id?: SortOrder - partnerId?: SortOrder - deliveryDate?: SortOrder - status?: SortOrder - totalAmount?: SortOrder - totalItems?: SortOrder - fulfillmentCenterId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - } - - export type SupplyOrderMinOrderByAggregateInput = { - id?: SortOrder - partnerId?: SortOrder - deliveryDate?: SortOrder - status?: SortOrder - totalAmount?: SortOrder - totalItems?: SortOrder - fulfillmentCenterId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - organizationId?: SortOrder - } - - export type SupplyOrderSumOrderByAggregateInput = { - totalAmount?: SortOrder - totalItems?: SortOrder - } - - export type EnumSupplyOrderStatusWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.SupplyOrderStatus | EnumSupplyOrderStatusFieldRefInput<$PrismaModel> - in?: $Enums.SupplyOrderStatus[] | ListEnumSupplyOrderStatusFieldRefInput<$PrismaModel> - notIn?: $Enums.SupplyOrderStatus[] | ListEnumSupplyOrderStatusFieldRefInput<$PrismaModel> - not?: NestedEnumSupplyOrderStatusWithAggregatesFilter<$PrismaModel> | $Enums.SupplyOrderStatus - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedEnumSupplyOrderStatusFilter<$PrismaModel> - _max?: NestedEnumSupplyOrderStatusFilter<$PrismaModel> - } - - export type SupplyOrderScalarRelationFilter = { - is?: SupplyOrderWhereInput - isNot?: SupplyOrderWhereInput - } - - export type SupplyOrderItemSupplyOrderIdProductIdCompoundUniqueInput = { - supplyOrderId: string - productId: string - } - - export type SupplyOrderItemCountOrderByAggregateInput = { - id?: SortOrder - supplyOrderId?: SortOrder - productId?: SortOrder - quantity?: SortOrder - price?: SortOrder - totalPrice?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type SupplyOrderItemAvgOrderByAggregateInput = { - quantity?: SortOrder - price?: SortOrder - totalPrice?: SortOrder - } - - export type SupplyOrderItemMaxOrderByAggregateInput = { - id?: SortOrder - supplyOrderId?: SortOrder - productId?: SortOrder - quantity?: SortOrder - price?: SortOrder - totalPrice?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type SupplyOrderItemMinOrderByAggregateInput = { - id?: SortOrder - supplyOrderId?: SortOrder - productId?: SortOrder - quantity?: SortOrder - price?: SortOrder - totalPrice?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type SupplyOrderItemSumOrderByAggregateInput = { - quantity?: SortOrder - price?: SortOrder - totalPrice?: SortOrder - } - - export type SupplySupplierCountOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - contactName?: SortOrder - phone?: SortOrder - market?: SortOrder - address?: SortOrder - place?: SortOrder - telegram?: SortOrder - organizationId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type SupplySupplierMaxOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - contactName?: SortOrder - phone?: SortOrder - market?: SortOrder - address?: SortOrder - place?: SortOrder - telegram?: SortOrder - organizationId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type SupplySupplierMinOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - contactName?: SortOrder - phone?: SortOrder - market?: SortOrder - address?: SortOrder - place?: SortOrder - telegram?: SortOrder - organizationId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type MessageCreateNestedManyWithoutSenderInput = { - create?: XOR | MessageCreateWithoutSenderInput[] | MessageUncheckedCreateWithoutSenderInput[] - connectOrCreate?: MessageCreateOrConnectWithoutSenderInput | MessageCreateOrConnectWithoutSenderInput[] - createMany?: MessageCreateManySenderInputEnvelope - connect?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - } - - export type SmsCodeCreateNestedManyWithoutUserInput = { - create?: XOR | SmsCodeCreateWithoutUserInput[] | SmsCodeUncheckedCreateWithoutUserInput[] - connectOrCreate?: SmsCodeCreateOrConnectWithoutUserInput | SmsCodeCreateOrConnectWithoutUserInput[] - createMany?: SmsCodeCreateManyUserInputEnvelope - connect?: SmsCodeWhereUniqueInput | SmsCodeWhereUniqueInput[] - } - - export type OrganizationCreateNestedOneWithoutUsersInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutUsersInput - connect?: OrganizationWhereUniqueInput - } - - export type MessageUncheckedCreateNestedManyWithoutSenderInput = { - create?: XOR | MessageCreateWithoutSenderInput[] | MessageUncheckedCreateWithoutSenderInput[] - connectOrCreate?: MessageCreateOrConnectWithoutSenderInput | MessageCreateOrConnectWithoutSenderInput[] - createMany?: MessageCreateManySenderInputEnvelope - connect?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - } - - export type SmsCodeUncheckedCreateNestedManyWithoutUserInput = { - create?: XOR | SmsCodeCreateWithoutUserInput[] | SmsCodeUncheckedCreateWithoutUserInput[] - connectOrCreate?: SmsCodeCreateOrConnectWithoutUserInput | SmsCodeCreateOrConnectWithoutUserInput[] - createMany?: SmsCodeCreateManyUserInputEnvelope - connect?: SmsCodeWhereUniqueInput | SmsCodeWhereUniqueInput[] - } - - export type StringFieldUpdateOperationsInput = { - set?: string - } - - export type NullableStringFieldUpdateOperationsInput = { - set?: string | null - } - - export type DateTimeFieldUpdateOperationsInput = { - set?: Date | string - } - - export type MessageUpdateManyWithoutSenderNestedInput = { - create?: XOR | MessageCreateWithoutSenderInput[] | MessageUncheckedCreateWithoutSenderInput[] - connectOrCreate?: MessageCreateOrConnectWithoutSenderInput | MessageCreateOrConnectWithoutSenderInput[] - upsert?: MessageUpsertWithWhereUniqueWithoutSenderInput | MessageUpsertWithWhereUniqueWithoutSenderInput[] - createMany?: MessageCreateManySenderInputEnvelope - set?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - disconnect?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - delete?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - connect?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - update?: MessageUpdateWithWhereUniqueWithoutSenderInput | MessageUpdateWithWhereUniqueWithoutSenderInput[] - updateMany?: MessageUpdateManyWithWhereWithoutSenderInput | MessageUpdateManyWithWhereWithoutSenderInput[] - deleteMany?: MessageScalarWhereInput | MessageScalarWhereInput[] - } - - export type SmsCodeUpdateManyWithoutUserNestedInput = { - create?: XOR | SmsCodeCreateWithoutUserInput[] | SmsCodeUncheckedCreateWithoutUserInput[] - connectOrCreate?: SmsCodeCreateOrConnectWithoutUserInput | SmsCodeCreateOrConnectWithoutUserInput[] - upsert?: SmsCodeUpsertWithWhereUniqueWithoutUserInput | SmsCodeUpsertWithWhereUniqueWithoutUserInput[] - createMany?: SmsCodeCreateManyUserInputEnvelope - set?: SmsCodeWhereUniqueInput | SmsCodeWhereUniqueInput[] - disconnect?: SmsCodeWhereUniqueInput | SmsCodeWhereUniqueInput[] - delete?: SmsCodeWhereUniqueInput | SmsCodeWhereUniqueInput[] - connect?: SmsCodeWhereUniqueInput | SmsCodeWhereUniqueInput[] - update?: SmsCodeUpdateWithWhereUniqueWithoutUserInput | SmsCodeUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: SmsCodeUpdateManyWithWhereWithoutUserInput | SmsCodeUpdateManyWithWhereWithoutUserInput[] - deleteMany?: SmsCodeScalarWhereInput | SmsCodeScalarWhereInput[] - } - - export type OrganizationUpdateOneWithoutUsersNestedInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutUsersInput - upsert?: OrganizationUpsertWithoutUsersInput - disconnect?: OrganizationWhereInput | boolean - delete?: OrganizationWhereInput | boolean - connect?: OrganizationWhereUniqueInput - update?: XOR, OrganizationUncheckedUpdateWithoutUsersInput> - } - - export type MessageUncheckedUpdateManyWithoutSenderNestedInput = { - create?: XOR | MessageCreateWithoutSenderInput[] | MessageUncheckedCreateWithoutSenderInput[] - connectOrCreate?: MessageCreateOrConnectWithoutSenderInput | MessageCreateOrConnectWithoutSenderInput[] - upsert?: MessageUpsertWithWhereUniqueWithoutSenderInput | MessageUpsertWithWhereUniqueWithoutSenderInput[] - createMany?: MessageCreateManySenderInputEnvelope - set?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - disconnect?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - delete?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - connect?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - update?: MessageUpdateWithWhereUniqueWithoutSenderInput | MessageUpdateWithWhereUniqueWithoutSenderInput[] - updateMany?: MessageUpdateManyWithWhereWithoutSenderInput | MessageUpdateManyWithWhereWithoutSenderInput[] - deleteMany?: MessageScalarWhereInput | MessageScalarWhereInput[] - } - - export type SmsCodeUncheckedUpdateManyWithoutUserNestedInput = { - create?: XOR | SmsCodeCreateWithoutUserInput[] | SmsCodeUncheckedCreateWithoutUserInput[] - connectOrCreate?: SmsCodeCreateOrConnectWithoutUserInput | SmsCodeCreateOrConnectWithoutUserInput[] - upsert?: SmsCodeUpsertWithWhereUniqueWithoutUserInput | SmsCodeUpsertWithWhereUniqueWithoutUserInput[] - createMany?: SmsCodeCreateManyUserInputEnvelope - set?: SmsCodeWhereUniqueInput | SmsCodeWhereUniqueInput[] - disconnect?: SmsCodeWhereUniqueInput | SmsCodeWhereUniqueInput[] - delete?: SmsCodeWhereUniqueInput | SmsCodeWhereUniqueInput[] - connect?: SmsCodeWhereUniqueInput | SmsCodeWhereUniqueInput[] - update?: SmsCodeUpdateWithWhereUniqueWithoutUserInput | SmsCodeUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: SmsCodeUpdateManyWithWhereWithoutUserInput | SmsCodeUpdateManyWithWhereWithoutUserInput[] - deleteMany?: SmsCodeScalarWhereInput | SmsCodeScalarWhereInput[] - } - - export type BoolFieldUpdateOperationsInput = { - set?: boolean - } - - export type NullableDateTimeFieldUpdateOperationsInput = { - set?: Date | string | null - } - - export type UserCreateNestedOneWithoutSmsCodesInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutSmsCodesInput - connect?: UserWhereUniqueInput - } - - export type IntFieldUpdateOperationsInput = { - set?: number - increment?: number - decrement?: number - multiply?: number - divide?: number - } - - export type UserUpdateOneWithoutSmsCodesNestedInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutSmsCodesInput - upsert?: UserUpsertWithoutSmsCodesInput - disconnect?: UserWhereInput | boolean - delete?: UserWhereInput | boolean - connect?: UserWhereUniqueInput - update?: XOR, UserUncheckedUpdateWithoutSmsCodesInput> - } - - export type ApiKeyCreateNestedManyWithoutOrganizationInput = { - create?: XOR | ApiKeyCreateWithoutOrganizationInput[] | ApiKeyUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: ApiKeyCreateOrConnectWithoutOrganizationInput | ApiKeyCreateOrConnectWithoutOrganizationInput[] - createMany?: ApiKeyCreateManyOrganizationInputEnvelope - connect?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[] - } - - export type CartCreateNestedOneWithoutOrganizationInput = { - create?: XOR - connectOrCreate?: CartCreateOrConnectWithoutOrganizationInput - connect?: CartWhereUniqueInput - } - - export type CounterpartyCreateNestedManyWithoutCounterpartyInput = { - create?: XOR | CounterpartyCreateWithoutCounterpartyInput[] | CounterpartyUncheckedCreateWithoutCounterpartyInput[] - connectOrCreate?: CounterpartyCreateOrConnectWithoutCounterpartyInput | CounterpartyCreateOrConnectWithoutCounterpartyInput[] - createMany?: CounterpartyCreateManyCounterpartyInputEnvelope - connect?: CounterpartyWhereUniqueInput | CounterpartyWhereUniqueInput[] - } - - export type CounterpartyCreateNestedManyWithoutOrganizationInput = { - create?: XOR | CounterpartyCreateWithoutOrganizationInput[] | CounterpartyUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: CounterpartyCreateOrConnectWithoutOrganizationInput | CounterpartyCreateOrConnectWithoutOrganizationInput[] - createMany?: CounterpartyCreateManyOrganizationInputEnvelope - connect?: CounterpartyWhereUniqueInput | CounterpartyWhereUniqueInput[] - } - - export type CounterpartyRequestCreateNestedManyWithoutReceiverInput = { - create?: XOR | CounterpartyRequestCreateWithoutReceiverInput[] | CounterpartyRequestUncheckedCreateWithoutReceiverInput[] - connectOrCreate?: CounterpartyRequestCreateOrConnectWithoutReceiverInput | CounterpartyRequestCreateOrConnectWithoutReceiverInput[] - createMany?: CounterpartyRequestCreateManyReceiverInputEnvelope - connect?: CounterpartyRequestWhereUniqueInput | CounterpartyRequestWhereUniqueInput[] - } - - export type CounterpartyRequestCreateNestedManyWithoutSenderInput = { - create?: XOR | CounterpartyRequestCreateWithoutSenderInput[] | CounterpartyRequestUncheckedCreateWithoutSenderInput[] - connectOrCreate?: CounterpartyRequestCreateOrConnectWithoutSenderInput | CounterpartyRequestCreateOrConnectWithoutSenderInput[] - createMany?: CounterpartyRequestCreateManySenderInputEnvelope - connect?: CounterpartyRequestWhereUniqueInput | CounterpartyRequestWhereUniqueInput[] - } - - export type EmployeeCreateNestedManyWithoutOrganizationInput = { - create?: XOR | EmployeeCreateWithoutOrganizationInput[] | EmployeeUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: EmployeeCreateOrConnectWithoutOrganizationInput | EmployeeCreateOrConnectWithoutOrganizationInput[] - createMany?: EmployeeCreateManyOrganizationInputEnvelope - connect?: EmployeeWhereUniqueInput | EmployeeWhereUniqueInput[] - } - - export type FavoritesCreateNestedManyWithoutOrganizationInput = { - create?: XOR | FavoritesCreateWithoutOrganizationInput[] | FavoritesUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: FavoritesCreateOrConnectWithoutOrganizationInput | FavoritesCreateOrConnectWithoutOrganizationInput[] - createMany?: FavoritesCreateManyOrganizationInputEnvelope - connect?: FavoritesWhereUniqueInput | FavoritesWhereUniqueInput[] - } - - export type MessageCreateNestedManyWithoutReceiverOrganizationInput = { - create?: XOR | MessageCreateWithoutReceiverOrganizationInput[] | MessageUncheckedCreateWithoutReceiverOrganizationInput[] - connectOrCreate?: MessageCreateOrConnectWithoutReceiverOrganizationInput | MessageCreateOrConnectWithoutReceiverOrganizationInput[] - createMany?: MessageCreateManyReceiverOrganizationInputEnvelope - connect?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - } - - export type MessageCreateNestedManyWithoutSenderOrganizationInput = { - create?: XOR | MessageCreateWithoutSenderOrganizationInput[] | MessageUncheckedCreateWithoutSenderOrganizationInput[] - connectOrCreate?: MessageCreateOrConnectWithoutSenderOrganizationInput | MessageCreateOrConnectWithoutSenderOrganizationInput[] - createMany?: MessageCreateManySenderOrganizationInputEnvelope - connect?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - } - - export type ProductCreateNestedManyWithoutOrganizationInput = { - create?: XOR | ProductCreateWithoutOrganizationInput[] | ProductUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: ProductCreateOrConnectWithoutOrganizationInput | ProductCreateOrConnectWithoutOrganizationInput[] - createMany?: ProductCreateManyOrganizationInputEnvelope - connect?: ProductWhereUniqueInput | ProductWhereUniqueInput[] - } - - export type ServiceCreateNestedManyWithoutOrganizationInput = { - create?: XOR | ServiceCreateWithoutOrganizationInput[] | ServiceUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: ServiceCreateOrConnectWithoutOrganizationInput | ServiceCreateOrConnectWithoutOrganizationInput[] - createMany?: ServiceCreateManyOrganizationInputEnvelope - connect?: ServiceWhereUniqueInput | ServiceWhereUniqueInput[] - } - - export type SupplyCreateNestedManyWithoutOrganizationInput = { - create?: XOR | SupplyCreateWithoutOrganizationInput[] | SupplyUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: SupplyCreateOrConnectWithoutOrganizationInput | SupplyCreateOrConnectWithoutOrganizationInput[] - createMany?: SupplyCreateManyOrganizationInputEnvelope - connect?: SupplyWhereUniqueInput | SupplyWhereUniqueInput[] - } - - export type UserCreateNestedManyWithoutOrganizationInput = { - create?: XOR | UserCreateWithoutOrganizationInput[] | UserUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: UserCreateOrConnectWithoutOrganizationInput | UserCreateOrConnectWithoutOrganizationInput[] - createMany?: UserCreateManyOrganizationInputEnvelope - connect?: UserWhereUniqueInput | UserWhereUniqueInput[] - } - - export type LogisticsCreateNestedManyWithoutOrganizationInput = { - create?: XOR | LogisticsCreateWithoutOrganizationInput[] | LogisticsUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: LogisticsCreateOrConnectWithoutOrganizationInput | LogisticsCreateOrConnectWithoutOrganizationInput[] - createMany?: LogisticsCreateManyOrganizationInputEnvelope - connect?: LogisticsWhereUniqueInput | LogisticsWhereUniqueInput[] - } - - export type SupplyOrderCreateNestedManyWithoutOrganizationInput = { - create?: XOR | SupplyOrderCreateWithoutOrganizationInput[] | SupplyOrderUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: SupplyOrderCreateOrConnectWithoutOrganizationInput | SupplyOrderCreateOrConnectWithoutOrganizationInput[] - createMany?: SupplyOrderCreateManyOrganizationInputEnvelope - connect?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - } - - export type SupplyOrderCreateNestedManyWithoutPartnerInput = { - create?: XOR | SupplyOrderCreateWithoutPartnerInput[] | SupplyOrderUncheckedCreateWithoutPartnerInput[] - connectOrCreate?: SupplyOrderCreateOrConnectWithoutPartnerInput | SupplyOrderCreateOrConnectWithoutPartnerInput[] - createMany?: SupplyOrderCreateManyPartnerInputEnvelope - connect?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - } - - export type SupplyOrderCreateNestedManyWithoutFulfillmentCenterInput = { - create?: XOR | SupplyOrderCreateWithoutFulfillmentCenterInput[] | SupplyOrderUncheckedCreateWithoutFulfillmentCenterInput[] - connectOrCreate?: SupplyOrderCreateOrConnectWithoutFulfillmentCenterInput | SupplyOrderCreateOrConnectWithoutFulfillmentCenterInput[] - createMany?: SupplyOrderCreateManyFulfillmentCenterInputEnvelope - connect?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - } - - export type WildberriesSupplyCreateNestedManyWithoutOrganizationInput = { - create?: XOR | WildberriesSupplyCreateWithoutOrganizationInput[] | WildberriesSupplyUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: WildberriesSupplyCreateOrConnectWithoutOrganizationInput | WildberriesSupplyCreateOrConnectWithoutOrganizationInput[] - createMany?: WildberriesSupplyCreateManyOrganizationInputEnvelope - connect?: WildberriesSupplyWhereUniqueInput | WildberriesSupplyWhereUniqueInput[] - } - - export type SupplySupplierCreateNestedManyWithoutOrganizationInput = { - create?: XOR | SupplySupplierCreateWithoutOrganizationInput[] | SupplySupplierUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: SupplySupplierCreateOrConnectWithoutOrganizationInput | SupplySupplierCreateOrConnectWithoutOrganizationInput[] - createMany?: SupplySupplierCreateManyOrganizationInputEnvelope - connect?: SupplySupplierWhereUniqueInput | SupplySupplierWhereUniqueInput[] - } - - export type ApiKeyUncheckedCreateNestedManyWithoutOrganizationInput = { - create?: XOR | ApiKeyCreateWithoutOrganizationInput[] | ApiKeyUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: ApiKeyCreateOrConnectWithoutOrganizationInput | ApiKeyCreateOrConnectWithoutOrganizationInput[] - createMany?: ApiKeyCreateManyOrganizationInputEnvelope - connect?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[] - } - - export type CartUncheckedCreateNestedOneWithoutOrganizationInput = { - create?: XOR - connectOrCreate?: CartCreateOrConnectWithoutOrganizationInput - connect?: CartWhereUniqueInput - } - - export type CounterpartyUncheckedCreateNestedManyWithoutCounterpartyInput = { - create?: XOR | CounterpartyCreateWithoutCounterpartyInput[] | CounterpartyUncheckedCreateWithoutCounterpartyInput[] - connectOrCreate?: CounterpartyCreateOrConnectWithoutCounterpartyInput | CounterpartyCreateOrConnectWithoutCounterpartyInput[] - createMany?: CounterpartyCreateManyCounterpartyInputEnvelope - connect?: CounterpartyWhereUniqueInput | CounterpartyWhereUniqueInput[] - } - - export type CounterpartyUncheckedCreateNestedManyWithoutOrganizationInput = { - create?: XOR | CounterpartyCreateWithoutOrganizationInput[] | CounterpartyUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: CounterpartyCreateOrConnectWithoutOrganizationInput | CounterpartyCreateOrConnectWithoutOrganizationInput[] - createMany?: CounterpartyCreateManyOrganizationInputEnvelope - connect?: CounterpartyWhereUniqueInput | CounterpartyWhereUniqueInput[] - } - - export type CounterpartyRequestUncheckedCreateNestedManyWithoutReceiverInput = { - create?: XOR | CounterpartyRequestCreateWithoutReceiverInput[] | CounterpartyRequestUncheckedCreateWithoutReceiverInput[] - connectOrCreate?: CounterpartyRequestCreateOrConnectWithoutReceiverInput | CounterpartyRequestCreateOrConnectWithoutReceiverInput[] - createMany?: CounterpartyRequestCreateManyReceiverInputEnvelope - connect?: CounterpartyRequestWhereUniqueInput | CounterpartyRequestWhereUniqueInput[] - } - - export type CounterpartyRequestUncheckedCreateNestedManyWithoutSenderInput = { - create?: XOR | CounterpartyRequestCreateWithoutSenderInput[] | CounterpartyRequestUncheckedCreateWithoutSenderInput[] - connectOrCreate?: CounterpartyRequestCreateOrConnectWithoutSenderInput | CounterpartyRequestCreateOrConnectWithoutSenderInput[] - createMany?: CounterpartyRequestCreateManySenderInputEnvelope - connect?: CounterpartyRequestWhereUniqueInput | CounterpartyRequestWhereUniqueInput[] - } - - export type EmployeeUncheckedCreateNestedManyWithoutOrganizationInput = { - create?: XOR | EmployeeCreateWithoutOrganizationInput[] | EmployeeUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: EmployeeCreateOrConnectWithoutOrganizationInput | EmployeeCreateOrConnectWithoutOrganizationInput[] - createMany?: EmployeeCreateManyOrganizationInputEnvelope - connect?: EmployeeWhereUniqueInput | EmployeeWhereUniqueInput[] - } - - export type FavoritesUncheckedCreateNestedManyWithoutOrganizationInput = { - create?: XOR | FavoritesCreateWithoutOrganizationInput[] | FavoritesUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: FavoritesCreateOrConnectWithoutOrganizationInput | FavoritesCreateOrConnectWithoutOrganizationInput[] - createMany?: FavoritesCreateManyOrganizationInputEnvelope - connect?: FavoritesWhereUniqueInput | FavoritesWhereUniqueInput[] - } - - export type MessageUncheckedCreateNestedManyWithoutReceiverOrganizationInput = { - create?: XOR | MessageCreateWithoutReceiverOrganizationInput[] | MessageUncheckedCreateWithoutReceiverOrganizationInput[] - connectOrCreate?: MessageCreateOrConnectWithoutReceiverOrganizationInput | MessageCreateOrConnectWithoutReceiverOrganizationInput[] - createMany?: MessageCreateManyReceiverOrganizationInputEnvelope - connect?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - } - - export type MessageUncheckedCreateNestedManyWithoutSenderOrganizationInput = { - create?: XOR | MessageCreateWithoutSenderOrganizationInput[] | MessageUncheckedCreateWithoutSenderOrganizationInput[] - connectOrCreate?: MessageCreateOrConnectWithoutSenderOrganizationInput | MessageCreateOrConnectWithoutSenderOrganizationInput[] - createMany?: MessageCreateManySenderOrganizationInputEnvelope - connect?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - } - - export type ProductUncheckedCreateNestedManyWithoutOrganizationInput = { - create?: XOR | ProductCreateWithoutOrganizationInput[] | ProductUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: ProductCreateOrConnectWithoutOrganizationInput | ProductCreateOrConnectWithoutOrganizationInput[] - createMany?: ProductCreateManyOrganizationInputEnvelope - connect?: ProductWhereUniqueInput | ProductWhereUniqueInput[] - } - - export type ServiceUncheckedCreateNestedManyWithoutOrganizationInput = { - create?: XOR | ServiceCreateWithoutOrganizationInput[] | ServiceUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: ServiceCreateOrConnectWithoutOrganizationInput | ServiceCreateOrConnectWithoutOrganizationInput[] - createMany?: ServiceCreateManyOrganizationInputEnvelope - connect?: ServiceWhereUniqueInput | ServiceWhereUniqueInput[] - } - - export type SupplyUncheckedCreateNestedManyWithoutOrganizationInput = { - create?: XOR | SupplyCreateWithoutOrganizationInput[] | SupplyUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: SupplyCreateOrConnectWithoutOrganizationInput | SupplyCreateOrConnectWithoutOrganizationInput[] - createMany?: SupplyCreateManyOrganizationInputEnvelope - connect?: SupplyWhereUniqueInput | SupplyWhereUniqueInput[] - } - - export type UserUncheckedCreateNestedManyWithoutOrganizationInput = { - create?: XOR | UserCreateWithoutOrganizationInput[] | UserUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: UserCreateOrConnectWithoutOrganizationInput | UserCreateOrConnectWithoutOrganizationInput[] - createMany?: UserCreateManyOrganizationInputEnvelope - connect?: UserWhereUniqueInput | UserWhereUniqueInput[] - } - - export type LogisticsUncheckedCreateNestedManyWithoutOrganizationInput = { - create?: XOR | LogisticsCreateWithoutOrganizationInput[] | LogisticsUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: LogisticsCreateOrConnectWithoutOrganizationInput | LogisticsCreateOrConnectWithoutOrganizationInput[] - createMany?: LogisticsCreateManyOrganizationInputEnvelope - connect?: LogisticsWhereUniqueInput | LogisticsWhereUniqueInput[] - } - - export type SupplyOrderUncheckedCreateNestedManyWithoutOrganizationInput = { - create?: XOR | SupplyOrderCreateWithoutOrganizationInput[] | SupplyOrderUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: SupplyOrderCreateOrConnectWithoutOrganizationInput | SupplyOrderCreateOrConnectWithoutOrganizationInput[] - createMany?: SupplyOrderCreateManyOrganizationInputEnvelope - connect?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - } - - export type SupplyOrderUncheckedCreateNestedManyWithoutPartnerInput = { - create?: XOR | SupplyOrderCreateWithoutPartnerInput[] | SupplyOrderUncheckedCreateWithoutPartnerInput[] - connectOrCreate?: SupplyOrderCreateOrConnectWithoutPartnerInput | SupplyOrderCreateOrConnectWithoutPartnerInput[] - createMany?: SupplyOrderCreateManyPartnerInputEnvelope - connect?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - } - - export type SupplyOrderUncheckedCreateNestedManyWithoutFulfillmentCenterInput = { - create?: XOR | SupplyOrderCreateWithoutFulfillmentCenterInput[] | SupplyOrderUncheckedCreateWithoutFulfillmentCenterInput[] - connectOrCreate?: SupplyOrderCreateOrConnectWithoutFulfillmentCenterInput | SupplyOrderCreateOrConnectWithoutFulfillmentCenterInput[] - createMany?: SupplyOrderCreateManyFulfillmentCenterInputEnvelope - connect?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - } - - export type WildberriesSupplyUncheckedCreateNestedManyWithoutOrganizationInput = { - create?: XOR | WildberriesSupplyCreateWithoutOrganizationInput[] | WildberriesSupplyUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: WildberriesSupplyCreateOrConnectWithoutOrganizationInput | WildberriesSupplyCreateOrConnectWithoutOrganizationInput[] - createMany?: WildberriesSupplyCreateManyOrganizationInputEnvelope - connect?: WildberriesSupplyWhereUniqueInput | WildberriesSupplyWhereUniqueInput[] - } - - export type SupplySupplierUncheckedCreateNestedManyWithoutOrganizationInput = { - create?: XOR | SupplySupplierCreateWithoutOrganizationInput[] | SupplySupplierUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: SupplySupplierCreateOrConnectWithoutOrganizationInput | SupplySupplierCreateOrConnectWithoutOrganizationInput[] - createMany?: SupplySupplierCreateManyOrganizationInputEnvelope - connect?: SupplySupplierWhereUniqueInput | SupplySupplierWhereUniqueInput[] - } - - export type EnumOrganizationTypeFieldUpdateOperationsInput = { - set?: $Enums.OrganizationType - } - - export type NullableIntFieldUpdateOperationsInput = { - set?: number | null - increment?: number - decrement?: number - multiply?: number - divide?: number - } - - export type NullableBigIntFieldUpdateOperationsInput = { - set?: bigint | number | null - increment?: bigint | number - decrement?: bigint | number - multiply?: bigint | number - divide?: bigint | number - } - - export type ApiKeyUpdateManyWithoutOrganizationNestedInput = { - create?: XOR | ApiKeyCreateWithoutOrganizationInput[] | ApiKeyUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: ApiKeyCreateOrConnectWithoutOrganizationInput | ApiKeyCreateOrConnectWithoutOrganizationInput[] - upsert?: ApiKeyUpsertWithWhereUniqueWithoutOrganizationInput | ApiKeyUpsertWithWhereUniqueWithoutOrganizationInput[] - createMany?: ApiKeyCreateManyOrganizationInputEnvelope - set?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[] - disconnect?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[] - delete?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[] - connect?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[] - update?: ApiKeyUpdateWithWhereUniqueWithoutOrganizationInput | ApiKeyUpdateWithWhereUniqueWithoutOrganizationInput[] - updateMany?: ApiKeyUpdateManyWithWhereWithoutOrganizationInput | ApiKeyUpdateManyWithWhereWithoutOrganizationInput[] - deleteMany?: ApiKeyScalarWhereInput | ApiKeyScalarWhereInput[] - } - - export type CartUpdateOneWithoutOrganizationNestedInput = { - create?: XOR - connectOrCreate?: CartCreateOrConnectWithoutOrganizationInput - upsert?: CartUpsertWithoutOrganizationInput - disconnect?: CartWhereInput | boolean - delete?: CartWhereInput | boolean - connect?: CartWhereUniqueInput - update?: XOR, CartUncheckedUpdateWithoutOrganizationInput> - } - - export type CounterpartyUpdateManyWithoutCounterpartyNestedInput = { - create?: XOR | CounterpartyCreateWithoutCounterpartyInput[] | CounterpartyUncheckedCreateWithoutCounterpartyInput[] - connectOrCreate?: CounterpartyCreateOrConnectWithoutCounterpartyInput | CounterpartyCreateOrConnectWithoutCounterpartyInput[] - upsert?: CounterpartyUpsertWithWhereUniqueWithoutCounterpartyInput | CounterpartyUpsertWithWhereUniqueWithoutCounterpartyInput[] - createMany?: CounterpartyCreateManyCounterpartyInputEnvelope - set?: CounterpartyWhereUniqueInput | CounterpartyWhereUniqueInput[] - disconnect?: CounterpartyWhereUniqueInput | CounterpartyWhereUniqueInput[] - delete?: CounterpartyWhereUniqueInput | CounterpartyWhereUniqueInput[] - connect?: CounterpartyWhereUniqueInput | CounterpartyWhereUniqueInput[] - update?: CounterpartyUpdateWithWhereUniqueWithoutCounterpartyInput | CounterpartyUpdateWithWhereUniqueWithoutCounterpartyInput[] - updateMany?: CounterpartyUpdateManyWithWhereWithoutCounterpartyInput | CounterpartyUpdateManyWithWhereWithoutCounterpartyInput[] - deleteMany?: CounterpartyScalarWhereInput | CounterpartyScalarWhereInput[] - } - - export type CounterpartyUpdateManyWithoutOrganizationNestedInput = { - create?: XOR | CounterpartyCreateWithoutOrganizationInput[] | CounterpartyUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: CounterpartyCreateOrConnectWithoutOrganizationInput | CounterpartyCreateOrConnectWithoutOrganizationInput[] - upsert?: CounterpartyUpsertWithWhereUniqueWithoutOrganizationInput | CounterpartyUpsertWithWhereUniqueWithoutOrganizationInput[] - createMany?: CounterpartyCreateManyOrganizationInputEnvelope - set?: CounterpartyWhereUniqueInput | CounterpartyWhereUniqueInput[] - disconnect?: CounterpartyWhereUniqueInput | CounterpartyWhereUniqueInput[] - delete?: CounterpartyWhereUniqueInput | CounterpartyWhereUniqueInput[] - connect?: CounterpartyWhereUniqueInput | CounterpartyWhereUniqueInput[] - update?: CounterpartyUpdateWithWhereUniqueWithoutOrganizationInput | CounterpartyUpdateWithWhereUniqueWithoutOrganizationInput[] - updateMany?: CounterpartyUpdateManyWithWhereWithoutOrganizationInput | CounterpartyUpdateManyWithWhereWithoutOrganizationInput[] - deleteMany?: CounterpartyScalarWhereInput | CounterpartyScalarWhereInput[] - } - - export type CounterpartyRequestUpdateManyWithoutReceiverNestedInput = { - create?: XOR | CounterpartyRequestCreateWithoutReceiverInput[] | CounterpartyRequestUncheckedCreateWithoutReceiverInput[] - connectOrCreate?: CounterpartyRequestCreateOrConnectWithoutReceiverInput | CounterpartyRequestCreateOrConnectWithoutReceiverInput[] - upsert?: CounterpartyRequestUpsertWithWhereUniqueWithoutReceiverInput | CounterpartyRequestUpsertWithWhereUniqueWithoutReceiverInput[] - createMany?: CounterpartyRequestCreateManyReceiverInputEnvelope - set?: CounterpartyRequestWhereUniqueInput | CounterpartyRequestWhereUniqueInput[] - disconnect?: CounterpartyRequestWhereUniqueInput | CounterpartyRequestWhereUniqueInput[] - delete?: CounterpartyRequestWhereUniqueInput | CounterpartyRequestWhereUniqueInput[] - connect?: CounterpartyRequestWhereUniqueInput | CounterpartyRequestWhereUniqueInput[] - update?: CounterpartyRequestUpdateWithWhereUniqueWithoutReceiverInput | CounterpartyRequestUpdateWithWhereUniqueWithoutReceiverInput[] - updateMany?: CounterpartyRequestUpdateManyWithWhereWithoutReceiverInput | CounterpartyRequestUpdateManyWithWhereWithoutReceiverInput[] - deleteMany?: CounterpartyRequestScalarWhereInput | CounterpartyRequestScalarWhereInput[] - } - - export type CounterpartyRequestUpdateManyWithoutSenderNestedInput = { - create?: XOR | CounterpartyRequestCreateWithoutSenderInput[] | CounterpartyRequestUncheckedCreateWithoutSenderInput[] - connectOrCreate?: CounterpartyRequestCreateOrConnectWithoutSenderInput | CounterpartyRequestCreateOrConnectWithoutSenderInput[] - upsert?: CounterpartyRequestUpsertWithWhereUniqueWithoutSenderInput | CounterpartyRequestUpsertWithWhereUniqueWithoutSenderInput[] - createMany?: CounterpartyRequestCreateManySenderInputEnvelope - set?: CounterpartyRequestWhereUniqueInput | CounterpartyRequestWhereUniqueInput[] - disconnect?: CounterpartyRequestWhereUniqueInput | CounterpartyRequestWhereUniqueInput[] - delete?: CounterpartyRequestWhereUniqueInput | CounterpartyRequestWhereUniqueInput[] - connect?: CounterpartyRequestWhereUniqueInput | CounterpartyRequestWhereUniqueInput[] - update?: CounterpartyRequestUpdateWithWhereUniqueWithoutSenderInput | CounterpartyRequestUpdateWithWhereUniqueWithoutSenderInput[] - updateMany?: CounterpartyRequestUpdateManyWithWhereWithoutSenderInput | CounterpartyRequestUpdateManyWithWhereWithoutSenderInput[] - deleteMany?: CounterpartyRequestScalarWhereInput | CounterpartyRequestScalarWhereInput[] - } - - export type EmployeeUpdateManyWithoutOrganizationNestedInput = { - create?: XOR | EmployeeCreateWithoutOrganizationInput[] | EmployeeUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: EmployeeCreateOrConnectWithoutOrganizationInput | EmployeeCreateOrConnectWithoutOrganizationInput[] - upsert?: EmployeeUpsertWithWhereUniqueWithoutOrganizationInput | EmployeeUpsertWithWhereUniqueWithoutOrganizationInput[] - createMany?: EmployeeCreateManyOrganizationInputEnvelope - set?: EmployeeWhereUniqueInput | EmployeeWhereUniqueInput[] - disconnect?: EmployeeWhereUniqueInput | EmployeeWhereUniqueInput[] - delete?: EmployeeWhereUniqueInput | EmployeeWhereUniqueInput[] - connect?: EmployeeWhereUniqueInput | EmployeeWhereUniqueInput[] - update?: EmployeeUpdateWithWhereUniqueWithoutOrganizationInput | EmployeeUpdateWithWhereUniqueWithoutOrganizationInput[] - updateMany?: EmployeeUpdateManyWithWhereWithoutOrganizationInput | EmployeeUpdateManyWithWhereWithoutOrganizationInput[] - deleteMany?: EmployeeScalarWhereInput | EmployeeScalarWhereInput[] - } - - export type FavoritesUpdateManyWithoutOrganizationNestedInput = { - create?: XOR | FavoritesCreateWithoutOrganizationInput[] | FavoritesUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: FavoritesCreateOrConnectWithoutOrganizationInput | FavoritesCreateOrConnectWithoutOrganizationInput[] - upsert?: FavoritesUpsertWithWhereUniqueWithoutOrganizationInput | FavoritesUpsertWithWhereUniqueWithoutOrganizationInput[] - createMany?: FavoritesCreateManyOrganizationInputEnvelope - set?: FavoritesWhereUniqueInput | FavoritesWhereUniqueInput[] - disconnect?: FavoritesWhereUniqueInput | FavoritesWhereUniqueInput[] - delete?: FavoritesWhereUniqueInput | FavoritesWhereUniqueInput[] - connect?: FavoritesWhereUniqueInput | FavoritesWhereUniqueInput[] - update?: FavoritesUpdateWithWhereUniqueWithoutOrganizationInput | FavoritesUpdateWithWhereUniqueWithoutOrganizationInput[] - updateMany?: FavoritesUpdateManyWithWhereWithoutOrganizationInput | FavoritesUpdateManyWithWhereWithoutOrganizationInput[] - deleteMany?: FavoritesScalarWhereInput | FavoritesScalarWhereInput[] - } - - export type MessageUpdateManyWithoutReceiverOrganizationNestedInput = { - create?: XOR | MessageCreateWithoutReceiverOrganizationInput[] | MessageUncheckedCreateWithoutReceiverOrganizationInput[] - connectOrCreate?: MessageCreateOrConnectWithoutReceiverOrganizationInput | MessageCreateOrConnectWithoutReceiverOrganizationInput[] - upsert?: MessageUpsertWithWhereUniqueWithoutReceiverOrganizationInput | MessageUpsertWithWhereUniqueWithoutReceiverOrganizationInput[] - createMany?: MessageCreateManyReceiverOrganizationInputEnvelope - set?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - disconnect?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - delete?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - connect?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - update?: MessageUpdateWithWhereUniqueWithoutReceiverOrganizationInput | MessageUpdateWithWhereUniqueWithoutReceiverOrganizationInput[] - updateMany?: MessageUpdateManyWithWhereWithoutReceiverOrganizationInput | MessageUpdateManyWithWhereWithoutReceiverOrganizationInput[] - deleteMany?: MessageScalarWhereInput | MessageScalarWhereInput[] - } - - export type MessageUpdateManyWithoutSenderOrganizationNestedInput = { - create?: XOR | MessageCreateWithoutSenderOrganizationInput[] | MessageUncheckedCreateWithoutSenderOrganizationInput[] - connectOrCreate?: MessageCreateOrConnectWithoutSenderOrganizationInput | MessageCreateOrConnectWithoutSenderOrganizationInput[] - upsert?: MessageUpsertWithWhereUniqueWithoutSenderOrganizationInput | MessageUpsertWithWhereUniqueWithoutSenderOrganizationInput[] - createMany?: MessageCreateManySenderOrganizationInputEnvelope - set?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - disconnect?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - delete?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - connect?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - update?: MessageUpdateWithWhereUniqueWithoutSenderOrganizationInput | MessageUpdateWithWhereUniqueWithoutSenderOrganizationInput[] - updateMany?: MessageUpdateManyWithWhereWithoutSenderOrganizationInput | MessageUpdateManyWithWhereWithoutSenderOrganizationInput[] - deleteMany?: MessageScalarWhereInput | MessageScalarWhereInput[] - } - - export type ProductUpdateManyWithoutOrganizationNestedInput = { - create?: XOR | ProductCreateWithoutOrganizationInput[] | ProductUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: ProductCreateOrConnectWithoutOrganizationInput | ProductCreateOrConnectWithoutOrganizationInput[] - upsert?: ProductUpsertWithWhereUniqueWithoutOrganizationInput | ProductUpsertWithWhereUniqueWithoutOrganizationInput[] - createMany?: ProductCreateManyOrganizationInputEnvelope - set?: ProductWhereUniqueInput | ProductWhereUniqueInput[] - disconnect?: ProductWhereUniqueInput | ProductWhereUniqueInput[] - delete?: ProductWhereUniqueInput | ProductWhereUniqueInput[] - connect?: ProductWhereUniqueInput | ProductWhereUniqueInput[] - update?: ProductUpdateWithWhereUniqueWithoutOrganizationInput | ProductUpdateWithWhereUniqueWithoutOrganizationInput[] - updateMany?: ProductUpdateManyWithWhereWithoutOrganizationInput | ProductUpdateManyWithWhereWithoutOrganizationInput[] - deleteMany?: ProductScalarWhereInput | ProductScalarWhereInput[] - } - - export type ServiceUpdateManyWithoutOrganizationNestedInput = { - create?: XOR | ServiceCreateWithoutOrganizationInput[] | ServiceUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: ServiceCreateOrConnectWithoutOrganizationInput | ServiceCreateOrConnectWithoutOrganizationInput[] - upsert?: ServiceUpsertWithWhereUniqueWithoutOrganizationInput | ServiceUpsertWithWhereUniqueWithoutOrganizationInput[] - createMany?: ServiceCreateManyOrganizationInputEnvelope - set?: ServiceWhereUniqueInput | ServiceWhereUniqueInput[] - disconnect?: ServiceWhereUniqueInput | ServiceWhereUniqueInput[] - delete?: ServiceWhereUniqueInput | ServiceWhereUniqueInput[] - connect?: ServiceWhereUniqueInput | ServiceWhereUniqueInput[] - update?: ServiceUpdateWithWhereUniqueWithoutOrganizationInput | ServiceUpdateWithWhereUniqueWithoutOrganizationInput[] - updateMany?: ServiceUpdateManyWithWhereWithoutOrganizationInput | ServiceUpdateManyWithWhereWithoutOrganizationInput[] - deleteMany?: ServiceScalarWhereInput | ServiceScalarWhereInput[] - } - - export type SupplyUpdateManyWithoutOrganizationNestedInput = { - create?: XOR | SupplyCreateWithoutOrganizationInput[] | SupplyUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: SupplyCreateOrConnectWithoutOrganizationInput | SupplyCreateOrConnectWithoutOrganizationInput[] - upsert?: SupplyUpsertWithWhereUniqueWithoutOrganizationInput | SupplyUpsertWithWhereUniqueWithoutOrganizationInput[] - createMany?: SupplyCreateManyOrganizationInputEnvelope - set?: SupplyWhereUniqueInput | SupplyWhereUniqueInput[] - disconnect?: SupplyWhereUniqueInput | SupplyWhereUniqueInput[] - delete?: SupplyWhereUniqueInput | SupplyWhereUniqueInput[] - connect?: SupplyWhereUniqueInput | SupplyWhereUniqueInput[] - update?: SupplyUpdateWithWhereUniqueWithoutOrganizationInput | SupplyUpdateWithWhereUniqueWithoutOrganizationInput[] - updateMany?: SupplyUpdateManyWithWhereWithoutOrganizationInput | SupplyUpdateManyWithWhereWithoutOrganizationInput[] - deleteMany?: SupplyScalarWhereInput | SupplyScalarWhereInput[] - } - - export type UserUpdateManyWithoutOrganizationNestedInput = { - create?: XOR | UserCreateWithoutOrganizationInput[] | UserUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: UserCreateOrConnectWithoutOrganizationInput | UserCreateOrConnectWithoutOrganizationInput[] - upsert?: UserUpsertWithWhereUniqueWithoutOrganizationInput | UserUpsertWithWhereUniqueWithoutOrganizationInput[] - createMany?: UserCreateManyOrganizationInputEnvelope - set?: UserWhereUniqueInput | UserWhereUniqueInput[] - disconnect?: UserWhereUniqueInput | UserWhereUniqueInput[] - delete?: UserWhereUniqueInput | UserWhereUniqueInput[] - connect?: UserWhereUniqueInput | UserWhereUniqueInput[] - update?: UserUpdateWithWhereUniqueWithoutOrganizationInput | UserUpdateWithWhereUniqueWithoutOrganizationInput[] - updateMany?: UserUpdateManyWithWhereWithoutOrganizationInput | UserUpdateManyWithWhereWithoutOrganizationInput[] - deleteMany?: UserScalarWhereInput | UserScalarWhereInput[] - } - - export type LogisticsUpdateManyWithoutOrganizationNestedInput = { - create?: XOR | LogisticsCreateWithoutOrganizationInput[] | LogisticsUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: LogisticsCreateOrConnectWithoutOrganizationInput | LogisticsCreateOrConnectWithoutOrganizationInput[] - upsert?: LogisticsUpsertWithWhereUniqueWithoutOrganizationInput | LogisticsUpsertWithWhereUniqueWithoutOrganizationInput[] - createMany?: LogisticsCreateManyOrganizationInputEnvelope - set?: LogisticsWhereUniqueInput | LogisticsWhereUniqueInput[] - disconnect?: LogisticsWhereUniqueInput | LogisticsWhereUniqueInput[] - delete?: LogisticsWhereUniqueInput | LogisticsWhereUniqueInput[] - connect?: LogisticsWhereUniqueInput | LogisticsWhereUniqueInput[] - update?: LogisticsUpdateWithWhereUniqueWithoutOrganizationInput | LogisticsUpdateWithWhereUniqueWithoutOrganizationInput[] - updateMany?: LogisticsUpdateManyWithWhereWithoutOrganizationInput | LogisticsUpdateManyWithWhereWithoutOrganizationInput[] - deleteMany?: LogisticsScalarWhereInput | LogisticsScalarWhereInput[] - } - - export type SupplyOrderUpdateManyWithoutOrganizationNestedInput = { - create?: XOR | SupplyOrderCreateWithoutOrganizationInput[] | SupplyOrderUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: SupplyOrderCreateOrConnectWithoutOrganizationInput | SupplyOrderCreateOrConnectWithoutOrganizationInput[] - upsert?: SupplyOrderUpsertWithWhereUniqueWithoutOrganizationInput | SupplyOrderUpsertWithWhereUniqueWithoutOrganizationInput[] - createMany?: SupplyOrderCreateManyOrganizationInputEnvelope - set?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - disconnect?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - delete?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - connect?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - update?: SupplyOrderUpdateWithWhereUniqueWithoutOrganizationInput | SupplyOrderUpdateWithWhereUniqueWithoutOrganizationInput[] - updateMany?: SupplyOrderUpdateManyWithWhereWithoutOrganizationInput | SupplyOrderUpdateManyWithWhereWithoutOrganizationInput[] - deleteMany?: SupplyOrderScalarWhereInput | SupplyOrderScalarWhereInput[] - } - - export type SupplyOrderUpdateManyWithoutPartnerNestedInput = { - create?: XOR | SupplyOrderCreateWithoutPartnerInput[] | SupplyOrderUncheckedCreateWithoutPartnerInput[] - connectOrCreate?: SupplyOrderCreateOrConnectWithoutPartnerInput | SupplyOrderCreateOrConnectWithoutPartnerInput[] - upsert?: SupplyOrderUpsertWithWhereUniqueWithoutPartnerInput | SupplyOrderUpsertWithWhereUniqueWithoutPartnerInput[] - createMany?: SupplyOrderCreateManyPartnerInputEnvelope - set?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - disconnect?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - delete?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - connect?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - update?: SupplyOrderUpdateWithWhereUniqueWithoutPartnerInput | SupplyOrderUpdateWithWhereUniqueWithoutPartnerInput[] - updateMany?: SupplyOrderUpdateManyWithWhereWithoutPartnerInput | SupplyOrderUpdateManyWithWhereWithoutPartnerInput[] - deleteMany?: SupplyOrderScalarWhereInput | SupplyOrderScalarWhereInput[] - } - - export type SupplyOrderUpdateManyWithoutFulfillmentCenterNestedInput = { - create?: XOR | SupplyOrderCreateWithoutFulfillmentCenterInput[] | SupplyOrderUncheckedCreateWithoutFulfillmentCenterInput[] - connectOrCreate?: SupplyOrderCreateOrConnectWithoutFulfillmentCenterInput | SupplyOrderCreateOrConnectWithoutFulfillmentCenterInput[] - upsert?: SupplyOrderUpsertWithWhereUniqueWithoutFulfillmentCenterInput | SupplyOrderUpsertWithWhereUniqueWithoutFulfillmentCenterInput[] - createMany?: SupplyOrderCreateManyFulfillmentCenterInputEnvelope - set?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - disconnect?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - delete?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - connect?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - update?: SupplyOrderUpdateWithWhereUniqueWithoutFulfillmentCenterInput | SupplyOrderUpdateWithWhereUniqueWithoutFulfillmentCenterInput[] - updateMany?: SupplyOrderUpdateManyWithWhereWithoutFulfillmentCenterInput | SupplyOrderUpdateManyWithWhereWithoutFulfillmentCenterInput[] - deleteMany?: SupplyOrderScalarWhereInput | SupplyOrderScalarWhereInput[] - } - - export type WildberriesSupplyUpdateManyWithoutOrganizationNestedInput = { - create?: XOR | WildberriesSupplyCreateWithoutOrganizationInput[] | WildberriesSupplyUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: WildberriesSupplyCreateOrConnectWithoutOrganizationInput | WildberriesSupplyCreateOrConnectWithoutOrganizationInput[] - upsert?: WildberriesSupplyUpsertWithWhereUniqueWithoutOrganizationInput | WildberriesSupplyUpsertWithWhereUniqueWithoutOrganizationInput[] - createMany?: WildberriesSupplyCreateManyOrganizationInputEnvelope - set?: WildberriesSupplyWhereUniqueInput | WildberriesSupplyWhereUniqueInput[] - disconnect?: WildberriesSupplyWhereUniqueInput | WildberriesSupplyWhereUniqueInput[] - delete?: WildberriesSupplyWhereUniqueInput | WildberriesSupplyWhereUniqueInput[] - connect?: WildberriesSupplyWhereUniqueInput | WildberriesSupplyWhereUniqueInput[] - update?: WildberriesSupplyUpdateWithWhereUniqueWithoutOrganizationInput | WildberriesSupplyUpdateWithWhereUniqueWithoutOrganizationInput[] - updateMany?: WildberriesSupplyUpdateManyWithWhereWithoutOrganizationInput | WildberriesSupplyUpdateManyWithWhereWithoutOrganizationInput[] - deleteMany?: WildberriesSupplyScalarWhereInput | WildberriesSupplyScalarWhereInput[] - } - - export type SupplySupplierUpdateManyWithoutOrganizationNestedInput = { - create?: XOR | SupplySupplierCreateWithoutOrganizationInput[] | SupplySupplierUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: SupplySupplierCreateOrConnectWithoutOrganizationInput | SupplySupplierCreateOrConnectWithoutOrganizationInput[] - upsert?: SupplySupplierUpsertWithWhereUniqueWithoutOrganizationInput | SupplySupplierUpsertWithWhereUniqueWithoutOrganizationInput[] - createMany?: SupplySupplierCreateManyOrganizationInputEnvelope - set?: SupplySupplierWhereUniqueInput | SupplySupplierWhereUniqueInput[] - disconnect?: SupplySupplierWhereUniqueInput | SupplySupplierWhereUniqueInput[] - delete?: SupplySupplierWhereUniqueInput | SupplySupplierWhereUniqueInput[] - connect?: SupplySupplierWhereUniqueInput | SupplySupplierWhereUniqueInput[] - update?: SupplySupplierUpdateWithWhereUniqueWithoutOrganizationInput | SupplySupplierUpdateWithWhereUniqueWithoutOrganizationInput[] - updateMany?: SupplySupplierUpdateManyWithWhereWithoutOrganizationInput | SupplySupplierUpdateManyWithWhereWithoutOrganizationInput[] - deleteMany?: SupplySupplierScalarWhereInput | SupplySupplierScalarWhereInput[] - } - - export type ApiKeyUncheckedUpdateManyWithoutOrganizationNestedInput = { - create?: XOR | ApiKeyCreateWithoutOrganizationInput[] | ApiKeyUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: ApiKeyCreateOrConnectWithoutOrganizationInput | ApiKeyCreateOrConnectWithoutOrganizationInput[] - upsert?: ApiKeyUpsertWithWhereUniqueWithoutOrganizationInput | ApiKeyUpsertWithWhereUniqueWithoutOrganizationInput[] - createMany?: ApiKeyCreateManyOrganizationInputEnvelope - set?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[] - disconnect?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[] - delete?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[] - connect?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[] - update?: ApiKeyUpdateWithWhereUniqueWithoutOrganizationInput | ApiKeyUpdateWithWhereUniqueWithoutOrganizationInput[] - updateMany?: ApiKeyUpdateManyWithWhereWithoutOrganizationInput | ApiKeyUpdateManyWithWhereWithoutOrganizationInput[] - deleteMany?: ApiKeyScalarWhereInput | ApiKeyScalarWhereInput[] - } - - export type CartUncheckedUpdateOneWithoutOrganizationNestedInput = { - create?: XOR - connectOrCreate?: CartCreateOrConnectWithoutOrganizationInput - upsert?: CartUpsertWithoutOrganizationInput - disconnect?: CartWhereInput | boolean - delete?: CartWhereInput | boolean - connect?: CartWhereUniqueInput - update?: XOR, CartUncheckedUpdateWithoutOrganizationInput> - } - - export type CounterpartyUncheckedUpdateManyWithoutCounterpartyNestedInput = { - create?: XOR | CounterpartyCreateWithoutCounterpartyInput[] | CounterpartyUncheckedCreateWithoutCounterpartyInput[] - connectOrCreate?: CounterpartyCreateOrConnectWithoutCounterpartyInput | CounterpartyCreateOrConnectWithoutCounterpartyInput[] - upsert?: CounterpartyUpsertWithWhereUniqueWithoutCounterpartyInput | CounterpartyUpsertWithWhereUniqueWithoutCounterpartyInput[] - createMany?: CounterpartyCreateManyCounterpartyInputEnvelope - set?: CounterpartyWhereUniqueInput | CounterpartyWhereUniqueInput[] - disconnect?: CounterpartyWhereUniqueInput | CounterpartyWhereUniqueInput[] - delete?: CounterpartyWhereUniqueInput | CounterpartyWhereUniqueInput[] - connect?: CounterpartyWhereUniqueInput | CounterpartyWhereUniqueInput[] - update?: CounterpartyUpdateWithWhereUniqueWithoutCounterpartyInput | CounterpartyUpdateWithWhereUniqueWithoutCounterpartyInput[] - updateMany?: CounterpartyUpdateManyWithWhereWithoutCounterpartyInput | CounterpartyUpdateManyWithWhereWithoutCounterpartyInput[] - deleteMany?: CounterpartyScalarWhereInput | CounterpartyScalarWhereInput[] - } - - export type CounterpartyUncheckedUpdateManyWithoutOrganizationNestedInput = { - create?: XOR | CounterpartyCreateWithoutOrganizationInput[] | CounterpartyUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: CounterpartyCreateOrConnectWithoutOrganizationInput | CounterpartyCreateOrConnectWithoutOrganizationInput[] - upsert?: CounterpartyUpsertWithWhereUniqueWithoutOrganizationInput | CounterpartyUpsertWithWhereUniqueWithoutOrganizationInput[] - createMany?: CounterpartyCreateManyOrganizationInputEnvelope - set?: CounterpartyWhereUniqueInput | CounterpartyWhereUniqueInput[] - disconnect?: CounterpartyWhereUniqueInput | CounterpartyWhereUniqueInput[] - delete?: CounterpartyWhereUniqueInput | CounterpartyWhereUniqueInput[] - connect?: CounterpartyWhereUniqueInput | CounterpartyWhereUniqueInput[] - update?: CounterpartyUpdateWithWhereUniqueWithoutOrganizationInput | CounterpartyUpdateWithWhereUniqueWithoutOrganizationInput[] - updateMany?: CounterpartyUpdateManyWithWhereWithoutOrganizationInput | CounterpartyUpdateManyWithWhereWithoutOrganizationInput[] - deleteMany?: CounterpartyScalarWhereInput | CounterpartyScalarWhereInput[] - } - - export type CounterpartyRequestUncheckedUpdateManyWithoutReceiverNestedInput = { - create?: XOR | CounterpartyRequestCreateWithoutReceiverInput[] | CounterpartyRequestUncheckedCreateWithoutReceiverInput[] - connectOrCreate?: CounterpartyRequestCreateOrConnectWithoutReceiverInput | CounterpartyRequestCreateOrConnectWithoutReceiverInput[] - upsert?: CounterpartyRequestUpsertWithWhereUniqueWithoutReceiverInput | CounterpartyRequestUpsertWithWhereUniqueWithoutReceiverInput[] - createMany?: CounterpartyRequestCreateManyReceiverInputEnvelope - set?: CounterpartyRequestWhereUniqueInput | CounterpartyRequestWhereUniqueInput[] - disconnect?: CounterpartyRequestWhereUniqueInput | CounterpartyRequestWhereUniqueInput[] - delete?: CounterpartyRequestWhereUniqueInput | CounterpartyRequestWhereUniqueInput[] - connect?: CounterpartyRequestWhereUniqueInput | CounterpartyRequestWhereUniqueInput[] - update?: CounterpartyRequestUpdateWithWhereUniqueWithoutReceiverInput | CounterpartyRequestUpdateWithWhereUniqueWithoutReceiverInput[] - updateMany?: CounterpartyRequestUpdateManyWithWhereWithoutReceiverInput | CounterpartyRequestUpdateManyWithWhereWithoutReceiverInput[] - deleteMany?: CounterpartyRequestScalarWhereInput | CounterpartyRequestScalarWhereInput[] - } - - export type CounterpartyRequestUncheckedUpdateManyWithoutSenderNestedInput = { - create?: XOR | CounterpartyRequestCreateWithoutSenderInput[] | CounterpartyRequestUncheckedCreateWithoutSenderInput[] - connectOrCreate?: CounterpartyRequestCreateOrConnectWithoutSenderInput | CounterpartyRequestCreateOrConnectWithoutSenderInput[] - upsert?: CounterpartyRequestUpsertWithWhereUniqueWithoutSenderInput | CounterpartyRequestUpsertWithWhereUniqueWithoutSenderInput[] - createMany?: CounterpartyRequestCreateManySenderInputEnvelope - set?: CounterpartyRequestWhereUniqueInput | CounterpartyRequestWhereUniqueInput[] - disconnect?: CounterpartyRequestWhereUniqueInput | CounterpartyRequestWhereUniqueInput[] - delete?: CounterpartyRequestWhereUniqueInput | CounterpartyRequestWhereUniqueInput[] - connect?: CounterpartyRequestWhereUniqueInput | CounterpartyRequestWhereUniqueInput[] - update?: CounterpartyRequestUpdateWithWhereUniqueWithoutSenderInput | CounterpartyRequestUpdateWithWhereUniqueWithoutSenderInput[] - updateMany?: CounterpartyRequestUpdateManyWithWhereWithoutSenderInput | CounterpartyRequestUpdateManyWithWhereWithoutSenderInput[] - deleteMany?: CounterpartyRequestScalarWhereInput | CounterpartyRequestScalarWhereInput[] - } - - export type EmployeeUncheckedUpdateManyWithoutOrganizationNestedInput = { - create?: XOR | EmployeeCreateWithoutOrganizationInput[] | EmployeeUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: EmployeeCreateOrConnectWithoutOrganizationInput | EmployeeCreateOrConnectWithoutOrganizationInput[] - upsert?: EmployeeUpsertWithWhereUniqueWithoutOrganizationInput | EmployeeUpsertWithWhereUniqueWithoutOrganizationInput[] - createMany?: EmployeeCreateManyOrganizationInputEnvelope - set?: EmployeeWhereUniqueInput | EmployeeWhereUniqueInput[] - disconnect?: EmployeeWhereUniqueInput | EmployeeWhereUniqueInput[] - delete?: EmployeeWhereUniqueInput | EmployeeWhereUniqueInput[] - connect?: EmployeeWhereUniqueInput | EmployeeWhereUniqueInput[] - update?: EmployeeUpdateWithWhereUniqueWithoutOrganizationInput | EmployeeUpdateWithWhereUniqueWithoutOrganizationInput[] - updateMany?: EmployeeUpdateManyWithWhereWithoutOrganizationInput | EmployeeUpdateManyWithWhereWithoutOrganizationInput[] - deleteMany?: EmployeeScalarWhereInput | EmployeeScalarWhereInput[] - } - - export type FavoritesUncheckedUpdateManyWithoutOrganizationNestedInput = { - create?: XOR | FavoritesCreateWithoutOrganizationInput[] | FavoritesUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: FavoritesCreateOrConnectWithoutOrganizationInput | FavoritesCreateOrConnectWithoutOrganizationInput[] - upsert?: FavoritesUpsertWithWhereUniqueWithoutOrganizationInput | FavoritesUpsertWithWhereUniqueWithoutOrganizationInput[] - createMany?: FavoritesCreateManyOrganizationInputEnvelope - set?: FavoritesWhereUniqueInput | FavoritesWhereUniqueInput[] - disconnect?: FavoritesWhereUniqueInput | FavoritesWhereUniqueInput[] - delete?: FavoritesWhereUniqueInput | FavoritesWhereUniqueInput[] - connect?: FavoritesWhereUniqueInput | FavoritesWhereUniqueInput[] - update?: FavoritesUpdateWithWhereUniqueWithoutOrganizationInput | FavoritesUpdateWithWhereUniqueWithoutOrganizationInput[] - updateMany?: FavoritesUpdateManyWithWhereWithoutOrganizationInput | FavoritesUpdateManyWithWhereWithoutOrganizationInput[] - deleteMany?: FavoritesScalarWhereInput | FavoritesScalarWhereInput[] - } - - export type MessageUncheckedUpdateManyWithoutReceiverOrganizationNestedInput = { - create?: XOR | MessageCreateWithoutReceiverOrganizationInput[] | MessageUncheckedCreateWithoutReceiverOrganizationInput[] - connectOrCreate?: MessageCreateOrConnectWithoutReceiverOrganizationInput | MessageCreateOrConnectWithoutReceiverOrganizationInput[] - upsert?: MessageUpsertWithWhereUniqueWithoutReceiverOrganizationInput | MessageUpsertWithWhereUniqueWithoutReceiverOrganizationInput[] - createMany?: MessageCreateManyReceiverOrganizationInputEnvelope - set?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - disconnect?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - delete?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - connect?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - update?: MessageUpdateWithWhereUniqueWithoutReceiverOrganizationInput | MessageUpdateWithWhereUniqueWithoutReceiverOrganizationInput[] - updateMany?: MessageUpdateManyWithWhereWithoutReceiverOrganizationInput | MessageUpdateManyWithWhereWithoutReceiverOrganizationInput[] - deleteMany?: MessageScalarWhereInput | MessageScalarWhereInput[] - } - - export type MessageUncheckedUpdateManyWithoutSenderOrganizationNestedInput = { - create?: XOR | MessageCreateWithoutSenderOrganizationInput[] | MessageUncheckedCreateWithoutSenderOrganizationInput[] - connectOrCreate?: MessageCreateOrConnectWithoutSenderOrganizationInput | MessageCreateOrConnectWithoutSenderOrganizationInput[] - upsert?: MessageUpsertWithWhereUniqueWithoutSenderOrganizationInput | MessageUpsertWithWhereUniqueWithoutSenderOrganizationInput[] - createMany?: MessageCreateManySenderOrganizationInputEnvelope - set?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - disconnect?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - delete?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - connect?: MessageWhereUniqueInput | MessageWhereUniqueInput[] - update?: MessageUpdateWithWhereUniqueWithoutSenderOrganizationInput | MessageUpdateWithWhereUniqueWithoutSenderOrganizationInput[] - updateMany?: MessageUpdateManyWithWhereWithoutSenderOrganizationInput | MessageUpdateManyWithWhereWithoutSenderOrganizationInput[] - deleteMany?: MessageScalarWhereInput | MessageScalarWhereInput[] - } - - export type ProductUncheckedUpdateManyWithoutOrganizationNestedInput = { - create?: XOR | ProductCreateWithoutOrganizationInput[] | ProductUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: ProductCreateOrConnectWithoutOrganizationInput | ProductCreateOrConnectWithoutOrganizationInput[] - upsert?: ProductUpsertWithWhereUniqueWithoutOrganizationInput | ProductUpsertWithWhereUniqueWithoutOrganizationInput[] - createMany?: ProductCreateManyOrganizationInputEnvelope - set?: ProductWhereUniqueInput | ProductWhereUniqueInput[] - disconnect?: ProductWhereUniqueInput | ProductWhereUniqueInput[] - delete?: ProductWhereUniqueInput | ProductWhereUniqueInput[] - connect?: ProductWhereUniqueInput | ProductWhereUniqueInput[] - update?: ProductUpdateWithWhereUniqueWithoutOrganizationInput | ProductUpdateWithWhereUniqueWithoutOrganizationInput[] - updateMany?: ProductUpdateManyWithWhereWithoutOrganizationInput | ProductUpdateManyWithWhereWithoutOrganizationInput[] - deleteMany?: ProductScalarWhereInput | ProductScalarWhereInput[] - } - - export type ServiceUncheckedUpdateManyWithoutOrganizationNestedInput = { - create?: XOR | ServiceCreateWithoutOrganizationInput[] | ServiceUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: ServiceCreateOrConnectWithoutOrganizationInput | ServiceCreateOrConnectWithoutOrganizationInput[] - upsert?: ServiceUpsertWithWhereUniqueWithoutOrganizationInput | ServiceUpsertWithWhereUniqueWithoutOrganizationInput[] - createMany?: ServiceCreateManyOrganizationInputEnvelope - set?: ServiceWhereUniqueInput | ServiceWhereUniqueInput[] - disconnect?: ServiceWhereUniqueInput | ServiceWhereUniqueInput[] - delete?: ServiceWhereUniqueInput | ServiceWhereUniqueInput[] - connect?: ServiceWhereUniqueInput | ServiceWhereUniqueInput[] - update?: ServiceUpdateWithWhereUniqueWithoutOrganizationInput | ServiceUpdateWithWhereUniqueWithoutOrganizationInput[] - updateMany?: ServiceUpdateManyWithWhereWithoutOrganizationInput | ServiceUpdateManyWithWhereWithoutOrganizationInput[] - deleteMany?: ServiceScalarWhereInput | ServiceScalarWhereInput[] - } - - export type SupplyUncheckedUpdateManyWithoutOrganizationNestedInput = { - create?: XOR | SupplyCreateWithoutOrganizationInput[] | SupplyUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: SupplyCreateOrConnectWithoutOrganizationInput | SupplyCreateOrConnectWithoutOrganizationInput[] - upsert?: SupplyUpsertWithWhereUniqueWithoutOrganizationInput | SupplyUpsertWithWhereUniqueWithoutOrganizationInput[] - createMany?: SupplyCreateManyOrganizationInputEnvelope - set?: SupplyWhereUniqueInput | SupplyWhereUniqueInput[] - disconnect?: SupplyWhereUniqueInput | SupplyWhereUniqueInput[] - delete?: SupplyWhereUniqueInput | SupplyWhereUniqueInput[] - connect?: SupplyWhereUniqueInput | SupplyWhereUniqueInput[] - update?: SupplyUpdateWithWhereUniqueWithoutOrganizationInput | SupplyUpdateWithWhereUniqueWithoutOrganizationInput[] - updateMany?: SupplyUpdateManyWithWhereWithoutOrganizationInput | SupplyUpdateManyWithWhereWithoutOrganizationInput[] - deleteMany?: SupplyScalarWhereInput | SupplyScalarWhereInput[] - } - - export type UserUncheckedUpdateManyWithoutOrganizationNestedInput = { - create?: XOR | UserCreateWithoutOrganizationInput[] | UserUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: UserCreateOrConnectWithoutOrganizationInput | UserCreateOrConnectWithoutOrganizationInput[] - upsert?: UserUpsertWithWhereUniqueWithoutOrganizationInput | UserUpsertWithWhereUniqueWithoutOrganizationInput[] - createMany?: UserCreateManyOrganizationInputEnvelope - set?: UserWhereUniqueInput | UserWhereUniqueInput[] - disconnect?: UserWhereUniqueInput | UserWhereUniqueInput[] - delete?: UserWhereUniqueInput | UserWhereUniqueInput[] - connect?: UserWhereUniqueInput | UserWhereUniqueInput[] - update?: UserUpdateWithWhereUniqueWithoutOrganizationInput | UserUpdateWithWhereUniqueWithoutOrganizationInput[] - updateMany?: UserUpdateManyWithWhereWithoutOrganizationInput | UserUpdateManyWithWhereWithoutOrganizationInput[] - deleteMany?: UserScalarWhereInput | UserScalarWhereInput[] - } - - export type LogisticsUncheckedUpdateManyWithoutOrganizationNestedInput = { - create?: XOR | LogisticsCreateWithoutOrganizationInput[] | LogisticsUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: LogisticsCreateOrConnectWithoutOrganizationInput | LogisticsCreateOrConnectWithoutOrganizationInput[] - upsert?: LogisticsUpsertWithWhereUniqueWithoutOrganizationInput | LogisticsUpsertWithWhereUniqueWithoutOrganizationInput[] - createMany?: LogisticsCreateManyOrganizationInputEnvelope - set?: LogisticsWhereUniqueInput | LogisticsWhereUniqueInput[] - disconnect?: LogisticsWhereUniqueInput | LogisticsWhereUniqueInput[] - delete?: LogisticsWhereUniqueInput | LogisticsWhereUniqueInput[] - connect?: LogisticsWhereUniqueInput | LogisticsWhereUniqueInput[] - update?: LogisticsUpdateWithWhereUniqueWithoutOrganizationInput | LogisticsUpdateWithWhereUniqueWithoutOrganizationInput[] - updateMany?: LogisticsUpdateManyWithWhereWithoutOrganizationInput | LogisticsUpdateManyWithWhereWithoutOrganizationInput[] - deleteMany?: LogisticsScalarWhereInput | LogisticsScalarWhereInput[] - } - - export type SupplyOrderUncheckedUpdateManyWithoutOrganizationNestedInput = { - create?: XOR | SupplyOrderCreateWithoutOrganizationInput[] | SupplyOrderUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: SupplyOrderCreateOrConnectWithoutOrganizationInput | SupplyOrderCreateOrConnectWithoutOrganizationInput[] - upsert?: SupplyOrderUpsertWithWhereUniqueWithoutOrganizationInput | SupplyOrderUpsertWithWhereUniqueWithoutOrganizationInput[] - createMany?: SupplyOrderCreateManyOrganizationInputEnvelope - set?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - disconnect?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - delete?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - connect?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - update?: SupplyOrderUpdateWithWhereUniqueWithoutOrganizationInput | SupplyOrderUpdateWithWhereUniqueWithoutOrganizationInput[] - updateMany?: SupplyOrderUpdateManyWithWhereWithoutOrganizationInput | SupplyOrderUpdateManyWithWhereWithoutOrganizationInput[] - deleteMany?: SupplyOrderScalarWhereInput | SupplyOrderScalarWhereInput[] - } - - export type SupplyOrderUncheckedUpdateManyWithoutPartnerNestedInput = { - create?: XOR | SupplyOrderCreateWithoutPartnerInput[] | SupplyOrderUncheckedCreateWithoutPartnerInput[] - connectOrCreate?: SupplyOrderCreateOrConnectWithoutPartnerInput | SupplyOrderCreateOrConnectWithoutPartnerInput[] - upsert?: SupplyOrderUpsertWithWhereUniqueWithoutPartnerInput | SupplyOrderUpsertWithWhereUniqueWithoutPartnerInput[] - createMany?: SupplyOrderCreateManyPartnerInputEnvelope - set?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - disconnect?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - delete?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - connect?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - update?: SupplyOrderUpdateWithWhereUniqueWithoutPartnerInput | SupplyOrderUpdateWithWhereUniqueWithoutPartnerInput[] - updateMany?: SupplyOrderUpdateManyWithWhereWithoutPartnerInput | SupplyOrderUpdateManyWithWhereWithoutPartnerInput[] - deleteMany?: SupplyOrderScalarWhereInput | SupplyOrderScalarWhereInput[] - } - - export type SupplyOrderUncheckedUpdateManyWithoutFulfillmentCenterNestedInput = { - create?: XOR | SupplyOrderCreateWithoutFulfillmentCenterInput[] | SupplyOrderUncheckedCreateWithoutFulfillmentCenterInput[] - connectOrCreate?: SupplyOrderCreateOrConnectWithoutFulfillmentCenterInput | SupplyOrderCreateOrConnectWithoutFulfillmentCenterInput[] - upsert?: SupplyOrderUpsertWithWhereUniqueWithoutFulfillmentCenterInput | SupplyOrderUpsertWithWhereUniqueWithoutFulfillmentCenterInput[] - createMany?: SupplyOrderCreateManyFulfillmentCenterInputEnvelope - set?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - disconnect?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - delete?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - connect?: SupplyOrderWhereUniqueInput | SupplyOrderWhereUniqueInput[] - update?: SupplyOrderUpdateWithWhereUniqueWithoutFulfillmentCenterInput | SupplyOrderUpdateWithWhereUniqueWithoutFulfillmentCenterInput[] - updateMany?: SupplyOrderUpdateManyWithWhereWithoutFulfillmentCenterInput | SupplyOrderUpdateManyWithWhereWithoutFulfillmentCenterInput[] - deleteMany?: SupplyOrderScalarWhereInput | SupplyOrderScalarWhereInput[] - } - - export type WildberriesSupplyUncheckedUpdateManyWithoutOrganizationNestedInput = { - create?: XOR | WildberriesSupplyCreateWithoutOrganizationInput[] | WildberriesSupplyUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: WildberriesSupplyCreateOrConnectWithoutOrganizationInput | WildberriesSupplyCreateOrConnectWithoutOrganizationInput[] - upsert?: WildberriesSupplyUpsertWithWhereUniqueWithoutOrganizationInput | WildberriesSupplyUpsertWithWhereUniqueWithoutOrganizationInput[] - createMany?: WildberriesSupplyCreateManyOrganizationInputEnvelope - set?: WildberriesSupplyWhereUniqueInput | WildberriesSupplyWhereUniqueInput[] - disconnect?: WildberriesSupplyWhereUniqueInput | WildberriesSupplyWhereUniqueInput[] - delete?: WildberriesSupplyWhereUniqueInput | WildberriesSupplyWhereUniqueInput[] - connect?: WildberriesSupplyWhereUniqueInput | WildberriesSupplyWhereUniqueInput[] - update?: WildberriesSupplyUpdateWithWhereUniqueWithoutOrganizationInput | WildberriesSupplyUpdateWithWhereUniqueWithoutOrganizationInput[] - updateMany?: WildberriesSupplyUpdateManyWithWhereWithoutOrganizationInput | WildberriesSupplyUpdateManyWithWhereWithoutOrganizationInput[] - deleteMany?: WildberriesSupplyScalarWhereInput | WildberriesSupplyScalarWhereInput[] - } - - export type SupplySupplierUncheckedUpdateManyWithoutOrganizationNestedInput = { - create?: XOR | SupplySupplierCreateWithoutOrganizationInput[] | SupplySupplierUncheckedCreateWithoutOrganizationInput[] - connectOrCreate?: SupplySupplierCreateOrConnectWithoutOrganizationInput | SupplySupplierCreateOrConnectWithoutOrganizationInput[] - upsert?: SupplySupplierUpsertWithWhereUniqueWithoutOrganizationInput | SupplySupplierUpsertWithWhereUniqueWithoutOrganizationInput[] - createMany?: SupplySupplierCreateManyOrganizationInputEnvelope - set?: SupplySupplierWhereUniqueInput | SupplySupplierWhereUniqueInput[] - disconnect?: SupplySupplierWhereUniqueInput | SupplySupplierWhereUniqueInput[] - delete?: SupplySupplierWhereUniqueInput | SupplySupplierWhereUniqueInput[] - connect?: SupplySupplierWhereUniqueInput | SupplySupplierWhereUniqueInput[] - update?: SupplySupplierUpdateWithWhereUniqueWithoutOrganizationInput | SupplySupplierUpdateWithWhereUniqueWithoutOrganizationInput[] - updateMany?: SupplySupplierUpdateManyWithWhereWithoutOrganizationInput | SupplySupplierUpdateManyWithWhereWithoutOrganizationInput[] - deleteMany?: SupplySupplierScalarWhereInput | SupplySupplierScalarWhereInput[] - } - - export type OrganizationCreateNestedOneWithoutApiKeysInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutApiKeysInput - connect?: OrganizationWhereUniqueInput - } - - export type EnumMarketplaceTypeFieldUpdateOperationsInput = { - set?: $Enums.MarketplaceType - } - - export type OrganizationUpdateOneRequiredWithoutApiKeysNestedInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutApiKeysInput - upsert?: OrganizationUpsertWithoutApiKeysInput - connect?: OrganizationWhereUniqueInput - update?: XOR, OrganizationUncheckedUpdateWithoutApiKeysInput> - } - - export type OrganizationCreateNestedOneWithoutReceivedRequestsInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutReceivedRequestsInput - connect?: OrganizationWhereUniqueInput - } - - export type OrganizationCreateNestedOneWithoutSentRequestsInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutSentRequestsInput - connect?: OrganizationWhereUniqueInput - } - - export type EnumCounterpartyRequestStatusFieldUpdateOperationsInput = { - set?: $Enums.CounterpartyRequestStatus - } - - export type OrganizationUpdateOneRequiredWithoutReceivedRequestsNestedInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutReceivedRequestsInput - upsert?: OrganizationUpsertWithoutReceivedRequestsInput - connect?: OrganizationWhereUniqueInput - update?: XOR, OrganizationUncheckedUpdateWithoutReceivedRequestsInput> - } - - export type OrganizationUpdateOneRequiredWithoutSentRequestsNestedInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutSentRequestsInput - upsert?: OrganizationUpsertWithoutSentRequestsInput - connect?: OrganizationWhereUniqueInput - update?: XOR, OrganizationUncheckedUpdateWithoutSentRequestsInput> - } - - export type OrganizationCreateNestedOneWithoutCounterpartyOfInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutCounterpartyOfInput - connect?: OrganizationWhereUniqueInput - } - - export type OrganizationCreateNestedOneWithoutOrganizationCounterpartiesInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutOrganizationCounterpartiesInput - connect?: OrganizationWhereUniqueInput - } - - export type OrganizationUpdateOneRequiredWithoutCounterpartyOfNestedInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutCounterpartyOfInput - upsert?: OrganizationUpsertWithoutCounterpartyOfInput - connect?: OrganizationWhereUniqueInput - update?: XOR, OrganizationUncheckedUpdateWithoutCounterpartyOfInput> - } - - export type OrganizationUpdateOneRequiredWithoutOrganizationCounterpartiesNestedInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutOrganizationCounterpartiesInput - upsert?: OrganizationUpsertWithoutOrganizationCounterpartiesInput - connect?: OrganizationWhereUniqueInput - update?: XOR, OrganizationUncheckedUpdateWithoutOrganizationCounterpartiesInput> - } - - export type OrganizationCreateNestedOneWithoutReceivedMessagesInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutReceivedMessagesInput - connect?: OrganizationWhereUniqueInput - } - - export type UserCreateNestedOneWithoutSentMessagesInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutSentMessagesInput - connect?: UserWhereUniqueInput - } - - export type OrganizationCreateNestedOneWithoutSentMessagesInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutSentMessagesInput - connect?: OrganizationWhereUniqueInput - } - - export type EnumMessageTypeFieldUpdateOperationsInput = { - set?: $Enums.MessageType - } - - export type OrganizationUpdateOneRequiredWithoutReceivedMessagesNestedInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutReceivedMessagesInput - upsert?: OrganizationUpsertWithoutReceivedMessagesInput - connect?: OrganizationWhereUniqueInput - update?: XOR, OrganizationUncheckedUpdateWithoutReceivedMessagesInput> - } - - export type UserUpdateOneRequiredWithoutSentMessagesNestedInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutSentMessagesInput - upsert?: UserUpsertWithoutSentMessagesInput - connect?: UserWhereUniqueInput - update?: XOR, UserUncheckedUpdateWithoutSentMessagesInput> - } - - export type OrganizationUpdateOneRequiredWithoutSentMessagesNestedInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutSentMessagesInput - upsert?: OrganizationUpsertWithoutSentMessagesInput - connect?: OrganizationWhereUniqueInput - update?: XOR, OrganizationUncheckedUpdateWithoutSentMessagesInput> - } - - export type OrganizationCreateNestedOneWithoutServicesInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutServicesInput - connect?: OrganizationWhereUniqueInput - } - - export type DecimalFieldUpdateOperationsInput = { - set?: Decimal | DecimalJsLike | number | string - increment?: Decimal | DecimalJsLike | number | string - decrement?: Decimal | DecimalJsLike | number | string - multiply?: Decimal | DecimalJsLike | number | string - divide?: Decimal | DecimalJsLike | number | string - } - - export type OrganizationUpdateOneRequiredWithoutServicesNestedInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutServicesInput - upsert?: OrganizationUpsertWithoutServicesInput - connect?: OrganizationWhereUniqueInput - update?: XOR, OrganizationUncheckedUpdateWithoutServicesInput> - } - - export type OrganizationCreateNestedOneWithoutSuppliesInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutSuppliesInput - connect?: OrganizationWhereUniqueInput - } - - export type OrganizationUpdateOneRequiredWithoutSuppliesNestedInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutSuppliesInput - upsert?: OrganizationUpsertWithoutSuppliesInput - connect?: OrganizationWhereUniqueInput - update?: XOR, OrganizationUncheckedUpdateWithoutSuppliesInput> - } - - export type ProductCreateNestedManyWithoutCategoryInput = { - create?: XOR | ProductCreateWithoutCategoryInput[] | ProductUncheckedCreateWithoutCategoryInput[] - connectOrCreate?: ProductCreateOrConnectWithoutCategoryInput | ProductCreateOrConnectWithoutCategoryInput[] - createMany?: ProductCreateManyCategoryInputEnvelope - connect?: ProductWhereUniqueInput | ProductWhereUniqueInput[] - } - - export type ProductUncheckedCreateNestedManyWithoutCategoryInput = { - create?: XOR | ProductCreateWithoutCategoryInput[] | ProductUncheckedCreateWithoutCategoryInput[] - connectOrCreate?: ProductCreateOrConnectWithoutCategoryInput | ProductCreateOrConnectWithoutCategoryInput[] - createMany?: ProductCreateManyCategoryInputEnvelope - connect?: ProductWhereUniqueInput | ProductWhereUniqueInput[] - } - - export type ProductUpdateManyWithoutCategoryNestedInput = { - create?: XOR | ProductCreateWithoutCategoryInput[] | ProductUncheckedCreateWithoutCategoryInput[] - connectOrCreate?: ProductCreateOrConnectWithoutCategoryInput | ProductCreateOrConnectWithoutCategoryInput[] - upsert?: ProductUpsertWithWhereUniqueWithoutCategoryInput | ProductUpsertWithWhereUniqueWithoutCategoryInput[] - createMany?: ProductCreateManyCategoryInputEnvelope - set?: ProductWhereUniqueInput | ProductWhereUniqueInput[] - disconnect?: ProductWhereUniqueInput | ProductWhereUniqueInput[] - delete?: ProductWhereUniqueInput | ProductWhereUniqueInput[] - connect?: ProductWhereUniqueInput | ProductWhereUniqueInput[] - update?: ProductUpdateWithWhereUniqueWithoutCategoryInput | ProductUpdateWithWhereUniqueWithoutCategoryInput[] - updateMany?: ProductUpdateManyWithWhereWithoutCategoryInput | ProductUpdateManyWithWhereWithoutCategoryInput[] - deleteMany?: ProductScalarWhereInput | ProductScalarWhereInput[] - } - - export type ProductUncheckedUpdateManyWithoutCategoryNestedInput = { - create?: XOR | ProductCreateWithoutCategoryInput[] | ProductUncheckedCreateWithoutCategoryInput[] - connectOrCreate?: ProductCreateOrConnectWithoutCategoryInput | ProductCreateOrConnectWithoutCategoryInput[] - upsert?: ProductUpsertWithWhereUniqueWithoutCategoryInput | ProductUpsertWithWhereUniqueWithoutCategoryInput[] - createMany?: ProductCreateManyCategoryInputEnvelope - set?: ProductWhereUniqueInput | ProductWhereUniqueInput[] - disconnect?: ProductWhereUniqueInput | ProductWhereUniqueInput[] - delete?: ProductWhereUniqueInput | ProductWhereUniqueInput[] - connect?: ProductWhereUniqueInput | ProductWhereUniqueInput[] - update?: ProductUpdateWithWhereUniqueWithoutCategoryInput | ProductUpdateWithWhereUniqueWithoutCategoryInput[] - updateMany?: ProductUpdateManyWithWhereWithoutCategoryInput | ProductUpdateManyWithWhereWithoutCategoryInput[] - deleteMany?: ProductScalarWhereInput | ProductScalarWhereInput[] - } - - export type CartItemCreateNestedManyWithoutProductInput = { - create?: XOR | CartItemCreateWithoutProductInput[] | CartItemUncheckedCreateWithoutProductInput[] - connectOrCreate?: CartItemCreateOrConnectWithoutProductInput | CartItemCreateOrConnectWithoutProductInput[] - createMany?: CartItemCreateManyProductInputEnvelope - connect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] - } - - export type FavoritesCreateNestedManyWithoutProductInput = { - create?: XOR | FavoritesCreateWithoutProductInput[] | FavoritesUncheckedCreateWithoutProductInput[] - connectOrCreate?: FavoritesCreateOrConnectWithoutProductInput | FavoritesCreateOrConnectWithoutProductInput[] - createMany?: FavoritesCreateManyProductInputEnvelope - connect?: FavoritesWhereUniqueInput | FavoritesWhereUniqueInput[] - } - - export type SupplyOrderItemCreateNestedManyWithoutProductInput = { - create?: XOR | SupplyOrderItemCreateWithoutProductInput[] | SupplyOrderItemUncheckedCreateWithoutProductInput[] - connectOrCreate?: SupplyOrderItemCreateOrConnectWithoutProductInput | SupplyOrderItemCreateOrConnectWithoutProductInput[] - createMany?: SupplyOrderItemCreateManyProductInputEnvelope - connect?: SupplyOrderItemWhereUniqueInput | SupplyOrderItemWhereUniqueInput[] - } - - export type CategoryCreateNestedOneWithoutProductsInput = { - create?: XOR - connectOrCreate?: CategoryCreateOrConnectWithoutProductsInput - connect?: CategoryWhereUniqueInput - } - - export type OrganizationCreateNestedOneWithoutProductsInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutProductsInput - connect?: OrganizationWhereUniqueInput - } - - export type CartItemUncheckedCreateNestedManyWithoutProductInput = { - create?: XOR | CartItemCreateWithoutProductInput[] | CartItemUncheckedCreateWithoutProductInput[] - connectOrCreate?: CartItemCreateOrConnectWithoutProductInput | CartItemCreateOrConnectWithoutProductInput[] - createMany?: CartItemCreateManyProductInputEnvelope - connect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] - } - - export type FavoritesUncheckedCreateNestedManyWithoutProductInput = { - create?: XOR | FavoritesCreateWithoutProductInput[] | FavoritesUncheckedCreateWithoutProductInput[] - connectOrCreate?: FavoritesCreateOrConnectWithoutProductInput | FavoritesCreateOrConnectWithoutProductInput[] - createMany?: FavoritesCreateManyProductInputEnvelope - connect?: FavoritesWhereUniqueInput | FavoritesWhereUniqueInput[] - } - - export type SupplyOrderItemUncheckedCreateNestedManyWithoutProductInput = { - create?: XOR | SupplyOrderItemCreateWithoutProductInput[] | SupplyOrderItemUncheckedCreateWithoutProductInput[] - connectOrCreate?: SupplyOrderItemCreateOrConnectWithoutProductInput | SupplyOrderItemCreateOrConnectWithoutProductInput[] - createMany?: SupplyOrderItemCreateManyProductInputEnvelope - connect?: SupplyOrderItemWhereUniqueInput | SupplyOrderItemWhereUniqueInput[] - } - - export type NullableDecimalFieldUpdateOperationsInput = { - set?: Decimal | DecimalJsLike | number | string | null - increment?: Decimal | DecimalJsLike | number | string - decrement?: Decimal | DecimalJsLike | number | string - multiply?: Decimal | DecimalJsLike | number | string - divide?: Decimal | DecimalJsLike | number | string - } - - export type CartItemUpdateManyWithoutProductNestedInput = { - create?: XOR | CartItemCreateWithoutProductInput[] | CartItemUncheckedCreateWithoutProductInput[] - connectOrCreate?: CartItemCreateOrConnectWithoutProductInput | CartItemCreateOrConnectWithoutProductInput[] - upsert?: CartItemUpsertWithWhereUniqueWithoutProductInput | CartItemUpsertWithWhereUniqueWithoutProductInput[] - createMany?: CartItemCreateManyProductInputEnvelope - set?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] - disconnect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] - delete?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] - connect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] - update?: CartItemUpdateWithWhereUniqueWithoutProductInput | CartItemUpdateWithWhereUniqueWithoutProductInput[] - updateMany?: CartItemUpdateManyWithWhereWithoutProductInput | CartItemUpdateManyWithWhereWithoutProductInput[] - deleteMany?: CartItemScalarWhereInput | CartItemScalarWhereInput[] - } - - export type FavoritesUpdateManyWithoutProductNestedInput = { - create?: XOR | FavoritesCreateWithoutProductInput[] | FavoritesUncheckedCreateWithoutProductInput[] - connectOrCreate?: FavoritesCreateOrConnectWithoutProductInput | FavoritesCreateOrConnectWithoutProductInput[] - upsert?: FavoritesUpsertWithWhereUniqueWithoutProductInput | FavoritesUpsertWithWhereUniqueWithoutProductInput[] - createMany?: FavoritesCreateManyProductInputEnvelope - set?: FavoritesWhereUniqueInput | FavoritesWhereUniqueInput[] - disconnect?: FavoritesWhereUniqueInput | FavoritesWhereUniqueInput[] - delete?: FavoritesWhereUniqueInput | FavoritesWhereUniqueInput[] - connect?: FavoritesWhereUniqueInput | FavoritesWhereUniqueInput[] - update?: FavoritesUpdateWithWhereUniqueWithoutProductInput | FavoritesUpdateWithWhereUniqueWithoutProductInput[] - updateMany?: FavoritesUpdateManyWithWhereWithoutProductInput | FavoritesUpdateManyWithWhereWithoutProductInput[] - deleteMany?: FavoritesScalarWhereInput | FavoritesScalarWhereInput[] - } - - export type SupplyOrderItemUpdateManyWithoutProductNestedInput = { - create?: XOR | SupplyOrderItemCreateWithoutProductInput[] | SupplyOrderItemUncheckedCreateWithoutProductInput[] - connectOrCreate?: SupplyOrderItemCreateOrConnectWithoutProductInput | SupplyOrderItemCreateOrConnectWithoutProductInput[] - upsert?: SupplyOrderItemUpsertWithWhereUniqueWithoutProductInput | SupplyOrderItemUpsertWithWhereUniqueWithoutProductInput[] - createMany?: SupplyOrderItemCreateManyProductInputEnvelope - set?: SupplyOrderItemWhereUniqueInput | SupplyOrderItemWhereUniqueInput[] - disconnect?: SupplyOrderItemWhereUniqueInput | SupplyOrderItemWhereUniqueInput[] - delete?: SupplyOrderItemWhereUniqueInput | SupplyOrderItemWhereUniqueInput[] - connect?: SupplyOrderItemWhereUniqueInput | SupplyOrderItemWhereUniqueInput[] - update?: SupplyOrderItemUpdateWithWhereUniqueWithoutProductInput | SupplyOrderItemUpdateWithWhereUniqueWithoutProductInput[] - updateMany?: SupplyOrderItemUpdateManyWithWhereWithoutProductInput | SupplyOrderItemUpdateManyWithWhereWithoutProductInput[] - deleteMany?: SupplyOrderItemScalarWhereInput | SupplyOrderItemScalarWhereInput[] - } - - export type CategoryUpdateOneWithoutProductsNestedInput = { - create?: XOR - connectOrCreate?: CategoryCreateOrConnectWithoutProductsInput - upsert?: CategoryUpsertWithoutProductsInput - disconnect?: CategoryWhereInput | boolean - delete?: CategoryWhereInput | boolean - connect?: CategoryWhereUniqueInput - update?: XOR, CategoryUncheckedUpdateWithoutProductsInput> - } - - export type OrganizationUpdateOneRequiredWithoutProductsNestedInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutProductsInput - upsert?: OrganizationUpsertWithoutProductsInput - connect?: OrganizationWhereUniqueInput - update?: XOR, OrganizationUncheckedUpdateWithoutProductsInput> - } - - export type CartItemUncheckedUpdateManyWithoutProductNestedInput = { - create?: XOR | CartItemCreateWithoutProductInput[] | CartItemUncheckedCreateWithoutProductInput[] - connectOrCreate?: CartItemCreateOrConnectWithoutProductInput | CartItemCreateOrConnectWithoutProductInput[] - upsert?: CartItemUpsertWithWhereUniqueWithoutProductInput | CartItemUpsertWithWhereUniqueWithoutProductInput[] - createMany?: CartItemCreateManyProductInputEnvelope - set?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] - disconnect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] - delete?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] - connect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] - update?: CartItemUpdateWithWhereUniqueWithoutProductInput | CartItemUpdateWithWhereUniqueWithoutProductInput[] - updateMany?: CartItemUpdateManyWithWhereWithoutProductInput | CartItemUpdateManyWithWhereWithoutProductInput[] - deleteMany?: CartItemScalarWhereInput | CartItemScalarWhereInput[] - } - - export type FavoritesUncheckedUpdateManyWithoutProductNestedInput = { - create?: XOR | FavoritesCreateWithoutProductInput[] | FavoritesUncheckedCreateWithoutProductInput[] - connectOrCreate?: FavoritesCreateOrConnectWithoutProductInput | FavoritesCreateOrConnectWithoutProductInput[] - upsert?: FavoritesUpsertWithWhereUniqueWithoutProductInput | FavoritesUpsertWithWhereUniqueWithoutProductInput[] - createMany?: FavoritesCreateManyProductInputEnvelope - set?: FavoritesWhereUniqueInput | FavoritesWhereUniqueInput[] - disconnect?: FavoritesWhereUniqueInput | FavoritesWhereUniqueInput[] - delete?: FavoritesWhereUniqueInput | FavoritesWhereUniqueInput[] - connect?: FavoritesWhereUniqueInput | FavoritesWhereUniqueInput[] - update?: FavoritesUpdateWithWhereUniqueWithoutProductInput | FavoritesUpdateWithWhereUniqueWithoutProductInput[] - updateMany?: FavoritesUpdateManyWithWhereWithoutProductInput | FavoritesUpdateManyWithWhereWithoutProductInput[] - deleteMany?: FavoritesScalarWhereInput | FavoritesScalarWhereInput[] - } - - export type SupplyOrderItemUncheckedUpdateManyWithoutProductNestedInput = { - create?: XOR | SupplyOrderItemCreateWithoutProductInput[] | SupplyOrderItemUncheckedCreateWithoutProductInput[] - connectOrCreate?: SupplyOrderItemCreateOrConnectWithoutProductInput | SupplyOrderItemCreateOrConnectWithoutProductInput[] - upsert?: SupplyOrderItemUpsertWithWhereUniqueWithoutProductInput | SupplyOrderItemUpsertWithWhereUniqueWithoutProductInput[] - createMany?: SupplyOrderItemCreateManyProductInputEnvelope - set?: SupplyOrderItemWhereUniqueInput | SupplyOrderItemWhereUniqueInput[] - disconnect?: SupplyOrderItemWhereUniqueInput | SupplyOrderItemWhereUniqueInput[] - delete?: SupplyOrderItemWhereUniqueInput | SupplyOrderItemWhereUniqueInput[] - connect?: SupplyOrderItemWhereUniqueInput | SupplyOrderItemWhereUniqueInput[] - update?: SupplyOrderItemUpdateWithWhereUniqueWithoutProductInput | SupplyOrderItemUpdateWithWhereUniqueWithoutProductInput[] - updateMany?: SupplyOrderItemUpdateManyWithWhereWithoutProductInput | SupplyOrderItemUpdateManyWithWhereWithoutProductInput[] - deleteMany?: SupplyOrderItemScalarWhereInput | SupplyOrderItemScalarWhereInput[] - } - - export type CartItemCreateNestedManyWithoutCartInput = { - create?: XOR | CartItemCreateWithoutCartInput[] | CartItemUncheckedCreateWithoutCartInput[] - connectOrCreate?: CartItemCreateOrConnectWithoutCartInput | CartItemCreateOrConnectWithoutCartInput[] - createMany?: CartItemCreateManyCartInputEnvelope - connect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] - } - - export type OrganizationCreateNestedOneWithoutCartsInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutCartsInput - connect?: OrganizationWhereUniqueInput - } - - export type CartItemUncheckedCreateNestedManyWithoutCartInput = { - create?: XOR | CartItemCreateWithoutCartInput[] | CartItemUncheckedCreateWithoutCartInput[] - connectOrCreate?: CartItemCreateOrConnectWithoutCartInput | CartItemCreateOrConnectWithoutCartInput[] - createMany?: CartItemCreateManyCartInputEnvelope - connect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] - } - - export type CartItemUpdateManyWithoutCartNestedInput = { - create?: XOR | CartItemCreateWithoutCartInput[] | CartItemUncheckedCreateWithoutCartInput[] - connectOrCreate?: CartItemCreateOrConnectWithoutCartInput | CartItemCreateOrConnectWithoutCartInput[] - upsert?: CartItemUpsertWithWhereUniqueWithoutCartInput | CartItemUpsertWithWhereUniqueWithoutCartInput[] - createMany?: CartItemCreateManyCartInputEnvelope - set?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] - disconnect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] - delete?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] - connect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] - update?: CartItemUpdateWithWhereUniqueWithoutCartInput | CartItemUpdateWithWhereUniqueWithoutCartInput[] - updateMany?: CartItemUpdateManyWithWhereWithoutCartInput | CartItemUpdateManyWithWhereWithoutCartInput[] - deleteMany?: CartItemScalarWhereInput | CartItemScalarWhereInput[] - } - - export type OrganizationUpdateOneRequiredWithoutCartsNestedInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutCartsInput - upsert?: OrganizationUpsertWithoutCartsInput - connect?: OrganizationWhereUniqueInput - update?: XOR, OrganizationUncheckedUpdateWithoutCartsInput> - } - - export type CartItemUncheckedUpdateManyWithoutCartNestedInput = { - create?: XOR | CartItemCreateWithoutCartInput[] | CartItemUncheckedCreateWithoutCartInput[] - connectOrCreate?: CartItemCreateOrConnectWithoutCartInput | CartItemCreateOrConnectWithoutCartInput[] - upsert?: CartItemUpsertWithWhereUniqueWithoutCartInput | CartItemUpsertWithWhereUniqueWithoutCartInput[] - createMany?: CartItemCreateManyCartInputEnvelope - set?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] - disconnect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] - delete?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] - connect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] - update?: CartItemUpdateWithWhereUniqueWithoutCartInput | CartItemUpdateWithWhereUniqueWithoutCartInput[] - updateMany?: CartItemUpdateManyWithWhereWithoutCartInput | CartItemUpdateManyWithWhereWithoutCartInput[] - deleteMany?: CartItemScalarWhereInput | CartItemScalarWhereInput[] - } - - export type CartCreateNestedOneWithoutItemsInput = { - create?: XOR - connectOrCreate?: CartCreateOrConnectWithoutItemsInput - connect?: CartWhereUniqueInput - } - - export type ProductCreateNestedOneWithoutCartItemsInput = { - create?: XOR - connectOrCreate?: ProductCreateOrConnectWithoutCartItemsInput - connect?: ProductWhereUniqueInput - } - - export type CartUpdateOneRequiredWithoutItemsNestedInput = { - create?: XOR - connectOrCreate?: CartCreateOrConnectWithoutItemsInput - upsert?: CartUpsertWithoutItemsInput - connect?: CartWhereUniqueInput - update?: XOR, CartUncheckedUpdateWithoutItemsInput> - } - - export type ProductUpdateOneRequiredWithoutCartItemsNestedInput = { - create?: XOR - connectOrCreate?: ProductCreateOrConnectWithoutCartItemsInput - upsert?: ProductUpsertWithoutCartItemsInput - connect?: ProductWhereUniqueInput - update?: XOR, ProductUncheckedUpdateWithoutCartItemsInput> - } - - export type OrganizationCreateNestedOneWithoutFavoritesInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutFavoritesInput - connect?: OrganizationWhereUniqueInput - } - - export type ProductCreateNestedOneWithoutFavoritesInput = { - create?: XOR - connectOrCreate?: ProductCreateOrConnectWithoutFavoritesInput - connect?: ProductWhereUniqueInput - } - - export type OrganizationUpdateOneRequiredWithoutFavoritesNestedInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutFavoritesInput - upsert?: OrganizationUpsertWithoutFavoritesInput - connect?: OrganizationWhereUniqueInput - update?: XOR, OrganizationUncheckedUpdateWithoutFavoritesInput> - } - - export type ProductUpdateOneRequiredWithoutFavoritesNestedInput = { - create?: XOR - connectOrCreate?: ProductCreateOrConnectWithoutFavoritesInput - upsert?: ProductUpsertWithoutFavoritesInput - connect?: ProductWhereUniqueInput - update?: XOR, ProductUncheckedUpdateWithoutFavoritesInput> - } - - export type EmployeeScheduleCreateNestedManyWithoutEmployeeInput = { - create?: XOR | EmployeeScheduleCreateWithoutEmployeeInput[] | EmployeeScheduleUncheckedCreateWithoutEmployeeInput[] - connectOrCreate?: EmployeeScheduleCreateOrConnectWithoutEmployeeInput | EmployeeScheduleCreateOrConnectWithoutEmployeeInput[] - createMany?: EmployeeScheduleCreateManyEmployeeInputEnvelope - connect?: EmployeeScheduleWhereUniqueInput | EmployeeScheduleWhereUniqueInput[] - } - - export type OrganizationCreateNestedOneWithoutEmployeesInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutEmployeesInput - connect?: OrganizationWhereUniqueInput - } - - export type EmployeeScheduleUncheckedCreateNestedManyWithoutEmployeeInput = { - create?: XOR | EmployeeScheduleCreateWithoutEmployeeInput[] | EmployeeScheduleUncheckedCreateWithoutEmployeeInput[] - connectOrCreate?: EmployeeScheduleCreateOrConnectWithoutEmployeeInput | EmployeeScheduleCreateOrConnectWithoutEmployeeInput[] - createMany?: EmployeeScheduleCreateManyEmployeeInputEnvelope - connect?: EmployeeScheduleWhereUniqueInput | EmployeeScheduleWhereUniqueInput[] - } - - export type NullableFloatFieldUpdateOperationsInput = { - set?: number | null - increment?: number - decrement?: number - multiply?: number - divide?: number - } - - export type EnumEmployeeStatusFieldUpdateOperationsInput = { - set?: $Enums.EmployeeStatus - } - - export type EmployeeScheduleUpdateManyWithoutEmployeeNestedInput = { - create?: XOR | EmployeeScheduleCreateWithoutEmployeeInput[] | EmployeeScheduleUncheckedCreateWithoutEmployeeInput[] - connectOrCreate?: EmployeeScheduleCreateOrConnectWithoutEmployeeInput | EmployeeScheduleCreateOrConnectWithoutEmployeeInput[] - upsert?: EmployeeScheduleUpsertWithWhereUniqueWithoutEmployeeInput | EmployeeScheduleUpsertWithWhereUniqueWithoutEmployeeInput[] - createMany?: EmployeeScheduleCreateManyEmployeeInputEnvelope - set?: EmployeeScheduleWhereUniqueInput | EmployeeScheduleWhereUniqueInput[] - disconnect?: EmployeeScheduleWhereUniqueInput | EmployeeScheduleWhereUniqueInput[] - delete?: EmployeeScheduleWhereUniqueInput | EmployeeScheduleWhereUniqueInput[] - connect?: EmployeeScheduleWhereUniqueInput | EmployeeScheduleWhereUniqueInput[] - update?: EmployeeScheduleUpdateWithWhereUniqueWithoutEmployeeInput | EmployeeScheduleUpdateWithWhereUniqueWithoutEmployeeInput[] - updateMany?: EmployeeScheduleUpdateManyWithWhereWithoutEmployeeInput | EmployeeScheduleUpdateManyWithWhereWithoutEmployeeInput[] - deleteMany?: EmployeeScheduleScalarWhereInput | EmployeeScheduleScalarWhereInput[] - } - - export type OrganizationUpdateOneRequiredWithoutEmployeesNestedInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutEmployeesInput - upsert?: OrganizationUpsertWithoutEmployeesInput - connect?: OrganizationWhereUniqueInput - update?: XOR, OrganizationUncheckedUpdateWithoutEmployeesInput> - } - - export type EmployeeScheduleUncheckedUpdateManyWithoutEmployeeNestedInput = { - create?: XOR | EmployeeScheduleCreateWithoutEmployeeInput[] | EmployeeScheduleUncheckedCreateWithoutEmployeeInput[] - connectOrCreate?: EmployeeScheduleCreateOrConnectWithoutEmployeeInput | EmployeeScheduleCreateOrConnectWithoutEmployeeInput[] - upsert?: EmployeeScheduleUpsertWithWhereUniqueWithoutEmployeeInput | EmployeeScheduleUpsertWithWhereUniqueWithoutEmployeeInput[] - createMany?: EmployeeScheduleCreateManyEmployeeInputEnvelope - set?: EmployeeScheduleWhereUniqueInput | EmployeeScheduleWhereUniqueInput[] - disconnect?: EmployeeScheduleWhereUniqueInput | EmployeeScheduleWhereUniqueInput[] - delete?: EmployeeScheduleWhereUniqueInput | EmployeeScheduleWhereUniqueInput[] - connect?: EmployeeScheduleWhereUniqueInput | EmployeeScheduleWhereUniqueInput[] - update?: EmployeeScheduleUpdateWithWhereUniqueWithoutEmployeeInput | EmployeeScheduleUpdateWithWhereUniqueWithoutEmployeeInput[] - updateMany?: EmployeeScheduleUpdateManyWithWhereWithoutEmployeeInput | EmployeeScheduleUpdateManyWithWhereWithoutEmployeeInput[] - deleteMany?: EmployeeScheduleScalarWhereInput | EmployeeScheduleScalarWhereInput[] - } - - export type EmployeeCreateNestedOneWithoutScheduleRecordsInput = { - create?: XOR - connectOrCreate?: EmployeeCreateOrConnectWithoutScheduleRecordsInput - connect?: EmployeeWhereUniqueInput - } - - export type EnumScheduleStatusFieldUpdateOperationsInput = { - set?: $Enums.ScheduleStatus - } - - export type EmployeeUpdateOneRequiredWithoutScheduleRecordsNestedInput = { - create?: XOR - connectOrCreate?: EmployeeCreateOrConnectWithoutScheduleRecordsInput - upsert?: EmployeeUpsertWithoutScheduleRecordsInput - connect?: EmployeeWhereUniqueInput - update?: XOR, EmployeeUncheckedUpdateWithoutScheduleRecordsInput> - } - - export type OrganizationCreateNestedOneWithoutWildberriesSuppliesInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutWildberriesSuppliesInput - connect?: OrganizationWhereUniqueInput - } - - export type WildberriesSupplyCardCreateNestedManyWithoutSupplyInput = { - create?: XOR | WildberriesSupplyCardCreateWithoutSupplyInput[] | WildberriesSupplyCardUncheckedCreateWithoutSupplyInput[] - connectOrCreate?: WildberriesSupplyCardCreateOrConnectWithoutSupplyInput | WildberriesSupplyCardCreateOrConnectWithoutSupplyInput[] - createMany?: WildberriesSupplyCardCreateManySupplyInputEnvelope - connect?: WildberriesSupplyCardWhereUniqueInput | WildberriesSupplyCardWhereUniqueInput[] - } - - export type WildberriesSupplyCardUncheckedCreateNestedManyWithoutSupplyInput = { - create?: XOR | WildberriesSupplyCardCreateWithoutSupplyInput[] | WildberriesSupplyCardUncheckedCreateWithoutSupplyInput[] - connectOrCreate?: WildberriesSupplyCardCreateOrConnectWithoutSupplyInput | WildberriesSupplyCardCreateOrConnectWithoutSupplyInput[] - createMany?: WildberriesSupplyCardCreateManySupplyInputEnvelope - connect?: WildberriesSupplyCardWhereUniqueInput | WildberriesSupplyCardWhereUniqueInput[] - } - - export type EnumWildberriesSupplyStatusFieldUpdateOperationsInput = { - set?: $Enums.WildberriesSupplyStatus - } - - export type OrganizationUpdateOneRequiredWithoutWildberriesSuppliesNestedInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutWildberriesSuppliesInput - upsert?: OrganizationUpsertWithoutWildberriesSuppliesInput - connect?: OrganizationWhereUniqueInput - update?: XOR, OrganizationUncheckedUpdateWithoutWildberriesSuppliesInput> - } - - export type WildberriesSupplyCardUpdateManyWithoutSupplyNestedInput = { - create?: XOR | WildberriesSupplyCardCreateWithoutSupplyInput[] | WildberriesSupplyCardUncheckedCreateWithoutSupplyInput[] - connectOrCreate?: WildberriesSupplyCardCreateOrConnectWithoutSupplyInput | WildberriesSupplyCardCreateOrConnectWithoutSupplyInput[] - upsert?: WildberriesSupplyCardUpsertWithWhereUniqueWithoutSupplyInput | WildberriesSupplyCardUpsertWithWhereUniqueWithoutSupplyInput[] - createMany?: WildberriesSupplyCardCreateManySupplyInputEnvelope - set?: WildberriesSupplyCardWhereUniqueInput | WildberriesSupplyCardWhereUniqueInput[] - disconnect?: WildberriesSupplyCardWhereUniqueInput | WildberriesSupplyCardWhereUniqueInput[] - delete?: WildberriesSupplyCardWhereUniqueInput | WildberriesSupplyCardWhereUniqueInput[] - connect?: WildberriesSupplyCardWhereUniqueInput | WildberriesSupplyCardWhereUniqueInput[] - update?: WildberriesSupplyCardUpdateWithWhereUniqueWithoutSupplyInput | WildberriesSupplyCardUpdateWithWhereUniqueWithoutSupplyInput[] - updateMany?: WildberriesSupplyCardUpdateManyWithWhereWithoutSupplyInput | WildberriesSupplyCardUpdateManyWithWhereWithoutSupplyInput[] - deleteMany?: WildberriesSupplyCardScalarWhereInput | WildberriesSupplyCardScalarWhereInput[] - } - - export type WildberriesSupplyCardUncheckedUpdateManyWithoutSupplyNestedInput = { - create?: XOR | WildberriesSupplyCardCreateWithoutSupplyInput[] | WildberriesSupplyCardUncheckedCreateWithoutSupplyInput[] - connectOrCreate?: WildberriesSupplyCardCreateOrConnectWithoutSupplyInput | WildberriesSupplyCardCreateOrConnectWithoutSupplyInput[] - upsert?: WildberriesSupplyCardUpsertWithWhereUniqueWithoutSupplyInput | WildberriesSupplyCardUpsertWithWhereUniqueWithoutSupplyInput[] - createMany?: WildberriesSupplyCardCreateManySupplyInputEnvelope - set?: WildberriesSupplyCardWhereUniqueInput | WildberriesSupplyCardWhereUniqueInput[] - disconnect?: WildberriesSupplyCardWhereUniqueInput | WildberriesSupplyCardWhereUniqueInput[] - delete?: WildberriesSupplyCardWhereUniqueInput | WildberriesSupplyCardWhereUniqueInput[] - connect?: WildberriesSupplyCardWhereUniqueInput | WildberriesSupplyCardWhereUniqueInput[] - update?: WildberriesSupplyCardUpdateWithWhereUniqueWithoutSupplyInput | WildberriesSupplyCardUpdateWithWhereUniqueWithoutSupplyInput[] - updateMany?: WildberriesSupplyCardUpdateManyWithWhereWithoutSupplyInput | WildberriesSupplyCardUpdateManyWithWhereWithoutSupplyInput[] - deleteMany?: WildberriesSupplyCardScalarWhereInput | WildberriesSupplyCardScalarWhereInput[] - } - - export type WildberriesSupplyCreateNestedOneWithoutCardsInput = { - create?: XOR - connectOrCreate?: WildberriesSupplyCreateOrConnectWithoutCardsInput - connect?: WildberriesSupplyWhereUniqueInput - } - - export type WildberriesSupplyUpdateOneRequiredWithoutCardsNestedInput = { - create?: XOR - connectOrCreate?: WildberriesSupplyCreateOrConnectWithoutCardsInput - upsert?: WildberriesSupplyUpsertWithoutCardsInput - connect?: WildberriesSupplyWhereUniqueInput - update?: XOR, WildberriesSupplyUncheckedUpdateWithoutCardsInput> - } - - export type OrganizationCreateNestedOneWithoutLogisticsInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutLogisticsInput - connect?: OrganizationWhereUniqueInput - } - - export type FloatFieldUpdateOperationsInput = { - set?: number - increment?: number - decrement?: number - multiply?: number - divide?: number - } - - export type OrganizationUpdateOneRequiredWithoutLogisticsNestedInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutLogisticsInput - upsert?: OrganizationUpsertWithoutLogisticsInput - connect?: OrganizationWhereUniqueInput - update?: XOR, OrganizationUncheckedUpdateWithoutLogisticsInput> - } - - export type SupplyOrderItemCreateNestedManyWithoutSupplyOrderInput = { - create?: XOR | SupplyOrderItemCreateWithoutSupplyOrderInput[] | SupplyOrderItemUncheckedCreateWithoutSupplyOrderInput[] - connectOrCreate?: SupplyOrderItemCreateOrConnectWithoutSupplyOrderInput | SupplyOrderItemCreateOrConnectWithoutSupplyOrderInput[] - createMany?: SupplyOrderItemCreateManySupplyOrderInputEnvelope - connect?: SupplyOrderItemWhereUniqueInput | SupplyOrderItemWhereUniqueInput[] - } - - export type OrganizationCreateNestedOneWithoutSupplyOrdersInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutSupplyOrdersInput - connect?: OrganizationWhereUniqueInput - } - - export type OrganizationCreateNestedOneWithoutPartnerSupplyOrdersInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutPartnerSupplyOrdersInput - connect?: OrganizationWhereUniqueInput - } - - export type OrganizationCreateNestedOneWithoutFulfillmentSupplyOrdersInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutFulfillmentSupplyOrdersInput - connect?: OrganizationWhereUniqueInput - } - - export type SupplyOrderItemUncheckedCreateNestedManyWithoutSupplyOrderInput = { - create?: XOR | SupplyOrderItemCreateWithoutSupplyOrderInput[] | SupplyOrderItemUncheckedCreateWithoutSupplyOrderInput[] - connectOrCreate?: SupplyOrderItemCreateOrConnectWithoutSupplyOrderInput | SupplyOrderItemCreateOrConnectWithoutSupplyOrderInput[] - createMany?: SupplyOrderItemCreateManySupplyOrderInputEnvelope - connect?: SupplyOrderItemWhereUniqueInput | SupplyOrderItemWhereUniqueInput[] - } - - export type EnumSupplyOrderStatusFieldUpdateOperationsInput = { - set?: $Enums.SupplyOrderStatus - } - - export type SupplyOrderItemUpdateManyWithoutSupplyOrderNestedInput = { - create?: XOR | SupplyOrderItemCreateWithoutSupplyOrderInput[] | SupplyOrderItemUncheckedCreateWithoutSupplyOrderInput[] - connectOrCreate?: SupplyOrderItemCreateOrConnectWithoutSupplyOrderInput | SupplyOrderItemCreateOrConnectWithoutSupplyOrderInput[] - upsert?: SupplyOrderItemUpsertWithWhereUniqueWithoutSupplyOrderInput | SupplyOrderItemUpsertWithWhereUniqueWithoutSupplyOrderInput[] - createMany?: SupplyOrderItemCreateManySupplyOrderInputEnvelope - set?: SupplyOrderItemWhereUniqueInput | SupplyOrderItemWhereUniqueInput[] - disconnect?: SupplyOrderItemWhereUniqueInput | SupplyOrderItemWhereUniqueInput[] - delete?: SupplyOrderItemWhereUniqueInput | SupplyOrderItemWhereUniqueInput[] - connect?: SupplyOrderItemWhereUniqueInput | SupplyOrderItemWhereUniqueInput[] - update?: SupplyOrderItemUpdateWithWhereUniqueWithoutSupplyOrderInput | SupplyOrderItemUpdateWithWhereUniqueWithoutSupplyOrderInput[] - updateMany?: SupplyOrderItemUpdateManyWithWhereWithoutSupplyOrderInput | SupplyOrderItemUpdateManyWithWhereWithoutSupplyOrderInput[] - deleteMany?: SupplyOrderItemScalarWhereInput | SupplyOrderItemScalarWhereInput[] - } - - export type OrganizationUpdateOneRequiredWithoutSupplyOrdersNestedInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutSupplyOrdersInput - upsert?: OrganizationUpsertWithoutSupplyOrdersInput - connect?: OrganizationWhereUniqueInput - update?: XOR, OrganizationUncheckedUpdateWithoutSupplyOrdersInput> - } - - export type OrganizationUpdateOneRequiredWithoutPartnerSupplyOrdersNestedInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutPartnerSupplyOrdersInput - upsert?: OrganizationUpsertWithoutPartnerSupplyOrdersInput - connect?: OrganizationWhereUniqueInput - update?: XOR, OrganizationUncheckedUpdateWithoutPartnerSupplyOrdersInput> - } - - export type OrganizationUpdateOneWithoutFulfillmentSupplyOrdersNestedInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutFulfillmentSupplyOrdersInput - upsert?: OrganizationUpsertWithoutFulfillmentSupplyOrdersInput - disconnect?: OrganizationWhereInput | boolean - delete?: OrganizationWhereInput | boolean - connect?: OrganizationWhereUniqueInput - update?: XOR, OrganizationUncheckedUpdateWithoutFulfillmentSupplyOrdersInput> - } - - export type SupplyOrderItemUncheckedUpdateManyWithoutSupplyOrderNestedInput = { - create?: XOR | SupplyOrderItemCreateWithoutSupplyOrderInput[] | SupplyOrderItemUncheckedCreateWithoutSupplyOrderInput[] - connectOrCreate?: SupplyOrderItemCreateOrConnectWithoutSupplyOrderInput | SupplyOrderItemCreateOrConnectWithoutSupplyOrderInput[] - upsert?: SupplyOrderItemUpsertWithWhereUniqueWithoutSupplyOrderInput | SupplyOrderItemUpsertWithWhereUniqueWithoutSupplyOrderInput[] - createMany?: SupplyOrderItemCreateManySupplyOrderInputEnvelope - set?: SupplyOrderItemWhereUniqueInput | SupplyOrderItemWhereUniqueInput[] - disconnect?: SupplyOrderItemWhereUniqueInput | SupplyOrderItemWhereUniqueInput[] - delete?: SupplyOrderItemWhereUniqueInput | SupplyOrderItemWhereUniqueInput[] - connect?: SupplyOrderItemWhereUniqueInput | SupplyOrderItemWhereUniqueInput[] - update?: SupplyOrderItemUpdateWithWhereUniqueWithoutSupplyOrderInput | SupplyOrderItemUpdateWithWhereUniqueWithoutSupplyOrderInput[] - updateMany?: SupplyOrderItemUpdateManyWithWhereWithoutSupplyOrderInput | SupplyOrderItemUpdateManyWithWhereWithoutSupplyOrderInput[] - deleteMany?: SupplyOrderItemScalarWhereInput | SupplyOrderItemScalarWhereInput[] - } - - export type SupplyOrderCreateNestedOneWithoutItemsInput = { - create?: XOR - connectOrCreate?: SupplyOrderCreateOrConnectWithoutItemsInput - connect?: SupplyOrderWhereUniqueInput - } - - export type ProductCreateNestedOneWithoutSupplyOrderItemsInput = { - create?: XOR - connectOrCreate?: ProductCreateOrConnectWithoutSupplyOrderItemsInput - connect?: ProductWhereUniqueInput - } - - export type SupplyOrderUpdateOneRequiredWithoutItemsNestedInput = { - create?: XOR - connectOrCreate?: SupplyOrderCreateOrConnectWithoutItemsInput - upsert?: SupplyOrderUpsertWithoutItemsInput - connect?: SupplyOrderWhereUniqueInput - update?: XOR, SupplyOrderUncheckedUpdateWithoutItemsInput> - } - - export type ProductUpdateOneRequiredWithoutSupplyOrderItemsNestedInput = { - create?: XOR - connectOrCreate?: ProductCreateOrConnectWithoutSupplyOrderItemsInput - upsert?: ProductUpsertWithoutSupplyOrderItemsInput - connect?: ProductWhereUniqueInput - update?: XOR, ProductUncheckedUpdateWithoutSupplyOrderItemsInput> - } - - export type OrganizationCreateNestedOneWithoutSupplySuppliersInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutSupplySuppliersInput - connect?: OrganizationWhereUniqueInput - } - - export type OrganizationUpdateOneRequiredWithoutSupplySuppliersNestedInput = { - create?: XOR - connectOrCreate?: OrganizationCreateOrConnectWithoutSupplySuppliersInput - upsert?: OrganizationUpsertWithoutSupplySuppliersInput - connect?: OrganizationWhereUniqueInput - update?: XOR, OrganizationUncheckedUpdateWithoutSupplySuppliersInput> - } - - export type NestedStringFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> - in?: string[] | ListStringFieldRefInput<$PrismaModel> - notIn?: string[] | ListStringFieldRefInput<$PrismaModel> - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - not?: NestedStringFilter<$PrismaModel> | string - } - - export type NestedStringNullableFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> | null - in?: string[] | ListStringFieldRefInput<$PrismaModel> | null - notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - not?: NestedStringNullableFilter<$PrismaModel> | string | null - } - - export type NestedDateTimeFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> - notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeFilter<$PrismaModel> | Date | string - } - - export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> - in?: string[] | ListStringFieldRefInput<$PrismaModel> - notIn?: string[] | ListStringFieldRefInput<$PrismaModel> - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - not?: NestedStringWithAggregatesFilter<$PrismaModel> | string - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedStringFilter<$PrismaModel> - _max?: NestedStringFilter<$PrismaModel> - } - - export type NestedIntFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> - in?: number[] | ListIntFieldRefInput<$PrismaModel> - notIn?: number[] | ListIntFieldRefInput<$PrismaModel> - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntFilter<$PrismaModel> | number - } - - export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> | null - in?: string[] | ListStringFieldRefInput<$PrismaModel> | null - notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null - _count?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedStringNullableFilter<$PrismaModel> - _max?: NestedStringNullableFilter<$PrismaModel> - } - - export type NestedIntNullableFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> | null - in?: number[] | ListIntFieldRefInput<$PrismaModel> | null - notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntNullableFilter<$PrismaModel> | number | null - } - - export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> - notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedDateTimeFilter<$PrismaModel> - _max?: NestedDateTimeFilter<$PrismaModel> - } - - export type NestedBoolFilter<$PrismaModel = never> = { - equals?: boolean | BooleanFieldRefInput<$PrismaModel> - not?: NestedBoolFilter<$PrismaModel> | boolean - } - - export type NestedDateTimeNullableFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null - notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null - } - - export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { - equals?: boolean | BooleanFieldRefInput<$PrismaModel> - not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedBoolFilter<$PrismaModel> - _max?: NestedBoolFilter<$PrismaModel> - } - - export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null - notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null - _count?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedDateTimeNullableFilter<$PrismaModel> - _max?: NestedDateTimeNullableFilter<$PrismaModel> - } - - export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> - in?: number[] | ListIntFieldRefInput<$PrismaModel> - notIn?: number[] | ListIntFieldRefInput<$PrismaModel> - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntWithAggregatesFilter<$PrismaModel> | number - _count?: NestedIntFilter<$PrismaModel> - _avg?: NestedFloatFilter<$PrismaModel> - _sum?: NestedIntFilter<$PrismaModel> - _min?: NestedIntFilter<$PrismaModel> - _max?: NestedIntFilter<$PrismaModel> - } - - export type NestedFloatFilter<$PrismaModel = never> = { - equals?: number | FloatFieldRefInput<$PrismaModel> - in?: number[] | ListFloatFieldRefInput<$PrismaModel> - notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> - lt?: number | FloatFieldRefInput<$PrismaModel> - lte?: number | FloatFieldRefInput<$PrismaModel> - gt?: number | FloatFieldRefInput<$PrismaModel> - gte?: number | FloatFieldRefInput<$PrismaModel> - not?: NestedFloatFilter<$PrismaModel> | number - } - - export type NestedEnumOrganizationTypeFilter<$PrismaModel = never> = { - equals?: $Enums.OrganizationType | EnumOrganizationTypeFieldRefInput<$PrismaModel> - in?: $Enums.OrganizationType[] | ListEnumOrganizationTypeFieldRefInput<$PrismaModel> - notIn?: $Enums.OrganizationType[] | ListEnumOrganizationTypeFieldRefInput<$PrismaModel> - not?: NestedEnumOrganizationTypeFilter<$PrismaModel> | $Enums.OrganizationType - } - - export type NestedBigIntNullableFilter<$PrismaModel = never> = { - equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> | null - in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> | null - notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> | null - lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> - lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> - gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> - gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> - not?: NestedBigIntNullableFilter<$PrismaModel> | bigint | number | null - } - - export type NestedEnumOrganizationTypeWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.OrganizationType | EnumOrganizationTypeFieldRefInput<$PrismaModel> - in?: $Enums.OrganizationType[] | ListEnumOrganizationTypeFieldRefInput<$PrismaModel> - notIn?: $Enums.OrganizationType[] | ListEnumOrganizationTypeFieldRefInput<$PrismaModel> - not?: NestedEnumOrganizationTypeWithAggregatesFilter<$PrismaModel> | $Enums.OrganizationType - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedEnumOrganizationTypeFilter<$PrismaModel> - _max?: NestedEnumOrganizationTypeFilter<$PrismaModel> - } - export type NestedJsonNullableFilter<$PrismaModel = never> = - | PatchUndefined< - Either>, Exclude>, 'path'>>, - Required> - > - | OptionalFlat>, 'path'>> - - export type NestedJsonNullableFilterBase<$PrismaModel = never> = { - equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter - path?: string[] - mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> - string_contains?: string | StringFieldRefInput<$PrismaModel> - string_starts_with?: string | StringFieldRefInput<$PrismaModel> - string_ends_with?: string | StringFieldRefInput<$PrismaModel> - array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null - array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null - array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null - lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> - lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> - gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> - gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> - not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter - } - - export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> | null - in?: number[] | ListIntFieldRefInput<$PrismaModel> | null - notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null - _count?: NestedIntNullableFilter<$PrismaModel> - _avg?: NestedFloatNullableFilter<$PrismaModel> - _sum?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedIntNullableFilter<$PrismaModel> - _max?: NestedIntNullableFilter<$PrismaModel> - } - - export type NestedFloatNullableFilter<$PrismaModel = never> = { - equals?: number | FloatFieldRefInput<$PrismaModel> | null - in?: number[] | ListFloatFieldRefInput<$PrismaModel> | null - notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> | null - lt?: number | FloatFieldRefInput<$PrismaModel> - lte?: number | FloatFieldRefInput<$PrismaModel> - gt?: number | FloatFieldRefInput<$PrismaModel> - gte?: number | FloatFieldRefInput<$PrismaModel> - not?: NestedFloatNullableFilter<$PrismaModel> | number | null - } - - export type NestedBigIntNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> | null - in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> | null - notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> | null - lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> - lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> - gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> - gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> - not?: NestedBigIntNullableWithAggregatesFilter<$PrismaModel> | bigint | number | null - _count?: NestedIntNullableFilter<$PrismaModel> - _avg?: NestedFloatNullableFilter<$PrismaModel> - _sum?: NestedBigIntNullableFilter<$PrismaModel> - _min?: NestedBigIntNullableFilter<$PrismaModel> - _max?: NestedBigIntNullableFilter<$PrismaModel> - } - - export type NestedEnumMarketplaceTypeFilter<$PrismaModel = never> = { - equals?: $Enums.MarketplaceType | EnumMarketplaceTypeFieldRefInput<$PrismaModel> - in?: $Enums.MarketplaceType[] | ListEnumMarketplaceTypeFieldRefInput<$PrismaModel> - notIn?: $Enums.MarketplaceType[] | ListEnumMarketplaceTypeFieldRefInput<$PrismaModel> - not?: NestedEnumMarketplaceTypeFilter<$PrismaModel> | $Enums.MarketplaceType - } - - export type NestedEnumMarketplaceTypeWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.MarketplaceType | EnumMarketplaceTypeFieldRefInput<$PrismaModel> - in?: $Enums.MarketplaceType[] | ListEnumMarketplaceTypeFieldRefInput<$PrismaModel> - notIn?: $Enums.MarketplaceType[] | ListEnumMarketplaceTypeFieldRefInput<$PrismaModel> - not?: NestedEnumMarketplaceTypeWithAggregatesFilter<$PrismaModel> | $Enums.MarketplaceType - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedEnumMarketplaceTypeFilter<$PrismaModel> - _max?: NestedEnumMarketplaceTypeFilter<$PrismaModel> - } - - export type NestedEnumCounterpartyRequestStatusFilter<$PrismaModel = never> = { - equals?: $Enums.CounterpartyRequestStatus | EnumCounterpartyRequestStatusFieldRefInput<$PrismaModel> - in?: $Enums.CounterpartyRequestStatus[] | ListEnumCounterpartyRequestStatusFieldRefInput<$PrismaModel> - notIn?: $Enums.CounterpartyRequestStatus[] | ListEnumCounterpartyRequestStatusFieldRefInput<$PrismaModel> - not?: NestedEnumCounterpartyRequestStatusFilter<$PrismaModel> | $Enums.CounterpartyRequestStatus - } - - export type NestedEnumCounterpartyRequestStatusWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.CounterpartyRequestStatus | EnumCounterpartyRequestStatusFieldRefInput<$PrismaModel> - in?: $Enums.CounterpartyRequestStatus[] | ListEnumCounterpartyRequestStatusFieldRefInput<$PrismaModel> - notIn?: $Enums.CounterpartyRequestStatus[] | ListEnumCounterpartyRequestStatusFieldRefInput<$PrismaModel> - not?: NestedEnumCounterpartyRequestStatusWithAggregatesFilter<$PrismaModel> | $Enums.CounterpartyRequestStatus - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedEnumCounterpartyRequestStatusFilter<$PrismaModel> - _max?: NestedEnumCounterpartyRequestStatusFilter<$PrismaModel> - } - - export type NestedEnumMessageTypeFilter<$PrismaModel = never> = { - equals?: $Enums.MessageType | EnumMessageTypeFieldRefInput<$PrismaModel> - in?: $Enums.MessageType[] | ListEnumMessageTypeFieldRefInput<$PrismaModel> - notIn?: $Enums.MessageType[] | ListEnumMessageTypeFieldRefInput<$PrismaModel> - not?: NestedEnumMessageTypeFilter<$PrismaModel> | $Enums.MessageType - } - - export type NestedEnumMessageTypeWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.MessageType | EnumMessageTypeFieldRefInput<$PrismaModel> - in?: $Enums.MessageType[] | ListEnumMessageTypeFieldRefInput<$PrismaModel> - notIn?: $Enums.MessageType[] | ListEnumMessageTypeFieldRefInput<$PrismaModel> - not?: NestedEnumMessageTypeWithAggregatesFilter<$PrismaModel> | $Enums.MessageType - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedEnumMessageTypeFilter<$PrismaModel> - _max?: NestedEnumMessageTypeFilter<$PrismaModel> - } - - export type NestedDecimalFilter<$PrismaModel = never> = { - equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> - notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> - lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - not?: NestedDecimalFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string - } - - export type NestedDecimalWithAggregatesFilter<$PrismaModel = never> = { - equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> - notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> - lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - not?: NestedDecimalWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string - _count?: NestedIntFilter<$PrismaModel> - _avg?: NestedDecimalFilter<$PrismaModel> - _sum?: NestedDecimalFilter<$PrismaModel> - _min?: NestedDecimalFilter<$PrismaModel> - _max?: NestedDecimalFilter<$PrismaModel> - } - - export type NestedDecimalNullableFilter<$PrismaModel = never> = { - equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null - in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null - notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null - lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - not?: NestedDecimalNullableFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null - } - - export type NestedDecimalNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null - in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null - notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null - lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> - not?: NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null - _count?: NestedIntNullableFilter<$PrismaModel> - _avg?: NestedDecimalNullableFilter<$PrismaModel> - _sum?: NestedDecimalNullableFilter<$PrismaModel> - _min?: NestedDecimalNullableFilter<$PrismaModel> - _max?: NestedDecimalNullableFilter<$PrismaModel> - } - export type NestedJsonFilter<$PrismaModel = never> = - | PatchUndefined< - Either>, Exclude>, 'path'>>, - Required> - > - | OptionalFlat>, 'path'>> - - export type NestedJsonFilterBase<$PrismaModel = never> = { - equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter - path?: string[] - mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> - string_contains?: string | StringFieldRefInput<$PrismaModel> - string_starts_with?: string | StringFieldRefInput<$PrismaModel> - string_ends_with?: string | StringFieldRefInput<$PrismaModel> - array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null - array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null - array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null - lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> - lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> - gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> - gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> - not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter - } - - export type NestedEnumEmployeeStatusFilter<$PrismaModel = never> = { - equals?: $Enums.EmployeeStatus | EnumEmployeeStatusFieldRefInput<$PrismaModel> - in?: $Enums.EmployeeStatus[] | ListEnumEmployeeStatusFieldRefInput<$PrismaModel> - notIn?: $Enums.EmployeeStatus[] | ListEnumEmployeeStatusFieldRefInput<$PrismaModel> - not?: NestedEnumEmployeeStatusFilter<$PrismaModel> | $Enums.EmployeeStatus - } - - export type NestedFloatNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | FloatFieldRefInput<$PrismaModel> | null - in?: number[] | ListFloatFieldRefInput<$PrismaModel> | null - notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> | null - lt?: number | FloatFieldRefInput<$PrismaModel> - lte?: number | FloatFieldRefInput<$PrismaModel> - gt?: number | FloatFieldRefInput<$PrismaModel> - gte?: number | FloatFieldRefInput<$PrismaModel> - not?: NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null - _count?: NestedIntNullableFilter<$PrismaModel> - _avg?: NestedFloatNullableFilter<$PrismaModel> - _sum?: NestedFloatNullableFilter<$PrismaModel> - _min?: NestedFloatNullableFilter<$PrismaModel> - _max?: NestedFloatNullableFilter<$PrismaModel> - } - - export type NestedEnumEmployeeStatusWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.EmployeeStatus | EnumEmployeeStatusFieldRefInput<$PrismaModel> - in?: $Enums.EmployeeStatus[] | ListEnumEmployeeStatusFieldRefInput<$PrismaModel> - notIn?: $Enums.EmployeeStatus[] | ListEnumEmployeeStatusFieldRefInput<$PrismaModel> - not?: NestedEnumEmployeeStatusWithAggregatesFilter<$PrismaModel> | $Enums.EmployeeStatus - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedEnumEmployeeStatusFilter<$PrismaModel> - _max?: NestedEnumEmployeeStatusFilter<$PrismaModel> - } - - export type NestedEnumScheduleStatusFilter<$PrismaModel = never> = { - equals?: $Enums.ScheduleStatus | EnumScheduleStatusFieldRefInput<$PrismaModel> - in?: $Enums.ScheduleStatus[] | ListEnumScheduleStatusFieldRefInput<$PrismaModel> - notIn?: $Enums.ScheduleStatus[] | ListEnumScheduleStatusFieldRefInput<$PrismaModel> - not?: NestedEnumScheduleStatusFilter<$PrismaModel> | $Enums.ScheduleStatus - } - - export type NestedEnumScheduleStatusWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.ScheduleStatus | EnumScheduleStatusFieldRefInput<$PrismaModel> - in?: $Enums.ScheduleStatus[] | ListEnumScheduleStatusFieldRefInput<$PrismaModel> - notIn?: $Enums.ScheduleStatus[] | ListEnumScheduleStatusFieldRefInput<$PrismaModel> - not?: NestedEnumScheduleStatusWithAggregatesFilter<$PrismaModel> | $Enums.ScheduleStatus - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedEnumScheduleStatusFilter<$PrismaModel> - _max?: NestedEnumScheduleStatusFilter<$PrismaModel> - } - - export type NestedEnumWildberriesSupplyStatusFilter<$PrismaModel = never> = { - equals?: $Enums.WildberriesSupplyStatus | EnumWildberriesSupplyStatusFieldRefInput<$PrismaModel> - in?: $Enums.WildberriesSupplyStatus[] | ListEnumWildberriesSupplyStatusFieldRefInput<$PrismaModel> - notIn?: $Enums.WildberriesSupplyStatus[] | ListEnumWildberriesSupplyStatusFieldRefInput<$PrismaModel> - not?: NestedEnumWildberriesSupplyStatusFilter<$PrismaModel> | $Enums.WildberriesSupplyStatus - } - - export type NestedEnumWildberriesSupplyStatusWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.WildberriesSupplyStatus | EnumWildberriesSupplyStatusFieldRefInput<$PrismaModel> - in?: $Enums.WildberriesSupplyStatus[] | ListEnumWildberriesSupplyStatusFieldRefInput<$PrismaModel> - notIn?: $Enums.WildberriesSupplyStatus[] | ListEnumWildberriesSupplyStatusFieldRefInput<$PrismaModel> - not?: NestedEnumWildberriesSupplyStatusWithAggregatesFilter<$PrismaModel> | $Enums.WildberriesSupplyStatus - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedEnumWildberriesSupplyStatusFilter<$PrismaModel> - _max?: NestedEnumWildberriesSupplyStatusFilter<$PrismaModel> - } - - export type NestedFloatWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | FloatFieldRefInput<$PrismaModel> - in?: number[] | ListFloatFieldRefInput<$PrismaModel> - notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> - lt?: number | FloatFieldRefInput<$PrismaModel> - lte?: number | FloatFieldRefInput<$PrismaModel> - gt?: number | FloatFieldRefInput<$PrismaModel> - gte?: number | FloatFieldRefInput<$PrismaModel> - not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number - _count?: NestedIntFilter<$PrismaModel> - _avg?: NestedFloatFilter<$PrismaModel> - _sum?: NestedFloatFilter<$PrismaModel> - _min?: NestedFloatFilter<$PrismaModel> - _max?: NestedFloatFilter<$PrismaModel> - } - - export type NestedEnumSupplyOrderStatusFilter<$PrismaModel = never> = { - equals?: $Enums.SupplyOrderStatus | EnumSupplyOrderStatusFieldRefInput<$PrismaModel> - in?: $Enums.SupplyOrderStatus[] | ListEnumSupplyOrderStatusFieldRefInput<$PrismaModel> - notIn?: $Enums.SupplyOrderStatus[] | ListEnumSupplyOrderStatusFieldRefInput<$PrismaModel> - not?: NestedEnumSupplyOrderStatusFilter<$PrismaModel> | $Enums.SupplyOrderStatus - } - - export type NestedEnumSupplyOrderStatusWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.SupplyOrderStatus | EnumSupplyOrderStatusFieldRefInput<$PrismaModel> - in?: $Enums.SupplyOrderStatus[] | ListEnumSupplyOrderStatusFieldRefInput<$PrismaModel> - notIn?: $Enums.SupplyOrderStatus[] | ListEnumSupplyOrderStatusFieldRefInput<$PrismaModel> - not?: NestedEnumSupplyOrderStatusWithAggregatesFilter<$PrismaModel> | $Enums.SupplyOrderStatus - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedEnumSupplyOrderStatusFilter<$PrismaModel> - _max?: NestedEnumSupplyOrderStatusFilter<$PrismaModel> - } - - export type MessageCreateWithoutSenderInput = { - id?: string - content?: string | null - type?: $Enums.MessageType - voiceUrl?: string | null - voiceDuration?: number | null - fileUrl?: string | null - fileName?: string | null - fileSize?: number | null - fileType?: string | null - isRead?: boolean - createdAt?: Date | string - updatedAt?: Date | string - receiverOrganization: OrganizationCreateNestedOneWithoutReceivedMessagesInput - senderOrganization: OrganizationCreateNestedOneWithoutSentMessagesInput - } - - export type MessageUncheckedCreateWithoutSenderInput = { - id?: string - content?: string | null - type?: $Enums.MessageType - voiceUrl?: string | null - voiceDuration?: number | null - fileUrl?: string | null - fileName?: string | null - fileSize?: number | null - fileType?: string | null - isRead?: boolean - createdAt?: Date | string - updatedAt?: Date | string - senderOrganizationId: string - receiverOrganizationId: string - } - - export type MessageCreateOrConnectWithoutSenderInput = { - where: MessageWhereUniqueInput - create: XOR - } - - export type MessageCreateManySenderInputEnvelope = { - data: MessageCreateManySenderInput | MessageCreateManySenderInput[] - skipDuplicates?: boolean - } - - export type SmsCodeCreateWithoutUserInput = { - id?: string - code: string - phone: string - expiresAt: Date | string - isUsed?: boolean - attempts?: number - maxAttempts?: number - createdAt?: Date | string - } - - export type SmsCodeUncheckedCreateWithoutUserInput = { - id?: string - code: string - phone: string - expiresAt: Date | string - isUsed?: boolean - attempts?: number - maxAttempts?: number - createdAt?: Date | string - } - - export type SmsCodeCreateOrConnectWithoutUserInput = { - where: SmsCodeWhereUniqueInput - create: XOR - } - - export type SmsCodeCreateManyUserInputEnvelope = { - data: SmsCodeCreateManyUserInput | SmsCodeCreateManyUserInput[] - skipDuplicates?: boolean - } - - export type OrganizationCreateWithoutUsersInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyCreateNestedManyWithoutOrganizationInput - carts?: CartCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestCreateNestedManyWithoutSenderInput - employees?: EmployeeCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageCreateNestedManyWithoutSenderOrganizationInput - products?: ProductCreateNestedManyWithoutOrganizationInput - services?: ServiceCreateNestedManyWithoutOrganizationInput - supplies?: SupplyCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationUncheckedCreateWithoutUsersInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedCreateNestedManyWithoutOrganizationInput - carts?: CartUncheckedCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyUncheckedCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyUncheckedCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutSenderInput - employees?: EmployeeUncheckedCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesUncheckedCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageUncheckedCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageUncheckedCreateNestedManyWithoutSenderOrganizationInput - products?: ProductUncheckedCreateNestedManyWithoutOrganizationInput - services?: ServiceUncheckedCreateNestedManyWithoutOrganizationInput - supplies?: SupplyUncheckedCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsUncheckedCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyUncheckedCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierUncheckedCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationCreateOrConnectWithoutUsersInput = { - where: OrganizationWhereUniqueInput - create: XOR - } - - export type MessageUpsertWithWhereUniqueWithoutSenderInput = { - where: MessageWhereUniqueInput - update: XOR - create: XOR - } - - export type MessageUpdateWithWhereUniqueWithoutSenderInput = { - where: MessageWhereUniqueInput - data: XOR - } - - export type MessageUpdateManyWithWhereWithoutSenderInput = { - where: MessageScalarWhereInput - data: XOR - } - - export type MessageScalarWhereInput = { - AND?: MessageScalarWhereInput | MessageScalarWhereInput[] - OR?: MessageScalarWhereInput[] - NOT?: MessageScalarWhereInput | MessageScalarWhereInput[] - id?: StringFilter<"Message"> | string - content?: StringNullableFilter<"Message"> | string | null - type?: EnumMessageTypeFilter<"Message"> | $Enums.MessageType - voiceUrl?: StringNullableFilter<"Message"> | string | null - voiceDuration?: IntNullableFilter<"Message"> | number | null - fileUrl?: StringNullableFilter<"Message"> | string | null - fileName?: StringNullableFilter<"Message"> | string | null - fileSize?: IntNullableFilter<"Message"> | number | null - fileType?: StringNullableFilter<"Message"> | string | null - isRead?: BoolFilter<"Message"> | boolean - createdAt?: DateTimeFilter<"Message"> | Date | string - updatedAt?: DateTimeFilter<"Message"> | Date | string - senderId?: StringFilter<"Message"> | string - senderOrganizationId?: StringFilter<"Message"> | string - receiverOrganizationId?: StringFilter<"Message"> | string - } - - export type SmsCodeUpsertWithWhereUniqueWithoutUserInput = { - where: SmsCodeWhereUniqueInput - update: XOR - create: XOR - } - - export type SmsCodeUpdateWithWhereUniqueWithoutUserInput = { - where: SmsCodeWhereUniqueInput - data: XOR - } - - export type SmsCodeUpdateManyWithWhereWithoutUserInput = { - where: SmsCodeScalarWhereInput - data: XOR - } - - export type SmsCodeScalarWhereInput = { - AND?: SmsCodeScalarWhereInput | SmsCodeScalarWhereInput[] - OR?: SmsCodeScalarWhereInput[] - NOT?: SmsCodeScalarWhereInput | SmsCodeScalarWhereInput[] - id?: StringFilter<"SmsCode"> | string - code?: StringFilter<"SmsCode"> | string - phone?: StringFilter<"SmsCode"> | string - expiresAt?: DateTimeFilter<"SmsCode"> | Date | string - isUsed?: BoolFilter<"SmsCode"> | boolean - attempts?: IntFilter<"SmsCode"> | number - maxAttempts?: IntFilter<"SmsCode"> | number - createdAt?: DateTimeFilter<"SmsCode"> | Date | string - userId?: StringNullableFilter<"SmsCode"> | string | null - } - - export type OrganizationUpsertWithoutUsersInput = { - update: XOR - create: XOR - where?: OrganizationWhereInput - } - - export type OrganizationUpdateToOneWithWhereWithoutUsersInput = { - where?: OrganizationWhereInput - data: XOR - } - - export type OrganizationUpdateWithoutUsersInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUpdateManyWithoutOrganizationNestedInput - carts?: CartUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUpdateManyWithoutSenderNestedInput - employees?: EmployeeUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUpdateManyWithoutOrganizationNestedInput - services?: ServiceUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUncheckedUpdateWithoutUsersInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedUpdateManyWithoutOrganizationNestedInput - carts?: CartUncheckedUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUncheckedUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUncheckedUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUncheckedUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUncheckedUpdateManyWithoutSenderNestedInput - employees?: EmployeeUncheckedUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUncheckedUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUncheckedUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUncheckedUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUncheckedUpdateManyWithoutOrganizationNestedInput - services?: ServiceUncheckedUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUncheckedUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUncheckedUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUncheckedUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUncheckedUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUncheckedUpdateManyWithoutOrganizationNestedInput - } - - export type UserCreateWithoutSmsCodesInput = { - id?: string - phone: string - avatar?: string | null - managerName?: string | null - createdAt?: Date | string - updatedAt?: Date | string - sentMessages?: MessageCreateNestedManyWithoutSenderInput - organization?: OrganizationCreateNestedOneWithoutUsersInput - } - - export type UserUncheckedCreateWithoutSmsCodesInput = { - id?: string - phone: string - avatar?: string | null - managerName?: string | null - createdAt?: Date | string - updatedAt?: Date | string - organizationId?: string | null - sentMessages?: MessageUncheckedCreateNestedManyWithoutSenderInput - } - - export type UserCreateOrConnectWithoutSmsCodesInput = { - where: UserWhereUniqueInput - create: XOR - } - - export type UserUpsertWithoutSmsCodesInput = { - update: XOR - create: XOR - where?: UserWhereInput - } - - export type UserUpdateToOneWithWhereWithoutSmsCodesInput = { - where?: UserWhereInput - data: XOR - } - - export type UserUpdateWithoutSmsCodesInput = { - id?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - avatar?: NullableStringFieldUpdateOperationsInput | string | null - managerName?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - sentMessages?: MessageUpdateManyWithoutSenderNestedInput - organization?: OrganizationUpdateOneWithoutUsersNestedInput - } - - export type UserUncheckedUpdateWithoutSmsCodesInput = { - id?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - avatar?: NullableStringFieldUpdateOperationsInput | string | null - managerName?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: NullableStringFieldUpdateOperationsInput | string | null - sentMessages?: MessageUncheckedUpdateManyWithoutSenderNestedInput - } - - export type ApiKeyCreateWithoutOrganizationInput = { - id?: string - marketplace: $Enums.MarketplaceType - apiKey: string - isActive?: boolean - createdAt?: Date | string - updatedAt?: Date | string - validationData?: NullableJsonNullValueInput | InputJsonValue - } - - export type ApiKeyUncheckedCreateWithoutOrganizationInput = { - id?: string - marketplace: $Enums.MarketplaceType - apiKey: string - isActive?: boolean - createdAt?: Date | string - updatedAt?: Date | string - validationData?: NullableJsonNullValueInput | InputJsonValue - } - - export type ApiKeyCreateOrConnectWithoutOrganizationInput = { - where: ApiKeyWhereUniqueInput - create: XOR - } - - export type ApiKeyCreateManyOrganizationInputEnvelope = { - data: ApiKeyCreateManyOrganizationInput | ApiKeyCreateManyOrganizationInput[] - skipDuplicates?: boolean - } - - export type CartCreateWithoutOrganizationInput = { - id?: string - createdAt?: Date | string - updatedAt?: Date | string - items?: CartItemCreateNestedManyWithoutCartInput - } - - export type CartUncheckedCreateWithoutOrganizationInput = { - id?: string - createdAt?: Date | string - updatedAt?: Date | string - items?: CartItemUncheckedCreateNestedManyWithoutCartInput - } - - export type CartCreateOrConnectWithoutOrganizationInput = { - where: CartWhereUniqueInput - create: XOR - } - - export type CounterpartyCreateWithoutCounterpartyInput = { - id?: string - createdAt?: Date | string - organization: OrganizationCreateNestedOneWithoutOrganizationCounterpartiesInput - } - - export type CounterpartyUncheckedCreateWithoutCounterpartyInput = { - id?: string - createdAt?: Date | string - organizationId: string - } - - export type CounterpartyCreateOrConnectWithoutCounterpartyInput = { - where: CounterpartyWhereUniqueInput - create: XOR - } - - export type CounterpartyCreateManyCounterpartyInputEnvelope = { - data: CounterpartyCreateManyCounterpartyInput | CounterpartyCreateManyCounterpartyInput[] - skipDuplicates?: boolean - } - - export type CounterpartyCreateWithoutOrganizationInput = { - id?: string - createdAt?: Date | string - counterparty: OrganizationCreateNestedOneWithoutCounterpartyOfInput - } - - export type CounterpartyUncheckedCreateWithoutOrganizationInput = { - id?: string - createdAt?: Date | string - counterpartyId: string - } - - export type CounterpartyCreateOrConnectWithoutOrganizationInput = { - where: CounterpartyWhereUniqueInput - create: XOR - } - - export type CounterpartyCreateManyOrganizationInputEnvelope = { - data: CounterpartyCreateManyOrganizationInput | CounterpartyCreateManyOrganizationInput[] - skipDuplicates?: boolean - } - - export type CounterpartyRequestCreateWithoutReceiverInput = { - id?: string - status?: $Enums.CounterpartyRequestStatus - createdAt?: Date | string - updatedAt?: Date | string - message?: string | null - sender: OrganizationCreateNestedOneWithoutSentRequestsInput - } - - export type CounterpartyRequestUncheckedCreateWithoutReceiverInput = { - id?: string - status?: $Enums.CounterpartyRequestStatus - createdAt?: Date | string - updatedAt?: Date | string - senderId: string - message?: string | null - } - - export type CounterpartyRequestCreateOrConnectWithoutReceiverInput = { - where: CounterpartyRequestWhereUniqueInput - create: XOR - } - - export type CounterpartyRequestCreateManyReceiverInputEnvelope = { - data: CounterpartyRequestCreateManyReceiverInput | CounterpartyRequestCreateManyReceiverInput[] - skipDuplicates?: boolean - } - - export type CounterpartyRequestCreateWithoutSenderInput = { - id?: string - status?: $Enums.CounterpartyRequestStatus - createdAt?: Date | string - updatedAt?: Date | string - message?: string | null - receiver: OrganizationCreateNestedOneWithoutReceivedRequestsInput - } - - export type CounterpartyRequestUncheckedCreateWithoutSenderInput = { - id?: string - status?: $Enums.CounterpartyRequestStatus - createdAt?: Date | string - updatedAt?: Date | string - receiverId: string - message?: string | null - } - - export type CounterpartyRequestCreateOrConnectWithoutSenderInput = { - where: CounterpartyRequestWhereUniqueInput - create: XOR - } - - export type CounterpartyRequestCreateManySenderInputEnvelope = { - data: CounterpartyRequestCreateManySenderInput | CounterpartyRequestCreateManySenderInput[] - skipDuplicates?: boolean - } - - export type EmployeeCreateWithoutOrganizationInput = { - id?: string - firstName: string - lastName: string - middleName?: string | null - birthDate?: Date | string | null - avatar?: string | null - passportPhoto?: string | null - passportSeries?: string | null - passportNumber?: string | null - passportIssued?: string | null - passportDate?: Date | string | null - address?: string | null - position: string - department?: string | null - hireDate: Date | string - salary?: number | null - status?: $Enums.EmployeeStatus - phone: string - email?: string | null - telegram?: string | null - whatsapp?: string | null - emergencyContact?: string | null - emergencyPhone?: string | null - createdAt?: Date | string - updatedAt?: Date | string - scheduleRecords?: EmployeeScheduleCreateNestedManyWithoutEmployeeInput - } - - export type EmployeeUncheckedCreateWithoutOrganizationInput = { - id?: string - firstName: string - lastName: string - middleName?: string | null - birthDate?: Date | string | null - avatar?: string | null - passportPhoto?: string | null - passportSeries?: string | null - passportNumber?: string | null - passportIssued?: string | null - passportDate?: Date | string | null - address?: string | null - position: string - department?: string | null - hireDate: Date | string - salary?: number | null - status?: $Enums.EmployeeStatus - phone: string - email?: string | null - telegram?: string | null - whatsapp?: string | null - emergencyContact?: string | null - emergencyPhone?: string | null - createdAt?: Date | string - updatedAt?: Date | string - scheduleRecords?: EmployeeScheduleUncheckedCreateNestedManyWithoutEmployeeInput - } - - export type EmployeeCreateOrConnectWithoutOrganizationInput = { - where: EmployeeWhereUniqueInput - create: XOR - } - - export type EmployeeCreateManyOrganizationInputEnvelope = { - data: EmployeeCreateManyOrganizationInput | EmployeeCreateManyOrganizationInput[] - skipDuplicates?: boolean - } - - export type FavoritesCreateWithoutOrganizationInput = { - id?: string - createdAt?: Date | string - updatedAt?: Date | string - product: ProductCreateNestedOneWithoutFavoritesInput - } - - export type FavoritesUncheckedCreateWithoutOrganizationInput = { - id?: string - productId: string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type FavoritesCreateOrConnectWithoutOrganizationInput = { - where: FavoritesWhereUniqueInput - create: XOR - } - - export type FavoritesCreateManyOrganizationInputEnvelope = { - data: FavoritesCreateManyOrganizationInput | FavoritesCreateManyOrganizationInput[] - skipDuplicates?: boolean - } - - export type MessageCreateWithoutReceiverOrganizationInput = { - id?: string - content?: string | null - type?: $Enums.MessageType - voiceUrl?: string | null - voiceDuration?: number | null - fileUrl?: string | null - fileName?: string | null - fileSize?: number | null - fileType?: string | null - isRead?: boolean - createdAt?: Date | string - updatedAt?: Date | string - sender: UserCreateNestedOneWithoutSentMessagesInput - senderOrganization: OrganizationCreateNestedOneWithoutSentMessagesInput - } - - export type MessageUncheckedCreateWithoutReceiverOrganizationInput = { - id?: string - content?: string | null - type?: $Enums.MessageType - voiceUrl?: string | null - voiceDuration?: number | null - fileUrl?: string | null - fileName?: string | null - fileSize?: number | null - fileType?: string | null - isRead?: boolean - createdAt?: Date | string - updatedAt?: Date | string - senderId: string - senderOrganizationId: string - } - - export type MessageCreateOrConnectWithoutReceiverOrganizationInput = { - where: MessageWhereUniqueInput - create: XOR - } - - export type MessageCreateManyReceiverOrganizationInputEnvelope = { - data: MessageCreateManyReceiverOrganizationInput | MessageCreateManyReceiverOrganizationInput[] - skipDuplicates?: boolean - } - - export type MessageCreateWithoutSenderOrganizationInput = { - id?: string - content?: string | null - type?: $Enums.MessageType - voiceUrl?: string | null - voiceDuration?: number | null - fileUrl?: string | null - fileName?: string | null - fileSize?: number | null - fileType?: string | null - isRead?: boolean - createdAt?: Date | string - updatedAt?: Date | string - receiverOrganization: OrganizationCreateNestedOneWithoutReceivedMessagesInput - sender: UserCreateNestedOneWithoutSentMessagesInput - } - - export type MessageUncheckedCreateWithoutSenderOrganizationInput = { - id?: string - content?: string | null - type?: $Enums.MessageType - voiceUrl?: string | null - voiceDuration?: number | null - fileUrl?: string | null - fileName?: string | null - fileSize?: number | null - fileType?: string | null - isRead?: boolean - createdAt?: Date | string - updatedAt?: Date | string - senderId: string - receiverOrganizationId: string - } - - export type MessageCreateOrConnectWithoutSenderOrganizationInput = { - where: MessageWhereUniqueInput - create: XOR - } - - export type MessageCreateManySenderOrganizationInputEnvelope = { - data: MessageCreateManySenderOrganizationInput | MessageCreateManySenderOrganizationInput[] - skipDuplicates?: boolean - } - - export type ProductCreateWithoutOrganizationInput = { - id?: string - name: string - article: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - quantity?: number - brand?: string | null - color?: string | null - size?: string | null - weight?: Decimal | DecimalJsLike | number | string | null - dimensions?: string | null - material?: string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: string | null - isActive?: boolean - createdAt?: Date | string - updatedAt?: Date | string - cartItems?: CartItemCreateNestedManyWithoutProductInput - favorites?: FavoritesCreateNestedManyWithoutProductInput - supplyOrderItems?: SupplyOrderItemCreateNestedManyWithoutProductInput - category?: CategoryCreateNestedOneWithoutProductsInput - } - - export type ProductUncheckedCreateWithoutOrganizationInput = { - id?: string - name: string - article: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - quantity?: number - categoryId?: string | null - brand?: string | null - color?: string | null - size?: string | null - weight?: Decimal | DecimalJsLike | number | string | null - dimensions?: string | null - material?: string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: string | null - isActive?: boolean - createdAt?: Date | string - updatedAt?: Date | string - cartItems?: CartItemUncheckedCreateNestedManyWithoutProductInput - favorites?: FavoritesUncheckedCreateNestedManyWithoutProductInput - supplyOrderItems?: SupplyOrderItemUncheckedCreateNestedManyWithoutProductInput - } - - export type ProductCreateOrConnectWithoutOrganizationInput = { - where: ProductWhereUniqueInput - create: XOR - } - - export type ProductCreateManyOrganizationInputEnvelope = { - data: ProductCreateManyOrganizationInput | ProductCreateManyOrganizationInput[] - skipDuplicates?: boolean - } - - export type ServiceCreateWithoutOrganizationInput = { - id?: string - name: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - imageUrl?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type ServiceUncheckedCreateWithoutOrganizationInput = { - id?: string - name: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - imageUrl?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type ServiceCreateOrConnectWithoutOrganizationInput = { - where: ServiceWhereUniqueInput - create: XOR - } - - export type ServiceCreateManyOrganizationInputEnvelope = { - data: ServiceCreateManyOrganizationInput | ServiceCreateManyOrganizationInput[] - skipDuplicates?: boolean - } - - export type SupplyCreateWithoutOrganizationInput = { - id?: string - name: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - quantity?: number - unit?: string - category?: string - status?: string - date?: Date | string - supplier?: string - minStock?: number - currentStock?: number - imageUrl?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type SupplyUncheckedCreateWithoutOrganizationInput = { - id?: string - name: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - quantity?: number - unit?: string - category?: string - status?: string - date?: Date | string - supplier?: string - minStock?: number - currentStock?: number - imageUrl?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type SupplyCreateOrConnectWithoutOrganizationInput = { - where: SupplyWhereUniqueInput - create: XOR - } - - export type SupplyCreateManyOrganizationInputEnvelope = { - data: SupplyCreateManyOrganizationInput | SupplyCreateManyOrganizationInput[] - skipDuplicates?: boolean - } - - export type UserCreateWithoutOrganizationInput = { - id?: string - phone: string - avatar?: string | null - managerName?: string | null - createdAt?: Date | string - updatedAt?: Date | string - sentMessages?: MessageCreateNestedManyWithoutSenderInput - smsCodes?: SmsCodeCreateNestedManyWithoutUserInput - } - - export type UserUncheckedCreateWithoutOrganizationInput = { - id?: string - phone: string - avatar?: string | null - managerName?: string | null - createdAt?: Date | string - updatedAt?: Date | string - sentMessages?: MessageUncheckedCreateNestedManyWithoutSenderInput - smsCodes?: SmsCodeUncheckedCreateNestedManyWithoutUserInput - } - - export type UserCreateOrConnectWithoutOrganizationInput = { - where: UserWhereUniqueInput - create: XOR - } - - export type UserCreateManyOrganizationInputEnvelope = { - data: UserCreateManyOrganizationInput | UserCreateManyOrganizationInput[] - skipDuplicates?: boolean - } - - export type LogisticsCreateWithoutOrganizationInput = { - id?: string - fromLocation: string - toLocation: string - priceUnder1m3: number - priceOver1m3: number - description?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type LogisticsUncheckedCreateWithoutOrganizationInput = { - id?: string - fromLocation: string - toLocation: string - priceUnder1m3: number - priceOver1m3: number - description?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type LogisticsCreateOrConnectWithoutOrganizationInput = { - where: LogisticsWhereUniqueInput - create: XOR - } - - export type LogisticsCreateManyOrganizationInputEnvelope = { - data: LogisticsCreateManyOrganizationInput | LogisticsCreateManyOrganizationInput[] - skipDuplicates?: boolean - } - - export type SupplyOrderCreateWithoutOrganizationInput = { - id?: string - deliveryDate: Date | string - status?: $Enums.SupplyOrderStatus - totalAmount: Decimal | DecimalJsLike | number | string - totalItems: number - createdAt?: Date | string - updatedAt?: Date | string - items?: SupplyOrderItemCreateNestedManyWithoutSupplyOrderInput - partner: OrganizationCreateNestedOneWithoutPartnerSupplyOrdersInput - fulfillmentCenter?: OrganizationCreateNestedOneWithoutFulfillmentSupplyOrdersInput - } - - export type SupplyOrderUncheckedCreateWithoutOrganizationInput = { - id?: string - partnerId: string - deliveryDate: Date | string - status?: $Enums.SupplyOrderStatus - totalAmount: Decimal | DecimalJsLike | number | string - totalItems: number - fulfillmentCenterId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - items?: SupplyOrderItemUncheckedCreateNestedManyWithoutSupplyOrderInput - } - - export type SupplyOrderCreateOrConnectWithoutOrganizationInput = { - where: SupplyOrderWhereUniqueInput - create: XOR - } - - export type SupplyOrderCreateManyOrganizationInputEnvelope = { - data: SupplyOrderCreateManyOrganizationInput | SupplyOrderCreateManyOrganizationInput[] - skipDuplicates?: boolean - } - - export type SupplyOrderCreateWithoutPartnerInput = { - id?: string - deliveryDate: Date | string - status?: $Enums.SupplyOrderStatus - totalAmount: Decimal | DecimalJsLike | number | string - totalItems: number - createdAt?: Date | string - updatedAt?: Date | string - items?: SupplyOrderItemCreateNestedManyWithoutSupplyOrderInput - organization: OrganizationCreateNestedOneWithoutSupplyOrdersInput - fulfillmentCenter?: OrganizationCreateNestedOneWithoutFulfillmentSupplyOrdersInput - } - - export type SupplyOrderUncheckedCreateWithoutPartnerInput = { - id?: string - deliveryDate: Date | string - status?: $Enums.SupplyOrderStatus - totalAmount: Decimal | DecimalJsLike | number | string - totalItems: number - fulfillmentCenterId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - organizationId: string - items?: SupplyOrderItemUncheckedCreateNestedManyWithoutSupplyOrderInput - } - - export type SupplyOrderCreateOrConnectWithoutPartnerInput = { - where: SupplyOrderWhereUniqueInput - create: XOR - } - - export type SupplyOrderCreateManyPartnerInputEnvelope = { - data: SupplyOrderCreateManyPartnerInput | SupplyOrderCreateManyPartnerInput[] - skipDuplicates?: boolean - } - - export type SupplyOrderCreateWithoutFulfillmentCenterInput = { - id?: string - deliveryDate: Date | string - status?: $Enums.SupplyOrderStatus - totalAmount: Decimal | DecimalJsLike | number | string - totalItems: number - createdAt?: Date | string - updatedAt?: Date | string - items?: SupplyOrderItemCreateNestedManyWithoutSupplyOrderInput - organization: OrganizationCreateNestedOneWithoutSupplyOrdersInput - partner: OrganizationCreateNestedOneWithoutPartnerSupplyOrdersInput - } - - export type SupplyOrderUncheckedCreateWithoutFulfillmentCenterInput = { - id?: string - partnerId: string - deliveryDate: Date | string - status?: $Enums.SupplyOrderStatus - totalAmount: Decimal | DecimalJsLike | number | string - totalItems: number - createdAt?: Date | string - updatedAt?: Date | string - organizationId: string - items?: SupplyOrderItemUncheckedCreateNestedManyWithoutSupplyOrderInput - } - - export type SupplyOrderCreateOrConnectWithoutFulfillmentCenterInput = { - where: SupplyOrderWhereUniqueInput - create: XOR - } - - export type SupplyOrderCreateManyFulfillmentCenterInputEnvelope = { - data: SupplyOrderCreateManyFulfillmentCenterInput | SupplyOrderCreateManyFulfillmentCenterInput[] - skipDuplicates?: boolean - } - - export type WildberriesSupplyCreateWithoutOrganizationInput = { - id?: string - deliveryDate?: Date | string | null - status?: $Enums.WildberriesSupplyStatus - totalAmount: Decimal | DecimalJsLike | number | string - totalItems: number - createdAt?: Date | string - updatedAt?: Date | string - cards?: WildberriesSupplyCardCreateNestedManyWithoutSupplyInput - } - - export type WildberriesSupplyUncheckedCreateWithoutOrganizationInput = { - id?: string - deliveryDate?: Date | string | null - status?: $Enums.WildberriesSupplyStatus - totalAmount: Decimal | DecimalJsLike | number | string - totalItems: number - createdAt?: Date | string - updatedAt?: Date | string - cards?: WildberriesSupplyCardUncheckedCreateNestedManyWithoutSupplyInput - } - - export type WildberriesSupplyCreateOrConnectWithoutOrganizationInput = { - where: WildberriesSupplyWhereUniqueInput - create: XOR - } - - export type WildberriesSupplyCreateManyOrganizationInputEnvelope = { - data: WildberriesSupplyCreateManyOrganizationInput | WildberriesSupplyCreateManyOrganizationInput[] - skipDuplicates?: boolean - } - - export type SupplySupplierCreateWithoutOrganizationInput = { - id?: string - name: string - contactName: string - phone: string - market?: string | null - address?: string | null - place?: string | null - telegram?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type SupplySupplierUncheckedCreateWithoutOrganizationInput = { - id?: string - name: string - contactName: string - phone: string - market?: string | null - address?: string | null - place?: string | null - telegram?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type SupplySupplierCreateOrConnectWithoutOrganizationInput = { - where: SupplySupplierWhereUniqueInput - create: XOR - } - - export type SupplySupplierCreateManyOrganizationInputEnvelope = { - data: SupplySupplierCreateManyOrganizationInput | SupplySupplierCreateManyOrganizationInput[] - skipDuplicates?: boolean - } - - export type ApiKeyUpsertWithWhereUniqueWithoutOrganizationInput = { - where: ApiKeyWhereUniqueInput - update: XOR - create: XOR - } - - export type ApiKeyUpdateWithWhereUniqueWithoutOrganizationInput = { - where: ApiKeyWhereUniqueInput - data: XOR - } - - export type ApiKeyUpdateManyWithWhereWithoutOrganizationInput = { - where: ApiKeyScalarWhereInput - data: XOR - } - - export type ApiKeyScalarWhereInput = { - AND?: ApiKeyScalarWhereInput | ApiKeyScalarWhereInput[] - OR?: ApiKeyScalarWhereInput[] - NOT?: ApiKeyScalarWhereInput | ApiKeyScalarWhereInput[] - id?: StringFilter<"ApiKey"> | string - marketplace?: EnumMarketplaceTypeFilter<"ApiKey"> | $Enums.MarketplaceType - apiKey?: StringFilter<"ApiKey"> | string - isActive?: BoolFilter<"ApiKey"> | boolean - createdAt?: DateTimeFilter<"ApiKey"> | Date | string - updatedAt?: DateTimeFilter<"ApiKey"> | Date | string - validationData?: JsonNullableFilter<"ApiKey"> - organizationId?: StringFilter<"ApiKey"> | string - } - - export type CartUpsertWithoutOrganizationInput = { - update: XOR - create: XOR - where?: CartWhereInput - } - - export type CartUpdateToOneWithWhereWithoutOrganizationInput = { - where?: CartWhereInput - data: XOR - } - - export type CartUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - items?: CartItemUpdateManyWithoutCartNestedInput - } - - export type CartUncheckedUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - items?: CartItemUncheckedUpdateManyWithoutCartNestedInput - } - - export type CounterpartyUpsertWithWhereUniqueWithoutCounterpartyInput = { - where: CounterpartyWhereUniqueInput - update: XOR - create: XOR - } - - export type CounterpartyUpdateWithWhereUniqueWithoutCounterpartyInput = { - where: CounterpartyWhereUniqueInput - data: XOR - } - - export type CounterpartyUpdateManyWithWhereWithoutCounterpartyInput = { - where: CounterpartyScalarWhereInput - data: XOR - } - - export type CounterpartyScalarWhereInput = { - AND?: CounterpartyScalarWhereInput | CounterpartyScalarWhereInput[] - OR?: CounterpartyScalarWhereInput[] - NOT?: CounterpartyScalarWhereInput | CounterpartyScalarWhereInput[] - id?: StringFilter<"Counterparty"> | string - createdAt?: DateTimeFilter<"Counterparty"> | Date | string - organizationId?: StringFilter<"Counterparty"> | string - counterpartyId?: StringFilter<"Counterparty"> | string - } - - export type CounterpartyUpsertWithWhereUniqueWithoutOrganizationInput = { - where: CounterpartyWhereUniqueInput - update: XOR - create: XOR - } - - export type CounterpartyUpdateWithWhereUniqueWithoutOrganizationInput = { - where: CounterpartyWhereUniqueInput - data: XOR - } - - export type CounterpartyUpdateManyWithWhereWithoutOrganizationInput = { - where: CounterpartyScalarWhereInput - data: XOR - } - - export type CounterpartyRequestUpsertWithWhereUniqueWithoutReceiverInput = { - where: CounterpartyRequestWhereUniqueInput - update: XOR - create: XOR - } - - export type CounterpartyRequestUpdateWithWhereUniqueWithoutReceiverInput = { - where: CounterpartyRequestWhereUniqueInput - data: XOR - } - - export type CounterpartyRequestUpdateManyWithWhereWithoutReceiverInput = { - where: CounterpartyRequestScalarWhereInput - data: XOR - } - - export type CounterpartyRequestScalarWhereInput = { - AND?: CounterpartyRequestScalarWhereInput | CounterpartyRequestScalarWhereInput[] - OR?: CounterpartyRequestScalarWhereInput[] - NOT?: CounterpartyRequestScalarWhereInput | CounterpartyRequestScalarWhereInput[] - id?: StringFilter<"CounterpartyRequest"> | string - status?: EnumCounterpartyRequestStatusFilter<"CounterpartyRequest"> | $Enums.CounterpartyRequestStatus - createdAt?: DateTimeFilter<"CounterpartyRequest"> | Date | string - updatedAt?: DateTimeFilter<"CounterpartyRequest"> | Date | string - senderId?: StringFilter<"CounterpartyRequest"> | string - receiverId?: StringFilter<"CounterpartyRequest"> | string - message?: StringNullableFilter<"CounterpartyRequest"> | string | null - } - - export type CounterpartyRequestUpsertWithWhereUniqueWithoutSenderInput = { - where: CounterpartyRequestWhereUniqueInput - update: XOR - create: XOR - } - - export type CounterpartyRequestUpdateWithWhereUniqueWithoutSenderInput = { - where: CounterpartyRequestWhereUniqueInput - data: XOR - } - - export type CounterpartyRequestUpdateManyWithWhereWithoutSenderInput = { - where: CounterpartyRequestScalarWhereInput - data: XOR - } - - export type EmployeeUpsertWithWhereUniqueWithoutOrganizationInput = { - where: EmployeeWhereUniqueInput - update: XOR - create: XOR - } - - export type EmployeeUpdateWithWhereUniqueWithoutOrganizationInput = { - where: EmployeeWhereUniqueInput - data: XOR - } - - export type EmployeeUpdateManyWithWhereWithoutOrganizationInput = { - where: EmployeeScalarWhereInput - data: XOR - } - - export type EmployeeScalarWhereInput = { - AND?: EmployeeScalarWhereInput | EmployeeScalarWhereInput[] - OR?: EmployeeScalarWhereInput[] - NOT?: EmployeeScalarWhereInput | EmployeeScalarWhereInput[] - id?: StringFilter<"Employee"> | string - firstName?: StringFilter<"Employee"> | string - lastName?: StringFilter<"Employee"> | string - middleName?: StringNullableFilter<"Employee"> | string | null - birthDate?: DateTimeNullableFilter<"Employee"> | Date | string | null - avatar?: StringNullableFilter<"Employee"> | string | null - passportPhoto?: StringNullableFilter<"Employee"> | string | null - passportSeries?: StringNullableFilter<"Employee"> | string | null - passportNumber?: StringNullableFilter<"Employee"> | string | null - passportIssued?: StringNullableFilter<"Employee"> | string | null - passportDate?: DateTimeNullableFilter<"Employee"> | Date | string | null - address?: StringNullableFilter<"Employee"> | string | null - position?: StringFilter<"Employee"> | string - department?: StringNullableFilter<"Employee"> | string | null - hireDate?: DateTimeFilter<"Employee"> | Date | string - salary?: FloatNullableFilter<"Employee"> | number | null - status?: EnumEmployeeStatusFilter<"Employee"> | $Enums.EmployeeStatus - phone?: StringFilter<"Employee"> | string - email?: StringNullableFilter<"Employee"> | string | null - telegram?: StringNullableFilter<"Employee"> | string | null - whatsapp?: StringNullableFilter<"Employee"> | string | null - emergencyContact?: StringNullableFilter<"Employee"> | string | null - emergencyPhone?: StringNullableFilter<"Employee"> | string | null - organizationId?: StringFilter<"Employee"> | string - createdAt?: DateTimeFilter<"Employee"> | Date | string - updatedAt?: DateTimeFilter<"Employee"> | Date | string - } - - export type FavoritesUpsertWithWhereUniqueWithoutOrganizationInput = { - where: FavoritesWhereUniqueInput - update: XOR - create: XOR - } - - export type FavoritesUpdateWithWhereUniqueWithoutOrganizationInput = { - where: FavoritesWhereUniqueInput - data: XOR - } - - export type FavoritesUpdateManyWithWhereWithoutOrganizationInput = { - where: FavoritesScalarWhereInput - data: XOR - } - - export type FavoritesScalarWhereInput = { - AND?: FavoritesScalarWhereInput | FavoritesScalarWhereInput[] - OR?: FavoritesScalarWhereInput[] - NOT?: FavoritesScalarWhereInput | FavoritesScalarWhereInput[] - id?: StringFilter<"Favorites"> | string - organizationId?: StringFilter<"Favorites"> | string - productId?: StringFilter<"Favorites"> | string - createdAt?: DateTimeFilter<"Favorites"> | Date | string - updatedAt?: DateTimeFilter<"Favorites"> | Date | string - } - - export type MessageUpsertWithWhereUniqueWithoutReceiverOrganizationInput = { - where: MessageWhereUniqueInput - update: XOR - create: XOR - } - - export type MessageUpdateWithWhereUniqueWithoutReceiverOrganizationInput = { - where: MessageWhereUniqueInput - data: XOR - } - - export type MessageUpdateManyWithWhereWithoutReceiverOrganizationInput = { - where: MessageScalarWhereInput - data: XOR - } - - export type MessageUpsertWithWhereUniqueWithoutSenderOrganizationInput = { - where: MessageWhereUniqueInput - update: XOR - create: XOR - } - - export type MessageUpdateWithWhereUniqueWithoutSenderOrganizationInput = { - where: MessageWhereUniqueInput - data: XOR - } - - export type MessageUpdateManyWithWhereWithoutSenderOrganizationInput = { - where: MessageScalarWhereInput - data: XOR - } - - export type ProductUpsertWithWhereUniqueWithoutOrganizationInput = { - where: ProductWhereUniqueInput - update: XOR - create: XOR - } - - export type ProductUpdateWithWhereUniqueWithoutOrganizationInput = { - where: ProductWhereUniqueInput - data: XOR - } - - export type ProductUpdateManyWithWhereWithoutOrganizationInput = { - where: ProductScalarWhereInput - data: XOR - } - - export type ProductScalarWhereInput = { - AND?: ProductScalarWhereInput | ProductScalarWhereInput[] - OR?: ProductScalarWhereInput[] - NOT?: ProductScalarWhereInput | ProductScalarWhereInput[] - id?: StringFilter<"Product"> | string - name?: StringFilter<"Product"> | string - article?: StringFilter<"Product"> | string - description?: StringNullableFilter<"Product"> | string | null - price?: DecimalFilter<"Product"> | Decimal | DecimalJsLike | number | string - quantity?: IntFilter<"Product"> | number - categoryId?: StringNullableFilter<"Product"> | string | null - brand?: StringNullableFilter<"Product"> | string | null - color?: StringNullableFilter<"Product"> | string | null - size?: StringNullableFilter<"Product"> | string | null - weight?: DecimalNullableFilter<"Product"> | Decimal | DecimalJsLike | number | string | null - dimensions?: StringNullableFilter<"Product"> | string | null - material?: StringNullableFilter<"Product"> | string | null - images?: JsonFilter<"Product"> - mainImage?: StringNullableFilter<"Product"> | string | null - isActive?: BoolFilter<"Product"> | boolean - createdAt?: DateTimeFilter<"Product"> | Date | string - updatedAt?: DateTimeFilter<"Product"> | Date | string - organizationId?: StringFilter<"Product"> | string - } - - export type ServiceUpsertWithWhereUniqueWithoutOrganizationInput = { - where: ServiceWhereUniqueInput - update: XOR - create: XOR - } - - export type ServiceUpdateWithWhereUniqueWithoutOrganizationInput = { - where: ServiceWhereUniqueInput - data: XOR - } - - export type ServiceUpdateManyWithWhereWithoutOrganizationInput = { - where: ServiceScalarWhereInput - data: XOR - } - - export type ServiceScalarWhereInput = { - AND?: ServiceScalarWhereInput | ServiceScalarWhereInput[] - OR?: ServiceScalarWhereInput[] - NOT?: ServiceScalarWhereInput | ServiceScalarWhereInput[] - id?: StringFilter<"Service"> | string - name?: StringFilter<"Service"> | string - description?: StringNullableFilter<"Service"> | string | null - price?: DecimalFilter<"Service"> | Decimal | DecimalJsLike | number | string - imageUrl?: StringNullableFilter<"Service"> | string | null - createdAt?: DateTimeFilter<"Service"> | Date | string - updatedAt?: DateTimeFilter<"Service"> | Date | string - organizationId?: StringFilter<"Service"> | string - } - - export type SupplyUpsertWithWhereUniqueWithoutOrganizationInput = { - where: SupplyWhereUniqueInput - update: XOR - create: XOR - } - - export type SupplyUpdateWithWhereUniqueWithoutOrganizationInput = { - where: SupplyWhereUniqueInput - data: XOR - } - - export type SupplyUpdateManyWithWhereWithoutOrganizationInput = { - where: SupplyScalarWhereInput - data: XOR - } - - export type SupplyScalarWhereInput = { - AND?: SupplyScalarWhereInput | SupplyScalarWhereInput[] - OR?: SupplyScalarWhereInput[] - NOT?: SupplyScalarWhereInput | SupplyScalarWhereInput[] - id?: StringFilter<"Supply"> | string - name?: StringFilter<"Supply"> | string - description?: StringNullableFilter<"Supply"> | string | null - price?: DecimalFilter<"Supply"> | Decimal | DecimalJsLike | number | string - quantity?: IntFilter<"Supply"> | number - unit?: StringFilter<"Supply"> | string - category?: StringFilter<"Supply"> | string - status?: StringFilter<"Supply"> | string - date?: DateTimeFilter<"Supply"> | Date | string - supplier?: StringFilter<"Supply"> | string - minStock?: IntFilter<"Supply"> | number - currentStock?: IntFilter<"Supply"> | number - imageUrl?: StringNullableFilter<"Supply"> | string | null - createdAt?: DateTimeFilter<"Supply"> | Date | string - updatedAt?: DateTimeFilter<"Supply"> | Date | string - organizationId?: StringFilter<"Supply"> | string - } - - export type UserUpsertWithWhereUniqueWithoutOrganizationInput = { - where: UserWhereUniqueInput - update: XOR - create: XOR - } - - export type UserUpdateWithWhereUniqueWithoutOrganizationInput = { - where: UserWhereUniqueInput - data: XOR - } - - export type UserUpdateManyWithWhereWithoutOrganizationInput = { - where: UserScalarWhereInput - data: XOR - } - - export type UserScalarWhereInput = { - AND?: UserScalarWhereInput | UserScalarWhereInput[] - OR?: UserScalarWhereInput[] - NOT?: UserScalarWhereInput | UserScalarWhereInput[] - id?: StringFilter<"User"> | string - phone?: StringFilter<"User"> | string - avatar?: StringNullableFilter<"User"> | string | null - managerName?: StringNullableFilter<"User"> | string | null - createdAt?: DateTimeFilter<"User"> | Date | string - updatedAt?: DateTimeFilter<"User"> | Date | string - organizationId?: StringNullableFilter<"User"> | string | null - } - - export type LogisticsUpsertWithWhereUniqueWithoutOrganizationInput = { - where: LogisticsWhereUniqueInput - update: XOR - create: XOR - } - - export type LogisticsUpdateWithWhereUniqueWithoutOrganizationInput = { - where: LogisticsWhereUniqueInput - data: XOR - } - - export type LogisticsUpdateManyWithWhereWithoutOrganizationInput = { - where: LogisticsScalarWhereInput - data: XOR - } - - export type LogisticsScalarWhereInput = { - AND?: LogisticsScalarWhereInput | LogisticsScalarWhereInput[] - OR?: LogisticsScalarWhereInput[] - NOT?: LogisticsScalarWhereInput | LogisticsScalarWhereInput[] - id?: StringFilter<"Logistics"> | string - fromLocation?: StringFilter<"Logistics"> | string - toLocation?: StringFilter<"Logistics"> | string - priceUnder1m3?: FloatFilter<"Logistics"> | number - priceOver1m3?: FloatFilter<"Logistics"> | number - description?: StringNullableFilter<"Logistics"> | string | null - createdAt?: DateTimeFilter<"Logistics"> | Date | string - updatedAt?: DateTimeFilter<"Logistics"> | Date | string - organizationId?: StringFilter<"Logistics"> | string - } - - export type SupplyOrderUpsertWithWhereUniqueWithoutOrganizationInput = { - where: SupplyOrderWhereUniqueInput - update: XOR - create: XOR - } - - export type SupplyOrderUpdateWithWhereUniqueWithoutOrganizationInput = { - where: SupplyOrderWhereUniqueInput - data: XOR - } - - export type SupplyOrderUpdateManyWithWhereWithoutOrganizationInput = { - where: SupplyOrderScalarWhereInput - data: XOR - } - - export type SupplyOrderScalarWhereInput = { - AND?: SupplyOrderScalarWhereInput | SupplyOrderScalarWhereInput[] - OR?: SupplyOrderScalarWhereInput[] - NOT?: SupplyOrderScalarWhereInput | SupplyOrderScalarWhereInput[] - id?: StringFilter<"SupplyOrder"> | string - partnerId?: StringFilter<"SupplyOrder"> | string - deliveryDate?: DateTimeFilter<"SupplyOrder"> | Date | string - status?: EnumSupplyOrderStatusFilter<"SupplyOrder"> | $Enums.SupplyOrderStatus - totalAmount?: DecimalFilter<"SupplyOrder"> | Decimal | DecimalJsLike | number | string - totalItems?: IntFilter<"SupplyOrder"> | number - fulfillmentCenterId?: StringNullableFilter<"SupplyOrder"> | string | null - createdAt?: DateTimeFilter<"SupplyOrder"> | Date | string - updatedAt?: DateTimeFilter<"SupplyOrder"> | Date | string - organizationId?: StringFilter<"SupplyOrder"> | string - } - - export type SupplyOrderUpsertWithWhereUniqueWithoutPartnerInput = { - where: SupplyOrderWhereUniqueInput - update: XOR - create: XOR - } - - export type SupplyOrderUpdateWithWhereUniqueWithoutPartnerInput = { - where: SupplyOrderWhereUniqueInput - data: XOR - } - - export type SupplyOrderUpdateManyWithWhereWithoutPartnerInput = { - where: SupplyOrderScalarWhereInput - data: XOR - } - - export type SupplyOrderUpsertWithWhereUniqueWithoutFulfillmentCenterInput = { - where: SupplyOrderWhereUniqueInput - update: XOR - create: XOR - } - - export type SupplyOrderUpdateWithWhereUniqueWithoutFulfillmentCenterInput = { - where: SupplyOrderWhereUniqueInput - data: XOR - } - - export type SupplyOrderUpdateManyWithWhereWithoutFulfillmentCenterInput = { - where: SupplyOrderScalarWhereInput - data: XOR - } - - export type WildberriesSupplyUpsertWithWhereUniqueWithoutOrganizationInput = { - where: WildberriesSupplyWhereUniqueInput - update: XOR - create: XOR - } - - export type WildberriesSupplyUpdateWithWhereUniqueWithoutOrganizationInput = { - where: WildberriesSupplyWhereUniqueInput - data: XOR - } - - export type WildberriesSupplyUpdateManyWithWhereWithoutOrganizationInput = { - where: WildberriesSupplyScalarWhereInput - data: XOR - } - - export type WildberriesSupplyScalarWhereInput = { - AND?: WildberriesSupplyScalarWhereInput | WildberriesSupplyScalarWhereInput[] - OR?: WildberriesSupplyScalarWhereInput[] - NOT?: WildberriesSupplyScalarWhereInput | WildberriesSupplyScalarWhereInput[] - id?: StringFilter<"WildberriesSupply"> | string - organizationId?: StringFilter<"WildberriesSupply"> | string - deliveryDate?: DateTimeNullableFilter<"WildberriesSupply"> | Date | string | null - status?: EnumWildberriesSupplyStatusFilter<"WildberriesSupply"> | $Enums.WildberriesSupplyStatus - totalAmount?: DecimalFilter<"WildberriesSupply"> | Decimal | DecimalJsLike | number | string - totalItems?: IntFilter<"WildberriesSupply"> | number - createdAt?: DateTimeFilter<"WildberriesSupply"> | Date | string - updatedAt?: DateTimeFilter<"WildberriesSupply"> | Date | string - } - - export type SupplySupplierUpsertWithWhereUniqueWithoutOrganizationInput = { - where: SupplySupplierWhereUniqueInput - update: XOR - create: XOR - } - - export type SupplySupplierUpdateWithWhereUniqueWithoutOrganizationInput = { - where: SupplySupplierWhereUniqueInput - data: XOR - } - - export type SupplySupplierUpdateManyWithWhereWithoutOrganizationInput = { - where: SupplySupplierScalarWhereInput - data: XOR - } - - export type SupplySupplierScalarWhereInput = { - AND?: SupplySupplierScalarWhereInput | SupplySupplierScalarWhereInput[] - OR?: SupplySupplierScalarWhereInput[] - NOT?: SupplySupplierScalarWhereInput | SupplySupplierScalarWhereInput[] - id?: StringFilter<"SupplySupplier"> | string - name?: StringFilter<"SupplySupplier"> | string - contactName?: StringFilter<"SupplySupplier"> | string - phone?: StringFilter<"SupplySupplier"> | string - market?: StringNullableFilter<"SupplySupplier"> | string | null - address?: StringNullableFilter<"SupplySupplier"> | string | null - place?: StringNullableFilter<"SupplySupplier"> | string | null - telegram?: StringNullableFilter<"SupplySupplier"> | string | null - organizationId?: StringFilter<"SupplySupplier"> | string - createdAt?: DateTimeFilter<"SupplySupplier"> | Date | string - updatedAt?: DateTimeFilter<"SupplySupplier"> | Date | string - } - - export type OrganizationCreateWithoutApiKeysInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - carts?: CartCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestCreateNestedManyWithoutSenderInput - employees?: EmployeeCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageCreateNestedManyWithoutSenderOrganizationInput - products?: ProductCreateNestedManyWithoutOrganizationInput - services?: ServiceCreateNestedManyWithoutOrganizationInput - supplies?: SupplyCreateNestedManyWithoutOrganizationInput - users?: UserCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationUncheckedCreateWithoutApiKeysInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - carts?: CartUncheckedCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyUncheckedCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyUncheckedCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutSenderInput - employees?: EmployeeUncheckedCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesUncheckedCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageUncheckedCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageUncheckedCreateNestedManyWithoutSenderOrganizationInput - products?: ProductUncheckedCreateNestedManyWithoutOrganizationInput - services?: ServiceUncheckedCreateNestedManyWithoutOrganizationInput - supplies?: SupplyUncheckedCreateNestedManyWithoutOrganizationInput - users?: UserUncheckedCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsUncheckedCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyUncheckedCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierUncheckedCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationCreateOrConnectWithoutApiKeysInput = { - where: OrganizationWhereUniqueInput - create: XOR - } - - export type OrganizationUpsertWithoutApiKeysInput = { - update: XOR - create: XOR - where?: OrganizationWhereInput - } - - export type OrganizationUpdateToOneWithWhereWithoutApiKeysInput = { - where?: OrganizationWhereInput - data: XOR - } - - export type OrganizationUpdateWithoutApiKeysInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - carts?: CartUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUpdateManyWithoutSenderNestedInput - employees?: EmployeeUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUpdateManyWithoutOrganizationNestedInput - services?: ServiceUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUpdateManyWithoutOrganizationNestedInput - users?: UserUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUncheckedUpdateWithoutApiKeysInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - carts?: CartUncheckedUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUncheckedUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUncheckedUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUncheckedUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUncheckedUpdateManyWithoutSenderNestedInput - employees?: EmployeeUncheckedUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUncheckedUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUncheckedUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUncheckedUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUncheckedUpdateManyWithoutOrganizationNestedInput - services?: ServiceUncheckedUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUncheckedUpdateManyWithoutOrganizationNestedInput - users?: UserUncheckedUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUncheckedUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUncheckedUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUncheckedUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUncheckedUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationCreateWithoutReceivedRequestsInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyCreateNestedManyWithoutOrganizationInput - carts?: CartCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyCreateNestedManyWithoutOrganizationInput - sentRequests?: CounterpartyRequestCreateNestedManyWithoutSenderInput - employees?: EmployeeCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageCreateNestedManyWithoutSenderOrganizationInput - products?: ProductCreateNestedManyWithoutOrganizationInput - services?: ServiceCreateNestedManyWithoutOrganizationInput - supplies?: SupplyCreateNestedManyWithoutOrganizationInput - users?: UserCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationUncheckedCreateWithoutReceivedRequestsInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedCreateNestedManyWithoutOrganizationInput - carts?: CartUncheckedCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyUncheckedCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyUncheckedCreateNestedManyWithoutOrganizationInput - sentRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutSenderInput - employees?: EmployeeUncheckedCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesUncheckedCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageUncheckedCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageUncheckedCreateNestedManyWithoutSenderOrganizationInput - products?: ProductUncheckedCreateNestedManyWithoutOrganizationInput - services?: ServiceUncheckedCreateNestedManyWithoutOrganizationInput - supplies?: SupplyUncheckedCreateNestedManyWithoutOrganizationInput - users?: UserUncheckedCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsUncheckedCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyUncheckedCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierUncheckedCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationCreateOrConnectWithoutReceivedRequestsInput = { - where: OrganizationWhereUniqueInput - create: XOR - } - - export type OrganizationCreateWithoutSentRequestsInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyCreateNestedManyWithoutOrganizationInput - carts?: CartCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestCreateNestedManyWithoutReceiverInput - employees?: EmployeeCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageCreateNestedManyWithoutSenderOrganizationInput - products?: ProductCreateNestedManyWithoutOrganizationInput - services?: ServiceCreateNestedManyWithoutOrganizationInput - supplies?: SupplyCreateNestedManyWithoutOrganizationInput - users?: UserCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationUncheckedCreateWithoutSentRequestsInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedCreateNestedManyWithoutOrganizationInput - carts?: CartUncheckedCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyUncheckedCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyUncheckedCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutReceiverInput - employees?: EmployeeUncheckedCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesUncheckedCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageUncheckedCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageUncheckedCreateNestedManyWithoutSenderOrganizationInput - products?: ProductUncheckedCreateNestedManyWithoutOrganizationInput - services?: ServiceUncheckedCreateNestedManyWithoutOrganizationInput - supplies?: SupplyUncheckedCreateNestedManyWithoutOrganizationInput - users?: UserUncheckedCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsUncheckedCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyUncheckedCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierUncheckedCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationCreateOrConnectWithoutSentRequestsInput = { - where: OrganizationWhereUniqueInput - create: XOR - } - - export type OrganizationUpsertWithoutReceivedRequestsInput = { - update: XOR - create: XOR - where?: OrganizationWhereInput - } - - export type OrganizationUpdateToOneWithWhereWithoutReceivedRequestsInput = { - where?: OrganizationWhereInput - data: XOR - } - - export type OrganizationUpdateWithoutReceivedRequestsInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUpdateManyWithoutOrganizationNestedInput - carts?: CartUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUpdateManyWithoutOrganizationNestedInput - sentRequests?: CounterpartyRequestUpdateManyWithoutSenderNestedInput - employees?: EmployeeUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUpdateManyWithoutOrganizationNestedInput - services?: ServiceUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUpdateManyWithoutOrganizationNestedInput - users?: UserUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUncheckedUpdateWithoutReceivedRequestsInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedUpdateManyWithoutOrganizationNestedInput - carts?: CartUncheckedUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUncheckedUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUncheckedUpdateManyWithoutOrganizationNestedInput - sentRequests?: CounterpartyRequestUncheckedUpdateManyWithoutSenderNestedInput - employees?: EmployeeUncheckedUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUncheckedUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUncheckedUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUncheckedUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUncheckedUpdateManyWithoutOrganizationNestedInput - services?: ServiceUncheckedUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUncheckedUpdateManyWithoutOrganizationNestedInput - users?: UserUncheckedUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUncheckedUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUncheckedUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUncheckedUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUncheckedUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUpsertWithoutSentRequestsInput = { - update: XOR - create: XOR - where?: OrganizationWhereInput - } - - export type OrganizationUpdateToOneWithWhereWithoutSentRequestsInput = { - where?: OrganizationWhereInput - data: XOR - } - - export type OrganizationUpdateWithoutSentRequestsInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUpdateManyWithoutOrganizationNestedInput - carts?: CartUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUpdateManyWithoutReceiverNestedInput - employees?: EmployeeUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUpdateManyWithoutOrganizationNestedInput - services?: ServiceUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUpdateManyWithoutOrganizationNestedInput - users?: UserUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUncheckedUpdateWithoutSentRequestsInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedUpdateManyWithoutOrganizationNestedInput - carts?: CartUncheckedUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUncheckedUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUncheckedUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUncheckedUpdateManyWithoutReceiverNestedInput - employees?: EmployeeUncheckedUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUncheckedUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUncheckedUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUncheckedUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUncheckedUpdateManyWithoutOrganizationNestedInput - services?: ServiceUncheckedUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUncheckedUpdateManyWithoutOrganizationNestedInput - users?: UserUncheckedUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUncheckedUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUncheckedUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUncheckedUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUncheckedUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationCreateWithoutCounterpartyOfInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyCreateNestedManyWithoutOrganizationInput - carts?: CartCreateNestedOneWithoutOrganizationInput - organizationCounterparties?: CounterpartyCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestCreateNestedManyWithoutSenderInput - employees?: EmployeeCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageCreateNestedManyWithoutSenderOrganizationInput - products?: ProductCreateNestedManyWithoutOrganizationInput - services?: ServiceCreateNestedManyWithoutOrganizationInput - supplies?: SupplyCreateNestedManyWithoutOrganizationInput - users?: UserCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationUncheckedCreateWithoutCounterpartyOfInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedCreateNestedManyWithoutOrganizationInput - carts?: CartUncheckedCreateNestedOneWithoutOrganizationInput - organizationCounterparties?: CounterpartyUncheckedCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutSenderInput - employees?: EmployeeUncheckedCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesUncheckedCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageUncheckedCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageUncheckedCreateNestedManyWithoutSenderOrganizationInput - products?: ProductUncheckedCreateNestedManyWithoutOrganizationInput - services?: ServiceUncheckedCreateNestedManyWithoutOrganizationInput - supplies?: SupplyUncheckedCreateNestedManyWithoutOrganizationInput - users?: UserUncheckedCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsUncheckedCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyUncheckedCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierUncheckedCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationCreateOrConnectWithoutCounterpartyOfInput = { - where: OrganizationWhereUniqueInput - create: XOR - } - - export type OrganizationCreateWithoutOrganizationCounterpartiesInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyCreateNestedManyWithoutOrganizationInput - carts?: CartCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyCreateNestedManyWithoutCounterpartyInput - receivedRequests?: CounterpartyRequestCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestCreateNestedManyWithoutSenderInput - employees?: EmployeeCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageCreateNestedManyWithoutSenderOrganizationInput - products?: ProductCreateNestedManyWithoutOrganizationInput - services?: ServiceCreateNestedManyWithoutOrganizationInput - supplies?: SupplyCreateNestedManyWithoutOrganizationInput - users?: UserCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationUncheckedCreateWithoutOrganizationCounterpartiesInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedCreateNestedManyWithoutOrganizationInput - carts?: CartUncheckedCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyUncheckedCreateNestedManyWithoutCounterpartyInput - receivedRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutSenderInput - employees?: EmployeeUncheckedCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesUncheckedCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageUncheckedCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageUncheckedCreateNestedManyWithoutSenderOrganizationInput - products?: ProductUncheckedCreateNestedManyWithoutOrganizationInput - services?: ServiceUncheckedCreateNestedManyWithoutOrganizationInput - supplies?: SupplyUncheckedCreateNestedManyWithoutOrganizationInput - users?: UserUncheckedCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsUncheckedCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyUncheckedCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierUncheckedCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationCreateOrConnectWithoutOrganizationCounterpartiesInput = { - where: OrganizationWhereUniqueInput - create: XOR - } - - export type OrganizationUpsertWithoutCounterpartyOfInput = { - update: XOR - create: XOR - where?: OrganizationWhereInput - } - - export type OrganizationUpdateToOneWithWhereWithoutCounterpartyOfInput = { - where?: OrganizationWhereInput - data: XOR - } - - export type OrganizationUpdateWithoutCounterpartyOfInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUpdateManyWithoutOrganizationNestedInput - carts?: CartUpdateOneWithoutOrganizationNestedInput - organizationCounterparties?: CounterpartyUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUpdateManyWithoutSenderNestedInput - employees?: EmployeeUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUpdateManyWithoutOrganizationNestedInput - services?: ServiceUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUpdateManyWithoutOrganizationNestedInput - users?: UserUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUncheckedUpdateWithoutCounterpartyOfInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedUpdateManyWithoutOrganizationNestedInput - carts?: CartUncheckedUpdateOneWithoutOrganizationNestedInput - organizationCounterparties?: CounterpartyUncheckedUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUncheckedUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUncheckedUpdateManyWithoutSenderNestedInput - employees?: EmployeeUncheckedUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUncheckedUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUncheckedUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUncheckedUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUncheckedUpdateManyWithoutOrganizationNestedInput - services?: ServiceUncheckedUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUncheckedUpdateManyWithoutOrganizationNestedInput - users?: UserUncheckedUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUncheckedUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUncheckedUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUncheckedUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUncheckedUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUpsertWithoutOrganizationCounterpartiesInput = { - update: XOR - create: XOR - where?: OrganizationWhereInput - } - - export type OrganizationUpdateToOneWithWhereWithoutOrganizationCounterpartiesInput = { - where?: OrganizationWhereInput - data: XOR - } - - export type OrganizationUpdateWithoutOrganizationCounterpartiesInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUpdateManyWithoutOrganizationNestedInput - carts?: CartUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUpdateManyWithoutCounterpartyNestedInput - receivedRequests?: CounterpartyRequestUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUpdateManyWithoutSenderNestedInput - employees?: EmployeeUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUpdateManyWithoutOrganizationNestedInput - services?: ServiceUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUpdateManyWithoutOrganizationNestedInput - users?: UserUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUncheckedUpdateWithoutOrganizationCounterpartiesInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedUpdateManyWithoutOrganizationNestedInput - carts?: CartUncheckedUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUncheckedUpdateManyWithoutCounterpartyNestedInput - receivedRequests?: CounterpartyRequestUncheckedUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUncheckedUpdateManyWithoutSenderNestedInput - employees?: EmployeeUncheckedUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUncheckedUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUncheckedUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUncheckedUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUncheckedUpdateManyWithoutOrganizationNestedInput - services?: ServiceUncheckedUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUncheckedUpdateManyWithoutOrganizationNestedInput - users?: UserUncheckedUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUncheckedUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUncheckedUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUncheckedUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUncheckedUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationCreateWithoutReceivedMessagesInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyCreateNestedManyWithoutOrganizationInput - carts?: CartCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestCreateNestedManyWithoutSenderInput - employees?: EmployeeCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesCreateNestedManyWithoutOrganizationInput - sentMessages?: MessageCreateNestedManyWithoutSenderOrganizationInput - products?: ProductCreateNestedManyWithoutOrganizationInput - services?: ServiceCreateNestedManyWithoutOrganizationInput - supplies?: SupplyCreateNestedManyWithoutOrganizationInput - users?: UserCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationUncheckedCreateWithoutReceivedMessagesInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedCreateNestedManyWithoutOrganizationInput - carts?: CartUncheckedCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyUncheckedCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyUncheckedCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutSenderInput - employees?: EmployeeUncheckedCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesUncheckedCreateNestedManyWithoutOrganizationInput - sentMessages?: MessageUncheckedCreateNestedManyWithoutSenderOrganizationInput - products?: ProductUncheckedCreateNestedManyWithoutOrganizationInput - services?: ServiceUncheckedCreateNestedManyWithoutOrganizationInput - supplies?: SupplyUncheckedCreateNestedManyWithoutOrganizationInput - users?: UserUncheckedCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsUncheckedCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyUncheckedCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierUncheckedCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationCreateOrConnectWithoutReceivedMessagesInput = { - where: OrganizationWhereUniqueInput - create: XOR - } - - export type UserCreateWithoutSentMessagesInput = { - id?: string - phone: string - avatar?: string | null - managerName?: string | null - createdAt?: Date | string - updatedAt?: Date | string - smsCodes?: SmsCodeCreateNestedManyWithoutUserInput - organization?: OrganizationCreateNestedOneWithoutUsersInput - } - - export type UserUncheckedCreateWithoutSentMessagesInput = { - id?: string - phone: string - avatar?: string | null - managerName?: string | null - createdAt?: Date | string - updatedAt?: Date | string - organizationId?: string | null - smsCodes?: SmsCodeUncheckedCreateNestedManyWithoutUserInput - } - - export type UserCreateOrConnectWithoutSentMessagesInput = { - where: UserWhereUniqueInput - create: XOR - } - - export type OrganizationCreateWithoutSentMessagesInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyCreateNestedManyWithoutOrganizationInput - carts?: CartCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestCreateNestedManyWithoutSenderInput - employees?: EmployeeCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageCreateNestedManyWithoutReceiverOrganizationInput - products?: ProductCreateNestedManyWithoutOrganizationInput - services?: ServiceCreateNestedManyWithoutOrganizationInput - supplies?: SupplyCreateNestedManyWithoutOrganizationInput - users?: UserCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationUncheckedCreateWithoutSentMessagesInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedCreateNestedManyWithoutOrganizationInput - carts?: CartUncheckedCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyUncheckedCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyUncheckedCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutSenderInput - employees?: EmployeeUncheckedCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesUncheckedCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageUncheckedCreateNestedManyWithoutReceiverOrganizationInput - products?: ProductUncheckedCreateNestedManyWithoutOrganizationInput - services?: ServiceUncheckedCreateNestedManyWithoutOrganizationInput - supplies?: SupplyUncheckedCreateNestedManyWithoutOrganizationInput - users?: UserUncheckedCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsUncheckedCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyUncheckedCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierUncheckedCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationCreateOrConnectWithoutSentMessagesInput = { - where: OrganizationWhereUniqueInput - create: XOR - } - - export type OrganizationUpsertWithoutReceivedMessagesInput = { - update: XOR - create: XOR - where?: OrganizationWhereInput - } - - export type OrganizationUpdateToOneWithWhereWithoutReceivedMessagesInput = { - where?: OrganizationWhereInput - data: XOR - } - - export type OrganizationUpdateWithoutReceivedMessagesInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUpdateManyWithoutOrganizationNestedInput - carts?: CartUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUpdateManyWithoutSenderNestedInput - employees?: EmployeeUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUpdateManyWithoutOrganizationNestedInput - sentMessages?: MessageUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUpdateManyWithoutOrganizationNestedInput - services?: ServiceUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUpdateManyWithoutOrganizationNestedInput - users?: UserUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUncheckedUpdateWithoutReceivedMessagesInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedUpdateManyWithoutOrganizationNestedInput - carts?: CartUncheckedUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUncheckedUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUncheckedUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUncheckedUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUncheckedUpdateManyWithoutSenderNestedInput - employees?: EmployeeUncheckedUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUncheckedUpdateManyWithoutOrganizationNestedInput - sentMessages?: MessageUncheckedUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUncheckedUpdateManyWithoutOrganizationNestedInput - services?: ServiceUncheckedUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUncheckedUpdateManyWithoutOrganizationNestedInput - users?: UserUncheckedUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUncheckedUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUncheckedUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUncheckedUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUncheckedUpdateManyWithoutOrganizationNestedInput - } - - export type UserUpsertWithoutSentMessagesInput = { - update: XOR - create: XOR - where?: UserWhereInput - } - - export type UserUpdateToOneWithWhereWithoutSentMessagesInput = { - where?: UserWhereInput - data: XOR - } - - export type UserUpdateWithoutSentMessagesInput = { - id?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - avatar?: NullableStringFieldUpdateOperationsInput | string | null - managerName?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - smsCodes?: SmsCodeUpdateManyWithoutUserNestedInput - organization?: OrganizationUpdateOneWithoutUsersNestedInput - } - - export type UserUncheckedUpdateWithoutSentMessagesInput = { - id?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - avatar?: NullableStringFieldUpdateOperationsInput | string | null - managerName?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: NullableStringFieldUpdateOperationsInput | string | null - smsCodes?: SmsCodeUncheckedUpdateManyWithoutUserNestedInput - } - - export type OrganizationUpsertWithoutSentMessagesInput = { - update: XOR - create: XOR - where?: OrganizationWhereInput - } - - export type OrganizationUpdateToOneWithWhereWithoutSentMessagesInput = { - where?: OrganizationWhereInput - data: XOR - } - - export type OrganizationUpdateWithoutSentMessagesInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUpdateManyWithoutOrganizationNestedInput - carts?: CartUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUpdateManyWithoutSenderNestedInput - employees?: EmployeeUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUpdateManyWithoutReceiverOrganizationNestedInput - products?: ProductUpdateManyWithoutOrganizationNestedInput - services?: ServiceUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUpdateManyWithoutOrganizationNestedInput - users?: UserUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUncheckedUpdateWithoutSentMessagesInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedUpdateManyWithoutOrganizationNestedInput - carts?: CartUncheckedUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUncheckedUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUncheckedUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUncheckedUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUncheckedUpdateManyWithoutSenderNestedInput - employees?: EmployeeUncheckedUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUncheckedUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUncheckedUpdateManyWithoutReceiverOrganizationNestedInput - products?: ProductUncheckedUpdateManyWithoutOrganizationNestedInput - services?: ServiceUncheckedUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUncheckedUpdateManyWithoutOrganizationNestedInput - users?: UserUncheckedUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUncheckedUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUncheckedUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUncheckedUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUncheckedUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationCreateWithoutServicesInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyCreateNestedManyWithoutOrganizationInput - carts?: CartCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestCreateNestedManyWithoutSenderInput - employees?: EmployeeCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageCreateNestedManyWithoutSenderOrganizationInput - products?: ProductCreateNestedManyWithoutOrganizationInput - supplies?: SupplyCreateNestedManyWithoutOrganizationInput - users?: UserCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationUncheckedCreateWithoutServicesInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedCreateNestedManyWithoutOrganizationInput - carts?: CartUncheckedCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyUncheckedCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyUncheckedCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutSenderInput - employees?: EmployeeUncheckedCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesUncheckedCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageUncheckedCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageUncheckedCreateNestedManyWithoutSenderOrganizationInput - products?: ProductUncheckedCreateNestedManyWithoutOrganizationInput - supplies?: SupplyUncheckedCreateNestedManyWithoutOrganizationInput - users?: UserUncheckedCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsUncheckedCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyUncheckedCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierUncheckedCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationCreateOrConnectWithoutServicesInput = { - where: OrganizationWhereUniqueInput - create: XOR - } - - export type OrganizationUpsertWithoutServicesInput = { - update: XOR - create: XOR - where?: OrganizationWhereInput - } - - export type OrganizationUpdateToOneWithWhereWithoutServicesInput = { - where?: OrganizationWhereInput - data: XOR - } - - export type OrganizationUpdateWithoutServicesInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUpdateManyWithoutOrganizationNestedInput - carts?: CartUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUpdateManyWithoutSenderNestedInput - employees?: EmployeeUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUpdateManyWithoutOrganizationNestedInput - users?: UserUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUncheckedUpdateWithoutServicesInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedUpdateManyWithoutOrganizationNestedInput - carts?: CartUncheckedUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUncheckedUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUncheckedUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUncheckedUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUncheckedUpdateManyWithoutSenderNestedInput - employees?: EmployeeUncheckedUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUncheckedUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUncheckedUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUncheckedUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUncheckedUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUncheckedUpdateManyWithoutOrganizationNestedInput - users?: UserUncheckedUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUncheckedUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUncheckedUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUncheckedUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUncheckedUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationCreateWithoutSuppliesInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyCreateNestedManyWithoutOrganizationInput - carts?: CartCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestCreateNestedManyWithoutSenderInput - employees?: EmployeeCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageCreateNestedManyWithoutSenderOrganizationInput - products?: ProductCreateNestedManyWithoutOrganizationInput - services?: ServiceCreateNestedManyWithoutOrganizationInput - users?: UserCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationUncheckedCreateWithoutSuppliesInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedCreateNestedManyWithoutOrganizationInput - carts?: CartUncheckedCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyUncheckedCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyUncheckedCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutSenderInput - employees?: EmployeeUncheckedCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesUncheckedCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageUncheckedCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageUncheckedCreateNestedManyWithoutSenderOrganizationInput - products?: ProductUncheckedCreateNestedManyWithoutOrganizationInput - services?: ServiceUncheckedCreateNestedManyWithoutOrganizationInput - users?: UserUncheckedCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsUncheckedCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyUncheckedCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierUncheckedCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationCreateOrConnectWithoutSuppliesInput = { - where: OrganizationWhereUniqueInput - create: XOR - } - - export type OrganizationUpsertWithoutSuppliesInput = { - update: XOR - create: XOR - where?: OrganizationWhereInput - } - - export type OrganizationUpdateToOneWithWhereWithoutSuppliesInput = { - where?: OrganizationWhereInput - data: XOR - } - - export type OrganizationUpdateWithoutSuppliesInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUpdateManyWithoutOrganizationNestedInput - carts?: CartUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUpdateManyWithoutSenderNestedInput - employees?: EmployeeUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUpdateManyWithoutOrganizationNestedInput - services?: ServiceUpdateManyWithoutOrganizationNestedInput - users?: UserUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUncheckedUpdateWithoutSuppliesInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedUpdateManyWithoutOrganizationNestedInput - carts?: CartUncheckedUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUncheckedUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUncheckedUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUncheckedUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUncheckedUpdateManyWithoutSenderNestedInput - employees?: EmployeeUncheckedUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUncheckedUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUncheckedUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUncheckedUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUncheckedUpdateManyWithoutOrganizationNestedInput - services?: ServiceUncheckedUpdateManyWithoutOrganizationNestedInput - users?: UserUncheckedUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUncheckedUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUncheckedUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUncheckedUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUncheckedUpdateManyWithoutOrganizationNestedInput - } - - export type ProductCreateWithoutCategoryInput = { - id?: string - name: string - article: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - quantity?: number - brand?: string | null - color?: string | null - size?: string | null - weight?: Decimal | DecimalJsLike | number | string | null - dimensions?: string | null - material?: string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: string | null - isActive?: boolean - createdAt?: Date | string - updatedAt?: Date | string - cartItems?: CartItemCreateNestedManyWithoutProductInput - favorites?: FavoritesCreateNestedManyWithoutProductInput - supplyOrderItems?: SupplyOrderItemCreateNestedManyWithoutProductInput - organization: OrganizationCreateNestedOneWithoutProductsInput - } - - export type ProductUncheckedCreateWithoutCategoryInput = { - id?: string - name: string - article: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - quantity?: number - brand?: string | null - color?: string | null - size?: string | null - weight?: Decimal | DecimalJsLike | number | string | null - dimensions?: string | null - material?: string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: string | null - isActive?: boolean - createdAt?: Date | string - updatedAt?: Date | string - organizationId: string - cartItems?: CartItemUncheckedCreateNestedManyWithoutProductInput - favorites?: FavoritesUncheckedCreateNestedManyWithoutProductInput - supplyOrderItems?: SupplyOrderItemUncheckedCreateNestedManyWithoutProductInput - } - - export type ProductCreateOrConnectWithoutCategoryInput = { - where: ProductWhereUniqueInput - create: XOR - } - - export type ProductCreateManyCategoryInputEnvelope = { - data: ProductCreateManyCategoryInput | ProductCreateManyCategoryInput[] - skipDuplicates?: boolean - } - - export type ProductUpsertWithWhereUniqueWithoutCategoryInput = { - where: ProductWhereUniqueInput - update: XOR - create: XOR - } - - export type ProductUpdateWithWhereUniqueWithoutCategoryInput = { - where: ProductWhereUniqueInput - data: XOR - } - - export type ProductUpdateManyWithWhereWithoutCategoryInput = { - where: ProductScalarWhereInput - data: XOR - } - - export type CartItemCreateWithoutProductInput = { - id?: string - quantity?: number - createdAt?: Date | string - updatedAt?: Date | string - cart: CartCreateNestedOneWithoutItemsInput - } - - export type CartItemUncheckedCreateWithoutProductInput = { - id?: string - cartId: string - quantity?: number - createdAt?: Date | string - updatedAt?: Date | string - } - - export type CartItemCreateOrConnectWithoutProductInput = { - where: CartItemWhereUniqueInput - create: XOR - } - - export type CartItemCreateManyProductInputEnvelope = { - data: CartItemCreateManyProductInput | CartItemCreateManyProductInput[] - skipDuplicates?: boolean - } - - export type FavoritesCreateWithoutProductInput = { - id?: string - createdAt?: Date | string - updatedAt?: Date | string - organization: OrganizationCreateNestedOneWithoutFavoritesInput - } - - export type FavoritesUncheckedCreateWithoutProductInput = { - id?: string - organizationId: string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type FavoritesCreateOrConnectWithoutProductInput = { - where: FavoritesWhereUniqueInput - create: XOR - } - - export type FavoritesCreateManyProductInputEnvelope = { - data: FavoritesCreateManyProductInput | FavoritesCreateManyProductInput[] - skipDuplicates?: boolean - } - - export type SupplyOrderItemCreateWithoutProductInput = { - id?: string - quantity: number - price: Decimal | DecimalJsLike | number | string - totalPrice: Decimal | DecimalJsLike | number | string - createdAt?: Date | string - updatedAt?: Date | string - supplyOrder: SupplyOrderCreateNestedOneWithoutItemsInput - } - - export type SupplyOrderItemUncheckedCreateWithoutProductInput = { - id?: string - supplyOrderId: string - quantity: number - price: Decimal | DecimalJsLike | number | string - totalPrice: Decimal | DecimalJsLike | number | string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type SupplyOrderItemCreateOrConnectWithoutProductInput = { - where: SupplyOrderItemWhereUniqueInput - create: XOR - } - - export type SupplyOrderItemCreateManyProductInputEnvelope = { - data: SupplyOrderItemCreateManyProductInput | SupplyOrderItemCreateManyProductInput[] - skipDuplicates?: boolean - } - - export type CategoryCreateWithoutProductsInput = { - id?: string - name: string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type CategoryUncheckedCreateWithoutProductsInput = { - id?: string - name: string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type CategoryCreateOrConnectWithoutProductsInput = { - where: CategoryWhereUniqueInput - create: XOR - } - - export type OrganizationCreateWithoutProductsInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyCreateNestedManyWithoutOrganizationInput - carts?: CartCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestCreateNestedManyWithoutSenderInput - employees?: EmployeeCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageCreateNestedManyWithoutSenderOrganizationInput - services?: ServiceCreateNestedManyWithoutOrganizationInput - supplies?: SupplyCreateNestedManyWithoutOrganizationInput - users?: UserCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationUncheckedCreateWithoutProductsInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedCreateNestedManyWithoutOrganizationInput - carts?: CartUncheckedCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyUncheckedCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyUncheckedCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutSenderInput - employees?: EmployeeUncheckedCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesUncheckedCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageUncheckedCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageUncheckedCreateNestedManyWithoutSenderOrganizationInput - services?: ServiceUncheckedCreateNestedManyWithoutOrganizationInput - supplies?: SupplyUncheckedCreateNestedManyWithoutOrganizationInput - users?: UserUncheckedCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsUncheckedCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyUncheckedCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierUncheckedCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationCreateOrConnectWithoutProductsInput = { - where: OrganizationWhereUniqueInput - create: XOR - } - - export type CartItemUpsertWithWhereUniqueWithoutProductInput = { - where: CartItemWhereUniqueInput - update: XOR - create: XOR - } - - export type CartItemUpdateWithWhereUniqueWithoutProductInput = { - where: CartItemWhereUniqueInput - data: XOR - } - - export type CartItemUpdateManyWithWhereWithoutProductInput = { - where: CartItemScalarWhereInput - data: XOR - } - - export type CartItemScalarWhereInput = { - AND?: CartItemScalarWhereInput | CartItemScalarWhereInput[] - OR?: CartItemScalarWhereInput[] - NOT?: CartItemScalarWhereInput | CartItemScalarWhereInput[] - id?: StringFilter<"CartItem"> | string - cartId?: StringFilter<"CartItem"> | string - productId?: StringFilter<"CartItem"> | string - quantity?: IntFilter<"CartItem"> | number - createdAt?: DateTimeFilter<"CartItem"> | Date | string - updatedAt?: DateTimeFilter<"CartItem"> | Date | string - } - - export type FavoritesUpsertWithWhereUniqueWithoutProductInput = { - where: FavoritesWhereUniqueInput - update: XOR - create: XOR - } - - export type FavoritesUpdateWithWhereUniqueWithoutProductInput = { - where: FavoritesWhereUniqueInput - data: XOR - } - - export type FavoritesUpdateManyWithWhereWithoutProductInput = { - where: FavoritesScalarWhereInput - data: XOR - } - - export type SupplyOrderItemUpsertWithWhereUniqueWithoutProductInput = { - where: SupplyOrderItemWhereUniqueInput - update: XOR - create: XOR - } - - export type SupplyOrderItemUpdateWithWhereUniqueWithoutProductInput = { - where: SupplyOrderItemWhereUniqueInput - data: XOR - } - - export type SupplyOrderItemUpdateManyWithWhereWithoutProductInput = { - where: SupplyOrderItemScalarWhereInput - data: XOR - } - - export type SupplyOrderItemScalarWhereInput = { - AND?: SupplyOrderItemScalarWhereInput | SupplyOrderItemScalarWhereInput[] - OR?: SupplyOrderItemScalarWhereInput[] - NOT?: SupplyOrderItemScalarWhereInput | SupplyOrderItemScalarWhereInput[] - id?: StringFilter<"SupplyOrderItem"> | string - supplyOrderId?: StringFilter<"SupplyOrderItem"> | string - productId?: StringFilter<"SupplyOrderItem"> | string - quantity?: IntFilter<"SupplyOrderItem"> | number - price?: DecimalFilter<"SupplyOrderItem"> | Decimal | DecimalJsLike | number | string - totalPrice?: DecimalFilter<"SupplyOrderItem"> | Decimal | DecimalJsLike | number | string - createdAt?: DateTimeFilter<"SupplyOrderItem"> | Date | string - updatedAt?: DateTimeFilter<"SupplyOrderItem"> | Date | string - } - - export type CategoryUpsertWithoutProductsInput = { - update: XOR - create: XOR - where?: CategoryWhereInput - } - - export type CategoryUpdateToOneWithWhereWithoutProductsInput = { - where?: CategoryWhereInput - data: XOR - } - - export type CategoryUpdateWithoutProductsInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type CategoryUncheckedUpdateWithoutProductsInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type OrganizationUpsertWithoutProductsInput = { - update: XOR - create: XOR - where?: OrganizationWhereInput - } - - export type OrganizationUpdateToOneWithWhereWithoutProductsInput = { - where?: OrganizationWhereInput - data: XOR - } - - export type OrganizationUpdateWithoutProductsInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUpdateManyWithoutOrganizationNestedInput - carts?: CartUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUpdateManyWithoutSenderNestedInput - employees?: EmployeeUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUpdateManyWithoutSenderOrganizationNestedInput - services?: ServiceUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUpdateManyWithoutOrganizationNestedInput - users?: UserUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUncheckedUpdateWithoutProductsInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedUpdateManyWithoutOrganizationNestedInput - carts?: CartUncheckedUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUncheckedUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUncheckedUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUncheckedUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUncheckedUpdateManyWithoutSenderNestedInput - employees?: EmployeeUncheckedUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUncheckedUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUncheckedUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUncheckedUpdateManyWithoutSenderOrganizationNestedInput - services?: ServiceUncheckedUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUncheckedUpdateManyWithoutOrganizationNestedInput - users?: UserUncheckedUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUncheckedUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUncheckedUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUncheckedUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUncheckedUpdateManyWithoutOrganizationNestedInput - } - - export type CartItemCreateWithoutCartInput = { - id?: string - quantity?: number - createdAt?: Date | string - updatedAt?: Date | string - product: ProductCreateNestedOneWithoutCartItemsInput - } - - export type CartItemUncheckedCreateWithoutCartInput = { - id?: string - productId: string - quantity?: number - createdAt?: Date | string - updatedAt?: Date | string - } - - export type CartItemCreateOrConnectWithoutCartInput = { - where: CartItemWhereUniqueInput - create: XOR - } - - export type CartItemCreateManyCartInputEnvelope = { - data: CartItemCreateManyCartInput | CartItemCreateManyCartInput[] - skipDuplicates?: boolean - } - - export type OrganizationCreateWithoutCartsInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyCreateNestedManyWithoutOrganizationInput - counterpartyOf?: CounterpartyCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestCreateNestedManyWithoutSenderInput - employees?: EmployeeCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageCreateNestedManyWithoutSenderOrganizationInput - products?: ProductCreateNestedManyWithoutOrganizationInput - services?: ServiceCreateNestedManyWithoutOrganizationInput - supplies?: SupplyCreateNestedManyWithoutOrganizationInput - users?: UserCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationUncheckedCreateWithoutCartsInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedCreateNestedManyWithoutOrganizationInput - counterpartyOf?: CounterpartyUncheckedCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyUncheckedCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutSenderInput - employees?: EmployeeUncheckedCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesUncheckedCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageUncheckedCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageUncheckedCreateNestedManyWithoutSenderOrganizationInput - products?: ProductUncheckedCreateNestedManyWithoutOrganizationInput - services?: ServiceUncheckedCreateNestedManyWithoutOrganizationInput - supplies?: SupplyUncheckedCreateNestedManyWithoutOrganizationInput - users?: UserUncheckedCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsUncheckedCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyUncheckedCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierUncheckedCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationCreateOrConnectWithoutCartsInput = { - where: OrganizationWhereUniqueInput - create: XOR - } - - export type CartItemUpsertWithWhereUniqueWithoutCartInput = { - where: CartItemWhereUniqueInput - update: XOR - create: XOR - } - - export type CartItemUpdateWithWhereUniqueWithoutCartInput = { - where: CartItemWhereUniqueInput - data: XOR - } - - export type CartItemUpdateManyWithWhereWithoutCartInput = { - where: CartItemScalarWhereInput - data: XOR - } - - export type OrganizationUpsertWithoutCartsInput = { - update: XOR - create: XOR - where?: OrganizationWhereInput - } - - export type OrganizationUpdateToOneWithWhereWithoutCartsInput = { - where?: OrganizationWhereInput - data: XOR - } - - export type OrganizationUpdateWithoutCartsInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUpdateManyWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUpdateManyWithoutSenderNestedInput - employees?: EmployeeUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUpdateManyWithoutOrganizationNestedInput - services?: ServiceUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUpdateManyWithoutOrganizationNestedInput - users?: UserUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUncheckedUpdateWithoutCartsInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedUpdateManyWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUncheckedUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUncheckedUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUncheckedUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUncheckedUpdateManyWithoutSenderNestedInput - employees?: EmployeeUncheckedUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUncheckedUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUncheckedUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUncheckedUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUncheckedUpdateManyWithoutOrganizationNestedInput - services?: ServiceUncheckedUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUncheckedUpdateManyWithoutOrganizationNestedInput - users?: UserUncheckedUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUncheckedUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUncheckedUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUncheckedUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUncheckedUpdateManyWithoutOrganizationNestedInput - } - - export type CartCreateWithoutItemsInput = { - id?: string - createdAt?: Date | string - updatedAt?: Date | string - organization: OrganizationCreateNestedOneWithoutCartsInput - } - - export type CartUncheckedCreateWithoutItemsInput = { - id?: string - organizationId: string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type CartCreateOrConnectWithoutItemsInput = { - where: CartWhereUniqueInput - create: XOR - } - - export type ProductCreateWithoutCartItemsInput = { - id?: string - name: string - article: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - quantity?: number - brand?: string | null - color?: string | null - size?: string | null - weight?: Decimal | DecimalJsLike | number | string | null - dimensions?: string | null - material?: string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: string | null - isActive?: boolean - createdAt?: Date | string - updatedAt?: Date | string - favorites?: FavoritesCreateNestedManyWithoutProductInput - supplyOrderItems?: SupplyOrderItemCreateNestedManyWithoutProductInput - category?: CategoryCreateNestedOneWithoutProductsInput - organization: OrganizationCreateNestedOneWithoutProductsInput - } - - export type ProductUncheckedCreateWithoutCartItemsInput = { - id?: string - name: string - article: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - quantity?: number - categoryId?: string | null - brand?: string | null - color?: string | null - size?: string | null - weight?: Decimal | DecimalJsLike | number | string | null - dimensions?: string | null - material?: string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: string | null - isActive?: boolean - createdAt?: Date | string - updatedAt?: Date | string - organizationId: string - favorites?: FavoritesUncheckedCreateNestedManyWithoutProductInput - supplyOrderItems?: SupplyOrderItemUncheckedCreateNestedManyWithoutProductInput - } - - export type ProductCreateOrConnectWithoutCartItemsInput = { - where: ProductWhereUniqueInput - create: XOR - } - - export type CartUpsertWithoutItemsInput = { - update: XOR - create: XOR - where?: CartWhereInput - } - - export type CartUpdateToOneWithWhereWithoutItemsInput = { - where?: CartWhereInput - data: XOR - } - - export type CartUpdateWithoutItemsInput = { - id?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organization?: OrganizationUpdateOneRequiredWithoutCartsNestedInput - } - - export type CartUncheckedUpdateWithoutItemsInput = { - id?: StringFieldUpdateOperationsInput | string - organizationId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type ProductUpsertWithoutCartItemsInput = { - update: XOR - create: XOR - where?: ProductWhereInput - } - - export type ProductUpdateToOneWithWhereWithoutCartItemsInput = { - where?: ProductWhereInput - data: XOR - } - - export type ProductUpdateWithoutCartItemsInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - article?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - quantity?: IntFieldUpdateOperationsInput | number - brand?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - size?: NullableStringFieldUpdateOperationsInput | string | null - weight?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null - dimensions?: NullableStringFieldUpdateOperationsInput | string | null - material?: NullableStringFieldUpdateOperationsInput | string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: NullableStringFieldUpdateOperationsInput | string | null - isActive?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - favorites?: FavoritesUpdateManyWithoutProductNestedInput - supplyOrderItems?: SupplyOrderItemUpdateManyWithoutProductNestedInput - category?: CategoryUpdateOneWithoutProductsNestedInput - organization?: OrganizationUpdateOneRequiredWithoutProductsNestedInput - } - - export type ProductUncheckedUpdateWithoutCartItemsInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - article?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - quantity?: IntFieldUpdateOperationsInput | number - categoryId?: NullableStringFieldUpdateOperationsInput | string | null - brand?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - size?: NullableStringFieldUpdateOperationsInput | string | null - weight?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null - dimensions?: NullableStringFieldUpdateOperationsInput | string | null - material?: NullableStringFieldUpdateOperationsInput | string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: NullableStringFieldUpdateOperationsInput | string | null - isActive?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: StringFieldUpdateOperationsInput | string - favorites?: FavoritesUncheckedUpdateManyWithoutProductNestedInput - supplyOrderItems?: SupplyOrderItemUncheckedUpdateManyWithoutProductNestedInput - } - - export type OrganizationCreateWithoutFavoritesInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyCreateNestedManyWithoutOrganizationInput - carts?: CartCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestCreateNestedManyWithoutSenderInput - employees?: EmployeeCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageCreateNestedManyWithoutSenderOrganizationInput - products?: ProductCreateNestedManyWithoutOrganizationInput - services?: ServiceCreateNestedManyWithoutOrganizationInput - supplies?: SupplyCreateNestedManyWithoutOrganizationInput - users?: UserCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationUncheckedCreateWithoutFavoritesInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedCreateNestedManyWithoutOrganizationInput - carts?: CartUncheckedCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyUncheckedCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyUncheckedCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutSenderInput - employees?: EmployeeUncheckedCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageUncheckedCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageUncheckedCreateNestedManyWithoutSenderOrganizationInput - products?: ProductUncheckedCreateNestedManyWithoutOrganizationInput - services?: ServiceUncheckedCreateNestedManyWithoutOrganizationInput - supplies?: SupplyUncheckedCreateNestedManyWithoutOrganizationInput - users?: UserUncheckedCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsUncheckedCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyUncheckedCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierUncheckedCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationCreateOrConnectWithoutFavoritesInput = { - where: OrganizationWhereUniqueInput - create: XOR - } - - export type ProductCreateWithoutFavoritesInput = { - id?: string - name: string - article: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - quantity?: number - brand?: string | null - color?: string | null - size?: string | null - weight?: Decimal | DecimalJsLike | number | string | null - dimensions?: string | null - material?: string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: string | null - isActive?: boolean - createdAt?: Date | string - updatedAt?: Date | string - cartItems?: CartItemCreateNestedManyWithoutProductInput - supplyOrderItems?: SupplyOrderItemCreateNestedManyWithoutProductInput - category?: CategoryCreateNestedOneWithoutProductsInput - organization: OrganizationCreateNestedOneWithoutProductsInput - } - - export type ProductUncheckedCreateWithoutFavoritesInput = { - id?: string - name: string - article: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - quantity?: number - categoryId?: string | null - brand?: string | null - color?: string | null - size?: string | null - weight?: Decimal | DecimalJsLike | number | string | null - dimensions?: string | null - material?: string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: string | null - isActive?: boolean - createdAt?: Date | string - updatedAt?: Date | string - organizationId: string - cartItems?: CartItemUncheckedCreateNestedManyWithoutProductInput - supplyOrderItems?: SupplyOrderItemUncheckedCreateNestedManyWithoutProductInput - } - - export type ProductCreateOrConnectWithoutFavoritesInput = { - where: ProductWhereUniqueInput - create: XOR - } - - export type OrganizationUpsertWithoutFavoritesInput = { - update: XOR - create: XOR - where?: OrganizationWhereInput - } - - export type OrganizationUpdateToOneWithWhereWithoutFavoritesInput = { - where?: OrganizationWhereInput - data: XOR - } - - export type OrganizationUpdateWithoutFavoritesInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUpdateManyWithoutOrganizationNestedInput - carts?: CartUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUpdateManyWithoutSenderNestedInput - employees?: EmployeeUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUpdateManyWithoutOrganizationNestedInput - services?: ServiceUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUpdateManyWithoutOrganizationNestedInput - users?: UserUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUncheckedUpdateWithoutFavoritesInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedUpdateManyWithoutOrganizationNestedInput - carts?: CartUncheckedUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUncheckedUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUncheckedUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUncheckedUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUncheckedUpdateManyWithoutSenderNestedInput - employees?: EmployeeUncheckedUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUncheckedUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUncheckedUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUncheckedUpdateManyWithoutOrganizationNestedInput - services?: ServiceUncheckedUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUncheckedUpdateManyWithoutOrganizationNestedInput - users?: UserUncheckedUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUncheckedUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUncheckedUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUncheckedUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUncheckedUpdateManyWithoutOrganizationNestedInput - } - - export type ProductUpsertWithoutFavoritesInput = { - update: XOR - create: XOR - where?: ProductWhereInput - } - - export type ProductUpdateToOneWithWhereWithoutFavoritesInput = { - where?: ProductWhereInput - data: XOR - } - - export type ProductUpdateWithoutFavoritesInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - article?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - quantity?: IntFieldUpdateOperationsInput | number - brand?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - size?: NullableStringFieldUpdateOperationsInput | string | null - weight?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null - dimensions?: NullableStringFieldUpdateOperationsInput | string | null - material?: NullableStringFieldUpdateOperationsInput | string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: NullableStringFieldUpdateOperationsInput | string | null - isActive?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - cartItems?: CartItemUpdateManyWithoutProductNestedInput - supplyOrderItems?: SupplyOrderItemUpdateManyWithoutProductNestedInput - category?: CategoryUpdateOneWithoutProductsNestedInput - organization?: OrganizationUpdateOneRequiredWithoutProductsNestedInput - } - - export type ProductUncheckedUpdateWithoutFavoritesInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - article?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - quantity?: IntFieldUpdateOperationsInput | number - categoryId?: NullableStringFieldUpdateOperationsInput | string | null - brand?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - size?: NullableStringFieldUpdateOperationsInput | string | null - weight?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null - dimensions?: NullableStringFieldUpdateOperationsInput | string | null - material?: NullableStringFieldUpdateOperationsInput | string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: NullableStringFieldUpdateOperationsInput | string | null - isActive?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: StringFieldUpdateOperationsInput | string - cartItems?: CartItemUncheckedUpdateManyWithoutProductNestedInput - supplyOrderItems?: SupplyOrderItemUncheckedUpdateManyWithoutProductNestedInput - } - - export type EmployeeScheduleCreateWithoutEmployeeInput = { - id?: string - date: Date | string - status: $Enums.ScheduleStatus - hoursWorked?: number | null - notes?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type EmployeeScheduleUncheckedCreateWithoutEmployeeInput = { - id?: string - date: Date | string - status: $Enums.ScheduleStatus - hoursWorked?: number | null - notes?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type EmployeeScheduleCreateOrConnectWithoutEmployeeInput = { - where: EmployeeScheduleWhereUniqueInput - create: XOR - } - - export type EmployeeScheduleCreateManyEmployeeInputEnvelope = { - data: EmployeeScheduleCreateManyEmployeeInput | EmployeeScheduleCreateManyEmployeeInput[] - skipDuplicates?: boolean - } - - export type OrganizationCreateWithoutEmployeesInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyCreateNestedManyWithoutOrganizationInput - carts?: CartCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestCreateNestedManyWithoutSenderInput - favorites?: FavoritesCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageCreateNestedManyWithoutSenderOrganizationInput - products?: ProductCreateNestedManyWithoutOrganizationInput - services?: ServiceCreateNestedManyWithoutOrganizationInput - supplies?: SupplyCreateNestedManyWithoutOrganizationInput - users?: UserCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationUncheckedCreateWithoutEmployeesInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedCreateNestedManyWithoutOrganizationInput - carts?: CartUncheckedCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyUncheckedCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyUncheckedCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutSenderInput - favorites?: FavoritesUncheckedCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageUncheckedCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageUncheckedCreateNestedManyWithoutSenderOrganizationInput - products?: ProductUncheckedCreateNestedManyWithoutOrganizationInput - services?: ServiceUncheckedCreateNestedManyWithoutOrganizationInput - supplies?: SupplyUncheckedCreateNestedManyWithoutOrganizationInput - users?: UserUncheckedCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsUncheckedCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyUncheckedCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierUncheckedCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationCreateOrConnectWithoutEmployeesInput = { - where: OrganizationWhereUniqueInput - create: XOR - } - - export type EmployeeScheduleUpsertWithWhereUniqueWithoutEmployeeInput = { - where: EmployeeScheduleWhereUniqueInput - update: XOR - create: XOR - } - - export type EmployeeScheduleUpdateWithWhereUniqueWithoutEmployeeInput = { - where: EmployeeScheduleWhereUniqueInput - data: XOR - } - - export type EmployeeScheduleUpdateManyWithWhereWithoutEmployeeInput = { - where: EmployeeScheduleScalarWhereInput - data: XOR - } - - export type EmployeeScheduleScalarWhereInput = { - AND?: EmployeeScheduleScalarWhereInput | EmployeeScheduleScalarWhereInput[] - OR?: EmployeeScheduleScalarWhereInput[] - NOT?: EmployeeScheduleScalarWhereInput | EmployeeScheduleScalarWhereInput[] - id?: StringFilter<"EmployeeSchedule"> | string - date?: DateTimeFilter<"EmployeeSchedule"> | Date | string - status?: EnumScheduleStatusFilter<"EmployeeSchedule"> | $Enums.ScheduleStatus - hoursWorked?: FloatNullableFilter<"EmployeeSchedule"> | number | null - notes?: StringNullableFilter<"EmployeeSchedule"> | string | null - employeeId?: StringFilter<"EmployeeSchedule"> | string - createdAt?: DateTimeFilter<"EmployeeSchedule"> | Date | string - updatedAt?: DateTimeFilter<"EmployeeSchedule"> | Date | string - } - - export type OrganizationUpsertWithoutEmployeesInput = { - update: XOR - create: XOR - where?: OrganizationWhereInput - } - - export type OrganizationUpdateToOneWithWhereWithoutEmployeesInput = { - where?: OrganizationWhereInput - data: XOR - } - - export type OrganizationUpdateWithoutEmployeesInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUpdateManyWithoutOrganizationNestedInput - carts?: CartUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUpdateManyWithoutSenderNestedInput - favorites?: FavoritesUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUpdateManyWithoutOrganizationNestedInput - services?: ServiceUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUpdateManyWithoutOrganizationNestedInput - users?: UserUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUncheckedUpdateWithoutEmployeesInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedUpdateManyWithoutOrganizationNestedInput - carts?: CartUncheckedUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUncheckedUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUncheckedUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUncheckedUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUncheckedUpdateManyWithoutSenderNestedInput - favorites?: FavoritesUncheckedUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUncheckedUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUncheckedUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUncheckedUpdateManyWithoutOrganizationNestedInput - services?: ServiceUncheckedUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUncheckedUpdateManyWithoutOrganizationNestedInput - users?: UserUncheckedUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUncheckedUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUncheckedUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUncheckedUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUncheckedUpdateManyWithoutOrganizationNestedInput - } - - export type EmployeeCreateWithoutScheduleRecordsInput = { - id?: string - firstName: string - lastName: string - middleName?: string | null - birthDate?: Date | string | null - avatar?: string | null - passportPhoto?: string | null - passportSeries?: string | null - passportNumber?: string | null - passportIssued?: string | null - passportDate?: Date | string | null - address?: string | null - position: string - department?: string | null - hireDate: Date | string - salary?: number | null - status?: $Enums.EmployeeStatus - phone: string - email?: string | null - telegram?: string | null - whatsapp?: string | null - emergencyContact?: string | null - emergencyPhone?: string | null - createdAt?: Date | string - updatedAt?: Date | string - organization: OrganizationCreateNestedOneWithoutEmployeesInput - } - - export type EmployeeUncheckedCreateWithoutScheduleRecordsInput = { - id?: string - firstName: string - lastName: string - middleName?: string | null - birthDate?: Date | string | null - avatar?: string | null - passportPhoto?: string | null - passportSeries?: string | null - passportNumber?: string | null - passportIssued?: string | null - passportDate?: Date | string | null - address?: string | null - position: string - department?: string | null - hireDate: Date | string - salary?: number | null - status?: $Enums.EmployeeStatus - phone: string - email?: string | null - telegram?: string | null - whatsapp?: string | null - emergencyContact?: string | null - emergencyPhone?: string | null - organizationId: string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type EmployeeCreateOrConnectWithoutScheduleRecordsInput = { - where: EmployeeWhereUniqueInput - create: XOR - } - - export type EmployeeUpsertWithoutScheduleRecordsInput = { - update: XOR - create: XOR - where?: EmployeeWhereInput - } - - export type EmployeeUpdateToOneWithWhereWithoutScheduleRecordsInput = { - where?: EmployeeWhereInput - data: XOR - } - - export type EmployeeUpdateWithoutScheduleRecordsInput = { - id?: StringFieldUpdateOperationsInput | string - firstName?: StringFieldUpdateOperationsInput | string - lastName?: StringFieldUpdateOperationsInput | string - middleName?: NullableStringFieldUpdateOperationsInput | string | null - birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - avatar?: NullableStringFieldUpdateOperationsInput | string | null - passportPhoto?: NullableStringFieldUpdateOperationsInput | string | null - passportSeries?: NullableStringFieldUpdateOperationsInput | string | null - passportNumber?: NullableStringFieldUpdateOperationsInput | string | null - passportIssued?: NullableStringFieldUpdateOperationsInput | string | null - passportDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - address?: NullableStringFieldUpdateOperationsInput | string | null - position?: StringFieldUpdateOperationsInput | string - department?: NullableStringFieldUpdateOperationsInput | string | null - hireDate?: DateTimeFieldUpdateOperationsInput | Date | string - salary?: NullableFloatFieldUpdateOperationsInput | number | null - status?: EnumEmployeeStatusFieldUpdateOperationsInput | $Enums.EmployeeStatus - phone?: StringFieldUpdateOperationsInput | string - email?: NullableStringFieldUpdateOperationsInput | string | null - telegram?: NullableStringFieldUpdateOperationsInput | string | null - whatsapp?: NullableStringFieldUpdateOperationsInput | string | null - emergencyContact?: NullableStringFieldUpdateOperationsInput | string | null - emergencyPhone?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organization?: OrganizationUpdateOneRequiredWithoutEmployeesNestedInput - } - - export type EmployeeUncheckedUpdateWithoutScheduleRecordsInput = { - id?: StringFieldUpdateOperationsInput | string - firstName?: StringFieldUpdateOperationsInput | string - lastName?: StringFieldUpdateOperationsInput | string - middleName?: NullableStringFieldUpdateOperationsInput | string | null - birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - avatar?: NullableStringFieldUpdateOperationsInput | string | null - passportPhoto?: NullableStringFieldUpdateOperationsInput | string | null - passportSeries?: NullableStringFieldUpdateOperationsInput | string | null - passportNumber?: NullableStringFieldUpdateOperationsInput | string | null - passportIssued?: NullableStringFieldUpdateOperationsInput | string | null - passportDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - address?: NullableStringFieldUpdateOperationsInput | string | null - position?: StringFieldUpdateOperationsInput | string - department?: NullableStringFieldUpdateOperationsInput | string | null - hireDate?: DateTimeFieldUpdateOperationsInput | Date | string - salary?: NullableFloatFieldUpdateOperationsInput | number | null - status?: EnumEmployeeStatusFieldUpdateOperationsInput | $Enums.EmployeeStatus - phone?: StringFieldUpdateOperationsInput | string - email?: NullableStringFieldUpdateOperationsInput | string | null - telegram?: NullableStringFieldUpdateOperationsInput | string | null - whatsapp?: NullableStringFieldUpdateOperationsInput | string | null - emergencyContact?: NullableStringFieldUpdateOperationsInput | string | null - emergencyPhone?: NullableStringFieldUpdateOperationsInput | string | null - organizationId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type OrganizationCreateWithoutWildberriesSuppliesInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyCreateNestedManyWithoutOrganizationInput - carts?: CartCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestCreateNestedManyWithoutSenderInput - employees?: EmployeeCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageCreateNestedManyWithoutSenderOrganizationInput - products?: ProductCreateNestedManyWithoutOrganizationInput - services?: ServiceCreateNestedManyWithoutOrganizationInput - supplies?: SupplyCreateNestedManyWithoutOrganizationInput - users?: UserCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderCreateNestedManyWithoutFulfillmentCenterInput - supplySuppliers?: SupplySupplierCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationUncheckedCreateWithoutWildberriesSuppliesInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedCreateNestedManyWithoutOrganizationInput - carts?: CartUncheckedCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyUncheckedCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyUncheckedCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutSenderInput - employees?: EmployeeUncheckedCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesUncheckedCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageUncheckedCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageUncheckedCreateNestedManyWithoutSenderOrganizationInput - products?: ProductUncheckedCreateNestedManyWithoutOrganizationInput - services?: ServiceUncheckedCreateNestedManyWithoutOrganizationInput - supplies?: SupplyUncheckedCreateNestedManyWithoutOrganizationInput - users?: UserUncheckedCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsUncheckedCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutFulfillmentCenterInput - supplySuppliers?: SupplySupplierUncheckedCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationCreateOrConnectWithoutWildberriesSuppliesInput = { - where: OrganizationWhereUniqueInput - create: XOR - } - - export type WildberriesSupplyCardCreateWithoutSupplyInput = { - id?: string - nmId: string - vendorCode: string - title: string - brand?: string | null - price: Decimal | DecimalJsLike | number | string - discountedPrice?: Decimal | DecimalJsLike | number | string | null - quantity: number - selectedQuantity: number - selectedMarket?: string | null - selectedPlace?: string | null - sellerName?: string | null - sellerPhone?: string | null - deliveryDate?: Date | string | null - mediaFiles?: JsonNullValueInput | InputJsonValue - selectedServices?: JsonNullValueInput | InputJsonValue - createdAt?: Date | string - updatedAt?: Date | string - } - - export type WildberriesSupplyCardUncheckedCreateWithoutSupplyInput = { - id?: string - nmId: string - vendorCode: string - title: string - brand?: string | null - price: Decimal | DecimalJsLike | number | string - discountedPrice?: Decimal | DecimalJsLike | number | string | null - quantity: number - selectedQuantity: number - selectedMarket?: string | null - selectedPlace?: string | null - sellerName?: string | null - sellerPhone?: string | null - deliveryDate?: Date | string | null - mediaFiles?: JsonNullValueInput | InputJsonValue - selectedServices?: JsonNullValueInput | InputJsonValue - createdAt?: Date | string - updatedAt?: Date | string - } - - export type WildberriesSupplyCardCreateOrConnectWithoutSupplyInput = { - where: WildberriesSupplyCardWhereUniqueInput - create: XOR - } - - export type WildberriesSupplyCardCreateManySupplyInputEnvelope = { - data: WildberriesSupplyCardCreateManySupplyInput | WildberriesSupplyCardCreateManySupplyInput[] - skipDuplicates?: boolean - } - - export type OrganizationUpsertWithoutWildberriesSuppliesInput = { - update: XOR - create: XOR - where?: OrganizationWhereInput - } - - export type OrganizationUpdateToOneWithWhereWithoutWildberriesSuppliesInput = { - where?: OrganizationWhereInput - data: XOR - } - - export type OrganizationUpdateWithoutWildberriesSuppliesInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUpdateManyWithoutOrganizationNestedInput - carts?: CartUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUpdateManyWithoutSenderNestedInput - employees?: EmployeeUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUpdateManyWithoutOrganizationNestedInput - services?: ServiceUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUpdateManyWithoutOrganizationNestedInput - users?: UserUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUpdateManyWithoutFulfillmentCenterNestedInput - supplySuppliers?: SupplySupplierUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUncheckedUpdateWithoutWildberriesSuppliesInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedUpdateManyWithoutOrganizationNestedInput - carts?: CartUncheckedUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUncheckedUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUncheckedUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUncheckedUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUncheckedUpdateManyWithoutSenderNestedInput - employees?: EmployeeUncheckedUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUncheckedUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUncheckedUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUncheckedUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUncheckedUpdateManyWithoutOrganizationNestedInput - services?: ServiceUncheckedUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUncheckedUpdateManyWithoutOrganizationNestedInput - users?: UserUncheckedUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUncheckedUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUncheckedUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutFulfillmentCenterNestedInput - supplySuppliers?: SupplySupplierUncheckedUpdateManyWithoutOrganizationNestedInput - } - - export type WildberriesSupplyCardUpsertWithWhereUniqueWithoutSupplyInput = { - where: WildberriesSupplyCardWhereUniqueInput - update: XOR - create: XOR - } - - export type WildberriesSupplyCardUpdateWithWhereUniqueWithoutSupplyInput = { - where: WildberriesSupplyCardWhereUniqueInput - data: XOR - } - - export type WildberriesSupplyCardUpdateManyWithWhereWithoutSupplyInput = { - where: WildberriesSupplyCardScalarWhereInput - data: XOR - } - - export type WildberriesSupplyCardScalarWhereInput = { - AND?: WildberriesSupplyCardScalarWhereInput | WildberriesSupplyCardScalarWhereInput[] - OR?: WildberriesSupplyCardScalarWhereInput[] - NOT?: WildberriesSupplyCardScalarWhereInput | WildberriesSupplyCardScalarWhereInput[] - id?: StringFilter<"WildberriesSupplyCard"> | string - supplyId?: StringFilter<"WildberriesSupplyCard"> | string - nmId?: StringFilter<"WildberriesSupplyCard"> | string - vendorCode?: StringFilter<"WildberriesSupplyCard"> | string - title?: StringFilter<"WildberriesSupplyCard"> | string - brand?: StringNullableFilter<"WildberriesSupplyCard"> | string | null - price?: DecimalFilter<"WildberriesSupplyCard"> | Decimal | DecimalJsLike | number | string - discountedPrice?: DecimalNullableFilter<"WildberriesSupplyCard"> | Decimal | DecimalJsLike | number | string | null - quantity?: IntFilter<"WildberriesSupplyCard"> | number - selectedQuantity?: IntFilter<"WildberriesSupplyCard"> | number - selectedMarket?: StringNullableFilter<"WildberriesSupplyCard"> | string | null - selectedPlace?: StringNullableFilter<"WildberriesSupplyCard"> | string | null - sellerName?: StringNullableFilter<"WildberriesSupplyCard"> | string | null - sellerPhone?: StringNullableFilter<"WildberriesSupplyCard"> | string | null - deliveryDate?: DateTimeNullableFilter<"WildberriesSupplyCard"> | Date | string | null - mediaFiles?: JsonFilter<"WildberriesSupplyCard"> - selectedServices?: JsonFilter<"WildberriesSupplyCard"> - createdAt?: DateTimeFilter<"WildberriesSupplyCard"> | Date | string - updatedAt?: DateTimeFilter<"WildberriesSupplyCard"> | Date | string - } - - export type WildberriesSupplyCreateWithoutCardsInput = { - id?: string - deliveryDate?: Date | string | null - status?: $Enums.WildberriesSupplyStatus - totalAmount: Decimal | DecimalJsLike | number | string - totalItems: number - createdAt?: Date | string - updatedAt?: Date | string - organization: OrganizationCreateNestedOneWithoutWildberriesSuppliesInput - } - - export type WildberriesSupplyUncheckedCreateWithoutCardsInput = { - id?: string - organizationId: string - deliveryDate?: Date | string | null - status?: $Enums.WildberriesSupplyStatus - totalAmount: Decimal | DecimalJsLike | number | string - totalItems: number - createdAt?: Date | string - updatedAt?: Date | string - } - - export type WildberriesSupplyCreateOrConnectWithoutCardsInput = { - where: WildberriesSupplyWhereUniqueInput - create: XOR - } - - export type WildberriesSupplyUpsertWithoutCardsInput = { - update: XOR - create: XOR - where?: WildberriesSupplyWhereInput - } - - export type WildberriesSupplyUpdateToOneWithWhereWithoutCardsInput = { - where?: WildberriesSupplyWhereInput - data: XOR - } - - export type WildberriesSupplyUpdateWithoutCardsInput = { - id?: StringFieldUpdateOperationsInput | string - deliveryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - status?: EnumWildberriesSupplyStatusFieldUpdateOperationsInput | $Enums.WildberriesSupplyStatus - totalAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalItems?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organization?: OrganizationUpdateOneRequiredWithoutWildberriesSuppliesNestedInput - } - - export type WildberriesSupplyUncheckedUpdateWithoutCardsInput = { - id?: StringFieldUpdateOperationsInput | string - organizationId?: StringFieldUpdateOperationsInput | string - deliveryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - status?: EnumWildberriesSupplyStatusFieldUpdateOperationsInput | $Enums.WildberriesSupplyStatus - totalAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalItems?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type OrganizationCreateWithoutLogisticsInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyCreateNestedManyWithoutOrganizationInput - carts?: CartCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestCreateNestedManyWithoutSenderInput - employees?: EmployeeCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageCreateNestedManyWithoutSenderOrganizationInput - products?: ProductCreateNestedManyWithoutOrganizationInput - services?: ServiceCreateNestedManyWithoutOrganizationInput - supplies?: SupplyCreateNestedManyWithoutOrganizationInput - users?: UserCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationUncheckedCreateWithoutLogisticsInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedCreateNestedManyWithoutOrganizationInput - carts?: CartUncheckedCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyUncheckedCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyUncheckedCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutSenderInput - employees?: EmployeeUncheckedCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesUncheckedCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageUncheckedCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageUncheckedCreateNestedManyWithoutSenderOrganizationInput - products?: ProductUncheckedCreateNestedManyWithoutOrganizationInput - services?: ServiceUncheckedCreateNestedManyWithoutOrganizationInput - supplies?: SupplyUncheckedCreateNestedManyWithoutOrganizationInput - users?: UserUncheckedCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyUncheckedCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierUncheckedCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationCreateOrConnectWithoutLogisticsInput = { - where: OrganizationWhereUniqueInput - create: XOR - } - - export type OrganizationUpsertWithoutLogisticsInput = { - update: XOR - create: XOR - where?: OrganizationWhereInput - } - - export type OrganizationUpdateToOneWithWhereWithoutLogisticsInput = { - where?: OrganizationWhereInput - data: XOR - } - - export type OrganizationUpdateWithoutLogisticsInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUpdateManyWithoutOrganizationNestedInput - carts?: CartUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUpdateManyWithoutSenderNestedInput - employees?: EmployeeUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUpdateManyWithoutOrganizationNestedInput - services?: ServiceUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUpdateManyWithoutOrganizationNestedInput - users?: UserUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUncheckedUpdateWithoutLogisticsInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedUpdateManyWithoutOrganizationNestedInput - carts?: CartUncheckedUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUncheckedUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUncheckedUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUncheckedUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUncheckedUpdateManyWithoutSenderNestedInput - employees?: EmployeeUncheckedUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUncheckedUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUncheckedUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUncheckedUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUncheckedUpdateManyWithoutOrganizationNestedInput - services?: ServiceUncheckedUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUncheckedUpdateManyWithoutOrganizationNestedInput - users?: UserUncheckedUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUncheckedUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUncheckedUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUncheckedUpdateManyWithoutOrganizationNestedInput - } - - export type SupplyOrderItemCreateWithoutSupplyOrderInput = { - id?: string - quantity: number - price: Decimal | DecimalJsLike | number | string - totalPrice: Decimal | DecimalJsLike | number | string - createdAt?: Date | string - updatedAt?: Date | string - product: ProductCreateNestedOneWithoutSupplyOrderItemsInput - } - - export type SupplyOrderItemUncheckedCreateWithoutSupplyOrderInput = { - id?: string - productId: string - quantity: number - price: Decimal | DecimalJsLike | number | string - totalPrice: Decimal | DecimalJsLike | number | string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type SupplyOrderItemCreateOrConnectWithoutSupplyOrderInput = { - where: SupplyOrderItemWhereUniqueInput - create: XOR - } - - export type SupplyOrderItemCreateManySupplyOrderInputEnvelope = { - data: SupplyOrderItemCreateManySupplyOrderInput | SupplyOrderItemCreateManySupplyOrderInput[] - skipDuplicates?: boolean - } - - export type OrganizationCreateWithoutSupplyOrdersInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyCreateNestedManyWithoutOrganizationInput - carts?: CartCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestCreateNestedManyWithoutSenderInput - employees?: EmployeeCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageCreateNestedManyWithoutSenderOrganizationInput - products?: ProductCreateNestedManyWithoutOrganizationInput - services?: ServiceCreateNestedManyWithoutOrganizationInput - supplies?: SupplyCreateNestedManyWithoutOrganizationInput - users?: UserCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationUncheckedCreateWithoutSupplyOrdersInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedCreateNestedManyWithoutOrganizationInput - carts?: CartUncheckedCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyUncheckedCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyUncheckedCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutSenderInput - employees?: EmployeeUncheckedCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesUncheckedCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageUncheckedCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageUncheckedCreateNestedManyWithoutSenderOrganizationInput - products?: ProductUncheckedCreateNestedManyWithoutOrganizationInput - services?: ServiceUncheckedCreateNestedManyWithoutOrganizationInput - supplies?: SupplyUncheckedCreateNestedManyWithoutOrganizationInput - users?: UserUncheckedCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsUncheckedCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyUncheckedCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierUncheckedCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationCreateOrConnectWithoutSupplyOrdersInput = { - where: OrganizationWhereUniqueInput - create: XOR - } - - export type OrganizationCreateWithoutPartnerSupplyOrdersInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyCreateNestedManyWithoutOrganizationInput - carts?: CartCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestCreateNestedManyWithoutSenderInput - employees?: EmployeeCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageCreateNestedManyWithoutSenderOrganizationInput - products?: ProductCreateNestedManyWithoutOrganizationInput - services?: ServiceCreateNestedManyWithoutOrganizationInput - supplies?: SupplyCreateNestedManyWithoutOrganizationInput - users?: UserCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderCreateNestedManyWithoutOrganizationInput - fulfillmentSupplyOrders?: SupplyOrderCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationUncheckedCreateWithoutPartnerSupplyOrdersInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedCreateNestedManyWithoutOrganizationInput - carts?: CartUncheckedCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyUncheckedCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyUncheckedCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutSenderInput - employees?: EmployeeUncheckedCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesUncheckedCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageUncheckedCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageUncheckedCreateNestedManyWithoutSenderOrganizationInput - products?: ProductUncheckedCreateNestedManyWithoutOrganizationInput - services?: ServiceUncheckedCreateNestedManyWithoutOrganizationInput - supplies?: SupplyUncheckedCreateNestedManyWithoutOrganizationInput - users?: UserUncheckedCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsUncheckedCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutOrganizationInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyUncheckedCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierUncheckedCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationCreateOrConnectWithoutPartnerSupplyOrdersInput = { - where: OrganizationWhereUniqueInput - create: XOR - } - - export type OrganizationCreateWithoutFulfillmentSupplyOrdersInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyCreateNestedManyWithoutOrganizationInput - carts?: CartCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestCreateNestedManyWithoutSenderInput - employees?: EmployeeCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageCreateNestedManyWithoutSenderOrganizationInput - products?: ProductCreateNestedManyWithoutOrganizationInput - services?: ServiceCreateNestedManyWithoutOrganizationInput - supplies?: SupplyCreateNestedManyWithoutOrganizationInput - users?: UserCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderCreateNestedManyWithoutPartnerInput - wildberriesSupplies?: WildberriesSupplyCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationUncheckedCreateWithoutFulfillmentSupplyOrdersInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedCreateNestedManyWithoutOrganizationInput - carts?: CartUncheckedCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyUncheckedCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyUncheckedCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutSenderInput - employees?: EmployeeUncheckedCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesUncheckedCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageUncheckedCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageUncheckedCreateNestedManyWithoutSenderOrganizationInput - products?: ProductUncheckedCreateNestedManyWithoutOrganizationInput - services?: ServiceUncheckedCreateNestedManyWithoutOrganizationInput - supplies?: SupplyUncheckedCreateNestedManyWithoutOrganizationInput - users?: UserUncheckedCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsUncheckedCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutPartnerInput - wildberriesSupplies?: WildberriesSupplyUncheckedCreateNestedManyWithoutOrganizationInput - supplySuppliers?: SupplySupplierUncheckedCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationCreateOrConnectWithoutFulfillmentSupplyOrdersInput = { - where: OrganizationWhereUniqueInput - create: XOR - } - - export type SupplyOrderItemUpsertWithWhereUniqueWithoutSupplyOrderInput = { - where: SupplyOrderItemWhereUniqueInput - update: XOR - create: XOR - } - - export type SupplyOrderItemUpdateWithWhereUniqueWithoutSupplyOrderInput = { - where: SupplyOrderItemWhereUniqueInput - data: XOR - } - - export type SupplyOrderItemUpdateManyWithWhereWithoutSupplyOrderInput = { - where: SupplyOrderItemScalarWhereInput - data: XOR - } - - export type OrganizationUpsertWithoutSupplyOrdersInput = { - update: XOR - create: XOR - where?: OrganizationWhereInput - } - - export type OrganizationUpdateToOneWithWhereWithoutSupplyOrdersInput = { - where?: OrganizationWhereInput - data: XOR - } - - export type OrganizationUpdateWithoutSupplyOrdersInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUpdateManyWithoutOrganizationNestedInput - carts?: CartUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUpdateManyWithoutSenderNestedInput - employees?: EmployeeUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUpdateManyWithoutOrganizationNestedInput - services?: ServiceUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUpdateManyWithoutOrganizationNestedInput - users?: UserUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUncheckedUpdateWithoutSupplyOrdersInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedUpdateManyWithoutOrganizationNestedInput - carts?: CartUncheckedUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUncheckedUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUncheckedUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUncheckedUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUncheckedUpdateManyWithoutSenderNestedInput - employees?: EmployeeUncheckedUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUncheckedUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUncheckedUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUncheckedUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUncheckedUpdateManyWithoutOrganizationNestedInput - services?: ServiceUncheckedUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUncheckedUpdateManyWithoutOrganizationNestedInput - users?: UserUncheckedUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUncheckedUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUncheckedUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUncheckedUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUpsertWithoutPartnerSupplyOrdersInput = { - update: XOR - create: XOR - where?: OrganizationWhereInput - } - - export type OrganizationUpdateToOneWithWhereWithoutPartnerSupplyOrdersInput = { - where?: OrganizationWhereInput - data: XOR - } - - export type OrganizationUpdateWithoutPartnerSupplyOrdersInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUpdateManyWithoutOrganizationNestedInput - carts?: CartUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUpdateManyWithoutSenderNestedInput - employees?: EmployeeUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUpdateManyWithoutOrganizationNestedInput - services?: ServiceUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUpdateManyWithoutOrganizationNestedInput - users?: UserUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUpdateManyWithoutOrganizationNestedInput - fulfillmentSupplyOrders?: SupplyOrderUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUncheckedUpdateWithoutPartnerSupplyOrdersInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedUpdateManyWithoutOrganizationNestedInput - carts?: CartUncheckedUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUncheckedUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUncheckedUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUncheckedUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUncheckedUpdateManyWithoutSenderNestedInput - employees?: EmployeeUncheckedUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUncheckedUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUncheckedUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUncheckedUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUncheckedUpdateManyWithoutOrganizationNestedInput - services?: ServiceUncheckedUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUncheckedUpdateManyWithoutOrganizationNestedInput - users?: UserUncheckedUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUncheckedUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUncheckedUpdateManyWithoutOrganizationNestedInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUncheckedUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUncheckedUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUpsertWithoutFulfillmentSupplyOrdersInput = { - update: XOR - create: XOR - where?: OrganizationWhereInput - } - - export type OrganizationUpdateToOneWithWhereWithoutFulfillmentSupplyOrdersInput = { - where?: OrganizationWhereInput - data: XOR - } - - export type OrganizationUpdateWithoutFulfillmentSupplyOrdersInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUpdateManyWithoutOrganizationNestedInput - carts?: CartUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUpdateManyWithoutSenderNestedInput - employees?: EmployeeUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUpdateManyWithoutOrganizationNestedInput - services?: ServiceUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUpdateManyWithoutOrganizationNestedInput - users?: UserUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUpdateManyWithoutPartnerNestedInput - wildberriesSupplies?: WildberriesSupplyUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUncheckedUpdateWithoutFulfillmentSupplyOrdersInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedUpdateManyWithoutOrganizationNestedInput - carts?: CartUncheckedUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUncheckedUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUncheckedUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUncheckedUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUncheckedUpdateManyWithoutSenderNestedInput - employees?: EmployeeUncheckedUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUncheckedUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUncheckedUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUncheckedUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUncheckedUpdateManyWithoutOrganizationNestedInput - services?: ServiceUncheckedUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUncheckedUpdateManyWithoutOrganizationNestedInput - users?: UserUncheckedUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUncheckedUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUncheckedUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutPartnerNestedInput - wildberriesSupplies?: WildberriesSupplyUncheckedUpdateManyWithoutOrganizationNestedInput - supplySuppliers?: SupplySupplierUncheckedUpdateManyWithoutOrganizationNestedInput - } - - export type SupplyOrderCreateWithoutItemsInput = { - id?: string - deliveryDate: Date | string - status?: $Enums.SupplyOrderStatus - totalAmount: Decimal | DecimalJsLike | number | string - totalItems: number - createdAt?: Date | string - updatedAt?: Date | string - organization: OrganizationCreateNestedOneWithoutSupplyOrdersInput - partner: OrganizationCreateNestedOneWithoutPartnerSupplyOrdersInput - fulfillmentCenter?: OrganizationCreateNestedOneWithoutFulfillmentSupplyOrdersInput - } - - export type SupplyOrderUncheckedCreateWithoutItemsInput = { - id?: string - partnerId: string - deliveryDate: Date | string - status?: $Enums.SupplyOrderStatus - totalAmount: Decimal | DecimalJsLike | number | string - totalItems: number - fulfillmentCenterId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - organizationId: string - } - - export type SupplyOrderCreateOrConnectWithoutItemsInput = { - where: SupplyOrderWhereUniqueInput - create: XOR - } - - export type ProductCreateWithoutSupplyOrderItemsInput = { - id?: string - name: string - article: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - quantity?: number - brand?: string | null - color?: string | null - size?: string | null - weight?: Decimal | DecimalJsLike | number | string | null - dimensions?: string | null - material?: string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: string | null - isActive?: boolean - createdAt?: Date | string - updatedAt?: Date | string - cartItems?: CartItemCreateNestedManyWithoutProductInput - favorites?: FavoritesCreateNestedManyWithoutProductInput - category?: CategoryCreateNestedOneWithoutProductsInput - organization: OrganizationCreateNestedOneWithoutProductsInput - } - - export type ProductUncheckedCreateWithoutSupplyOrderItemsInput = { - id?: string - name: string - article: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - quantity?: number - categoryId?: string | null - brand?: string | null - color?: string | null - size?: string | null - weight?: Decimal | DecimalJsLike | number | string | null - dimensions?: string | null - material?: string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: string | null - isActive?: boolean - createdAt?: Date | string - updatedAt?: Date | string - organizationId: string - cartItems?: CartItemUncheckedCreateNestedManyWithoutProductInput - favorites?: FavoritesUncheckedCreateNestedManyWithoutProductInput - } - - export type ProductCreateOrConnectWithoutSupplyOrderItemsInput = { - where: ProductWhereUniqueInput - create: XOR - } - - export type SupplyOrderUpsertWithoutItemsInput = { - update: XOR - create: XOR - where?: SupplyOrderWhereInput - } - - export type SupplyOrderUpdateToOneWithWhereWithoutItemsInput = { - where?: SupplyOrderWhereInput - data: XOR - } - - export type SupplyOrderUpdateWithoutItemsInput = { - id?: StringFieldUpdateOperationsInput | string - deliveryDate?: DateTimeFieldUpdateOperationsInput | Date | string - status?: EnumSupplyOrderStatusFieldUpdateOperationsInput | $Enums.SupplyOrderStatus - totalAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalItems?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organization?: OrganizationUpdateOneRequiredWithoutSupplyOrdersNestedInput - partner?: OrganizationUpdateOneRequiredWithoutPartnerSupplyOrdersNestedInput - fulfillmentCenter?: OrganizationUpdateOneWithoutFulfillmentSupplyOrdersNestedInput - } - - export type SupplyOrderUncheckedUpdateWithoutItemsInput = { - id?: StringFieldUpdateOperationsInput | string - partnerId?: StringFieldUpdateOperationsInput | string - deliveryDate?: DateTimeFieldUpdateOperationsInput | Date | string - status?: EnumSupplyOrderStatusFieldUpdateOperationsInput | $Enums.SupplyOrderStatus - totalAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalItems?: IntFieldUpdateOperationsInput | number - fulfillmentCenterId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: StringFieldUpdateOperationsInput | string - } - - export type ProductUpsertWithoutSupplyOrderItemsInput = { - update: XOR - create: XOR - where?: ProductWhereInput - } - - export type ProductUpdateToOneWithWhereWithoutSupplyOrderItemsInput = { - where?: ProductWhereInput - data: XOR - } - - export type ProductUpdateWithoutSupplyOrderItemsInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - article?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - quantity?: IntFieldUpdateOperationsInput | number - brand?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - size?: NullableStringFieldUpdateOperationsInput | string | null - weight?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null - dimensions?: NullableStringFieldUpdateOperationsInput | string | null - material?: NullableStringFieldUpdateOperationsInput | string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: NullableStringFieldUpdateOperationsInput | string | null - isActive?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - cartItems?: CartItemUpdateManyWithoutProductNestedInput - favorites?: FavoritesUpdateManyWithoutProductNestedInput - category?: CategoryUpdateOneWithoutProductsNestedInput - organization?: OrganizationUpdateOneRequiredWithoutProductsNestedInput - } - - export type ProductUncheckedUpdateWithoutSupplyOrderItemsInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - article?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - quantity?: IntFieldUpdateOperationsInput | number - categoryId?: NullableStringFieldUpdateOperationsInput | string | null - brand?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - size?: NullableStringFieldUpdateOperationsInput | string | null - weight?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null - dimensions?: NullableStringFieldUpdateOperationsInput | string | null - material?: NullableStringFieldUpdateOperationsInput | string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: NullableStringFieldUpdateOperationsInput | string | null - isActive?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: StringFieldUpdateOperationsInput | string - cartItems?: CartItemUncheckedUpdateManyWithoutProductNestedInput - favorites?: FavoritesUncheckedUpdateManyWithoutProductNestedInput - } - - export type OrganizationCreateWithoutSupplySuppliersInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyCreateNestedManyWithoutOrganizationInput - carts?: CartCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestCreateNestedManyWithoutSenderInput - employees?: EmployeeCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageCreateNestedManyWithoutSenderOrganizationInput - products?: ProductCreateNestedManyWithoutOrganizationInput - services?: ServiceCreateNestedManyWithoutOrganizationInput - supplies?: SupplyCreateNestedManyWithoutOrganizationInput - users?: UserCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationUncheckedCreateWithoutSupplySuppliersInput = { - id?: string - inn: string - kpp?: string | null - name?: string | null - fullName?: string | null - ogrn?: string | null - ogrnDate?: Date | string | null - type: $Enums.OrganizationType - createdAt?: Date | string - updatedAt?: Date | string - address?: string | null - addressFull?: string | null - status?: string | null - actualityDate?: Date | string | null - registrationDate?: Date | string | null - liquidationDate?: Date | string | null - managementName?: string | null - managementPost?: string | null - opfCode?: string | null - opfFull?: string | null - opfShort?: string | null - okato?: string | null - oktmo?: string | null - okpo?: string | null - okved?: string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: number | null - revenue?: bigint | number | null - taxSystem?: string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedCreateNestedManyWithoutOrganizationInput - carts?: CartUncheckedCreateNestedOneWithoutOrganizationInput - counterpartyOf?: CounterpartyUncheckedCreateNestedManyWithoutCounterpartyInput - organizationCounterparties?: CounterpartyUncheckedCreateNestedManyWithoutOrganizationInput - receivedRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutReceiverInput - sentRequests?: CounterpartyRequestUncheckedCreateNestedManyWithoutSenderInput - employees?: EmployeeUncheckedCreateNestedManyWithoutOrganizationInput - favorites?: FavoritesUncheckedCreateNestedManyWithoutOrganizationInput - receivedMessages?: MessageUncheckedCreateNestedManyWithoutReceiverOrganizationInput - sentMessages?: MessageUncheckedCreateNestedManyWithoutSenderOrganizationInput - products?: ProductUncheckedCreateNestedManyWithoutOrganizationInput - services?: ServiceUncheckedCreateNestedManyWithoutOrganizationInput - supplies?: SupplyUncheckedCreateNestedManyWithoutOrganizationInput - users?: UserUncheckedCreateNestedManyWithoutOrganizationInput - logistics?: LogisticsUncheckedCreateNestedManyWithoutOrganizationInput - supplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutOrganizationInput - partnerSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutPartnerInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedCreateNestedManyWithoutFulfillmentCenterInput - wildberriesSupplies?: WildberriesSupplyUncheckedCreateNestedManyWithoutOrganizationInput - } - - export type OrganizationCreateOrConnectWithoutSupplySuppliersInput = { - where: OrganizationWhereUniqueInput - create: XOR - } - - export type OrganizationUpsertWithoutSupplySuppliersInput = { - update: XOR - create: XOR - where?: OrganizationWhereInput - } - - export type OrganizationUpdateToOneWithWhereWithoutSupplySuppliersInput = { - where?: OrganizationWhereInput - data: XOR - } - - export type OrganizationUpdateWithoutSupplySuppliersInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUpdateManyWithoutOrganizationNestedInput - carts?: CartUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUpdateManyWithoutSenderNestedInput - employees?: EmployeeUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUpdateManyWithoutOrganizationNestedInput - services?: ServiceUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUpdateManyWithoutOrganizationNestedInput - users?: UserUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUpdateManyWithoutOrganizationNestedInput - } - - export type OrganizationUncheckedUpdateWithoutSupplySuppliersInput = { - id?: StringFieldUpdateOperationsInput | string - inn?: StringFieldUpdateOperationsInput | string - kpp?: NullableStringFieldUpdateOperationsInput | string | null - name?: NullableStringFieldUpdateOperationsInput | string | null - fullName?: NullableStringFieldUpdateOperationsInput | string | null - ogrn?: NullableStringFieldUpdateOperationsInput | string | null - ogrnDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - type?: EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - address?: NullableStringFieldUpdateOperationsInput | string | null - addressFull?: NullableStringFieldUpdateOperationsInput | string | null - status?: NullableStringFieldUpdateOperationsInput | string | null - actualityDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - registrationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - liquidationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - managementName?: NullableStringFieldUpdateOperationsInput | string | null - managementPost?: NullableStringFieldUpdateOperationsInput | string | null - opfCode?: NullableStringFieldUpdateOperationsInput | string | null - opfFull?: NullableStringFieldUpdateOperationsInput | string | null - opfShort?: NullableStringFieldUpdateOperationsInput | string | null - okato?: NullableStringFieldUpdateOperationsInput | string | null - oktmo?: NullableStringFieldUpdateOperationsInput | string | null - okpo?: NullableStringFieldUpdateOperationsInput | string | null - okved?: NullableStringFieldUpdateOperationsInput | string | null - phones?: NullableJsonNullValueInput | InputJsonValue - emails?: NullableJsonNullValueInput | InputJsonValue - employeeCount?: NullableIntFieldUpdateOperationsInput | number | null - revenue?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null - taxSystem?: NullableStringFieldUpdateOperationsInput | string | null - dadataData?: NullableJsonNullValueInput | InputJsonValue - apiKeys?: ApiKeyUncheckedUpdateManyWithoutOrganizationNestedInput - carts?: CartUncheckedUpdateOneWithoutOrganizationNestedInput - counterpartyOf?: CounterpartyUncheckedUpdateManyWithoutCounterpartyNestedInput - organizationCounterparties?: CounterpartyUncheckedUpdateManyWithoutOrganizationNestedInput - receivedRequests?: CounterpartyRequestUncheckedUpdateManyWithoutReceiverNestedInput - sentRequests?: CounterpartyRequestUncheckedUpdateManyWithoutSenderNestedInput - employees?: EmployeeUncheckedUpdateManyWithoutOrganizationNestedInput - favorites?: FavoritesUncheckedUpdateManyWithoutOrganizationNestedInput - receivedMessages?: MessageUncheckedUpdateManyWithoutReceiverOrganizationNestedInput - sentMessages?: MessageUncheckedUpdateManyWithoutSenderOrganizationNestedInput - products?: ProductUncheckedUpdateManyWithoutOrganizationNestedInput - services?: ServiceUncheckedUpdateManyWithoutOrganizationNestedInput - supplies?: SupplyUncheckedUpdateManyWithoutOrganizationNestedInput - users?: UserUncheckedUpdateManyWithoutOrganizationNestedInput - logistics?: LogisticsUncheckedUpdateManyWithoutOrganizationNestedInput - supplyOrders?: SupplyOrderUncheckedUpdateManyWithoutOrganizationNestedInput - partnerSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutPartnerNestedInput - fulfillmentSupplyOrders?: SupplyOrderUncheckedUpdateManyWithoutFulfillmentCenterNestedInput - wildberriesSupplies?: WildberriesSupplyUncheckedUpdateManyWithoutOrganizationNestedInput - } - - export type MessageCreateManySenderInput = { - id?: string - content?: string | null - type?: $Enums.MessageType - voiceUrl?: string | null - voiceDuration?: number | null - fileUrl?: string | null - fileName?: string | null - fileSize?: number | null - fileType?: string | null - isRead?: boolean - createdAt?: Date | string - updatedAt?: Date | string - senderOrganizationId: string - receiverOrganizationId: string - } - - export type SmsCodeCreateManyUserInput = { - id?: string - code: string - phone: string - expiresAt: Date | string - isUsed?: boolean - attempts?: number - maxAttempts?: number - createdAt?: Date | string - } - - export type MessageUpdateWithoutSenderInput = { - id?: StringFieldUpdateOperationsInput | string - content?: NullableStringFieldUpdateOperationsInput | string | null - type?: EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType - voiceUrl?: NullableStringFieldUpdateOperationsInput | string | null - voiceDuration?: NullableIntFieldUpdateOperationsInput | number | null - fileUrl?: NullableStringFieldUpdateOperationsInput | string | null - fileName?: NullableStringFieldUpdateOperationsInput | string | null - fileSize?: NullableIntFieldUpdateOperationsInput | number | null - fileType?: NullableStringFieldUpdateOperationsInput | string | null - isRead?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - receiverOrganization?: OrganizationUpdateOneRequiredWithoutReceivedMessagesNestedInput - senderOrganization?: OrganizationUpdateOneRequiredWithoutSentMessagesNestedInput - } - - export type MessageUncheckedUpdateWithoutSenderInput = { - id?: StringFieldUpdateOperationsInput | string - content?: NullableStringFieldUpdateOperationsInput | string | null - type?: EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType - voiceUrl?: NullableStringFieldUpdateOperationsInput | string | null - voiceDuration?: NullableIntFieldUpdateOperationsInput | number | null - fileUrl?: NullableStringFieldUpdateOperationsInput | string | null - fileName?: NullableStringFieldUpdateOperationsInput | string | null - fileSize?: NullableIntFieldUpdateOperationsInput | number | null - fileType?: NullableStringFieldUpdateOperationsInput | string | null - isRead?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - senderOrganizationId?: StringFieldUpdateOperationsInput | string - receiverOrganizationId?: StringFieldUpdateOperationsInput | string - } - - export type MessageUncheckedUpdateManyWithoutSenderInput = { - id?: StringFieldUpdateOperationsInput | string - content?: NullableStringFieldUpdateOperationsInput | string | null - type?: EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType - voiceUrl?: NullableStringFieldUpdateOperationsInput | string | null - voiceDuration?: NullableIntFieldUpdateOperationsInput | number | null - fileUrl?: NullableStringFieldUpdateOperationsInput | string | null - fileName?: NullableStringFieldUpdateOperationsInput | string | null - fileSize?: NullableIntFieldUpdateOperationsInput | number | null - fileType?: NullableStringFieldUpdateOperationsInput | string | null - isRead?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - senderOrganizationId?: StringFieldUpdateOperationsInput | string - receiverOrganizationId?: StringFieldUpdateOperationsInput | string - } - - export type SmsCodeUpdateWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - code?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string - isUsed?: BoolFieldUpdateOperationsInput | boolean - attempts?: IntFieldUpdateOperationsInput | number - maxAttempts?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SmsCodeUncheckedUpdateWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - code?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string - isUsed?: BoolFieldUpdateOperationsInput | boolean - attempts?: IntFieldUpdateOperationsInput | number - maxAttempts?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SmsCodeUncheckedUpdateManyWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - code?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string - isUsed?: BoolFieldUpdateOperationsInput | boolean - attempts?: IntFieldUpdateOperationsInput | number - maxAttempts?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type ApiKeyCreateManyOrganizationInput = { - id?: string - marketplace: $Enums.MarketplaceType - apiKey: string - isActive?: boolean - createdAt?: Date | string - updatedAt?: Date | string - validationData?: NullableJsonNullValueInput | InputJsonValue - } - - export type CounterpartyCreateManyCounterpartyInput = { - id?: string - createdAt?: Date | string - organizationId: string - } - - export type CounterpartyCreateManyOrganizationInput = { - id?: string - createdAt?: Date | string - counterpartyId: string - } - - export type CounterpartyRequestCreateManyReceiverInput = { - id?: string - status?: $Enums.CounterpartyRequestStatus - createdAt?: Date | string - updatedAt?: Date | string - senderId: string - message?: string | null - } - - export type CounterpartyRequestCreateManySenderInput = { - id?: string - status?: $Enums.CounterpartyRequestStatus - createdAt?: Date | string - updatedAt?: Date | string - receiverId: string - message?: string | null - } - - export type EmployeeCreateManyOrganizationInput = { - id?: string - firstName: string - lastName: string - middleName?: string | null - birthDate?: Date | string | null - avatar?: string | null - passportPhoto?: string | null - passportSeries?: string | null - passportNumber?: string | null - passportIssued?: string | null - passportDate?: Date | string | null - address?: string | null - position: string - department?: string | null - hireDate: Date | string - salary?: number | null - status?: $Enums.EmployeeStatus - phone: string - email?: string | null - telegram?: string | null - whatsapp?: string | null - emergencyContact?: string | null - emergencyPhone?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type FavoritesCreateManyOrganizationInput = { - id?: string - productId: string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type MessageCreateManyReceiverOrganizationInput = { - id?: string - content?: string | null - type?: $Enums.MessageType - voiceUrl?: string | null - voiceDuration?: number | null - fileUrl?: string | null - fileName?: string | null - fileSize?: number | null - fileType?: string | null - isRead?: boolean - createdAt?: Date | string - updatedAt?: Date | string - senderId: string - senderOrganizationId: string - } - - export type MessageCreateManySenderOrganizationInput = { - id?: string - content?: string | null - type?: $Enums.MessageType - voiceUrl?: string | null - voiceDuration?: number | null - fileUrl?: string | null - fileName?: string | null - fileSize?: number | null - fileType?: string | null - isRead?: boolean - createdAt?: Date | string - updatedAt?: Date | string - senderId: string - receiverOrganizationId: string - } - - export type ProductCreateManyOrganizationInput = { - id?: string - name: string - article: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - quantity?: number - categoryId?: string | null - brand?: string | null - color?: string | null - size?: string | null - weight?: Decimal | DecimalJsLike | number | string | null - dimensions?: string | null - material?: string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: string | null - isActive?: boolean - createdAt?: Date | string - updatedAt?: Date | string - } - - export type ServiceCreateManyOrganizationInput = { - id?: string - name: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - imageUrl?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type SupplyCreateManyOrganizationInput = { - id?: string - name: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - quantity?: number - unit?: string - category?: string - status?: string - date?: Date | string - supplier?: string - minStock?: number - currentStock?: number - imageUrl?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type UserCreateManyOrganizationInput = { - id?: string - phone: string - avatar?: string | null - managerName?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type LogisticsCreateManyOrganizationInput = { - id?: string - fromLocation: string - toLocation: string - priceUnder1m3: number - priceOver1m3: number - description?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type SupplyOrderCreateManyOrganizationInput = { - id?: string - partnerId: string - deliveryDate: Date | string - status?: $Enums.SupplyOrderStatus - totalAmount: Decimal | DecimalJsLike | number | string - totalItems: number - fulfillmentCenterId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type SupplyOrderCreateManyPartnerInput = { - id?: string - deliveryDate: Date | string - status?: $Enums.SupplyOrderStatus - totalAmount: Decimal | DecimalJsLike | number | string - totalItems: number - fulfillmentCenterId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - organizationId: string - } - - export type SupplyOrderCreateManyFulfillmentCenterInput = { - id?: string - partnerId: string - deliveryDate: Date | string - status?: $Enums.SupplyOrderStatus - totalAmount: Decimal | DecimalJsLike | number | string - totalItems: number - createdAt?: Date | string - updatedAt?: Date | string - organizationId: string - } - - export type WildberriesSupplyCreateManyOrganizationInput = { - id?: string - deliveryDate?: Date | string | null - status?: $Enums.WildberriesSupplyStatus - totalAmount: Decimal | DecimalJsLike | number | string - totalItems: number - createdAt?: Date | string - updatedAt?: Date | string - } - - export type SupplySupplierCreateManyOrganizationInput = { - id?: string - name: string - contactName: string - phone: string - market?: string | null - address?: string | null - place?: string | null - telegram?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type ApiKeyUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - marketplace?: EnumMarketplaceTypeFieldUpdateOperationsInput | $Enums.MarketplaceType - apiKey?: StringFieldUpdateOperationsInput | string - isActive?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - validationData?: NullableJsonNullValueInput | InputJsonValue - } - - export type ApiKeyUncheckedUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - marketplace?: EnumMarketplaceTypeFieldUpdateOperationsInput | $Enums.MarketplaceType - apiKey?: StringFieldUpdateOperationsInput | string - isActive?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - validationData?: NullableJsonNullValueInput | InputJsonValue - } - - export type ApiKeyUncheckedUpdateManyWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - marketplace?: EnumMarketplaceTypeFieldUpdateOperationsInput | $Enums.MarketplaceType - apiKey?: StringFieldUpdateOperationsInput | string - isActive?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - validationData?: NullableJsonNullValueInput | InputJsonValue - } - - export type CounterpartyUpdateWithoutCounterpartyInput = { - id?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - organization?: OrganizationUpdateOneRequiredWithoutOrganizationCounterpartiesNestedInput - } - - export type CounterpartyUncheckedUpdateWithoutCounterpartyInput = { - id?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: StringFieldUpdateOperationsInput | string - } - - export type CounterpartyUncheckedUpdateManyWithoutCounterpartyInput = { - id?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: StringFieldUpdateOperationsInput | string - } - - export type CounterpartyUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - counterparty?: OrganizationUpdateOneRequiredWithoutCounterpartyOfNestedInput - } - - export type CounterpartyUncheckedUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - counterpartyId?: StringFieldUpdateOperationsInput | string - } - - export type CounterpartyUncheckedUpdateManyWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - counterpartyId?: StringFieldUpdateOperationsInput | string - } - - export type CounterpartyRequestUpdateWithoutReceiverInput = { - id?: StringFieldUpdateOperationsInput | string - status?: EnumCounterpartyRequestStatusFieldUpdateOperationsInput | $Enums.CounterpartyRequestStatus - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - message?: NullableStringFieldUpdateOperationsInput | string | null - sender?: OrganizationUpdateOneRequiredWithoutSentRequestsNestedInput - } - - export type CounterpartyRequestUncheckedUpdateWithoutReceiverInput = { - id?: StringFieldUpdateOperationsInput | string - status?: EnumCounterpartyRequestStatusFieldUpdateOperationsInput | $Enums.CounterpartyRequestStatus - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - senderId?: StringFieldUpdateOperationsInput | string - message?: NullableStringFieldUpdateOperationsInput | string | null - } - - export type CounterpartyRequestUncheckedUpdateManyWithoutReceiverInput = { - id?: StringFieldUpdateOperationsInput | string - status?: EnumCounterpartyRequestStatusFieldUpdateOperationsInput | $Enums.CounterpartyRequestStatus - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - senderId?: StringFieldUpdateOperationsInput | string - message?: NullableStringFieldUpdateOperationsInput | string | null - } - - export type CounterpartyRequestUpdateWithoutSenderInput = { - id?: StringFieldUpdateOperationsInput | string - status?: EnumCounterpartyRequestStatusFieldUpdateOperationsInput | $Enums.CounterpartyRequestStatus - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - message?: NullableStringFieldUpdateOperationsInput | string | null - receiver?: OrganizationUpdateOneRequiredWithoutReceivedRequestsNestedInput - } - - export type CounterpartyRequestUncheckedUpdateWithoutSenderInput = { - id?: StringFieldUpdateOperationsInput | string - status?: EnumCounterpartyRequestStatusFieldUpdateOperationsInput | $Enums.CounterpartyRequestStatus - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - receiverId?: StringFieldUpdateOperationsInput | string - message?: NullableStringFieldUpdateOperationsInput | string | null - } - - export type CounterpartyRequestUncheckedUpdateManyWithoutSenderInput = { - id?: StringFieldUpdateOperationsInput | string - status?: EnumCounterpartyRequestStatusFieldUpdateOperationsInput | $Enums.CounterpartyRequestStatus - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - receiverId?: StringFieldUpdateOperationsInput | string - message?: NullableStringFieldUpdateOperationsInput | string | null - } - - export type EmployeeUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - firstName?: StringFieldUpdateOperationsInput | string - lastName?: StringFieldUpdateOperationsInput | string - middleName?: NullableStringFieldUpdateOperationsInput | string | null - birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - avatar?: NullableStringFieldUpdateOperationsInput | string | null - passportPhoto?: NullableStringFieldUpdateOperationsInput | string | null - passportSeries?: NullableStringFieldUpdateOperationsInput | string | null - passportNumber?: NullableStringFieldUpdateOperationsInput | string | null - passportIssued?: NullableStringFieldUpdateOperationsInput | string | null - passportDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - address?: NullableStringFieldUpdateOperationsInput | string | null - position?: StringFieldUpdateOperationsInput | string - department?: NullableStringFieldUpdateOperationsInput | string | null - hireDate?: DateTimeFieldUpdateOperationsInput | Date | string - salary?: NullableFloatFieldUpdateOperationsInput | number | null - status?: EnumEmployeeStatusFieldUpdateOperationsInput | $Enums.EmployeeStatus - phone?: StringFieldUpdateOperationsInput | string - email?: NullableStringFieldUpdateOperationsInput | string | null - telegram?: NullableStringFieldUpdateOperationsInput | string | null - whatsapp?: NullableStringFieldUpdateOperationsInput | string | null - emergencyContact?: NullableStringFieldUpdateOperationsInput | string | null - emergencyPhone?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - scheduleRecords?: EmployeeScheduleUpdateManyWithoutEmployeeNestedInput - } - - export type EmployeeUncheckedUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - firstName?: StringFieldUpdateOperationsInput | string - lastName?: StringFieldUpdateOperationsInput | string - middleName?: NullableStringFieldUpdateOperationsInput | string | null - birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - avatar?: NullableStringFieldUpdateOperationsInput | string | null - passportPhoto?: NullableStringFieldUpdateOperationsInput | string | null - passportSeries?: NullableStringFieldUpdateOperationsInput | string | null - passportNumber?: NullableStringFieldUpdateOperationsInput | string | null - passportIssued?: NullableStringFieldUpdateOperationsInput | string | null - passportDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - address?: NullableStringFieldUpdateOperationsInput | string | null - position?: StringFieldUpdateOperationsInput | string - department?: NullableStringFieldUpdateOperationsInput | string | null - hireDate?: DateTimeFieldUpdateOperationsInput | Date | string - salary?: NullableFloatFieldUpdateOperationsInput | number | null - status?: EnumEmployeeStatusFieldUpdateOperationsInput | $Enums.EmployeeStatus - phone?: StringFieldUpdateOperationsInput | string - email?: NullableStringFieldUpdateOperationsInput | string | null - telegram?: NullableStringFieldUpdateOperationsInput | string | null - whatsapp?: NullableStringFieldUpdateOperationsInput | string | null - emergencyContact?: NullableStringFieldUpdateOperationsInput | string | null - emergencyPhone?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - scheduleRecords?: EmployeeScheduleUncheckedUpdateManyWithoutEmployeeNestedInput - } - - export type EmployeeUncheckedUpdateManyWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - firstName?: StringFieldUpdateOperationsInput | string - lastName?: StringFieldUpdateOperationsInput | string - middleName?: NullableStringFieldUpdateOperationsInput | string | null - birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - avatar?: NullableStringFieldUpdateOperationsInput | string | null - passportPhoto?: NullableStringFieldUpdateOperationsInput | string | null - passportSeries?: NullableStringFieldUpdateOperationsInput | string | null - passportNumber?: NullableStringFieldUpdateOperationsInput | string | null - passportIssued?: NullableStringFieldUpdateOperationsInput | string | null - passportDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - address?: NullableStringFieldUpdateOperationsInput | string | null - position?: StringFieldUpdateOperationsInput | string - department?: NullableStringFieldUpdateOperationsInput | string | null - hireDate?: DateTimeFieldUpdateOperationsInput | Date | string - salary?: NullableFloatFieldUpdateOperationsInput | number | null - status?: EnumEmployeeStatusFieldUpdateOperationsInput | $Enums.EmployeeStatus - phone?: StringFieldUpdateOperationsInput | string - email?: NullableStringFieldUpdateOperationsInput | string | null - telegram?: NullableStringFieldUpdateOperationsInput | string | null - whatsapp?: NullableStringFieldUpdateOperationsInput | string | null - emergencyContact?: NullableStringFieldUpdateOperationsInput | string | null - emergencyPhone?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type FavoritesUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - product?: ProductUpdateOneRequiredWithoutFavoritesNestedInput - } - - export type FavoritesUncheckedUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - productId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type FavoritesUncheckedUpdateManyWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - productId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type MessageUpdateWithoutReceiverOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - content?: NullableStringFieldUpdateOperationsInput | string | null - type?: EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType - voiceUrl?: NullableStringFieldUpdateOperationsInput | string | null - voiceDuration?: NullableIntFieldUpdateOperationsInput | number | null - fileUrl?: NullableStringFieldUpdateOperationsInput | string | null - fileName?: NullableStringFieldUpdateOperationsInput | string | null - fileSize?: NullableIntFieldUpdateOperationsInput | number | null - fileType?: NullableStringFieldUpdateOperationsInput | string | null - isRead?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - sender?: UserUpdateOneRequiredWithoutSentMessagesNestedInput - senderOrganization?: OrganizationUpdateOneRequiredWithoutSentMessagesNestedInput - } - - export type MessageUncheckedUpdateWithoutReceiverOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - content?: NullableStringFieldUpdateOperationsInput | string | null - type?: EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType - voiceUrl?: NullableStringFieldUpdateOperationsInput | string | null - voiceDuration?: NullableIntFieldUpdateOperationsInput | number | null - fileUrl?: NullableStringFieldUpdateOperationsInput | string | null - fileName?: NullableStringFieldUpdateOperationsInput | string | null - fileSize?: NullableIntFieldUpdateOperationsInput | number | null - fileType?: NullableStringFieldUpdateOperationsInput | string | null - isRead?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - senderId?: StringFieldUpdateOperationsInput | string - senderOrganizationId?: StringFieldUpdateOperationsInput | string - } - - export type MessageUncheckedUpdateManyWithoutReceiverOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - content?: NullableStringFieldUpdateOperationsInput | string | null - type?: EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType - voiceUrl?: NullableStringFieldUpdateOperationsInput | string | null - voiceDuration?: NullableIntFieldUpdateOperationsInput | number | null - fileUrl?: NullableStringFieldUpdateOperationsInput | string | null - fileName?: NullableStringFieldUpdateOperationsInput | string | null - fileSize?: NullableIntFieldUpdateOperationsInput | number | null - fileType?: NullableStringFieldUpdateOperationsInput | string | null - isRead?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - senderId?: StringFieldUpdateOperationsInput | string - senderOrganizationId?: StringFieldUpdateOperationsInput | string - } - - export type MessageUpdateWithoutSenderOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - content?: NullableStringFieldUpdateOperationsInput | string | null - type?: EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType - voiceUrl?: NullableStringFieldUpdateOperationsInput | string | null - voiceDuration?: NullableIntFieldUpdateOperationsInput | number | null - fileUrl?: NullableStringFieldUpdateOperationsInput | string | null - fileName?: NullableStringFieldUpdateOperationsInput | string | null - fileSize?: NullableIntFieldUpdateOperationsInput | number | null - fileType?: NullableStringFieldUpdateOperationsInput | string | null - isRead?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - receiverOrganization?: OrganizationUpdateOneRequiredWithoutReceivedMessagesNestedInput - sender?: UserUpdateOneRequiredWithoutSentMessagesNestedInput - } - - export type MessageUncheckedUpdateWithoutSenderOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - content?: NullableStringFieldUpdateOperationsInput | string | null - type?: EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType - voiceUrl?: NullableStringFieldUpdateOperationsInput | string | null - voiceDuration?: NullableIntFieldUpdateOperationsInput | number | null - fileUrl?: NullableStringFieldUpdateOperationsInput | string | null - fileName?: NullableStringFieldUpdateOperationsInput | string | null - fileSize?: NullableIntFieldUpdateOperationsInput | number | null - fileType?: NullableStringFieldUpdateOperationsInput | string | null - isRead?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - senderId?: StringFieldUpdateOperationsInput | string - receiverOrganizationId?: StringFieldUpdateOperationsInput | string - } - - export type MessageUncheckedUpdateManyWithoutSenderOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - content?: NullableStringFieldUpdateOperationsInput | string | null - type?: EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType - voiceUrl?: NullableStringFieldUpdateOperationsInput | string | null - voiceDuration?: NullableIntFieldUpdateOperationsInput | number | null - fileUrl?: NullableStringFieldUpdateOperationsInput | string | null - fileName?: NullableStringFieldUpdateOperationsInput | string | null - fileSize?: NullableIntFieldUpdateOperationsInput | number | null - fileType?: NullableStringFieldUpdateOperationsInput | string | null - isRead?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - senderId?: StringFieldUpdateOperationsInput | string - receiverOrganizationId?: StringFieldUpdateOperationsInput | string - } - - export type ProductUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - article?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - quantity?: IntFieldUpdateOperationsInput | number - brand?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - size?: NullableStringFieldUpdateOperationsInput | string | null - weight?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null - dimensions?: NullableStringFieldUpdateOperationsInput | string | null - material?: NullableStringFieldUpdateOperationsInput | string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: NullableStringFieldUpdateOperationsInput | string | null - isActive?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - cartItems?: CartItemUpdateManyWithoutProductNestedInput - favorites?: FavoritesUpdateManyWithoutProductNestedInput - supplyOrderItems?: SupplyOrderItemUpdateManyWithoutProductNestedInput - category?: CategoryUpdateOneWithoutProductsNestedInput - } - - export type ProductUncheckedUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - article?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - quantity?: IntFieldUpdateOperationsInput | number - categoryId?: NullableStringFieldUpdateOperationsInput | string | null - brand?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - size?: NullableStringFieldUpdateOperationsInput | string | null - weight?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null - dimensions?: NullableStringFieldUpdateOperationsInput | string | null - material?: NullableStringFieldUpdateOperationsInput | string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: NullableStringFieldUpdateOperationsInput | string | null - isActive?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - cartItems?: CartItemUncheckedUpdateManyWithoutProductNestedInput - favorites?: FavoritesUncheckedUpdateManyWithoutProductNestedInput - supplyOrderItems?: SupplyOrderItemUncheckedUpdateManyWithoutProductNestedInput - } - - export type ProductUncheckedUpdateManyWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - article?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - quantity?: IntFieldUpdateOperationsInput | number - categoryId?: NullableStringFieldUpdateOperationsInput | string | null - brand?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - size?: NullableStringFieldUpdateOperationsInput | string | null - weight?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null - dimensions?: NullableStringFieldUpdateOperationsInput | string | null - material?: NullableStringFieldUpdateOperationsInput | string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: NullableStringFieldUpdateOperationsInput | string | null - isActive?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type ServiceUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - imageUrl?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type ServiceUncheckedUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - imageUrl?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type ServiceUncheckedUpdateManyWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - imageUrl?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SupplyUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - quantity?: IntFieldUpdateOperationsInput | number - unit?: StringFieldUpdateOperationsInput | string - category?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - date?: DateTimeFieldUpdateOperationsInput | Date | string - supplier?: StringFieldUpdateOperationsInput | string - minStock?: IntFieldUpdateOperationsInput | number - currentStock?: IntFieldUpdateOperationsInput | number - imageUrl?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SupplyUncheckedUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - quantity?: IntFieldUpdateOperationsInput | number - unit?: StringFieldUpdateOperationsInput | string - category?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - date?: DateTimeFieldUpdateOperationsInput | Date | string - supplier?: StringFieldUpdateOperationsInput | string - minStock?: IntFieldUpdateOperationsInput | number - currentStock?: IntFieldUpdateOperationsInput | number - imageUrl?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SupplyUncheckedUpdateManyWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - quantity?: IntFieldUpdateOperationsInput | number - unit?: StringFieldUpdateOperationsInput | string - category?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - date?: DateTimeFieldUpdateOperationsInput | Date | string - supplier?: StringFieldUpdateOperationsInput | string - minStock?: IntFieldUpdateOperationsInput | number - currentStock?: IntFieldUpdateOperationsInput | number - imageUrl?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type UserUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - avatar?: NullableStringFieldUpdateOperationsInput | string | null - managerName?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - sentMessages?: MessageUpdateManyWithoutSenderNestedInput - smsCodes?: SmsCodeUpdateManyWithoutUserNestedInput - } - - export type UserUncheckedUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - avatar?: NullableStringFieldUpdateOperationsInput | string | null - managerName?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - sentMessages?: MessageUncheckedUpdateManyWithoutSenderNestedInput - smsCodes?: SmsCodeUncheckedUpdateManyWithoutUserNestedInput - } - - export type UserUncheckedUpdateManyWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - avatar?: NullableStringFieldUpdateOperationsInput | string | null - managerName?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type LogisticsUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - fromLocation?: StringFieldUpdateOperationsInput | string - toLocation?: StringFieldUpdateOperationsInput | string - priceUnder1m3?: FloatFieldUpdateOperationsInput | number - priceOver1m3?: FloatFieldUpdateOperationsInput | number - description?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type LogisticsUncheckedUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - fromLocation?: StringFieldUpdateOperationsInput | string - toLocation?: StringFieldUpdateOperationsInput | string - priceUnder1m3?: FloatFieldUpdateOperationsInput | number - priceOver1m3?: FloatFieldUpdateOperationsInput | number - description?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type LogisticsUncheckedUpdateManyWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - fromLocation?: StringFieldUpdateOperationsInput | string - toLocation?: StringFieldUpdateOperationsInput | string - priceUnder1m3?: FloatFieldUpdateOperationsInput | number - priceOver1m3?: FloatFieldUpdateOperationsInput | number - description?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SupplyOrderUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - deliveryDate?: DateTimeFieldUpdateOperationsInput | Date | string - status?: EnumSupplyOrderStatusFieldUpdateOperationsInput | $Enums.SupplyOrderStatus - totalAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalItems?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - items?: SupplyOrderItemUpdateManyWithoutSupplyOrderNestedInput - partner?: OrganizationUpdateOneRequiredWithoutPartnerSupplyOrdersNestedInput - fulfillmentCenter?: OrganizationUpdateOneWithoutFulfillmentSupplyOrdersNestedInput - } - - export type SupplyOrderUncheckedUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - partnerId?: StringFieldUpdateOperationsInput | string - deliveryDate?: DateTimeFieldUpdateOperationsInput | Date | string - status?: EnumSupplyOrderStatusFieldUpdateOperationsInput | $Enums.SupplyOrderStatus - totalAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalItems?: IntFieldUpdateOperationsInput | number - fulfillmentCenterId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - items?: SupplyOrderItemUncheckedUpdateManyWithoutSupplyOrderNestedInput - } - - export type SupplyOrderUncheckedUpdateManyWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - partnerId?: StringFieldUpdateOperationsInput | string - deliveryDate?: DateTimeFieldUpdateOperationsInput | Date | string - status?: EnumSupplyOrderStatusFieldUpdateOperationsInput | $Enums.SupplyOrderStatus - totalAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalItems?: IntFieldUpdateOperationsInput | number - fulfillmentCenterId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SupplyOrderUpdateWithoutPartnerInput = { - id?: StringFieldUpdateOperationsInput | string - deliveryDate?: DateTimeFieldUpdateOperationsInput | Date | string - status?: EnumSupplyOrderStatusFieldUpdateOperationsInput | $Enums.SupplyOrderStatus - totalAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalItems?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - items?: SupplyOrderItemUpdateManyWithoutSupplyOrderNestedInput - organization?: OrganizationUpdateOneRequiredWithoutSupplyOrdersNestedInput - fulfillmentCenter?: OrganizationUpdateOneWithoutFulfillmentSupplyOrdersNestedInput - } - - export type SupplyOrderUncheckedUpdateWithoutPartnerInput = { - id?: StringFieldUpdateOperationsInput | string - deliveryDate?: DateTimeFieldUpdateOperationsInput | Date | string - status?: EnumSupplyOrderStatusFieldUpdateOperationsInput | $Enums.SupplyOrderStatus - totalAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalItems?: IntFieldUpdateOperationsInput | number - fulfillmentCenterId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: StringFieldUpdateOperationsInput | string - items?: SupplyOrderItemUncheckedUpdateManyWithoutSupplyOrderNestedInput - } - - export type SupplyOrderUncheckedUpdateManyWithoutPartnerInput = { - id?: StringFieldUpdateOperationsInput | string - deliveryDate?: DateTimeFieldUpdateOperationsInput | Date | string - status?: EnumSupplyOrderStatusFieldUpdateOperationsInput | $Enums.SupplyOrderStatus - totalAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalItems?: IntFieldUpdateOperationsInput | number - fulfillmentCenterId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: StringFieldUpdateOperationsInput | string - } - - export type SupplyOrderUpdateWithoutFulfillmentCenterInput = { - id?: StringFieldUpdateOperationsInput | string - deliveryDate?: DateTimeFieldUpdateOperationsInput | Date | string - status?: EnumSupplyOrderStatusFieldUpdateOperationsInput | $Enums.SupplyOrderStatus - totalAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalItems?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - items?: SupplyOrderItemUpdateManyWithoutSupplyOrderNestedInput - organization?: OrganizationUpdateOneRequiredWithoutSupplyOrdersNestedInput - partner?: OrganizationUpdateOneRequiredWithoutPartnerSupplyOrdersNestedInput - } - - export type SupplyOrderUncheckedUpdateWithoutFulfillmentCenterInput = { - id?: StringFieldUpdateOperationsInput | string - partnerId?: StringFieldUpdateOperationsInput | string - deliveryDate?: DateTimeFieldUpdateOperationsInput | Date | string - status?: EnumSupplyOrderStatusFieldUpdateOperationsInput | $Enums.SupplyOrderStatus - totalAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalItems?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: StringFieldUpdateOperationsInput | string - items?: SupplyOrderItemUncheckedUpdateManyWithoutSupplyOrderNestedInput - } - - export type SupplyOrderUncheckedUpdateManyWithoutFulfillmentCenterInput = { - id?: StringFieldUpdateOperationsInput | string - partnerId?: StringFieldUpdateOperationsInput | string - deliveryDate?: DateTimeFieldUpdateOperationsInput | Date | string - status?: EnumSupplyOrderStatusFieldUpdateOperationsInput | $Enums.SupplyOrderStatus - totalAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalItems?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: StringFieldUpdateOperationsInput | string - } - - export type WildberriesSupplyUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - deliveryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - status?: EnumWildberriesSupplyStatusFieldUpdateOperationsInput | $Enums.WildberriesSupplyStatus - totalAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalItems?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - cards?: WildberriesSupplyCardUpdateManyWithoutSupplyNestedInput - } - - export type WildberriesSupplyUncheckedUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - deliveryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - status?: EnumWildberriesSupplyStatusFieldUpdateOperationsInput | $Enums.WildberriesSupplyStatus - totalAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalItems?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - cards?: WildberriesSupplyCardUncheckedUpdateManyWithoutSupplyNestedInput - } - - export type WildberriesSupplyUncheckedUpdateManyWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - deliveryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - status?: EnumWildberriesSupplyStatusFieldUpdateOperationsInput | $Enums.WildberriesSupplyStatus - totalAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalItems?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SupplySupplierUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - contactName?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - market?: NullableStringFieldUpdateOperationsInput | string | null - address?: NullableStringFieldUpdateOperationsInput | string | null - place?: NullableStringFieldUpdateOperationsInput | string | null - telegram?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SupplySupplierUncheckedUpdateWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - contactName?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - market?: NullableStringFieldUpdateOperationsInput | string | null - address?: NullableStringFieldUpdateOperationsInput | string | null - place?: NullableStringFieldUpdateOperationsInput | string | null - telegram?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SupplySupplierUncheckedUpdateManyWithoutOrganizationInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - contactName?: StringFieldUpdateOperationsInput | string - phone?: StringFieldUpdateOperationsInput | string - market?: NullableStringFieldUpdateOperationsInput | string | null - address?: NullableStringFieldUpdateOperationsInput | string | null - place?: NullableStringFieldUpdateOperationsInput | string | null - telegram?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type ProductCreateManyCategoryInput = { - id?: string - name: string - article: string - description?: string | null - price: Decimal | DecimalJsLike | number | string - quantity?: number - brand?: string | null - color?: string | null - size?: string | null - weight?: Decimal | DecimalJsLike | number | string | null - dimensions?: string | null - material?: string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: string | null - isActive?: boolean - createdAt?: Date | string - updatedAt?: Date | string - organizationId: string - } - - export type ProductUpdateWithoutCategoryInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - article?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - quantity?: IntFieldUpdateOperationsInput | number - brand?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - size?: NullableStringFieldUpdateOperationsInput | string | null - weight?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null - dimensions?: NullableStringFieldUpdateOperationsInput | string | null - material?: NullableStringFieldUpdateOperationsInput | string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: NullableStringFieldUpdateOperationsInput | string | null - isActive?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - cartItems?: CartItemUpdateManyWithoutProductNestedInput - favorites?: FavoritesUpdateManyWithoutProductNestedInput - supplyOrderItems?: SupplyOrderItemUpdateManyWithoutProductNestedInput - organization?: OrganizationUpdateOneRequiredWithoutProductsNestedInput - } - - export type ProductUncheckedUpdateWithoutCategoryInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - article?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - quantity?: IntFieldUpdateOperationsInput | number - brand?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - size?: NullableStringFieldUpdateOperationsInput | string | null - weight?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null - dimensions?: NullableStringFieldUpdateOperationsInput | string | null - material?: NullableStringFieldUpdateOperationsInput | string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: NullableStringFieldUpdateOperationsInput | string | null - isActive?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: StringFieldUpdateOperationsInput | string - cartItems?: CartItemUncheckedUpdateManyWithoutProductNestedInput - favorites?: FavoritesUncheckedUpdateManyWithoutProductNestedInput - supplyOrderItems?: SupplyOrderItemUncheckedUpdateManyWithoutProductNestedInput - } - - export type ProductUncheckedUpdateManyWithoutCategoryInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - article?: StringFieldUpdateOperationsInput | string - description?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - quantity?: IntFieldUpdateOperationsInput | number - brand?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - size?: NullableStringFieldUpdateOperationsInput | string | null - weight?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null - dimensions?: NullableStringFieldUpdateOperationsInput | string | null - material?: NullableStringFieldUpdateOperationsInput | string | null - images?: JsonNullValueInput | InputJsonValue - mainImage?: NullableStringFieldUpdateOperationsInput | string | null - isActive?: BoolFieldUpdateOperationsInput | boolean - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organizationId?: StringFieldUpdateOperationsInput | string - } - - export type CartItemCreateManyProductInput = { - id?: string - cartId: string - quantity?: number - createdAt?: Date | string - updatedAt?: Date | string - } - - export type FavoritesCreateManyProductInput = { - id?: string - organizationId: string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type SupplyOrderItemCreateManyProductInput = { - id?: string - supplyOrderId: string - quantity: number - price: Decimal | DecimalJsLike | number | string - totalPrice: Decimal | DecimalJsLike | number | string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type CartItemUpdateWithoutProductInput = { - id?: StringFieldUpdateOperationsInput | string - quantity?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - cart?: CartUpdateOneRequiredWithoutItemsNestedInput - } - - export type CartItemUncheckedUpdateWithoutProductInput = { - id?: StringFieldUpdateOperationsInput | string - cartId?: StringFieldUpdateOperationsInput | string - quantity?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type CartItemUncheckedUpdateManyWithoutProductInput = { - id?: StringFieldUpdateOperationsInput | string - cartId?: StringFieldUpdateOperationsInput | string - quantity?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type FavoritesUpdateWithoutProductInput = { - id?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - organization?: OrganizationUpdateOneRequiredWithoutFavoritesNestedInput - } - - export type FavoritesUncheckedUpdateWithoutProductInput = { - id?: StringFieldUpdateOperationsInput | string - organizationId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type FavoritesUncheckedUpdateManyWithoutProductInput = { - id?: StringFieldUpdateOperationsInput | string - organizationId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SupplyOrderItemUpdateWithoutProductInput = { - id?: StringFieldUpdateOperationsInput | string - quantity?: IntFieldUpdateOperationsInput | number - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - supplyOrder?: SupplyOrderUpdateOneRequiredWithoutItemsNestedInput - } - - export type SupplyOrderItemUncheckedUpdateWithoutProductInput = { - id?: StringFieldUpdateOperationsInput | string - supplyOrderId?: StringFieldUpdateOperationsInput | string - quantity?: IntFieldUpdateOperationsInput | number - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SupplyOrderItemUncheckedUpdateManyWithoutProductInput = { - id?: StringFieldUpdateOperationsInput | string - supplyOrderId?: StringFieldUpdateOperationsInput | string - quantity?: IntFieldUpdateOperationsInput | number - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type CartItemCreateManyCartInput = { - id?: string - productId: string - quantity?: number - createdAt?: Date | string - updatedAt?: Date | string - } - - export type CartItemUpdateWithoutCartInput = { - id?: StringFieldUpdateOperationsInput | string - quantity?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - product?: ProductUpdateOneRequiredWithoutCartItemsNestedInput - } - - export type CartItemUncheckedUpdateWithoutCartInput = { - id?: StringFieldUpdateOperationsInput | string - productId?: StringFieldUpdateOperationsInput | string - quantity?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type CartItemUncheckedUpdateManyWithoutCartInput = { - id?: StringFieldUpdateOperationsInput | string - productId?: StringFieldUpdateOperationsInput | string - quantity?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type EmployeeScheduleCreateManyEmployeeInput = { - id?: string - date: Date | string - status: $Enums.ScheduleStatus - hoursWorked?: number | null - notes?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type EmployeeScheduleUpdateWithoutEmployeeInput = { - id?: StringFieldUpdateOperationsInput | string - date?: DateTimeFieldUpdateOperationsInput | Date | string - status?: EnumScheduleStatusFieldUpdateOperationsInput | $Enums.ScheduleStatus - hoursWorked?: NullableFloatFieldUpdateOperationsInput | number | null - notes?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type EmployeeScheduleUncheckedUpdateWithoutEmployeeInput = { - id?: StringFieldUpdateOperationsInput | string - date?: DateTimeFieldUpdateOperationsInput | Date | string - status?: EnumScheduleStatusFieldUpdateOperationsInput | $Enums.ScheduleStatus - hoursWorked?: NullableFloatFieldUpdateOperationsInput | number | null - notes?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type EmployeeScheduleUncheckedUpdateManyWithoutEmployeeInput = { - id?: StringFieldUpdateOperationsInput | string - date?: DateTimeFieldUpdateOperationsInput | Date | string - status?: EnumScheduleStatusFieldUpdateOperationsInput | $Enums.ScheduleStatus - hoursWorked?: NullableFloatFieldUpdateOperationsInput | number | null - notes?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type WildberriesSupplyCardCreateManySupplyInput = { - id?: string - nmId: string - vendorCode: string - title: string - brand?: string | null - price: Decimal | DecimalJsLike | number | string - discountedPrice?: Decimal | DecimalJsLike | number | string | null - quantity: number - selectedQuantity: number - selectedMarket?: string | null - selectedPlace?: string | null - sellerName?: string | null - sellerPhone?: string | null - deliveryDate?: Date | string | null - mediaFiles?: JsonNullValueInput | InputJsonValue - selectedServices?: JsonNullValueInput | InputJsonValue - createdAt?: Date | string - updatedAt?: Date | string - } - - export type WildberriesSupplyCardUpdateWithoutSupplyInput = { - id?: StringFieldUpdateOperationsInput | string - nmId?: StringFieldUpdateOperationsInput | string - vendorCode?: StringFieldUpdateOperationsInput | string - title?: StringFieldUpdateOperationsInput | string - brand?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - discountedPrice?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null - quantity?: IntFieldUpdateOperationsInput | number - selectedQuantity?: IntFieldUpdateOperationsInput | number - selectedMarket?: NullableStringFieldUpdateOperationsInput | string | null - selectedPlace?: NullableStringFieldUpdateOperationsInput | string | null - sellerName?: NullableStringFieldUpdateOperationsInput | string | null - sellerPhone?: NullableStringFieldUpdateOperationsInput | string | null - deliveryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - mediaFiles?: JsonNullValueInput | InputJsonValue - selectedServices?: JsonNullValueInput | InputJsonValue - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type WildberriesSupplyCardUncheckedUpdateWithoutSupplyInput = { - id?: StringFieldUpdateOperationsInput | string - nmId?: StringFieldUpdateOperationsInput | string - vendorCode?: StringFieldUpdateOperationsInput | string - title?: StringFieldUpdateOperationsInput | string - brand?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - discountedPrice?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null - quantity?: IntFieldUpdateOperationsInput | number - selectedQuantity?: IntFieldUpdateOperationsInput | number - selectedMarket?: NullableStringFieldUpdateOperationsInput | string | null - selectedPlace?: NullableStringFieldUpdateOperationsInput | string | null - sellerName?: NullableStringFieldUpdateOperationsInput | string | null - sellerPhone?: NullableStringFieldUpdateOperationsInput | string | null - deliveryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - mediaFiles?: JsonNullValueInput | InputJsonValue - selectedServices?: JsonNullValueInput | InputJsonValue - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type WildberriesSupplyCardUncheckedUpdateManyWithoutSupplyInput = { - id?: StringFieldUpdateOperationsInput | string - nmId?: StringFieldUpdateOperationsInput | string - vendorCode?: StringFieldUpdateOperationsInput | string - title?: StringFieldUpdateOperationsInput | string - brand?: NullableStringFieldUpdateOperationsInput | string | null - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - discountedPrice?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null - quantity?: IntFieldUpdateOperationsInput | number - selectedQuantity?: IntFieldUpdateOperationsInput | number - selectedMarket?: NullableStringFieldUpdateOperationsInput | string | null - selectedPlace?: NullableStringFieldUpdateOperationsInput | string | null - sellerName?: NullableStringFieldUpdateOperationsInput | string | null - sellerPhone?: NullableStringFieldUpdateOperationsInput | string | null - deliveryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - mediaFiles?: JsonNullValueInput | InputJsonValue - selectedServices?: JsonNullValueInput | InputJsonValue - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SupplyOrderItemCreateManySupplyOrderInput = { - id?: string - productId: string - quantity: number - price: Decimal | DecimalJsLike | number | string - totalPrice: Decimal | DecimalJsLike | number | string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type SupplyOrderItemUpdateWithoutSupplyOrderInput = { - id?: StringFieldUpdateOperationsInput | string - quantity?: IntFieldUpdateOperationsInput | number - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - product?: ProductUpdateOneRequiredWithoutSupplyOrderItemsNestedInput - } - - export type SupplyOrderItemUncheckedUpdateWithoutSupplyOrderInput = { - id?: StringFieldUpdateOperationsInput | string - productId?: StringFieldUpdateOperationsInput | string - quantity?: IntFieldUpdateOperationsInput | number - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SupplyOrderItemUncheckedUpdateManyWithoutSupplyOrderInput = { - id?: StringFieldUpdateOperationsInput | string - productId?: StringFieldUpdateOperationsInput | string - quantity?: IntFieldUpdateOperationsInput | number - price?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - totalPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - - - /** - * Batch Payload for updateMany & deleteMany & createMany - */ - - export type BatchPayload = { - count: number - } - - /** - * DMMF - */ - export const dmmf: runtime.BaseDMMF -} \ No newline at end of file diff --git a/prisma/generated/client/index.js b/prisma/generated/client/index.js deleted file mode 100644 index 1cc6636..0000000 --- a/prisma/generated/client/index.js +++ /dev/null @@ -1,618 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! -/* eslint-disable */ - -Object.defineProperty(exports, "__esModule", { value: true }); - -const { - PrismaClientKnownRequestError, - PrismaClientUnknownRequestError, - PrismaClientRustPanicError, - PrismaClientInitializationError, - PrismaClientValidationError, - getPrismaClient, - sqltag, - empty, - join, - raw, - skip, - Decimal, - Debug, - objectEnumValues, - makeStrictEnum, - Extensions, - warnOnce, - defineDmmfProperty, - Public, - getRuntime, - createParam, -} = require('./runtime/library.js') - - -const Prisma = {} - -exports.Prisma = Prisma -exports.$Enums = {} - -/** - * Prisma Client JS version: 6.12.0 - * Query Engine version: 8047c96bbd92db98a2abc7c9323ce77c02c89dbc - */ -Prisma.prismaVersion = { - client: "6.12.0", - engine: "8047c96bbd92db98a2abc7c9323ce77c02c89dbc" -} - -Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError; -Prisma.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError -Prisma.PrismaClientRustPanicError = PrismaClientRustPanicError -Prisma.PrismaClientInitializationError = PrismaClientInitializationError -Prisma.PrismaClientValidationError = PrismaClientValidationError -Prisma.Decimal = Decimal - -/** - * Re-export of sql-template-tag - */ -Prisma.sql = sqltag -Prisma.empty = empty -Prisma.join = join -Prisma.raw = raw -Prisma.validator = Public.validator - -/** -* Extensions -*/ -Prisma.getExtensionContext = Extensions.getExtensionContext -Prisma.defineExtension = Extensions.defineExtension - -/** - * Shorthand utilities for JSON filtering - */ -Prisma.DbNull = objectEnumValues.instances.DbNull -Prisma.JsonNull = objectEnumValues.instances.JsonNull -Prisma.AnyNull = objectEnumValues.instances.AnyNull - -Prisma.NullTypes = { - DbNull: objectEnumValues.classes.DbNull, - JsonNull: objectEnumValues.classes.JsonNull, - AnyNull: objectEnumValues.classes.AnyNull -} - - - - - const path = require('path') - -/** - * Enums - */ -exports.Prisma.TransactionIsolationLevel = makeStrictEnum({ - ReadUncommitted: 'ReadUncommitted', - ReadCommitted: 'ReadCommitted', - RepeatableRead: 'RepeatableRead', - Serializable: 'Serializable' -}); - -exports.Prisma.UserScalarFieldEnum = { - id: 'id', - phone: 'phone', - avatar: 'avatar', - managerName: 'managerName', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' -}; - -exports.Prisma.AdminScalarFieldEnum = { - id: 'id', - username: 'username', - password: 'password', - email: 'email', - isActive: 'isActive', - lastLogin: 'lastLogin', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SmsCodeScalarFieldEnum = { - id: 'id', - code: 'code', - phone: 'phone', - expiresAt: 'expiresAt', - isUsed: 'isUsed', - attempts: 'attempts', - maxAttempts: 'maxAttempts', - createdAt: 'createdAt', - userId: 'userId' -}; - -exports.Prisma.OrganizationScalarFieldEnum = { - id: 'id', - inn: 'inn', - kpp: 'kpp', - name: 'name', - fullName: 'fullName', - ogrn: 'ogrn', - ogrnDate: 'ogrnDate', - type: 'type', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - address: 'address', - addressFull: 'addressFull', - status: 'status', - actualityDate: 'actualityDate', - registrationDate: 'registrationDate', - liquidationDate: 'liquidationDate', - managementName: 'managementName', - managementPost: 'managementPost', - opfCode: 'opfCode', - opfFull: 'opfFull', - opfShort: 'opfShort', - okato: 'okato', - oktmo: 'oktmo', - okpo: 'okpo', - okved: 'okved', - phones: 'phones', - emails: 'emails', - employeeCount: 'employeeCount', - revenue: 'revenue', - taxSystem: 'taxSystem', - dadataData: 'dadataData' -}; - -exports.Prisma.ApiKeyScalarFieldEnum = { - id: 'id', - marketplace: 'marketplace', - apiKey: 'apiKey', - isActive: 'isActive', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - validationData: 'validationData', - organizationId: 'organizationId' -}; - -exports.Prisma.CounterpartyRequestScalarFieldEnum = { - id: 'id', - status: 'status', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - senderId: 'senderId', - receiverId: 'receiverId', - message: 'message' -}; - -exports.Prisma.CounterpartyScalarFieldEnum = { - id: 'id', - createdAt: 'createdAt', - organizationId: 'organizationId', - counterpartyId: 'counterpartyId' -}; - -exports.Prisma.MessageScalarFieldEnum = { - id: 'id', - content: 'content', - type: 'type', - voiceUrl: 'voiceUrl', - voiceDuration: 'voiceDuration', - fileUrl: 'fileUrl', - fileName: 'fileName', - fileSize: 'fileSize', - fileType: 'fileType', - isRead: 'isRead', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - senderId: 'senderId', - senderOrganizationId: 'senderOrganizationId', - receiverOrganizationId: 'receiverOrganizationId' -}; - -exports.Prisma.ServiceScalarFieldEnum = { - id: 'id', - name: 'name', - description: 'description', - price: 'price', - imageUrl: 'imageUrl', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' -}; - -exports.Prisma.SupplyScalarFieldEnum = { - id: 'id', - name: 'name', - description: 'description', - price: 'price', - quantity: 'quantity', - unit: 'unit', - category: 'category', - status: 'status', - date: 'date', - supplier: 'supplier', - minStock: 'minStock', - currentStock: 'currentStock', - imageUrl: 'imageUrl', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' -}; - -exports.Prisma.CategoryScalarFieldEnum = { - id: 'id', - name: 'name', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.ProductScalarFieldEnum = { - id: 'id', - name: 'name', - article: 'article', - description: 'description', - price: 'price', - quantity: 'quantity', - categoryId: 'categoryId', - brand: 'brand', - color: 'color', - size: 'size', - weight: 'weight', - dimensions: 'dimensions', - material: 'material', - images: 'images', - mainImage: 'mainImage', - isActive: 'isActive', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' -}; - -exports.Prisma.CartScalarFieldEnum = { - id: 'id', - organizationId: 'organizationId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.CartItemScalarFieldEnum = { - id: 'id', - cartId: 'cartId', - productId: 'productId', - quantity: 'quantity', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.FavoritesScalarFieldEnum = { - id: 'id', - organizationId: 'organizationId', - productId: 'productId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.EmployeeScalarFieldEnum = { - id: 'id', - firstName: 'firstName', - lastName: 'lastName', - middleName: 'middleName', - birthDate: 'birthDate', - avatar: 'avatar', - passportPhoto: 'passportPhoto', - passportSeries: 'passportSeries', - passportNumber: 'passportNumber', - passportIssued: 'passportIssued', - passportDate: 'passportDate', - address: 'address', - position: 'position', - department: 'department', - hireDate: 'hireDate', - salary: 'salary', - status: 'status', - phone: 'phone', - email: 'email', - telegram: 'telegram', - whatsapp: 'whatsapp', - emergencyContact: 'emergencyContact', - emergencyPhone: 'emergencyPhone', - organizationId: 'organizationId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.EmployeeScheduleScalarFieldEnum = { - id: 'id', - date: 'date', - status: 'status', - hoursWorked: 'hoursWorked', - notes: 'notes', - employeeId: 'employeeId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.WildberriesSupplyScalarFieldEnum = { - id: 'id', - organizationId: 'organizationId', - deliveryDate: 'deliveryDate', - status: 'status', - totalAmount: 'totalAmount', - totalItems: 'totalItems', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.WildberriesSupplyCardScalarFieldEnum = { - id: 'id', - supplyId: 'supplyId', - nmId: 'nmId', - vendorCode: 'vendorCode', - title: 'title', - brand: 'brand', - price: 'price', - discountedPrice: 'discountedPrice', - quantity: 'quantity', - selectedQuantity: 'selectedQuantity', - selectedMarket: 'selectedMarket', - selectedPlace: 'selectedPlace', - sellerName: 'sellerName', - sellerPhone: 'sellerPhone', - deliveryDate: 'deliveryDate', - mediaFiles: 'mediaFiles', - selectedServices: 'selectedServices', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.LogisticsScalarFieldEnum = { - id: 'id', - fromLocation: 'fromLocation', - toLocation: 'toLocation', - priceUnder1m3: 'priceUnder1m3', - priceOver1m3: 'priceOver1m3', - description: 'description', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' -}; - -exports.Prisma.SupplyOrderScalarFieldEnum = { - id: 'id', - partnerId: 'partnerId', - deliveryDate: 'deliveryDate', - status: 'status', - totalAmount: 'totalAmount', - totalItems: 'totalItems', - fulfillmentCenterId: 'fulfillmentCenterId', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' -}; - -exports.Prisma.SupplyOrderItemScalarFieldEnum = { - id: 'id', - supplyOrderId: 'supplyOrderId', - productId: 'productId', - quantity: 'quantity', - price: 'price', - totalPrice: 'totalPrice', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SupplySupplierScalarFieldEnum = { - id: 'id', - name: 'name', - contactName: 'contactName', - phone: 'phone', - market: 'market', - address: 'address', - place: 'place', - telegram: 'telegram', - organizationId: 'organizationId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SortOrder = { - asc: 'asc', - desc: 'desc' -}; - -exports.Prisma.NullableJsonNullValueInput = { - DbNull: Prisma.DbNull, - JsonNull: Prisma.JsonNull -}; - -exports.Prisma.JsonNullValueInput = { - JsonNull: Prisma.JsonNull -}; - -exports.Prisma.QueryMode = { - default: 'default', - insensitive: 'insensitive' -}; - -exports.Prisma.NullsOrder = { - first: 'first', - last: 'last' -}; - -exports.Prisma.JsonNullValueFilter = { - DbNull: Prisma.DbNull, - JsonNull: Prisma.JsonNull, - AnyNull: Prisma.AnyNull -}; -exports.OrganizationType = exports.$Enums.OrganizationType = { - FULFILLMENT: 'FULFILLMENT', - SELLER: 'SELLER', - LOGIST: 'LOGIST', - WHOLESALE: 'WHOLESALE' -}; - -exports.MarketplaceType = exports.$Enums.MarketplaceType = { - WILDBERRIES: 'WILDBERRIES', - OZON: 'OZON' -}; - -exports.CounterpartyRequestStatus = exports.$Enums.CounterpartyRequestStatus = { - PENDING: 'PENDING', - ACCEPTED: 'ACCEPTED', - REJECTED: 'REJECTED', - CANCELLED: 'CANCELLED' -}; - -exports.MessageType = exports.$Enums.MessageType = { - TEXT: 'TEXT', - VOICE: 'VOICE', - IMAGE: 'IMAGE', - FILE: 'FILE' -}; - -exports.EmployeeStatus = exports.$Enums.EmployeeStatus = { - ACTIVE: 'ACTIVE', - VACATION: 'VACATION', - SICK: 'SICK', - FIRED: 'FIRED' -}; - -exports.ScheduleStatus = exports.$Enums.ScheduleStatus = { - WORK: 'WORK', - WEEKEND: 'WEEKEND', - VACATION: 'VACATION', - SICK: 'SICK', - ABSENT: 'ABSENT' -}; - -exports.SupplyOrderStatus = exports.$Enums.SupplyOrderStatus = { - PENDING: 'PENDING', - CONFIRMED: 'CONFIRMED', - IN_TRANSIT: 'IN_TRANSIT', - DELIVERED: 'DELIVERED', - CANCELLED: 'CANCELLED' -}; - -exports.WildberriesSupplyStatus = exports.$Enums.WildberriesSupplyStatus = { - DRAFT: 'DRAFT', - CREATED: 'CREATED', - IN_PROGRESS: 'IN_PROGRESS', - DELIVERED: 'DELIVERED', - CANCELLED: 'CANCELLED' -}; - -exports.Prisma.ModelName = { - User: 'User', - Admin: 'Admin', - SmsCode: 'SmsCode', - Organization: 'Organization', - ApiKey: 'ApiKey', - CounterpartyRequest: 'CounterpartyRequest', - Counterparty: 'Counterparty', - Message: 'Message', - Service: 'Service', - Supply: 'Supply', - Category: 'Category', - Product: 'Product', - Cart: 'Cart', - CartItem: 'CartItem', - Favorites: 'Favorites', - Employee: 'Employee', - EmployeeSchedule: 'EmployeeSchedule', - WildberriesSupply: 'WildberriesSupply', - WildberriesSupplyCard: 'WildberriesSupplyCard', - Logistics: 'Logistics', - SupplyOrder: 'SupplyOrder', - SupplyOrderItem: 'SupplyOrderItem', - SupplySupplier: 'SupplySupplier' -}; -/** - * Create the Client - */ -const config = { - "generator": { - "name": "seed", - "provider": { - "fromEnvVar": null, - "value": "prisma-client-js" - }, - "output": { - "value": "/Users/veronikasmirnova/Desktop/Projects/sfera/prisma/generated/client", - "fromEnvVar": null - }, - "config": { - "engineType": "library" - }, - "binaryTargets": [ - { - "fromEnvVar": null, - "value": "darwin-arm64", - "native": true - } - ], - "previewFeatures": [], - "sourceFilePath": "/Users/veronikasmirnova/Desktop/Projects/sfera/prisma/schema.prisma", - "isCustomOutput": true - }, - "relativeEnvPaths": { - "rootEnvPath": "../../../.env", - "schemaEnvPath": "../../../.env" - }, - "relativePath": "../..", - "clientVersion": "6.12.0", - "engineVersion": "8047c96bbd92db98a2abc7c9323ce77c02c89dbc", - "datasourceNames": [ - "db" - ], - "activeProvider": "postgresql", - "postinstall": false, - "inlineDatasources": { - "db": { - "url": { - "fromEnvVar": "DATABASE_URL", - "value": null - } - } - }, - "inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n}\n\n// Конфигурация для автоматического seeding\ngenerator seed {\n provider = \"prisma-client-js\"\n output = \"./generated/client\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel User {\n id String @id @default(cuid())\n phone String @unique\n avatar String?\n managerName String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n organizationId String?\n sentMessages Message[] @relation(\"SentMessages\")\n smsCodes SmsCode[]\n organization Organization? @relation(fields: [organizationId], references: [id])\n\n @@map(\"users\")\n}\n\nmodel Admin {\n id String @id @default(cuid())\n username String @unique\n password String // Хеш пароля\n email String? @unique\n isActive Boolean @default(true)\n lastLogin DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@map(\"admins\")\n}\n\nmodel SmsCode {\n id String @id @default(cuid())\n code String\n phone String\n expiresAt DateTime\n isUsed Boolean @default(false)\n attempts Int @default(0)\n maxAttempts Int @default(3)\n createdAt DateTime @default(now())\n userId String?\n user User? @relation(fields: [userId], references: [id])\n\n @@map(\"sms_codes\")\n}\n\nmodel Organization {\n id String @id @default(cuid())\n inn String @unique\n kpp String?\n name String?\n fullName String?\n ogrn String?\n ogrnDate DateTime?\n type OrganizationType\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n address String?\n addressFull String?\n status String?\n actualityDate DateTime?\n registrationDate DateTime?\n liquidationDate DateTime?\n managementName String?\n managementPost String?\n opfCode String?\n opfFull String?\n opfShort String?\n okato String?\n oktmo String?\n okpo String?\n okved String?\n phones Json?\n emails Json?\n employeeCount Int?\n revenue BigInt?\n taxSystem String?\n dadataData Json?\n apiKeys ApiKey[]\n carts Cart?\n counterpartyOf Counterparty[] @relation(\"CounterpartyOf\")\n organizationCounterparties Counterparty[] @relation(\"OrganizationCounterparties\")\n receivedRequests CounterpartyRequest[] @relation(\"ReceivedRequests\")\n sentRequests CounterpartyRequest[] @relation(\"SentRequests\")\n employees Employee[]\n favorites Favorites[]\n receivedMessages Message[] @relation(\"ReceivedMessages\")\n sentMessages Message[] @relation(\"SentMessages\")\n products Product[]\n services Service[]\n supplies Supply[]\n users User[]\n logistics Logistics[]\n supplyOrders SupplyOrder[]\n partnerSupplyOrders SupplyOrder[] @relation(\"SupplyOrderPartner\")\n fulfillmentSupplyOrders SupplyOrder[] @relation(\"SupplyOrderFulfillmentCenter\")\n wildberriesSupplies WildberriesSupply[]\n supplySuppliers SupplySupplier[] @relation(\"SupplySuppliers\")\n\n @@map(\"organizations\")\n}\n\nmodel ApiKey {\n id String @id @default(cuid())\n marketplace MarketplaceType\n apiKey String\n isActive Boolean @default(true)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n validationData Json?\n organizationId String\n organization Organization @relation(fields: [organizationId], references: [id])\n\n @@unique([organizationId, marketplace])\n @@map(\"api_keys\")\n}\n\nmodel CounterpartyRequest {\n id String @id @default(cuid())\n status CounterpartyRequestStatus @default(PENDING)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n senderId String\n receiverId String\n message String?\n receiver Organization @relation(\"ReceivedRequests\", fields: [receiverId], references: [id])\n sender Organization @relation(\"SentRequests\", fields: [senderId], references: [id])\n\n @@unique([senderId, receiverId])\n @@map(\"counterparty_requests\")\n}\n\nmodel Counterparty {\n id String @id @default(cuid())\n createdAt DateTime @default(now())\n organizationId String\n counterpartyId String\n counterparty Organization @relation(\"CounterpartyOf\", fields: [counterpartyId], references: [id])\n organization Organization @relation(\"OrganizationCounterparties\", fields: [organizationId], references: [id])\n\n @@unique([organizationId, counterpartyId])\n @@map(\"counterparties\")\n}\n\nmodel Message {\n id String @id @default(cuid())\n content String?\n type MessageType @default(TEXT)\n voiceUrl String?\n voiceDuration Int?\n fileUrl String?\n fileName String?\n fileSize Int?\n fileType String?\n isRead Boolean @default(false)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n senderId String\n senderOrganizationId String\n receiverOrganizationId String\n receiverOrganization Organization @relation(\"ReceivedMessages\", fields: [receiverOrganizationId], references: [id])\n sender User @relation(\"SentMessages\", fields: [senderId], references: [id])\n senderOrganization Organization @relation(\"SentMessages\", fields: [senderOrganizationId], references: [id])\n\n @@index([senderOrganizationId, receiverOrganizationId, createdAt])\n @@index([receiverOrganizationId, isRead])\n @@map(\"messages\")\n}\n\nmodel Service {\n id String @id @default(cuid())\n name String\n description String?\n price Decimal @db.Decimal(10, 2)\n imageUrl String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n organizationId String\n organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)\n\n @@map(\"services\")\n}\n\nmodel Supply {\n id String @id @default(cuid())\n name String\n description String?\n price Decimal @db.Decimal(10, 2)\n quantity Int @default(0)\n unit String @default(\"шт\")\n category String @default(\"Упаковка\")\n status String @default(\"planned\") // planned, in-transit, delivered, in-stock\n date DateTime @default(now())\n supplier String @default(\"Не указан\")\n minStock Int @default(0)\n currentStock Int @default(0)\n imageUrl String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n organizationId String\n organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)\n\n @@map(\"supplies\")\n}\n\nmodel Category {\n id String @id @default(cuid())\n name String @unique\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n products Product[]\n\n @@map(\"categories\")\n}\n\nmodel Product {\n id String @id @default(cuid())\n name String\n article String\n description String?\n price Decimal @db.Decimal(12, 2)\n quantity Int @default(0)\n categoryId String?\n brand String?\n color String?\n size String?\n weight Decimal? @db.Decimal(8, 3)\n dimensions String?\n material String?\n images Json @default(\"[]\")\n mainImage String?\n isActive Boolean @default(true)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n organizationId String\n cartItems CartItem[]\n favorites Favorites[]\n supplyOrderItems SupplyOrderItem[]\n category Category? @relation(fields: [categoryId], references: [id])\n organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)\n\n @@unique([organizationId, article])\n @@map(\"products\")\n}\n\nmodel Cart {\n id String @id @default(cuid())\n organizationId String @unique\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n items CartItem[]\n organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)\n\n @@map(\"carts\")\n}\n\nmodel CartItem {\n id String @id @default(cuid())\n cartId String\n productId String\n quantity Int @default(1)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n cart Cart @relation(fields: [cartId], references: [id], onDelete: Cascade)\n product Product @relation(fields: [productId], references: [id], onDelete: Cascade)\n\n @@unique([cartId, productId])\n @@map(\"cart_items\")\n}\n\nmodel Favorites {\n id String @id @default(cuid())\n organizationId String\n productId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)\n product Product @relation(fields: [productId], references: [id], onDelete: Cascade)\n\n @@unique([organizationId, productId])\n @@map(\"favorites\")\n}\n\nmodel Employee {\n id String @id @default(cuid())\n firstName String\n lastName String\n middleName String?\n birthDate DateTime?\n avatar String?\n passportPhoto String?\n passportSeries String?\n passportNumber String?\n passportIssued String?\n passportDate DateTime?\n address String?\n position String\n department String?\n hireDate DateTime\n salary Float?\n status EmployeeStatus @default(ACTIVE)\n phone String\n email String?\n telegram String?\n whatsapp String?\n emergencyContact String?\n emergencyPhone String?\n organizationId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n scheduleRecords EmployeeSchedule[]\n organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)\n\n @@map(\"employees\")\n}\n\nmodel EmployeeSchedule {\n id String @id @default(cuid())\n date DateTime\n status ScheduleStatus\n hoursWorked Float?\n notes String?\n employeeId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n employee Employee @relation(fields: [employeeId], references: [id], onDelete: Cascade)\n\n @@unique([employeeId, date])\n @@map(\"employee_schedules\")\n}\n\nmodel WildberriesSupply {\n id String @id @default(cuid())\n organizationId String\n deliveryDate DateTime?\n status WildberriesSupplyStatus @default(DRAFT)\n totalAmount Decimal @db.Decimal(12, 2)\n totalItems Int\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)\n cards WildberriesSupplyCard[]\n\n @@map(\"wildberries_supplies\")\n}\n\nmodel WildberriesSupplyCard {\n id String @id @default(cuid())\n supplyId String\n nmId String\n vendorCode String\n title String\n brand String?\n price Decimal @db.Decimal(12, 2)\n discountedPrice Decimal? @db.Decimal(12, 2)\n quantity Int\n selectedQuantity Int\n selectedMarket String?\n selectedPlace String?\n sellerName String?\n sellerPhone String?\n deliveryDate DateTime?\n mediaFiles Json @default(\"[]\")\n selectedServices Json @default(\"[]\")\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n supply WildberriesSupply @relation(fields: [supplyId], references: [id], onDelete: Cascade)\n\n @@map(\"wildberries_supply_cards\")\n}\n\nenum OrganizationType {\n FULFILLMENT\n SELLER\n LOGIST\n WHOLESALE\n}\n\nenum MarketplaceType {\n WILDBERRIES\n OZON\n}\n\nenum CounterpartyRequestStatus {\n PENDING\n ACCEPTED\n REJECTED\n CANCELLED\n}\n\nenum MessageType {\n TEXT\n VOICE\n IMAGE\n FILE\n}\n\nenum EmployeeStatus {\n ACTIVE\n VACATION\n SICK\n FIRED\n}\n\nenum ScheduleStatus {\n WORK\n WEEKEND\n VACATION\n SICK\n ABSENT\n}\n\nenum SupplyOrderStatus {\n PENDING\n CONFIRMED\n IN_TRANSIT\n DELIVERED\n CANCELLED\n}\n\nenum WildberriesSupplyStatus {\n DRAFT\n CREATED\n IN_PROGRESS\n DELIVERED\n CANCELLED\n}\n\nmodel Logistics {\n id String @id @default(cuid())\n fromLocation String\n toLocation String\n priceUnder1m3 Float\n priceOver1m3 Float\n description String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n organizationId String\n organization Organization @relation(fields: [organizationId], references: [id])\n\n @@map(\"logistics\")\n}\n\nmodel SupplyOrder {\n id String @id @default(cuid())\n partnerId String\n deliveryDate DateTime\n status SupplyOrderStatus @default(PENDING)\n totalAmount Decimal @db.Decimal(12, 2)\n totalItems Int\n fulfillmentCenterId String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n organizationId String\n items SupplyOrderItem[]\n organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)\n partner Organization @relation(\"SupplyOrderPartner\", fields: [partnerId], references: [id])\n fulfillmentCenter Organization? @relation(\"SupplyOrderFulfillmentCenter\", fields: [fulfillmentCenterId], references: [id])\n\n @@map(\"supply_orders\")\n}\n\nmodel SupplyOrderItem {\n id String @id @default(cuid())\n supplyOrderId String\n productId String\n quantity Int\n price Decimal @db.Decimal(12, 2)\n totalPrice Decimal @db.Decimal(12, 2)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n supplyOrder SupplyOrder @relation(fields: [supplyOrderId], references: [id], onDelete: Cascade)\n product Product @relation(fields: [productId], references: [id])\n\n @@unique([supplyOrderId, productId])\n @@map(\"supply_order_items\")\n}\n\nmodel SupplySupplier {\n id String @id @default(cuid())\n name String\n contactName String\n phone String\n market String?\n address String?\n place String?\n telegram String?\n organizationId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n organization Organization @relation(\"SupplySuppliers\", fields: [organizationId], references: [id], onDelete: Cascade)\n\n @@map(\"supply_suppliers\")\n}\n", - "inlineSchemaHash": "c58e9498b2c7491abb2fa1631ced2b4c0a19faf523ac148441a417b65d11ad50", - "copyEngine": true -} - -const fs = require('fs') - -config.dirname = __dirname -if (!fs.existsSync(path.join(__dirname, 'schema.prisma'))) { - const alternativePaths = [ - "prisma/generated/client", - "generated/client", - ] - - const alternativePath = alternativePaths.find((altPath) => { - return fs.existsSync(path.join(process.cwd(), altPath, 'schema.prisma')) - }) ?? alternativePaths[0] - - config.dirname = path.join(process.cwd(), alternativePath) - config.isBundled = true -} - -config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"dbName\":\"users\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"phone\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"avatar\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"managerName\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sentMessages\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Message\",\"nativeType\":null,\"relationName\":\"SentMessages\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"smsCodes\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"SmsCode\",\"nativeType\":null,\"relationName\":\"SmsCodeToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"OrganizationToUser\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Admin\":{\"dbName\":\"admins\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"username\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isActive\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"lastLogin\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"SmsCode\":{\"dbName\":\"sms_codes\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"code\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"phone\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isUsed\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"attempts\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"maxAttempts\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":3,\"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\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"SmsCodeToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Organization\":{\"dbName\":\"organizations\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"inn\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"kpp\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fullName\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ogrn\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ogrnDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"OrganizationType\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"address\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"addressFull\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"actualityDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"registrationDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"liquidationDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"managementName\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"managementPost\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"opfCode\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"opfFull\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"opfShort\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"okato\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"oktmo\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"okpo\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"okved\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"phones\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"emails\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"employeeCount\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"revenue\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"BigInt\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"taxSystem\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"dadataData\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"apiKeys\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"ApiKey\",\"nativeType\":null,\"relationName\":\"ApiKeyToOrganization\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"carts\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Cart\",\"nativeType\":null,\"relationName\":\"CartToOrganization\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"counterpartyOf\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Counterparty\",\"nativeType\":null,\"relationName\":\"CounterpartyOf\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organizationCounterparties\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Counterparty\",\"nativeType\":null,\"relationName\":\"OrganizationCounterparties\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"receivedRequests\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"CounterpartyRequest\",\"nativeType\":null,\"relationName\":\"ReceivedRequests\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sentRequests\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"CounterpartyRequest\",\"nativeType\":null,\"relationName\":\"SentRequests\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"employees\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Employee\",\"nativeType\":null,\"relationName\":\"EmployeeToOrganization\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"favorites\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Favorites\",\"nativeType\":null,\"relationName\":\"FavoritesToOrganization\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"receivedMessages\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Message\",\"nativeType\":null,\"relationName\":\"ReceivedMessages\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sentMessages\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Message\",\"nativeType\":null,\"relationName\":\"SentMessages\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"products\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Product\",\"nativeType\":null,\"relationName\":\"OrganizationToProduct\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"services\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Service\",\"nativeType\":null,\"relationName\":\"OrganizationToService\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"supplies\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Supply\",\"nativeType\":null,\"relationName\":\"OrganizationToSupply\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"users\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"OrganizationToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"logistics\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Logistics\",\"nativeType\":null,\"relationName\":\"LogisticsToOrganization\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"supplyOrders\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"SupplyOrder\",\"nativeType\":null,\"relationName\":\"OrganizationToSupplyOrder\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"partnerSupplyOrders\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"SupplyOrder\",\"nativeType\":null,\"relationName\":\"SupplyOrderPartner\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fulfillmentSupplyOrders\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"SupplyOrder\",\"nativeType\":null,\"relationName\":\"SupplyOrderFulfillmentCenter\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"wildberriesSupplies\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"WildberriesSupply\",\"nativeType\":null,\"relationName\":\"OrganizationToWildberriesSupply\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"supplySuppliers\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"SupplySupplier\",\"nativeType\":null,\"relationName\":\"SupplySuppliers\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"ApiKey\":{\"dbName\":\"api_keys\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"marketplace\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MarketplaceType\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"apiKey\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isActive\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":true,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"validationData\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"ApiKeyToOrganization\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"organizationId\",\"marketplace\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"organizationId\",\"marketplace\"]}],\"isGenerated\":false},\"CounterpartyRequest\":{\"dbName\":\"counterparty_requests\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"CounterpartyRequestStatus\",\"nativeType\":null,\"default\":\"PENDING\",\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"senderId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"receiverId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"message\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"receiver\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"ReceivedRequests\",\"relationFromFields\":[\"receiverId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sender\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"SentRequests\",\"relationFromFields\":[\"senderId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"senderId\",\"receiverId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"senderId\",\"receiverId\"]}],\"isGenerated\":false},\"Counterparty\":{\"dbName\":\"counterparties\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"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\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"counterpartyId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"counterparty\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"CounterpartyOf\",\"relationFromFields\":[\"counterpartyId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"OrganizationCounterparties\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"organizationId\",\"counterpartyId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"organizationId\",\"counterpartyId\"]}],\"isGenerated\":false},\"Message\":{\"dbName\":\"messages\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"content\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"MessageType\",\"nativeType\":null,\"default\":\"TEXT\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"voiceUrl\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"voiceDuration\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fileUrl\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fileName\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fileSize\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fileType\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isRead\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"senderId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"senderOrganizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"receiverOrganizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"receiverOrganization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"ReceivedMessages\",\"relationFromFields\":[\"receiverOrganizationId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sender\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"SentMessages\",\"relationFromFields\":[\"senderId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"senderOrganization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"SentMessages\",\"relationFromFields\":[\"senderOrganizationId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Service\":{\"dbName\":\"services\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"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\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"price\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Decimal\",\"nativeType\":[\"Decimal\",[\"10\",\"2\"]],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"imageUrl\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"OrganizationToService\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Supply\":{\"dbName\":\"supplies\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"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\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"price\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Decimal\",\"nativeType\":[\"Decimal\",[\"10\",\"2\"]],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"quantity\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"unit\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"шт\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"category\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"Упаковка\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"planned\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"date\",\"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\":\"supplier\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"Не указан\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"minStock\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"currentStock\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"imageUrl\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"OrganizationToSupply\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Category\":{\"dbName\":\"categories\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"products\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Product\",\"nativeType\":null,\"relationName\":\"CategoryToProduct\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Product\":{\"dbName\":\"products\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"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\":\"article\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"price\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Decimal\",\"nativeType\":[\"Decimal\",[\"12\",\"2\"]],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"quantity\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"categoryId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"brand\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"size\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"weight\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Decimal\",\"nativeType\":[\"Decimal\",[\"8\",\"3\"]],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"dimensions\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"material\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"images\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Json\",\"nativeType\":null,\"default\":\"[]\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"mainImage\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isActive\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":true,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"cartItems\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"CartItem\",\"nativeType\":null,\"relationName\":\"CartItemToProduct\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"favorites\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Favorites\",\"nativeType\":null,\"relationName\":\"FavoritesToProduct\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"supplyOrderItems\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"SupplyOrderItem\",\"nativeType\":null,\"relationName\":\"ProductToSupplyOrderItem\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"category\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Category\",\"nativeType\":null,\"relationName\":\"CategoryToProduct\",\"relationFromFields\":[\"categoryId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"OrganizationToProduct\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"organizationId\",\"article\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"organizationId\",\"article\"]}],\"isGenerated\":false},\"Cart\":{\"dbName\":\"carts\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"items\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"CartItem\",\"nativeType\":null,\"relationName\":\"CartToCartItem\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"CartToOrganization\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"CartItem\":{\"dbName\":\"cart_items\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"cartId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"productId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"quantity\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":1,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"cart\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Cart\",\"nativeType\":null,\"relationName\":\"CartToCartItem\",\"relationFromFields\":[\"cartId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"product\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Product\",\"nativeType\":null,\"relationName\":\"CartItemToProduct\",\"relationFromFields\":[\"productId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"cartId\",\"productId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"cartId\",\"productId\"]}],\"isGenerated\":false},\"Favorites\":{\"dbName\":\"favorites\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"productId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"FavoritesToOrganization\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"product\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Product\",\"nativeType\":null,\"relationName\":\"FavoritesToProduct\",\"relationFromFields\":[\"productId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"organizationId\",\"productId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"organizationId\",\"productId\"]}],\"isGenerated\":false},\"Employee\":{\"dbName\":\"employees\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"firstName\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"lastName\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"middleName\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"birthDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"avatar\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"passportPhoto\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"passportSeries\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"passportNumber\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"passportIssued\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"passportDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"address\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"position\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"department\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"hireDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"salary\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Float\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"EmployeeStatus\",\"nativeType\":null,\"default\":\"ACTIVE\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"phone\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"telegram\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"whatsapp\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"emergencyContact\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"emergencyPhone\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"scheduleRecords\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"EmployeeSchedule\",\"nativeType\":null,\"relationName\":\"EmployeeToEmployeeSchedule\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"EmployeeToOrganization\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"EmployeeSchedule\":{\"dbName\":\"employee_schedules\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"date\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"ScheduleStatus\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"hoursWorked\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Float\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"employeeId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"employee\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Employee\",\"nativeType\":null,\"relationName\":\"EmployeeToEmployeeSchedule\",\"relationFromFields\":[\"employeeId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"employeeId\",\"date\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"employeeId\",\"date\"]}],\"isGenerated\":false},\"WildberriesSupply\":{\"dbName\":\"wildberries_supplies\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"deliveryDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"WildberriesSupplyStatus\",\"nativeType\":null,\"default\":\"DRAFT\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"totalAmount\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Decimal\",\"nativeType\":[\"Decimal\",[\"12\",\"2\"]],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"totalItems\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"OrganizationToWildberriesSupply\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"cards\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"WildberriesSupplyCard\",\"nativeType\":null,\"relationName\":\"WildberriesSupplyToWildberriesSupplyCard\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"WildberriesSupplyCard\":{\"dbName\":\"wildberries_supply_cards\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"supplyId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"nmId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"vendorCode\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"brand\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"price\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Decimal\",\"nativeType\":[\"Decimal\",[\"12\",\"2\"]],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"discountedPrice\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Decimal\",\"nativeType\":[\"Decimal\",[\"12\",\"2\"]],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"quantity\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"selectedQuantity\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"selectedMarket\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"selectedPlace\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sellerName\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sellerPhone\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"deliveryDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"mediaFiles\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Json\",\"nativeType\":null,\"default\":\"[]\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"selectedServices\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Json\",\"nativeType\":null,\"default\":\"[]\",\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"supply\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"WildberriesSupply\",\"nativeType\":null,\"relationName\":\"WildberriesSupplyToWildberriesSupplyCard\",\"relationFromFields\":[\"supplyId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Logistics\":{\"dbName\":\"logistics\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fromLocation\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"toLocation\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"priceUnder1m3\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Float\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"priceOver1m3\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Float\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"LogisticsToOrganization\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"SupplyOrder\":{\"dbName\":\"supply_orders\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"partnerId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"deliveryDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"SupplyOrderStatus\",\"nativeType\":null,\"default\":\"PENDING\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"totalAmount\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Decimal\",\"nativeType\":[\"Decimal\",[\"12\",\"2\"]],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"totalItems\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fulfillmentCenterId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"items\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"SupplyOrderItem\",\"nativeType\":null,\"relationName\":\"SupplyOrderToSupplyOrderItem\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"OrganizationToSupplyOrder\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"partner\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"SupplyOrderPartner\",\"relationFromFields\":[\"partnerId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fulfillmentCenter\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"SupplyOrderFulfillmentCenter\",\"relationFromFields\":[\"fulfillmentCenterId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"SupplyOrderItem\":{\"dbName\":\"supply_order_items\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"supplyOrderId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"productId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"quantity\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"price\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Decimal\",\"nativeType\":[\"Decimal\",[\"12\",\"2\"]],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"totalPrice\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Decimal\",\"nativeType\":[\"Decimal\",[\"12\",\"2\"]],\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"supplyOrder\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"SupplyOrder\",\"nativeType\":null,\"relationName\":\"SupplyOrderToSupplyOrderItem\",\"relationFromFields\":[\"supplyOrderId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"product\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Product\",\"nativeType\":null,\"relationName\":\"ProductToSupplyOrderItem\",\"relationFromFields\":[\"productId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"supplyOrderId\",\"productId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"supplyOrderId\",\"productId\"]}],\"isGenerated\":false},\"SupplySupplier\":{\"dbName\":\"supply_suppliers\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"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\":\"contactName\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"phone\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"market\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"address\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"place\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"telegram\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"organizationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"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\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"organization\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Organization\",\"nativeType\":null,\"relationName\":\"SupplySuppliers\",\"relationFromFields\":[\"organizationId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{\"OrganizationType\":{\"values\":[{\"name\":\"FULFILLMENT\",\"dbName\":null},{\"name\":\"SELLER\",\"dbName\":null},{\"name\":\"LOGIST\",\"dbName\":null},{\"name\":\"WHOLESALE\",\"dbName\":null}],\"dbName\":null},\"MarketplaceType\":{\"values\":[{\"name\":\"WILDBERRIES\",\"dbName\":null},{\"name\":\"OZON\",\"dbName\":null}],\"dbName\":null},\"CounterpartyRequestStatus\":{\"values\":[{\"name\":\"PENDING\",\"dbName\":null},{\"name\":\"ACCEPTED\",\"dbName\":null},{\"name\":\"REJECTED\",\"dbName\":null},{\"name\":\"CANCELLED\",\"dbName\":null}],\"dbName\":null},\"MessageType\":{\"values\":[{\"name\":\"TEXT\",\"dbName\":null},{\"name\":\"VOICE\",\"dbName\":null},{\"name\":\"IMAGE\",\"dbName\":null},{\"name\":\"FILE\",\"dbName\":null}],\"dbName\":null},\"EmployeeStatus\":{\"values\":[{\"name\":\"ACTIVE\",\"dbName\":null},{\"name\":\"VACATION\",\"dbName\":null},{\"name\":\"SICK\",\"dbName\":null},{\"name\":\"FIRED\",\"dbName\":null}],\"dbName\":null},\"ScheduleStatus\":{\"values\":[{\"name\":\"WORK\",\"dbName\":null},{\"name\":\"WEEKEND\",\"dbName\":null},{\"name\":\"VACATION\",\"dbName\":null},{\"name\":\"SICK\",\"dbName\":null},{\"name\":\"ABSENT\",\"dbName\":null}],\"dbName\":null},\"SupplyOrderStatus\":{\"values\":[{\"name\":\"PENDING\",\"dbName\":null},{\"name\":\"CONFIRMED\",\"dbName\":null},{\"name\":\"IN_TRANSIT\",\"dbName\":null},{\"name\":\"DELIVERED\",\"dbName\":null},{\"name\":\"CANCELLED\",\"dbName\":null}],\"dbName\":null},\"WildberriesSupplyStatus\":{\"values\":[{\"name\":\"DRAFT\",\"dbName\":null},{\"name\":\"CREATED\",\"dbName\":null},{\"name\":\"IN_PROGRESS\",\"dbName\":null},{\"name\":\"DELIVERED\",\"dbName\":null},{\"name\":\"CANCELLED\",\"dbName\":null}],\"dbName\":null}},\"types\":{}}") -defineDmmfProperty(exports.Prisma, config.runtimeDataModel) -config.engineWasm = undefined -config.compilerWasm = undefined - - -const { warnEnvConflicts } = require('./runtime/library.js') - -warnEnvConflicts({ - rootEnvPath: config.relativeEnvPaths.rootEnvPath && path.resolve(config.dirname, config.relativeEnvPaths.rootEnvPath), - schemaEnvPath: config.relativeEnvPaths.schemaEnvPath && path.resolve(config.dirname, config.relativeEnvPaths.schemaEnvPath) -}) - -const PrismaClient = getPrismaClient(config) -exports.PrismaClient = PrismaClient -Object.assign(exports, Prisma) - -// file annotations for bundling tools to include these files -path.join(__dirname, "libquery_engine-darwin-arm64.dylib.node"); -path.join(process.cwd(), "prisma/generated/client/libquery_engine-darwin-arm64.dylib.node") -// file annotations for bundling tools to include these files -path.join(__dirname, "schema.prisma"); -path.join(process.cwd(), "prisma/generated/client/schema.prisma") diff --git a/prisma/generated/client/libquery_engine-darwin-arm64.dylib.node b/prisma/generated/client/libquery_engine-darwin-arm64.dylib.node deleted file mode 100755 index e466e92..0000000 Binary files a/prisma/generated/client/libquery_engine-darwin-arm64.dylib.node and /dev/null differ diff --git a/prisma/generated/client/package.json b/prisma/generated/client/package.json deleted file mode 100644 index 7dca893..0000000 --- a/prisma/generated/client/package.json +++ /dev/null @@ -1,150 +0,0 @@ -{ - "name": "prisma-client-8dc77d51dbce4c9ecb9607a5c0bf6a7dd2a9d72108ff1094bc81ca581816779a", - "main": "index.js", - "types": "index.d.ts", - "browser": "index-browser.js", - "exports": { - "./client": { - "require": { - "node": "./index.js", - "edge-light": "./wasm.js", - "workerd": "./wasm.js", - "worker": "./wasm.js", - "browser": "./index-browser.js", - "default": "./index.js" - }, - "import": { - "node": "./index.js", - "edge-light": "./wasm.js", - "workerd": "./wasm.js", - "worker": "./wasm.js", - "browser": "./index-browser.js", - "default": "./index.js" - }, - "default": "./index.js" - }, - "./package.json": "./package.json", - ".": { - "require": { - "node": "./index.js", - "edge-light": "./wasm.js", - "workerd": "./wasm.js", - "worker": "./wasm.js", - "browser": "./index-browser.js", - "default": "./index.js" - }, - "import": { - "node": "./index.js", - "edge-light": "./wasm.js", - "workerd": "./wasm.js", - "worker": "./wasm.js", - "browser": "./index-browser.js", - "default": "./index.js" - }, - "default": "./index.js" - }, - "./edge": { - "types": "./edge.d.ts", - "require": "./edge.js", - "import": "./edge.js", - "default": "./edge.js" - }, - "./react-native": { - "types": "./react-native.d.ts", - "require": "./react-native.js", - "import": "./react-native.js", - "default": "./react-native.js" - }, - "./extension": { - "types": "./extension.d.ts", - "require": "./extension.js", - "import": "./extension.js", - "default": "./extension.js" - }, - "./index-browser": { - "types": "./index.d.ts", - "require": "./index-browser.js", - "import": "./index-browser.js", - "default": "./index-browser.js" - }, - "./index": { - "types": "./index.d.ts", - "require": "./index.js", - "import": "./index.js", - "default": "./index.js" - }, - "./wasm": { - "types": "./wasm.d.ts", - "require": "./wasm.js", - "import": "./wasm.mjs", - "default": "./wasm.mjs" - }, - "./runtime/client": { - "types": "./runtime/client.d.ts", - "node": { - "require": "./runtime/client.js", - "default": "./runtime/client.js" - }, - "require": "./runtime/client.js", - "import": "./runtime/client.mjs", - "default": "./runtime/client.mjs" - }, - "./runtime/library": { - "types": "./runtime/library.d.ts", - "require": "./runtime/library.js", - "import": "./runtime/library.mjs", - "default": "./runtime/library.mjs" - }, - "./runtime/binary": { - "types": "./runtime/binary.d.ts", - "require": "./runtime/binary.js", - "import": "./runtime/binary.mjs", - "default": "./runtime/binary.mjs" - }, - "./runtime/wasm-engine-edge": { - "types": "./runtime/wasm-engine-edge.d.ts", - "require": "./runtime/wasm-engine-edge.js", - "import": "./runtime/wasm-engine-edge.mjs", - "default": "./runtime/wasm-engine-edge.mjs" - }, - "./runtime/wasm-compiler-edge": { - "types": "./runtime/wasm-compiler-edge.d.ts", - "require": "./runtime/wasm-compiler-edge.js", - "import": "./runtime/wasm-compiler-edge.mjs", - "default": "./runtime/wasm-compiler-edge.mjs" - }, - "./runtime/edge": { - "types": "./runtime/edge.d.ts", - "require": "./runtime/edge.js", - "import": "./runtime/edge-esm.js", - "default": "./runtime/edge-esm.js" - }, - "./runtime/react-native": { - "types": "./runtime/react-native.d.ts", - "require": "./runtime/react-native.js", - "import": "./runtime/react-native.js", - "default": "./runtime/react-native.js" - }, - "./generator-build": { - "require": "./generator-build/index.js", - "import": "./generator-build/index.js", - "default": "./generator-build/index.js" - }, - "./sql": { - "require": { - "types": "./sql.d.ts", - "node": "./sql.js", - "default": "./sql.js" - }, - "import": { - "types": "./sql.d.ts", - "node": "./sql.mjs", - "default": "./sql.mjs" - }, - "default": "./sql.js" - }, - "./*": "./*" - }, - "version": "6.12.0", - "sideEffects": false -} \ No newline at end of file diff --git a/prisma/generated/client/runtime/edge-esm.js b/prisma/generated/client/runtime/edge-esm.js deleted file mode 100644 index a6e9793..0000000 --- a/prisma/generated/client/runtime/edge-esm.js +++ /dev/null @@ -1,34 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! -/* eslint-disable */ -var ma=Object.create;var nn=Object.defineProperty;var da=Object.getOwnPropertyDescriptor;var fa=Object.getOwnPropertyNames;var ga=Object.getPrototypeOf,ha=Object.prototype.hasOwnProperty;var me=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ae=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),or=(e,t)=>{for(var r in t)nn(e,r,{get:t[r],enumerable:!0})},ya=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of fa(t))!ha.call(e,i)&&i!==r&&nn(e,i,{get:()=>t[i],enumerable:!(n=da(t,i))||n.enumerable});return e};var Le=(e,t,r)=>(r=e!=null?ma(ga(e)):{},ya(t||!e||!e.__esModule?nn(r,"default",{value:e,enumerable:!0}):r,e));var y,u=me(()=>{"use strict";y={nextTick:(e,...t)=>{setTimeout(()=>{e(...t)},0)},env:{},version:"",cwd:()=>"/",stderr:{},argv:["/bin/node"],pid:1e4}});var b,c=me(()=>{"use strict";b=globalThis.performance??(()=>{let e=Date.now();return{now:()=>Date.now()-e}})()});var E,p=me(()=>{"use strict";E=()=>{};E.prototype=E});var m=me(()=>{"use strict"});var Pi=Ae(He=>{"use strict";d();u();c();p();m();var li=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),wa=li(e=>{"use strict";e.byteLength=l,e.toByteArray=g,e.fromByteArray=S;var t=[],r=[],n=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(o=0,s=i.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var D=C.indexOf("=");D===-1&&(D=R);var M=D===R?0:4-D%4;return[D,M]}function l(C){var R=a(C),D=R[0],M=R[1];return(D+M)*3/4-M}function f(C,R,D){return(R+D)*3/4-D}function g(C){var R,D=a(C),M=D[0],U=D[1],k=new n(f(C,M,U)),F=0,ie=U>0?M-4:M,G;for(G=0;G>16&255,k[F++]=R>>8&255,k[F++]=R&255;return U===2&&(R=r[C.charCodeAt(G)]<<2|r[C.charCodeAt(G+1)]>>4,k[F++]=R&255),U===1&&(R=r[C.charCodeAt(G)]<<10|r[C.charCodeAt(G+1)]<<4|r[C.charCodeAt(G+2)]>>2,k[F++]=R>>8&255,k[F++]=R&255),k}function h(C){return t[C>>18&63]+t[C>>12&63]+t[C>>6&63]+t[C&63]}function v(C,R,D){for(var M,U=[],k=R;kie?ie:F+k));return M===1?(R=C[D-1],U.push(t[R>>2]+t[R<<4&63]+"==")):M===2&&(R=(C[D-2]<<8)+C[D-1],U.push(t[R>>10]+t[R>>4&63]+t[R<<2&63]+"=")),U.join("")}}),Ea=li(e=>{e.read=function(t,r,n,i,o){var s,a,l=o*8-i-1,f=(1<>1,h=-7,v=n?o-1:0,S=n?-1:1,C=t[r+v];for(v+=S,s=C&(1<<-h)-1,C>>=-h,h+=l;h>0;s=s*256+t[r+v],v+=S,h-=8);for(a=s&(1<<-h)-1,s>>=-h,h+=i;h>0;a=a*256+t[r+v],v+=S,h-=8);if(s===0)s=1-g;else{if(s===f)return a?NaN:(C?-1:1)*(1/0);a=a+Math.pow(2,i),s=s-g}return(C?-1:1)*a*Math.pow(2,s-i)},e.write=function(t,r,n,i,o,s){var a,l,f,g=s*8-o-1,h=(1<>1,S=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=i?0:s-1,R=i?1:-1,D=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,a=h):(a=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-a))<1&&(a--,f*=2),a+v>=1?r+=S/f:r+=S*Math.pow(2,1-v),r*f>=2&&(a++,f/=2),a+v>=h?(l=0,a=h):a+v>=1?(l=(r*f-1)*Math.pow(2,o),a=a+v):(l=r*Math.pow(2,v-1)*Math.pow(2,o),a=0));o>=8;t[n+C]=l&255,C+=R,l/=256,o-=8);for(a=a<0;t[n+C]=a&255,C+=R,a/=256,g-=8);t[n+C-R]|=D*128}}),on=wa(),We=Ea(),ii=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;He.Buffer=T;He.SlowBuffer=Ca;He.INSPECT_MAX_BYTES=50;var sr=2147483647;He.kMaxLength=sr;T.TYPED_ARRAY_SUPPORT=ba();!T.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ba(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(T.prototype,"parent",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.buffer}});Object.defineProperty(T.prototype,"offset",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.byteOffset}});function be(e){if(e>sr)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,T.prototype),t}function T(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ln(e)}return ui(e,t,r)}T.poolSize=8192;function ui(e,t,r){if(typeof e=="string")return Pa(e,t);if(ArrayBuffer.isView(e))return va(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(de(e,ArrayBuffer)||e&&de(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(de(e,SharedArrayBuffer)||e&&de(e.buffer,SharedArrayBuffer)))return pi(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return T.from(n,t,r);let i=Ta(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return T.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}T.from=function(e,t,r){return ui(e,t,r)};Object.setPrototypeOf(T.prototype,Uint8Array.prototype);Object.setPrototypeOf(T,Uint8Array);function ci(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function xa(e,t,r){return ci(e),e<=0?be(e):t!==void 0?typeof r=="string"?be(e).fill(t,r):be(e).fill(t):be(e)}T.alloc=function(e,t,r){return xa(e,t,r)};function ln(e){return ci(e),be(e<0?0:un(e)|0)}T.allocUnsafe=function(e){return ln(e)};T.allocUnsafeSlow=function(e){return ln(e)};function Pa(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!T.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=mi(e,t)|0,n=be(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function sn(e){let t=e.length<0?0:un(e.length)|0,r=be(t);for(let n=0;n=sr)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+sr.toString(16)+" bytes");return e|0}function Ca(e){return+e!=e&&(e=0),T.alloc(+e)}T.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==T.prototype};T.compare=function(e,t){if(de(e,Uint8Array)&&(e=T.from(e,e.offset,e.byteLength)),de(t,Uint8Array)&&(t=T.from(t,t.offset,t.byteLength)),!T.isBuffer(e)||!T.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);in.length?(T.isBuffer(o)||(o=T.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(T.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function mi(e,t){if(T.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||de(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return an(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return xi(e).length;default:if(i)return n?-1:an(e).length;t=(""+t).toLowerCase(),i=!0}}T.byteLength=mi;function Aa(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Fa(this,t,r);case"utf8":case"utf-8":return fi(this,t,r);case"ascii":return _a(this,t,r);case"latin1":case"binary":return Na(this,t,r);case"base64":return Da(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return La(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}T.prototype._isBuffer=!0;function Ue(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}T.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(e+=" ... "),""};ii&&(T.prototype[ii]=T.prototype.inspect);T.prototype.compare=function(e,t,r,n,i){if(de(e,Uint8Array)&&(e=T.from(e,e.offset,e.byteLength)),!T.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),r===void 0&&(r=e?e.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,s=r-t,a=Math.min(o,s),l=this.slice(n,i),f=e.slice(t,r);for(let g=0;g2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,pn(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=T.from(t,n)),T.isBuffer(t))return t.length===0?-1:oi(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):oi(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function oi(e,t,r,n,i){let o=1,s=e.length,a=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,s/=2,a/=2,r/=2}function l(g,h){return o===1?g[h]:g.readUInt16BE(h*o)}let f;if(i){let g=-1;for(f=r;fs&&(r=s-a),f=r;f>=0;f--){let g=!0;for(let h=0;hi&&(n=i)):n=i;let o=t.length;n>o/2&&(n=o/2);let s;for(s=0;s>>0,isFinite(r)?(r=r>>>0,n===void 0&&(n="utf8")):(n=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((r===void 0||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return Ra(this,e,t,r);case"utf8":case"utf-8":return Sa(this,e,t,r);case"ascii":case"latin1":case"binary":return ka(this,e,t,r);case"base64":return Ia(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Oa(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Da(e,t,r){return t===0&&r===e.length?on.fromByteArray(e):on.fromByteArray(e.slice(t,r))}function fi(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i239?4:o>223?3:o>191?2:1;if(i+a<=r){let l,f,g,h;switch(a){case 1:o<128&&(s=o);break;case 2:l=e[i+1],(l&192)===128&&(h=(o&31)<<6|l&63,h>127&&(s=h));break;case 3:l=e[i+1],f=e[i+2],(l&192)===128&&(f&192)===128&&(h=(o&15)<<12|(l&63)<<6|f&63,h>2047&&(h<55296||h>57343)&&(s=h));break;case 4:l=e[i+1],f=e[i+2],g=e[i+3],(l&192)===128&&(f&192)===128&&(g&192)===128&&(h=(o&15)<<18|(l&63)<<12|(f&63)<<6|g&63,h>65535&&h<1114112&&(s=h))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=a}return Ma(n)}var si=4096;function Ma(e){let t=e.length;if(t<=si)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let o=t;or&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),tr)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function(e,t,r){e=e>>>0,t=t>>>0,r||W(e,t,this.length);let n=this[e],i=1,o=0;for(;++o>>0,t=t>>>0,r||W(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n};T.prototype.readUint8=T.prototype.readUInt8=function(e,t){return e=e>>>0,t||W(e,1,this.length),this[e]};T.prototype.readUint16LE=T.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||W(e,2,this.length),this[e]|this[e+1]<<8};T.prototype.readUint16BE=T.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||W(e,2,this.length),this[e]<<8|this[e+1]};T.prototype.readUint32LE=T.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||W(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};T.prototype.readUint32BE=T.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||W(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};T.prototype.readBigUInt64LE=Re(function(e){e=e>>>0,Ke(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&bt(e,this.length-8);let n=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+r*2**24;return BigInt(n)+(BigInt(i)<>>0,Ke(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&bt(e,this.length-8);let n=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+r;return(BigInt(n)<>>0,t=t>>>0,r||W(e,t,this.length);let n=this[e],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};T.prototype.readIntBE=function(e,t,r){e=e>>>0,t=t>>>0,r||W(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};T.prototype.readInt8=function(e,t){return e=e>>>0,t||W(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};T.prototype.readInt16LE=function(e,t){e=e>>>0,t||W(e,2,this.length);let r=this[e]|this[e+1]<<8;return r&32768?r|4294901760:r};T.prototype.readInt16BE=function(e,t){e=e>>>0,t||W(e,2,this.length);let r=this[e+1]|this[e]<<8;return r&32768?r|4294901760:r};T.prototype.readInt32LE=function(e,t){return e=e>>>0,t||W(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};T.prototype.readInt32BE=function(e,t){return e=e>>>0,t||W(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};T.prototype.readBigInt64LE=Re(function(e){e=e>>>0,Ke(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&bt(e,this.length-8);let n=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(r<<24);return(BigInt(n)<>>0,Ke(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&bt(e,this.length-8);let n=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(n)<>>0,t||W(e,4,this.length),We.read(this,e,!0,23,4)};T.prototype.readFloatBE=function(e,t){return e=e>>>0,t||W(e,4,this.length),We.read(this,e,!1,23,4)};T.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||W(e,8,this.length),We.read(this,e,!0,52,8)};T.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||W(e,8,this.length),We.read(this,e,!1,52,8)};function te(e,t,r,n,i,o){if(!T.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t=t>>>0,r=r>>>0,!n){let s=Math.pow(2,8*r)-1;te(this,e,t,r,s,0)}let i=1,o=0;for(this[t]=e&255;++o>>0,r=r>>>0,!n){let s=Math.pow(2,8*r)-1;te(this,e,t,r,s,0)}let i=r-1,o=1;for(this[t+i]=e&255;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r};T.prototype.writeUint8=T.prototype.writeUInt8=function(e,t,r){return e=+e,t=t>>>0,r||te(this,e,t,1,255,0),this[t]=e&255,t+1};T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||te(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||te(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||te(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||te(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function gi(e,t,r,n,i){bi(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,r}function hi(e,t,r,n,i){bi(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o=o>>8,e[r+6]=o,o=o>>8,e[r+5]=o,o=o>>8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s=s>>8,e[r+2]=s,s=s>>8,e[r+1]=s,s=s>>8,e[r]=s,r+8}T.prototype.writeBigUInt64LE=Re(function(e,t=0){return gi(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});T.prototype.writeBigUInt64BE=Re(function(e,t=0){return hi(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});T.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t=t>>>0,!n){let a=Math.pow(2,8*r-1);te(this,e,t,r,a-1,-a)}let i=0,o=1,s=0;for(this[t]=e&255;++i>0)-s&255;return t+r};T.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t=t>>>0,!n){let a=Math.pow(2,8*r-1);te(this,e,t,r,a-1,-a)}let i=r-1,o=1,s=0;for(this[t+i]=e&255;--i>=0&&(o*=256);)e<0&&s===0&&this[t+i+1]!==0&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r};T.prototype.writeInt8=function(e,t,r){return e=+e,t=t>>>0,r||te(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};T.prototype.writeInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||te(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};T.prototype.writeInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||te(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};T.prototype.writeInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||te(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};T.prototype.writeInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||te(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};T.prototype.writeBigInt64LE=Re(function(e,t=0){return gi(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});T.prototype.writeBigInt64BE=Re(function(e,t=0){return hi(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function yi(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function wi(e,t,r,n,i){return t=+t,r=r>>>0,i||yi(e,t,r,4,34028234663852886e22,-34028234663852886e22),We.write(e,t,r,n,23,4),r+4}T.prototype.writeFloatLE=function(e,t,r){return wi(this,e,t,!0,r)};T.prototype.writeFloatBE=function(e,t,r){return wi(this,e,t,!1,r)};function Ei(e,t,r,n,i){return t=+t,r=r>>>0,i||yi(e,t,r,8,17976931348623157e292,-17976931348623157e292),We.write(e,t,r,n,52,8),r+8}T.prototype.writeDoubleLE=function(e,t,r){return Ei(this,e,t,!0,r)};T.prototype.writeDoubleBE=function(e,t,r){return Ei(this,e,t,!1,r)};T.prototype.copy=function(e,t,r,n){if(!T.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),!n&&n!==0&&(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>0,r=r===void 0?this.length:r>>>0,e||(e=0);let i;if(typeof e=="number")for(i=t;i2**32?i=ai(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=ai(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function ai(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Ua(e,t,r){Ke(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&bt(t,e.length-(r+1))}function bi(e,t,r,n,i,o){if(e>r||e3?t===0||t===BigInt(0)?a=`>= 0${s} and < 2${s} ** ${(o+1)*8}${s}`:a=`>= -(2${s} ** ${(o+1)*8-1}${s}) and < 2 ** ${(o+1)*8-1}${s}`:a=`>= ${t}${s} and <= ${r}${s}`,new Je.ERR_OUT_OF_RANGE("value",a,e)}Ua(n,i,o)}function Ke(e,t){if(typeof e!="number")throw new Je.ERR_INVALID_ARG_TYPE(t,"number",e)}function bt(e,t,r){throw Math.floor(e)!==e?(Ke(e,r),new Je.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new Je.ERR_BUFFER_OUT_OF_BOUNDS:new Je.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var Ba=/[^+/0-9A-Za-z-_]/g;function qa(e){if(e=e.split("=")[0],e=e.trim().replace(Ba,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function an(e,t){t=t||1/0;let r,n=e.length,i=null,o=[];for(let s=0;s55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function $a(e){let t=[];for(let r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function xi(e){return on.toByteArray(qa(e))}function ar(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function de(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function pn(e){return e!==e}var ja=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function Re(e){return typeof BigInt>"u"?Ga:e}function Ga(){throw new Error("BigInt not supported")}});var w,d=me(()=>{"use strict";w=Le(Pi())});function za(){return!1}function $i(){return{dev:0,ino:0,mode:0,nlink:0,uid:0,gid:0,rdev:0,size:0,blksize:0,blocks:0,atimeMs:0,mtimeMs:0,ctimeMs:0,birthtimeMs:0,atime:new Date,mtime:new Date,ctime:new Date,birthtime:new Date}}function Ya(){return $i()}function Za(){return[]}function Xa(e){e(null,[])}function el(){return""}function tl(){return""}function rl(){}function nl(){}function il(){}function ol(){}function sl(){}function al(){}var ll,ul,Vi,ji=me(()=>{"use strict";d();u();c();p();m();ll={},ul={existsSync:za,lstatSync:$i,statSync:Ya,readdirSync:Za,readdir:Xa,readlinkSync:el,realpathSync:tl,chmodSync:rl,renameSync:nl,mkdirSync:il,rmdirSync:ol,rmSync:sl,unlinkSync:al,promises:ll},Vi=ul});function cl(...e){return e.join("/")}function pl(...e){return e.join("/")}function ml(e){let t=Gi(e),r=Qi(e),[n,i]=t.split(".");return{root:"/",dir:r,base:t,ext:i,name:n}}function Gi(e){let t=e.split("/");return t[t.length-1]}function Qi(e){return e.split("/").slice(0,-1).join("/")}var Ji,dl,fl,pr,Wi=me(()=>{"use strict";d();u();c();p();m();Ji="/",dl={sep:Ji},fl={basename:Gi,dirname:Qi,join:pl,parse:ml,posix:dl,resolve:cl,sep:Ji},pr=fl});var Ki=Ae((md,gl)=>{gl.exports={name:"@prisma/internals",version:"6.12.0",description:"This package is intended for Prisma's internal use",main:"dist/index.js",types:"dist/index.d.ts",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/internals"},homepage:"https://www.prisma.io",author:"Tim Suchanek ",bugs:"https://github.com/prisma/prisma/issues",license:"Apache-2.0",scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",test:"dotenv -e ../../.db.env -- jest --silent",prepublishOnly:"pnpm run build"},files:["README.md","dist","!**/libquery_engine*","!dist/get-generators/engines/*","scripts"],devDependencies:{"@babel/helper-validator-identifier":"7.25.9","@opentelemetry/api":"1.9.0","@swc/core":"1.11.5","@swc/jest":"0.2.37","@types/babel__helper-validator-identifier":"7.15.2","@types/jest":"29.5.14","@types/node":"18.19.76","@types/resolve":"1.20.6",archiver:"6.0.2","checkpoint-client":"1.1.33","cli-truncate":"4.0.0",dotenv:"16.5.0",esbuild:"0.25.5","escape-string-regexp":"5.0.0",execa:"5.1.1","fast-glob":"3.3.3","find-up":"7.0.0","fp-ts":"2.16.9","fs-extra":"11.3.0","fs-jetpack":"5.1.0","global-dirs":"4.0.0",globby:"11.1.0","identifier-regex":"1.0.0","indent-string":"4.0.0","is-windows":"1.0.2","is-wsl":"3.1.0",jest:"29.7.0","jest-junit":"16.0.0",kleur:"4.1.5","mock-stdin":"1.0.0","new-github-issue-url":"0.2.1","node-fetch":"3.3.2","npm-packlist":"5.1.3",open:"7.4.2","p-map":"4.0.0","read-package-up":"11.0.0",resolve:"1.22.10","string-width":"7.2.0","strip-ansi":"6.0.1","strip-indent":"4.0.0","temp-dir":"2.0.0",tempy:"1.0.1","terminal-link":"4.0.0",tmp:"0.2.3","ts-node":"10.9.2","ts-pattern":"5.6.2","ts-toolbelt":"9.6.0",typescript:"5.4.5",yarn:"1.22.22"},dependencies:{"@prisma/config":"workspace:*","@prisma/debug":"workspace:*","@prisma/dmmf":"workspace:*","@prisma/driver-adapter-utils":"workspace:*","@prisma/engines":"workspace:*","@prisma/fetch-engine":"workspace:*","@prisma/generator":"workspace:*","@prisma/generator-helper":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/prisma-schema-wasm":"6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc","@prisma/schema-engine-wasm":"6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc","@prisma/schema-files-loader":"workspace:*",arg:"5.0.2",prompts:"2.4.2"},peerDependencies:{typescript:">=5.1.0"},peerDependenciesMeta:{typescript:{optional:!0}},sideEffects:!1}});var gn=Ae((Cd,El)=>{El.exports={name:"@prisma/engines-version",version:"6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek ",prisma:{enginesVersion:"8047c96bbd92db98a2abc7c9323ce77c02c89dbc"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.76",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var Hi=Ae(mr=>{"use strict";d();u();c();p();m();Object.defineProperty(mr,"__esModule",{value:!0});mr.enginesVersion=void 0;mr.enginesVersion=gn().prisma.enginesVersion});var Zi=Ae((Ud,Yi)=>{"use strict";d();u();c();p();m();Yi.exports=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof r.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(t===0)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}});var to=Ae((zd,eo)=>{"use strict";d();u();c();p();m();eo.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var no=Ae((rf,ro)=>{"use strict";d();u();c();p();m();var Tl=to();ro.exports=e=>typeof e=="string"?e.replace(Tl(),""):e});var An=Ae((Qy,Po)=>{"use strict";d();u();c();p();m();Po.exports=function(){function e(t,r,n,i,o){return tn?n+1:t+1:i===o?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;s{"use strict";d();u();c();p();m()});var So=me(()=>{"use strict";d();u();c();p();m()});var qr,Ho=me(()=>{"use strict";d();u();c();p();m();qr=class{events={};on(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),this}emit(t,...r){return this.events[t]?(this.events[t].forEach(n=>{n(...r)}),!0):!1}}});d();u();c();p();m();var Ci={};or(Ci,{defineExtension:()=>vi,getExtensionContext:()=>Ti});d();u();c();p();m();d();u();c();p();m();function vi(e){return typeof e=="function"?e:t=>t.$extends(e)}d();u();c();p();m();function Ti(e){return e}var Ri={};or(Ri,{validator:()=>Ai});d();u();c();p();m();d();u();c();p();m();function Ai(...e){return t=>t}d();u();c();p();m();d();u();c();p();m();d();u();c();p();m();var mn,Si,ki,Ii,Oi=!0;typeof y<"u"&&({FORCE_COLOR:mn,NODE_DISABLE_COLORS:Si,NO_COLOR:ki,TERM:Ii}=y.env||{},Oi=y.stdout&&y.stdout.isTTY);var Qa={enabled:!Si&&ki==null&&Ii!=="dumb"&&(mn!=null&&mn!=="0"||Oi)};function V(e,t){let r=new RegExp(`\\x1b\\[${t}m`,"g"),n=`\x1B[${e}m`,i=`\x1B[${t}m`;return function(o){return!Qa.enabled||o==null?o:n+(~(""+o).indexOf(i)?o.replace(r,i+n):o)+i}}var gm=V(0,0),lr=V(1,22),ur=V(2,22),hm=V(3,23),Di=V(4,24),ym=V(7,27),wm=V(8,28),Em=V(9,29),bm=V(30,39),ze=V(31,39),Mi=V(32,39),_i=V(33,39),Ni=V(34,39),xm=V(35,39),Fi=V(36,39),Pm=V(37,39),Li=V(90,39),vm=V(90,39),Tm=V(40,49),Cm=V(41,49),Am=V(42,49),Rm=V(43,49),Sm=V(44,49),km=V(45,49),Im=V(46,49),Om=V(47,49);d();u();c();p();m();var Ja=100,Ui=["green","yellow","blue","magenta","cyan","red"],cr=[],Bi=Date.now(),Wa=0,dn=typeof y<"u"?y.env:{};globalThis.DEBUG??=dn.DEBUG??"";globalThis.DEBUG_COLORS??=dn.DEBUG_COLORS?dn.DEBUG_COLORS==="true":!0;var xt={enable(e){typeof e=="string"&&(globalThis.DEBUG=e)},disable(){let e=globalThis.DEBUG;return globalThis.DEBUG="",e},enabled(e){let t=globalThis.DEBUG.split(",").map(i=>i.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),r=t.some(i=>i===""||i[0]==="-"?!1:e.match(RegExp(i.split("*").join(".*")+"$"))),n=t.some(i=>i===""||i[0]!=="-"?!1:e.match(RegExp(i.slice(1).split("*").join(".*")+"$")));return r&&!n},log:(...e)=>{let[t,r,...n]=e;(console.warn??console.log)(`${t} ${r}`,...n)},formatters:{}};function Ka(e){let t={color:Ui[Wa++%Ui.length],enabled:xt.enabled(e),namespace:e,log:xt.log,extend:()=>{}},r=(...n)=>{let{enabled:i,namespace:o,color:s,log:a}=t;if(n.length!==0&&cr.push([o,...n]),cr.length>Ja&&cr.shift(),xt.enabled(o)||i){let l=n.map(g=>typeof g=="string"?g:Ha(g)),f=`+${Date.now()-Bi}ms`;Bi=Date.now(),a(o,...l,f)}};return new Proxy(r,{get:(n,i)=>t[i],set:(n,i,o)=>t[i]=o})}var Y=new Proxy(Ka,{get:(e,t)=>xt[t],set:(e,t,r)=>xt[t]=r});function Ha(e,t=2){let r=new Set;return JSON.stringify(e,(n,i)=>{if(typeof i=="object"&&i!==null){if(r.has(i))return"[Circular *]";r.add(i)}else if(typeof i=="bigint")return i.toString();return i},t)}function qi(){cr.length=0}d();u();c();p();m();d();u();c();p();m();var hl=Ki(),fn=hl.version;d();u();c();p();m();function Ye(e){let t=yl();return t||(e?.config.engineType==="library"?"library":e?.config.engineType==="binary"?"binary":e?.config.engineType==="client"?"client":wl(e))}function yl(){let e=y.env.PRISMA_CLIENT_ENGINE_TYPE;return e==="library"?"library":e==="binary"?"binary":e==="client"?"client":void 0}function wl(e){return e?.previewFeatures.includes("queryCompiler")?"client":"library"}d();u();c();p();m();var zi="prisma+postgres",dr=`${zi}:`;function fr(e){return e?.toString().startsWith(`${dr}//`)??!1}function hn(e){if(!fr(e))return!1;let{host:t}=new URL(e);return t.includes("localhost")||t.includes("127.0.0.1")||t.includes("[::1]")}var vt={};or(vt,{error:()=>Pl,info:()=>xl,log:()=>bl,query:()=>vl,should:()=>Xi,tags:()=>Pt,warn:()=>yn});d();u();c();p();m();var Pt={error:ze("prisma:error"),warn:_i("prisma:warn"),info:Fi("prisma:info"),query:Ni("prisma:query")},Xi={warn:()=>!y.env.PRISMA_DISABLE_WARNINGS};function bl(...e){console.log(...e)}function yn(e,...t){Xi.warn()&&console.warn(`${Pt.warn} ${e}`,...t)}function xl(e,...t){console.info(`${Pt.info} ${e}`,...t)}function Pl(e,...t){console.error(`${Pt.error} ${e}`,...t)}function vl(e,...t){console.log(`${Pt.query} ${e}`,...t)}d();u();c();p();m();function xe(e,t){throw new Error(t)}d();u();c();p();m();function wn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}d();u();c();p();m();function Ze(e,t){let r={};for(let n of Object.keys(e))r[n]=t(e[n],n);return r}d();u();c();p();m();function En(e,t){if(e.length===0)return;let r=e[0];for(let n=1;n{io.has(e)||(io.add(e),yn(t,...r))};var Q=class e extends Error{clientVersion;errorCode;retryable;constructor(t,r,n){super(t),this.name="PrismaClientInitializationError",this.clientVersion=r,this.errorCode=n,Error.captureStackTrace(e)}get[Symbol.toStringTag](){return"PrismaClientInitializationError"}};N(Q,"PrismaClientInitializationError");d();u();c();p();m();var oe=class extends Error{code;meta;clientVersion;batchRequestIdx;constructor(t,{code:r,clientVersion:n,meta:i,batchRequestIdx:o}){super(t),this.name="PrismaClientKnownRequestError",this.code=r,this.clientVersion=n,this.meta=i,Object.defineProperty(this,"batchRequestIdx",{value:o,enumerable:!1,writable:!0})}get[Symbol.toStringTag](){return"PrismaClientKnownRequestError"}};N(oe,"PrismaClientKnownRequestError");d();u();c();p();m();var Se=class extends Error{clientVersion;constructor(t,r){super(t),this.name="PrismaClientRustPanicError",this.clientVersion=r}get[Symbol.toStringTag](){return"PrismaClientRustPanicError"}};N(Se,"PrismaClientRustPanicError");d();u();c();p();m();var se=class extends Error{clientVersion;batchRequestIdx;constructor(t,{clientVersion:r,batchRequestIdx:n}){super(t),this.name="PrismaClientUnknownRequestError",this.clientVersion=r,Object.defineProperty(this,"batchRequestIdx",{value:n,writable:!0,enumerable:!1})}get[Symbol.toStringTag](){return"PrismaClientUnknownRequestError"}};N(se,"PrismaClientUnknownRequestError");d();u();c();p();m();var X=class extends Error{name="PrismaClientValidationError";clientVersion;constructor(t,{clientVersion:r}){super(t),this.clientVersion=r}get[Symbol.toStringTag](){return"PrismaClientValidationError"}};N(X,"PrismaClientValidationError");d();u();c();p();m();d();u();c();p();m();var Xe=9e15,De=1e9,bn="0123456789abcdef",wr="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Er="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",xn={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-Xe,maxE:Xe,crypto:!1},uo,Pe,_=!0,xr="[DecimalError] ",Oe=xr+"Invalid argument: ",co=xr+"Precision limit exceeded",po=xr+"crypto unavailable",mo="[object Decimal]",Z=Math.floor,J=Math.pow,Cl=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Al=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,Rl=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,fo=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ce=1e7,O=7,Sl=9007199254740991,kl=wr.length-1,Pn=Er.length-1,A={toStringTag:mo};A.absoluteValue=A.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),I(e)};A.ceil=function(){return I(new this.constructor(this),this.e+1,2)};A.clampedTo=A.clamp=function(e,t){var r,n=this,i=n.constructor;if(e=new i(e),t=new i(t),!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(Oe+t);return r=n.cmp(e),r<0?e:n.cmp(t)>0?t:new i(n)};A.comparedTo=A.cmp=function(e){var t,r,n,i,o=this,s=o.d,a=(e=new o.constructor(e)).d,l=o.s,f=e.s;if(!s||!a)return!l||!f?NaN:l!==f?l:s===a?0:!s^l<0?1:-1;if(!s[0]||!a[0])return s[0]?l:a[0]?-f:0;if(l!==f)return l;if(o.e!==e.e)return o.e>e.e^l<0?1:-1;for(n=s.length,i=a.length,t=0,r=na[t]^l<0?1:-1;return n===i?0:n>i^l<0?1:-1};A.cosine=A.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+O,n.rounding=1,r=Il(n,Eo(n,r)),n.precision=e,n.rounding=t,I(Pe==2||Pe==3?r.neg():r,e,t,!0)):new n(1):new n(NaN)};A.cubeRoot=A.cbrt=function(){var e,t,r,n,i,o,s,a,l,f,g=this,h=g.constructor;if(!g.isFinite()||g.isZero())return new h(g);for(_=!1,o=g.s*J(g.s*g,1/3),!o||Math.abs(o)==1/0?(r=H(g.d),e=g.e,(o=(e-r.length+1)%3)&&(r+=o==1||o==-2?"0":"00"),o=J(r,1/3),e=Z((e+1)/3)-(e%3==(e<0?-1:2)),o==1/0?r="5e"+e:(r=o.toExponential(),r=r.slice(0,r.indexOf("e")+1)+e),n=new h(r),n.s=g.s):n=new h(o.toString()),s=(e=h.precision)+3;;)if(a=n,l=a.times(a).times(a),f=l.plus(g),n=q(f.plus(g).times(a),f.plus(l),s+2,1),H(a.d).slice(0,s)===(r=H(n.d)).slice(0,s))if(r=r.slice(s-3,s+1),r=="9999"||!i&&r=="4999"){if(!i&&(I(a,e+1,0),a.times(a).times(a).eq(g))){n=a;break}s+=4,i=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&(I(n,e+1,1),t=!n.times(n).times(n).eq(g));break}return _=!0,I(n,e,h.rounding,t)};A.decimalPlaces=A.dp=function(){var e,t=this.d,r=NaN;if(t){if(e=t.length-1,r=(e-Z(this.e/O))*O,e=t[e],e)for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r};A.dividedBy=A.div=function(e){return q(this,new this.constructor(e))};A.dividedToIntegerBy=A.divToInt=function(e){var t=this,r=t.constructor;return I(q(t,new r(e),0,1,1),r.precision,r.rounding)};A.equals=A.eq=function(e){return this.cmp(e)===0};A.floor=function(){return I(new this.constructor(this),this.e+1,3)};A.greaterThan=A.gt=function(e){return this.cmp(e)>0};A.greaterThanOrEqualTo=A.gte=function(e){var t=this.cmp(e);return t==1||t===0};A.hyperbolicCosine=A.cosh=function(){var e,t,r,n,i,o=this,s=o.constructor,a=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return a;r=s.precision,n=s.rounding,s.precision=r+Math.max(o.e,o.sd())+4,s.rounding=1,i=o.d.length,i<32?(e=Math.ceil(i/3),t=(1/vr(4,e)).toString()):(e=16,t="2.3283064365386962890625e-10"),o=et(s,1,o.times(t),new s(1),!0);for(var l,f=e,g=new s(8);f--;)l=o.times(o),o=a.minus(l.times(g.minus(l.times(g))));return I(o,s.precision=r,s.rounding=n,!0)};A.hyperbolicSine=A.sinh=function(){var e,t,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,r=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,n=i.d.length,n<3)i=et(o,2,i,i,!0);else{e=1.4*Math.sqrt(n),e=e>16?16:e|0,i=i.times(1/vr(5,e)),i=et(o,2,i,i,!0);for(var s,a=new o(5),l=new o(16),f=new o(20);e--;)s=i.times(i),i=i.times(a.plus(s.times(l.times(s).plus(f))))}return o.precision=t,o.rounding=r,I(i,t,r,!0)};A.hyperbolicTangent=A.tanh=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,q(r.sinh(),r.cosh(),n.precision=e,n.rounding=t)):new n(r.s)};A.inverseCosine=A.acos=function(){var e=this,t=e.constructor,r=e.abs().cmp(1),n=t.precision,i=t.rounding;return r!==-1?r===0?e.isNeg()?fe(t,n,i):new t(0):new t(NaN):e.isZero()?fe(t,n+4,i).times(.5):(t.precision=n+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=n,t.rounding=i,e.times(2))};A.inverseHyperbolicCosine=A.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,_=!1,r=r.times(r).minus(1).sqrt().plus(r),_=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)};A.inverseHyperbolicSine=A.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,_=!1,r=r.times(r).plus(1).sqrt().plus(r),_=!0,n.precision=e,n.rounding=t,r.ln())};A.inverseHyperbolicTangent=A.atanh=function(){var e,t,r,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,n=i.sd(),Math.max(n,e)<2*-i.e-1?I(new o(i),e,t,!0):(o.precision=r=n-i.e,i=q(i.plus(1),new o(1).minus(i),r+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5))):new o(NaN)};A.inverseSine=A.asin=function(){var e,t,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),r=o.precision,n=o.rounding,t!==-1?t===0?(e=fe(o,r+4,n).times(.5),e.s=i.s,e):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2)))};A.inverseTangent=A.atan=function(){var e,t,r,n,i,o,s,a,l,f=this,g=f.constructor,h=g.precision,v=g.rounding;if(f.isFinite()){if(f.isZero())return new g(f);if(f.abs().eq(1)&&h+4<=Pn)return s=fe(g,h+4,v).times(.25),s.s=f.s,s}else{if(!f.s)return new g(NaN);if(h+4<=Pn)return s=fe(g,h+4,v).times(.5),s.s=f.s,s}for(g.precision=a=h+10,g.rounding=1,r=Math.min(28,a/O+2|0),e=r;e;--e)f=f.div(f.times(f).plus(1).sqrt().plus(1));for(_=!1,t=Math.ceil(a/O),n=1,l=f.times(f),s=new g(f),i=f;e!==-1;)if(i=i.times(l),o=s.minus(i.div(n+=2)),i=i.times(l),s=o.plus(i.div(n+=2)),s.d[t]!==void 0)for(e=t;s.d[e]===o.d[e]&&e--;);return r&&(s=s.times(2<this.d.length-2};A.isNaN=function(){return!this.s};A.isNegative=A.isNeg=function(){return this.s<0};A.isPositive=A.isPos=function(){return this.s>0};A.isZero=function(){return!!this.d&&this.d[0]===0};A.lessThan=A.lt=function(e){return this.cmp(e)<0};A.lessThanOrEqualTo=A.lte=function(e){return this.cmp(e)<1};A.logarithm=A.log=function(e){var t,r,n,i,o,s,a,l,f=this,g=f.constructor,h=g.precision,v=g.rounding,S=5;if(e==null)e=new g(10),t=!0;else{if(e=new g(e),r=e.d,e.s<0||!r||!r[0]||e.eq(1))return new g(NaN);t=e.eq(10)}if(r=f.d,f.s<0||!r||!r[0]||f.eq(1))return new g(r&&!r[0]?-1/0:f.s!=1?NaN:r?0:1/0);if(t)if(r.length>1)o=!0;else{for(i=r[0];i%10===0;)i/=10;o=i!==1}if(_=!1,a=h+S,s=Ie(f,a),n=t?br(g,a+10):Ie(e,a),l=q(s,n,a,1),Tt(l.d,i=h,v))do if(a+=10,s=Ie(f,a),n=t?br(g,a+10):Ie(e,a),l=q(s,n,a,1),!o){+H(l.d).slice(i+1,i+15)+1==1e14&&(l=I(l,h+1,0));break}while(Tt(l.d,i+=10,v));return _=!0,I(l,h,v)};A.minus=A.sub=function(e){var t,r,n,i,o,s,a,l,f,g,h,v,S=this,C=S.constructor;if(e=new C(e),!S.d||!e.d)return!S.s||!e.s?e=new C(NaN):S.d?e.s=-e.s:e=new C(e.d||S.s!==e.s?S:NaN),e;if(S.s!=e.s)return e.s=-e.s,S.plus(e);if(f=S.d,v=e.d,a=C.precision,l=C.rounding,!f[0]||!v[0]){if(v[0])e.s=-e.s;else if(f[0])e=new C(S);else return new C(l===3?-0:0);return _?I(e,a,l):e}if(r=Z(e.e/O),g=Z(S.e/O),f=f.slice(),o=g-r,o){for(h=o<0,h?(t=f,o=-o,s=v.length):(t=v,r=g,s=f.length),n=Math.max(Math.ceil(a/O),s)+2,o>n&&(o=n,t.length=1),t.reverse(),n=o;n--;)t.push(0);t.reverse()}else{for(n=f.length,s=v.length,h=n0;--n)f[s++]=0;for(n=v.length;n>o;){if(f[--n]s?o+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=f.length,i=g.length,s-i<0&&(i=s,r=g,g=f,f=r),t=0;i;)t=(f[--i]=f[i]+g[i]+t)/ce|0,f[i]%=ce;for(t&&(f.unshift(t),++n),s=f.length;f[--s]==0;)f.pop();return e.d=f,e.e=Pr(f,n),_?I(e,a,l):e};A.precision=A.sd=function(e){var t,r=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Oe+e);return r.d?(t=go(r.d),e&&r.e+1>t&&(t=r.e+1)):t=NaN,t};A.round=function(){var e=this,t=e.constructor;return I(new t(e),e.e+1,t.rounding)};A.sine=A.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+O,n.rounding=1,r=Dl(n,Eo(n,r)),n.precision=e,n.rounding=t,I(Pe>2?r.neg():r,e,t,!0)):new n(NaN)};A.squareRoot=A.sqrt=function(){var e,t,r,n,i,o,s=this,a=s.d,l=s.e,f=s.s,g=s.constructor;if(f!==1||!a||!a[0])return new g(!f||f<0&&(!a||a[0])?NaN:a?s:1/0);for(_=!1,f=Math.sqrt(+s),f==0||f==1/0?(t=H(a),(t.length+l)%2==0&&(t+="0"),f=Math.sqrt(t),l=Z((l+1)/2)-(l<0||l%2),f==1/0?t="5e"+l:(t=f.toExponential(),t=t.slice(0,t.indexOf("e")+1)+l),n=new g(t)):n=new g(f.toString()),r=(l=g.precision)+3;;)if(o=n,n=o.plus(q(s,o,r+2,1)).times(.5),H(o.d).slice(0,r)===(t=H(n.d)).slice(0,r))if(t=t.slice(r-3,r+1),t=="9999"||!i&&t=="4999"){if(!i&&(I(o,l+1,0),o.times(o).eq(s))){n=o;break}r+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(I(n,l+1,1),e=!n.times(n).eq(s));break}return _=!0,I(n,l,g.rounding,e)};A.tangent=A.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,r=r.sin(),r.s=1,r=q(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,I(Pe==2||Pe==4?r.neg():r,e,t,!0)):new n(NaN)};A.times=A.mul=function(e){var t,r,n,i,o,s,a,l,f,g=this,h=g.constructor,v=g.d,S=(e=new h(e)).d;if(e.s*=g.s,!v||!v[0]||!S||!S[0])return new h(!e.s||v&&!v[0]&&!S||S&&!S[0]&&!v?NaN:!v||!S?e.s/0:e.s*0);for(r=Z(g.e/O)+Z(e.e/O),l=v.length,f=S.length,l=0;){for(t=0,i=l+n;i>n;)a=o[i]+S[n]*v[i-n-1]+t,o[i--]=a%ce|0,t=a/ce|0;o[i]=(o[i]+t)%ce|0}for(;!o[--s];)o.pop();return t?++r:o.shift(),e.d=o,e.e=Pr(o,r),_?I(e,h.precision,h.rounding):e};A.toBinary=function(e,t){return Tn(this,2,e,t)};A.toDecimalPlaces=A.toDP=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(re(e,0,De),t===void 0?t=n.rounding:re(t,0,8),I(r,e+r.e+1,t))};A.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=ge(n,!0):(re(e,0,De),t===void 0?t=i.rounding:re(t,0,8),n=I(new i(n),e+1,t),r=ge(n,!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r};A.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?r=ge(i):(re(e,0,De),t===void 0?t=o.rounding:re(t,0,8),n=I(new o(i),e+i.e+1,t),r=ge(n,!1,e+n.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r};A.toFraction=function(e){var t,r,n,i,o,s,a,l,f,g,h,v,S=this,C=S.d,R=S.constructor;if(!C)return new R(S);if(f=r=new R(1),n=l=new R(0),t=new R(n),o=t.e=go(C)-S.e-1,s=o%O,t.d[0]=J(10,s<0?O+s:s),e==null)e=o>0?t:f;else{if(a=new R(e),!a.isInt()||a.lt(f))throw Error(Oe+a);e=a.gt(t)?o>0?t:f:a}for(_=!1,a=new R(H(C)),g=R.precision,R.precision=o=C.length*O*2;h=q(a,t,0,1,1),i=r.plus(h.times(n)),i.cmp(e)!=1;)r=n,n=i,i=f,f=l.plus(h.times(i)),l=i,i=t,t=a.minus(h.times(i)),a=i;return i=q(e.minus(r),n,0,1,1),l=l.plus(i.times(f)),r=r.plus(i.times(n)),l.s=f.s=S.s,v=q(f,n,o,1).minus(S).abs().cmp(q(l,r,o,1).minus(S).abs())<1?[f,n]:[l,r],R.precision=g,_=!0,v};A.toHexadecimal=A.toHex=function(e,t){return Tn(this,16,e,t)};A.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),e==null){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),t===void 0?t=n.rounding:re(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(_=!1,r=q(r,e,0,t,1).times(e),_=!0,I(r)):(e.s=r.s,r=e),r};A.toNumber=function(){return+this};A.toOctal=function(e,t){return Tn(this,8,e,t)};A.toPower=A.pow=function(e){var t,r,n,i,o,s,a=this,l=a.constructor,f=+(e=new l(e));if(!a.d||!e.d||!a.d[0]||!e.d[0])return new l(J(+a,f));if(a=new l(a),a.eq(1))return a;if(n=l.precision,o=l.rounding,e.eq(1))return I(a,n,o);if(t=Z(e.e/O),t>=e.d.length-1&&(r=f<0?-f:f)<=Sl)return i=ho(l,a,r,n),e.s<0?new l(1).div(i):I(i,n,o);if(s=a.s,s<0){if(tl.maxE+1||t0?s/0:0):(_=!1,l.rounding=a.s=1,r=Math.min(12,(t+"").length),i=vn(e.times(Ie(a,n+r)),n),i.d&&(i=I(i,n+5,1),Tt(i.d,n,o)&&(t=n+10,i=I(vn(e.times(Ie(a,t+r)),t),t+5,1),+H(i.d).slice(n+1,n+15)+1==1e14&&(i=I(i,n+1,0)))),i.s=s,_=!0,l.rounding=o,I(i,n,o))};A.toPrecision=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=ge(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(re(e,1,De),t===void 0?t=i.rounding:re(t,0,8),n=I(new i(n),e,t),r=ge(n,e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r};A.toSignificantDigits=A.toSD=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(re(e,1,De),t===void 0?t=n.rounding:re(t,0,8)),I(new n(r),e,t)};A.toString=function(){var e=this,t=e.constructor,r=ge(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r};A.truncated=A.trunc=function(){return I(new this.constructor(this),this.e+1,1)};A.valueOf=A.toJSON=function(){var e=this,t=e.constructor,r=ge(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};function H(e){var t,r,n,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;tr)throw Error(Oe+e)}function Tt(e,t,r,n){var i,o,s,a;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=O,i=0):(i=Math.ceil((t+1)/O),t%=O),o=J(10,O-t),a=e[i]%o|0,n==null?t<3?(t==0?a=a/100|0:t==1&&(a=a/10|0),s=r<4&&a==99999||r>3&&a==49999||a==5e4||a==0):s=(r<4&&a+1==o||r>3&&a+1==o/2)&&(e[i+1]/o/100|0)==J(10,t-2)-1||(a==o/2||a==0)&&(e[i+1]/o/100|0)==0:t<4?(t==0?a=a/1e3|0:t==1?a=a/100|0:t==2&&(a=a/10|0),s=(n||r<4)&&a==9999||!n&&r>3&&a==4999):s=((n||r<4)&&a+1==o||!n&&r>3&&a+1==o/2)&&(e[i+1]/o/1e3|0)==J(10,t-3)-1,s}function hr(e,t,r){for(var n,i=[0],o,s=0,a=e.length;sr-1&&(i[n+1]===void 0&&(i[n+1]=0),i[n+1]+=i[n]/r|0,i[n]%=r)}return i.reverse()}function Il(e,t){var r,n,i;if(t.isZero())return t;n=t.d.length,n<32?(r=Math.ceil(n/3),i=(1/vr(4,r)).toString()):(r=16,i="2.3283064365386962890625e-10"),e.precision+=r,t=et(e,1,t.times(i),new e(1));for(var o=r;o--;){var s=t.times(t);t=s.times(s).minus(s).times(8).plus(1)}return e.precision-=r,t}var q=function(){function e(n,i,o){var s,a=0,l=n.length;for(n=n.slice();l--;)s=n[l]*i+a,n[l]=s%o|0,a=s/o|0;return a&&n.unshift(a),n}function t(n,i,o,s){var a,l;if(o!=s)l=o>s?1:-1;else for(a=l=0;ai[a]?1:-1;break}return l}function r(n,i,o,s){for(var a=0;o--;)n[o]-=a,a=n[o]1;)n.shift()}return function(n,i,o,s,a,l){var f,g,h,v,S,C,R,D,M,U,k,F,ie,G,en,rr,Et,tn,ue,nr,ir=n.constructor,rn=n.s==i.s?1:-1,z=n.d,$=i.d;if(!z||!z[0]||!$||!$[0])return new ir(!n.s||!i.s||(z?$&&z[0]==$[0]:!$)?NaN:z&&z[0]==0||!$?rn*0:rn/0);for(l?(S=1,g=n.e-i.e):(l=ce,S=O,g=Z(n.e/S)-Z(i.e/S)),ue=$.length,Et=z.length,M=new ir(rn),U=M.d=[],h=0;$[h]==(z[h]||0);h++);if($[h]>(z[h]||0)&&g--,o==null?(G=o=ir.precision,s=ir.rounding):a?G=o+(n.e-i.e)+1:G=o,G<0)U.push(1),C=!0;else{if(G=G/S+2|0,h=0,ue==1){for(v=0,$=$[0],G++;(h1&&($=e($,v,l),z=e(z,v,l),ue=$.length,Et=z.length),rr=ue,k=z.slice(0,ue),F=k.length;F=l/2&&++tn;do v=0,f=t($,k,ue,F),f<0?(ie=k[0],ue!=F&&(ie=ie*l+(k[1]||0)),v=ie/tn|0,v>1?(v>=l&&(v=l-1),R=e($,v,l),D=R.length,F=k.length,f=t(R,k,D,F),f==1&&(v--,r(R,ue=10;v/=10)h++;M.e=h+g*S-1,I(M,a?o+M.e+1:o,s,C)}return M}}();function I(e,t,r,n){var i,o,s,a,l,f,g,h,v,S=e.constructor;e:if(t!=null){if(h=e.d,!h)return e;for(i=1,a=h[0];a>=10;a/=10)i++;if(o=t-i,o<0)o+=O,s=t,g=h[v=0],l=g/J(10,i-s-1)%10|0;else if(v=Math.ceil((o+1)/O),a=h.length,v>=a)if(n){for(;a++<=v;)h.push(0);g=l=0,i=1,o%=O,s=o-O+1}else break e;else{for(g=a=h[v],i=1;a>=10;a/=10)i++;o%=O,s=o-O+i,l=s<0?0:g/J(10,i-s-1)%10|0}if(n=n||t<0||h[v+1]!==void 0||(s<0?g:g%J(10,i-s-1)),f=r<4?(l||n)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||n||r==6&&(o>0?s>0?g/J(10,i-s):0:h[v-1])%10&1||r==(e.s<0?8:7)),t<1||!h[0])return h.length=0,f?(t-=e.e+1,h[0]=J(10,(O-t%O)%O),e.e=-t||0):h[0]=e.e=0,e;if(o==0?(h.length=v,a=1,v--):(h.length=v+1,a=J(10,O-o),h[v]=s>0?(g/J(10,i-s)%J(10,s)|0)*a:0),f)for(;;)if(v==0){for(o=1,s=h[0];s>=10;s/=10)o++;for(s=h[0]+=a,a=1;s>=10;s/=10)a++;o!=a&&(e.e++,h[0]==ce&&(h[0]=1));break}else{if(h[v]+=a,h[v]!=ce)break;h[v--]=0,a=1}for(o=h.length;h[--o]===0;)h.pop()}return _&&(e.e>S.maxE?(e.d=null,e.e=NaN):e.e0?o=o.charAt(0)+"."+o.slice(1)+ke(n):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+ke(-i-1)+o,r&&(n=r-s)>0&&(o+=ke(n))):i>=s?(o+=ke(i+1-s),r&&(n=r-i-1)>0&&(o=o+"."+ke(n))):((n=i+1)0&&(i+1===s&&(o+="."),o+=ke(n))),o}function Pr(e,t){var r=e[0];for(t*=O;r>=10;r/=10)t++;return t}function br(e,t,r){if(t>kl)throw _=!0,r&&(e.precision=r),Error(co);return I(new e(wr),t,1,!0)}function fe(e,t,r){if(t>Pn)throw Error(co);return I(new e(Er),t,r,!0)}function go(e){var t=e.length-1,r=t*O+1;if(t=e[t],t){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function ke(e){for(var t="";e--;)t+="0";return t}function ho(e,t,r,n){var i,o=new e(1),s=Math.ceil(n/O+4);for(_=!1;;){if(r%2&&(o=o.times(t),ao(o.d,s)&&(i=!0)),r=Z(r/2),r===0){r=o.d.length-1,i&&o.d[r]===0&&++o.d[r];break}t=t.times(t),ao(t.d,s)}return _=!0,o}function so(e){return e.d[e.d.length-1]&1}function yo(e,t,r){for(var n,i,o=new e(t[0]),s=0;++s17)return new v(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(t==null?(_=!1,l=C):l=t,a=new v(.03125);e.e>-2;)e=e.times(a),h+=5;for(n=Math.log(J(2,h))/Math.LN10*2+5|0,l+=n,r=o=s=new v(1),v.precision=l;;){if(o=I(o.times(e),l,1),r=r.times(++g),a=s.plus(q(o,r,l,1)),H(a.d).slice(0,l)===H(s.d).slice(0,l)){for(i=h;i--;)s=I(s.times(s),l,1);if(t==null)if(f<3&&Tt(s.d,l-n,S,f))v.precision=l+=10,r=o=a=new v(1),g=0,f++;else return I(s,v.precision=C,S,_=!0);else return v.precision=C,s}s=a}}function Ie(e,t){var r,n,i,o,s,a,l,f,g,h,v,S=1,C=10,R=e,D=R.d,M=R.constructor,U=M.rounding,k=M.precision;if(R.s<0||!D||!D[0]||!R.e&&D[0]==1&&D.length==1)return new M(D&&!D[0]?-1/0:R.s!=1?NaN:D?0:R);if(t==null?(_=!1,g=k):g=t,M.precision=g+=C,r=H(D),n=r.charAt(0),Math.abs(o=R.e)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)R=R.times(e),r=H(R.d),n=r.charAt(0),S++;o=R.e,n>1?(R=new M("0."+r),o++):R=new M(n+"."+r.slice(1))}else return f=br(M,g+2,k).times(o+""),R=Ie(new M(n+"."+r.slice(1)),g-C).plus(f),M.precision=k,t==null?I(R,k,U,_=!0):R;for(h=R,l=s=R=q(R.minus(1),R.plus(1),g,1),v=I(R.times(R),g,1),i=3;;){if(s=I(s.times(v),g,1),f=l.plus(q(s,new M(i),g,1)),H(f.d).slice(0,g)===H(l.d).slice(0,g))if(l=l.times(2),o!==0&&(l=l.plus(br(M,g+2,k).times(o+""))),l=q(l,new M(S),g,1),t==null)if(Tt(l.d,g-C,U,a))M.precision=g+=C,f=s=R=q(h.minus(1),h.plus(1),g,1),v=I(R.times(R),g,1),i=a=1;else return I(l,M.precision=k,U,_=!0);else return M.precision=k,l;l=f,i+=2}}function wo(e){return String(e.s*e.s/0)}function yr(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;n++);for(i=t.length;t.charCodeAt(i-1)===48;--i);if(t=t.slice(n,i),t){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%O,r<0&&(n+=O),ne.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),fo.test(t))return yr(e,t)}else if(t==="Infinity"||t==="NaN")return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(Al.test(t))r=16,t=t.toLowerCase();else if(Cl.test(t))r=2;else if(Rl.test(t))r=8;else throw Error(Oe+t);for(o=t.search(/p/i),o>0?(l=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),o=t.indexOf("."),s=o>=0,n=e.constructor,s&&(t=t.replace(".",""),a=t.length,o=a-o,i=ho(n,new n(r),o,o*2)),f=hr(t,r,ce),g=f.length-1,o=g;f[o]===0;--o)f.pop();return o<0?new n(e.s*0):(e.e=Pr(f,g),e.d=f,_=!1,s&&(e=q(e,i,a*4)),l&&(e=e.times(Math.abs(l)<54?J(2,l):Be.pow(2,l))),_=!0,e)}function Dl(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:et(e,2,t,t);r=1.4*Math.sqrt(n),r=r>16?16:r|0,t=t.times(1/vr(5,r)),t=et(e,2,t,t);for(var i,o=new e(5),s=new e(16),a=new e(20);r--;)i=t.times(t),t=t.times(o.plus(i.times(s.times(i).minus(a))));return t}function et(e,t,r,n,i){var o,s,a,l,f=1,g=e.precision,h=Math.ceil(g/O);for(_=!1,l=r.times(r),a=new e(n);;){if(s=q(a.times(l),new e(t++*t++),g,1),a=i?n.plus(s):n.minus(s),n=q(s.times(l),new e(t++*t++),g,1),s=a.plus(n),s.d[h]!==void 0){for(o=h;s.d[o]===a.d[o]&&o--;);if(o==-1)break}o=a,a=n,n=s,s=o,f++}return _=!0,s.d.length=h+1,s}function vr(e,t){for(var r=e;--t;)r*=e;return r}function Eo(e,t){var r,n=t.s<0,i=fe(e,e.precision,1),o=i.times(.5);if(t=t.abs(),t.lte(o))return Pe=n?4:1,t;if(r=t.divToInt(i),r.isZero())Pe=n?3:2;else{if(t=t.minus(r.times(i)),t.lte(o))return Pe=so(r)?n?2:3:n?4:1,t;Pe=so(r)?n?1:4:n?3:2}return t.minus(i).abs()}function Tn(e,t,r,n){var i,o,s,a,l,f,g,h,v,S=e.constructor,C=r!==void 0;if(C?(re(r,1,De),n===void 0?n=S.rounding:re(n,0,8)):(r=S.precision,n=S.rounding),!e.isFinite())g=wo(e);else{for(g=ge(e),s=g.indexOf("."),C?(i=2,t==16?r=r*4-3:t==8&&(r=r*3-2)):i=t,s>=0&&(g=g.replace(".",""),v=new S(1),v.e=g.length-s,v.d=hr(ge(v),10,i),v.e=v.d.length),h=hr(g,10,i),o=l=h.length;h[--l]==0;)h.pop();if(!h[0])g=C?"0p+0":"0";else{if(s<0?o--:(e=new S(e),e.d=h,e.e=o,e=q(e,v,r,n,0,i),h=e.d,o=e.e,f=uo),s=h[r],a=i/2,f=f||h[r+1]!==void 0,f=n<4?(s!==void 0||f)&&(n===0||n===(e.s<0?3:2)):s>a||s===a&&(n===4||f||n===6&&h[r-1]&1||n===(e.s<0?8:7)),h.length=r,f)for(;++h[--r]>i-1;)h[r]=0,r||(++o,h.unshift(1));for(l=h.length;!h[l-1];--l);for(s=0,g="";s1)if(t==16||t==8){for(s=t==16?4:3,--l;l%s;l++)g+="0";for(h=hr(g,i,t),l=h.length;!h[l-1];--l);for(s=1,g="1.";sl)for(o-=l;o--;)g+="0";else ot)return e.length=t,!0}function Ml(e){return new this(e).abs()}function _l(e){return new this(e).acos()}function Nl(e){return new this(e).acosh()}function Fl(e,t){return new this(e).plus(t)}function Ll(e){return new this(e).asin()}function Ul(e){return new this(e).asinh()}function Bl(e){return new this(e).atan()}function ql(e){return new this(e).atanh()}function $l(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,o=n+4;return!e.s||!t.s?r=new this(NaN):!e.d&&!t.d?(r=fe(this,o,1).times(t.s>0?.25:.75),r.s=e.s):!t.d||e.isZero()?(r=t.s<0?fe(this,n,i):new this(0),r.s=e.s):!e.d||t.isZero()?(r=fe(this,o,1).times(.5),r.s=e.s):t.s<0?(this.precision=o,this.rounding=1,r=this.atan(q(e,t,o,1)),t=fe(this,o,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(q(e,t,o,1)),r}function Vl(e){return new this(e).cbrt()}function jl(e){return I(e=new this(e),e.e+1,2)}function Gl(e,t,r){return new this(e).clamp(t,r)}function Ql(e){if(!e||typeof e!="object")throw Error(xr+"Object expected");var t,r,n,i=e.defaults===!0,o=["precision",1,De,"rounding",0,8,"toExpNeg",-Xe,0,"toExpPos",0,Xe,"maxE",0,Xe,"minE",-Xe,0,"modulo",0,9];for(t=0;t=o[t+1]&&n<=o[t+2])this[r]=n;else throw Error(Oe+r+": "+n);if(r="crypto",i&&(this[r]=xn[r]),(n=e[r])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(po);else this[r]=!1;else throw Error(Oe+r+": "+n);return this}function Jl(e){return new this(e).cos()}function Wl(e){return new this(e).cosh()}function bo(e){var t,r,n;function i(o){var s,a,l,f=this;if(!(f instanceof i))return new i(o);if(f.constructor=i,lo(o)){f.s=o.s,_?!o.d||o.e>i.maxE?(f.e=NaN,f.d=null):o.e=10;a/=10)s++;_?s>i.maxE?(f.e=NaN,f.d=null):s=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:a[o++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(n*=4);o=214e7?crypto.randomBytes(4).copy(t,o):(a.push(i%1e7),o+=4);o=n/4}else throw Error(po);else for(;o=10;i/=10)n++;nRt,datamodelEnumToSchemaEnum:()=>xu});d();u();c();p();m();d();u();c();p();m();function xu(e){return{name:e.name,values:e.values.map(t=>t.name)}}d();u();c();p();m();var Rt=(k=>(k.findUnique="findUnique",k.findUniqueOrThrow="findUniqueOrThrow",k.findFirst="findFirst",k.findFirstOrThrow="findFirstOrThrow",k.findMany="findMany",k.create="create",k.createMany="createMany",k.createManyAndReturn="createManyAndReturn",k.update="update",k.updateMany="updateMany",k.updateManyAndReturn="updateManyAndReturn",k.upsert="upsert",k.delete="delete",k.deleteMany="deleteMany",k.groupBy="groupBy",k.count="count",k.aggregate="aggregate",k.findRaw="findRaw",k.aggregateRaw="aggregateRaw",k))(Rt||{});var Pu=Le(Zi());var vu={red:ze,gray:Li,dim:ur,bold:lr,underline:Di,highlightSource:e=>e.highlight()},Tu={red:e=>e,gray:e=>e,dim:e=>e,bold:e=>e,underline:e=>e,highlightSource:e=>e};function Cu({message:e,originalMethod:t,isPanic:r,callArguments:n}){return{functionName:`prisma.${t}()`,message:e,isPanic:r??!1,callArguments:n}}function Au({functionName:e,location:t,message:r,isPanic:n,contextLines:i,callArguments:o},s){let a=[""],l=t?" in":":";if(n?(a.push(s.red(`Oops, an unknown error occurred! This is ${s.bold("on us")}, you did nothing wrong.`)),a.push(s.red(`It occurred in the ${s.bold(`\`${e}\``)} invocation${l}`))):a.push(s.red(`Invalid ${s.bold(`\`${e}\``)} invocation${l}`)),t&&a.push(s.underline(Ru(t))),i){a.push("");let f=[i.toString()];o&&(f.push(o),f.push(s.dim(")"))),a.push(f.join("")),o&&a.push("")}else a.push(""),o&&a.push(o),a.push("");return a.push(r),a.join(` -`)}function Ru(e){let t=[e.fileName];return e.lineNumber&&t.push(String(e.lineNumber)),e.columnNumber&&t.push(String(e.columnNumber)),t.join(":")}function Ar(e){let t=e.showColors?vu:Tu,r;return typeof $getTemplateParameters<"u"?r=$getTemplateParameters(e,t):r=Cu(e),Au(r,t)}d();u();c();p();m();var Io=Le(An());d();u();c();p();m();function Co(e,t,r){let n=Ao(e),i=Su(n),o=Iu(i);o?Rr(o,t,r):t.addErrorMessage(()=>"Unknown error")}function Ao(e){return e.errors.flatMap(t=>t.kind==="Union"?Ao(t):[t])}function Su(e){let t=new Map,r=[];for(let n of e){if(n.kind!=="InvalidArgumentType"){r.push(n);continue}let i=`${n.selectionPath.join(".")}:${n.argumentPath.join(".")}`,o=t.get(i);o?t.set(i,{...n,argument:{...n.argument,typeNames:ku(o.argument.typeNames,n.argument.typeNames)}}):t.set(i,n)}return r.push(...t.values()),r}function ku(e,t){return[...new Set(e.concat(t))]}function Iu(e){return En(e,(t,r)=>{let n=vo(t),i=vo(r);return n!==i?n-i:To(t)-To(r)})}function vo(e){let t=0;return Array.isArray(e.selectionPath)&&(t+=e.selectionPath.length),Array.isArray(e.argumentPath)&&(t+=e.argumentPath.length),t}function To(e){switch(e.kind){case"InvalidArgumentValue":case"ValueTooLarge":return 20;case"InvalidArgumentType":return 10;case"RequiredArgumentMissing":return-10;default:return 0}}d();u();c();p();m();var ae=class{constructor(t,r){this.name=t;this.value=r}isRequired=!1;makeRequired(){return this.isRequired=!0,this}write(t){let{colors:{green:r}}=t.context;t.addMarginSymbol(r(this.isRequired?"+":"?")),t.write(r(this.name)),this.isRequired||t.write(r("?")),t.write(r(": ")),typeof this.value=="string"?t.write(r(this.value)):t.write(this.value)}};d();u();c();p();m();d();u();c();p();m();So();d();u();c();p();m();var nt=class{constructor(t=0,r){this.context=r;this.currentIndent=t}lines=[];currentLine="";currentIndent=0;marginSymbol;afterNextNewLineCallback;write(t){return typeof t=="string"?this.currentLine+=t:t.write(this),this}writeJoined(t,r,n=(i,o)=>o.write(i)){let i=r.length-1;for(let o=0;o0&&this.currentIndent--,this}addMarginSymbol(t){return this.marginSymbol=t,this}toString(){return this.lines.concat(this.indentedCurrentLine()).join(` -`)}getCurrentLineLength(){return this.currentLine.length}indentedCurrentLine(){let t=this.currentLine.padStart(this.currentLine.length+2*this.currentIndent);return this.marginSymbol?this.marginSymbol+t.slice(1):t}};Ro();d();u();c();p();m();d();u();c();p();m();var Sr=class{constructor(t){this.value=t}write(t){t.write(this.value)}markAsError(){this.value.markAsError()}};d();u();c();p();m();var kr=e=>e,Ir={bold:kr,red:kr,green:kr,dim:kr,enabled:!1},ko={bold:lr,red:ze,green:Mi,dim:ur,enabled:!0},it={write(e){e.writeLine(",")}};d();u();c();p();m();var ye=class{constructor(t){this.contents=t}isUnderlined=!1;color=t=>t;underline(){return this.isUnderlined=!0,this}setColor(t){return this.color=t,this}write(t){let r=t.getCurrentLineLength();t.write(this.color(this.contents)),this.isUnderlined&&t.afterNextNewline(()=>{t.write(" ".repeat(r)).writeLine(this.color("~".repeat(this.contents.length)))})}};d();u();c();p();m();var _e=class{hasError=!1;markAsError(){return this.hasError=!0,this}};var ot=class extends _e{items=[];addItem(t){return this.items.push(new Sr(t)),this}getField(t){return this.items[t]}getPrintWidth(){return this.items.length===0?2:Math.max(...this.items.map(r=>r.value.getPrintWidth()))+2}write(t){if(this.items.length===0){this.writeEmpty(t);return}this.writeWithItems(t)}writeEmpty(t){let r=new ye("[]");this.hasError&&r.setColor(t.context.colors.red).underline(),t.write(r)}writeWithItems(t){let{colors:r}=t.context;t.writeLine("[").withIndent(()=>t.writeJoined(it,this.items).newLine()).write("]"),this.hasError&&t.afterNextNewline(()=>{t.writeLine(r.red("~".repeat(this.getPrintWidth())))})}asObject(){}};var st=class e extends _e{fields={};suggestions=[];addField(t){this.fields[t.name]=t}addSuggestion(t){this.suggestions.push(t)}getField(t){return this.fields[t]}getDeepField(t){let[r,...n]=t,i=this.getField(r);if(!i)return;let o=i;for(let s of n){let a;if(o.value instanceof e?a=o.value.getField(s):o.value instanceof ot&&(a=o.value.getField(Number(s))),!a)return;o=a}return o}getDeepFieldValue(t){return t.length===0?this:this.getDeepField(t)?.value}hasField(t){return!!this.getField(t)}removeAllFields(){this.fields={}}removeField(t){delete this.fields[t]}getFields(){return this.fields}isEmpty(){return Object.keys(this.fields).length===0}getFieldValue(t){return this.getField(t)?.value}getDeepSubSelectionValue(t){let r=this;for(let n of t){if(!(r instanceof e))return;let i=r.getSubSelectionValue(n);if(!i)return;r=i}return r}getDeepSelectionParent(t){let r=this.getSelectionParent();if(!r)return;let n=r;for(let i of t){let o=n.value.getFieldValue(i);if(!o||!(o instanceof e))return;let s=o.getSelectionParent();if(!s)return;n=s}return n}getSelectionParent(){let t=this.getField("select")?.value.asObject();if(t)return{kind:"select",value:t};let r=this.getField("include")?.value.asObject();if(r)return{kind:"include",value:r}}getSubSelectionValue(t){return this.getSelectionParent()?.value.fields[t].value}getPrintWidth(){let t=Object.values(this.fields);return t.length==0?2:Math.max(...t.map(n=>n.getPrintWidth()))+2}write(t){let r=Object.values(this.fields);if(r.length===0&&this.suggestions.length===0){this.writeEmpty(t);return}this.writeWithContents(t,r)}asObject(){return this}writeEmpty(t){let r=new ye("{}");this.hasError&&r.setColor(t.context.colors.red).underline(),t.write(r)}writeWithContents(t,r){t.writeLine("{").withIndent(()=>{t.writeJoined(it,[...r,...this.suggestions]).newLine()}),t.write("}"),this.hasError&&t.afterNextNewline(()=>{t.writeLine(t.context.colors.red("~".repeat(this.getPrintWidth())))})}};d();u();c();p();m();var K=class extends _e{constructor(r){super();this.text=r}getPrintWidth(){return this.text.length}write(r){let n=new ye(this.text);this.hasError&&n.underline().setColor(r.context.colors.red),r.write(n)}asObject(){}};d();u();c();p();m();var St=class{fields=[];addField(t,r){return this.fields.push({write(n){let{green:i,dim:o}=n.context.colors;n.write(i(o(`${t}: ${r}`))).addMarginSymbol(i(o("+")))}}),this}write(t){let{colors:{green:r}}=t.context;t.writeLine(r("{")).withIndent(()=>{t.writeJoined(it,this.fields).newLine()}).write(r("}")).addMarginSymbol(r("+"))}};function Rr(e,t,r){switch(e.kind){case"MutuallyExclusiveFields":Ou(e,t);break;case"IncludeOnScalar":Du(e,t);break;case"EmptySelection":Mu(e,t,r);break;case"UnknownSelectionField":Lu(e,t);break;case"InvalidSelectionValue":Uu(e,t);break;case"UnknownArgument":Bu(e,t);break;case"UnknownInputField":qu(e,t);break;case"RequiredArgumentMissing":$u(e,t);break;case"InvalidArgumentType":Vu(e,t);break;case"InvalidArgumentValue":ju(e,t);break;case"ValueTooLarge":Gu(e,t);break;case"SomeFieldsMissing":Qu(e,t);break;case"TooManyFieldsGiven":Ju(e,t);break;case"Union":Co(e,t,r);break;default:throw new Error("not implemented: "+e.kind)}}function Ou(e,t){let r=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();r&&(r.getField(e.firstField)?.markAsError(),r.getField(e.secondField)?.markAsError()),t.addErrorMessage(n=>`Please ${n.bold("either")} use ${n.green(`\`${e.firstField}\``)} or ${n.green(`\`${e.secondField}\``)}, but ${n.red("not both")} at the same time.`)}function Du(e,t){let[r,n]=kt(e.selectionPath),i=e.outputType,o=t.arguments.getDeepSelectionParent(r)?.value;if(o&&(o.getField(n)?.markAsError(),i))for(let s of i.fields)s.isRelation&&o.addSuggestion(new ae(s.name,"true"));t.addErrorMessage(s=>{let a=`Invalid scalar field ${s.red(`\`${n}\``)} for ${s.bold("include")} statement`;return i?a+=` on model ${s.bold(i.name)}. ${It(s)}`:a+=".",a+=` -Note that ${s.bold("include")} statements only accept relation fields.`,a})}function Mu(e,t,r){let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getField("omit")?.value.asObject();if(i){_u(e,t,i);return}if(n.hasField("select")){Nu(e,t);return}}if(r?.[Me(e.outputType.name)]){Fu(e,t);return}t.addErrorMessage(()=>`Unknown field at "${e.selectionPath.join(".")} selection"`)}function _u(e,t,r){r.removeAllFields();for(let n of e.outputType.fields)r.addSuggestion(new ae(n.name,"false"));t.addErrorMessage(n=>`The ${n.red("omit")} statement includes every field of the model ${n.bold(e.outputType.name)}. At least one field must be included in the result`)}function Nu(e,t){let r=e.outputType,n=t.arguments.getDeepSelectionParent(e.selectionPath)?.value,i=n?.isEmpty()??!1;n&&(n.removeAllFields(),Mo(n,r)),t.addErrorMessage(o=>i?`The ${o.red("`select`")} statement for type ${o.bold(r.name)} must not be empty. ${It(o)}`:`The ${o.red("`select`")} statement for type ${o.bold(r.name)} needs ${o.bold("at least one truthy value")}.`)}function Fu(e,t){let r=new St;for(let i of e.outputType.fields)i.isRelation||r.addField(i.name,"false");let n=new ae("omit",r).makeRequired();if(e.selectionPath.length===0)t.arguments.addSuggestion(n);else{let[i,o]=kt(e.selectionPath),a=t.arguments.getDeepSelectionParent(i)?.value.asObject()?.getField(o);if(a){let l=a?.value.asObject()??new st;l.addSuggestion(n),a.value=l}}t.addErrorMessage(i=>`The global ${i.red("omit")} configuration excludes every field of the model ${i.bold(e.outputType.name)}. At least one field must be included in the result`)}function Lu(e,t){let r=_o(e.selectionPath,t);if(r.parentKind!=="unknown"){r.field.markAsError();let n=r.parent;switch(r.parentKind){case"select":Mo(n,e.outputType);break;case"include":Wu(n,e.outputType);break;case"omit":Ku(n,e.outputType);break}}t.addErrorMessage(n=>{let i=[`Unknown field ${n.red(`\`${r.fieldName}\``)}`];return r.parentKind!=="unknown"&&i.push(`for ${n.bold(r.parentKind)} statement`),i.push(`on model ${n.bold(`\`${e.outputType.name}\``)}.`),i.push(It(n)),i.join(" ")})}function Uu(e,t){let r=_o(e.selectionPath,t);r.parentKind!=="unknown"&&r.field.value.markAsError(),t.addErrorMessage(n=>`Invalid value for selection field \`${n.red(r.fieldName)}\`: ${e.underlyingError}`)}function Bu(e,t){let r=e.argumentPath[0],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&(n.getField(r)?.markAsError(),Hu(n,e.arguments)),t.addErrorMessage(i=>Oo(i,r,e.arguments.map(o=>o.name)))}function qu(e,t){let[r,n]=kt(e.argumentPath),i=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(i){i.getDeepField(e.argumentPath)?.markAsError();let o=i.getDeepFieldValue(r)?.asObject();o&&No(o,e.inputType)}t.addErrorMessage(o=>Oo(o,n,e.inputType.fields.map(s=>s.name)))}function Oo(e,t,r){let n=[`Unknown argument \`${e.red(t)}\`.`],i=Yu(t,r);return i&&n.push(`Did you mean \`${e.green(i)}\`?`),r.length>0&&n.push(It(e)),n.join(" ")}function $u(e,t){let r;t.addErrorMessage(l=>r?.value instanceof K&&r.value.text==="null"?`Argument \`${l.green(o)}\` must not be ${l.red("null")}.`:`Argument \`${l.green(o)}\` is missing.`);let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(!n)return;let[i,o]=kt(e.argumentPath),s=new St,a=n.getDeepFieldValue(i)?.asObject();if(a)if(r=a.getField(o),r&&a.removeField(o),e.inputTypes.length===1&&e.inputTypes[0].kind==="object"){for(let l of e.inputTypes[0].fields)s.addField(l.name,l.typeNames.join(" | "));a.addSuggestion(new ae(o,s).makeRequired())}else{let l=e.inputTypes.map(Do).join(" | ");a.addSuggestion(new ae(o,l).makeRequired())}}function Do(e){return e.kind==="list"?`${Do(e.elementType)}[]`:e.name}function Vu(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=Or("or",e.argument.typeNames.map(s=>i.green(s)));return`Argument \`${i.bold(r)}\`: Invalid value provided. Expected ${o}, provided ${i.red(e.inferredType)}.`})}function ju(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=[`Invalid value for argument \`${i.bold(r)}\``];if(e.underlyingError&&o.push(`: ${e.underlyingError}`),o.push("."),e.argument.typeNames.length>0){let s=Or("or",e.argument.typeNames.map(a=>i.green(a)));o.push(` Expected ${s}.`)}return o.join("")})}function Gu(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i;if(n){let s=n.getDeepField(e.argumentPath)?.value;s?.markAsError(),s instanceof K&&(i=s.text)}t.addErrorMessage(o=>{let s=["Unable to fit value"];return i&&s.push(o.red(i)),s.push(`into a 64-bit signed integer for field \`${o.bold(r)}\``),s.join(" ")})}function Qu(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getDeepFieldValue(e.argumentPath)?.asObject();i&&No(i,e.inputType)}t.addErrorMessage(i=>{let o=[`Argument \`${i.bold(r)}\` of type ${i.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1?e.constraints.requiredFields?o.push(`${i.green("at least one of")} ${Or("or",e.constraints.requiredFields.map(s=>`\`${i.bold(s)}\``))} arguments.`):o.push(`${i.green("at least one")} argument.`):o.push(`${i.green(`at least ${e.constraints.minFieldCount}`)} arguments.`),o.push(It(i)),o.join(" ")})}function Ju(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i=[];if(n){let o=n.getDeepFieldValue(e.argumentPath)?.asObject();o&&(o.markAsError(),i=Object.keys(o.getFields()))}t.addErrorMessage(o=>{let s=[`Argument \`${o.bold(r)}\` of type ${o.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1&&e.constraints.maxFieldCount==1?s.push(`${o.green("exactly one")} argument,`):e.constraints.maxFieldCount==1?s.push(`${o.green("at most one")} argument,`):s.push(`${o.green(`at most ${e.constraints.maxFieldCount}`)} arguments,`),s.push(`but you provided ${Or("and",i.map(a=>o.red(a)))}. Please choose`),e.constraints.maxFieldCount===1?s.push("one."):s.push(`${e.constraints.maxFieldCount}.`),s.join(" ")})}function Mo(e,t){for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new ae(r.name,"true"))}function Wu(e,t){for(let r of t.fields)r.isRelation&&!e.hasField(r.name)&&e.addSuggestion(new ae(r.name,"true"))}function Ku(e,t){for(let r of t.fields)!e.hasField(r.name)&&!r.isRelation&&e.addSuggestion(new ae(r.name,"true"))}function Hu(e,t){for(let r of t)e.hasField(r.name)||e.addSuggestion(new ae(r.name,r.typeNames.join(" | ")))}function _o(e,t){let[r,n]=kt(e),i=t.arguments.getDeepSubSelectionValue(r)?.asObject();if(!i)return{parentKind:"unknown",fieldName:n};let o=i.getFieldValue("select")?.asObject(),s=i.getFieldValue("include")?.asObject(),a=i.getFieldValue("omit")?.asObject(),l=o?.getField(n);return o&&l?{parentKind:"select",parent:o,field:l,fieldName:n}:(l=s?.getField(n),s&&l?{parentKind:"include",field:l,parent:s,fieldName:n}:(l=a?.getField(n),a&&l?{parentKind:"omit",field:l,parent:a,fieldName:n}:{parentKind:"unknown",fieldName:n}))}function No(e,t){if(t.kind==="object")for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new ae(r.name,r.typeNames.join(" | ")))}function kt(e){let t=[...e],r=t.pop();if(!r)throw new Error("unexpected empty path");return[t,r]}function It({green:e,enabled:t}){return"Available options are "+(t?`listed in ${e("green")}`:"marked with ?")+"."}function Or(e,t){if(t.length===1)return t[0];let r=[...t],n=r.pop();return`${r.join(", ")} ${e} ${n}`}var zu=3;function Yu(e,t){let r=1/0,n;for(let i of t){let o=(0,Io.default)(e,i);o>zu||o`}};function at(e){return e instanceof Ot}d();u();c();p();m();var Dr=Symbol(),Sn=new WeakMap,Te=class{constructor(t){t===Dr?Sn.set(this,`Prisma.${this._getName()}`):Sn.set(this,`new Prisma.${this._getNamespace()}.${this._getName()}()`)}_getName(){return this.constructor.name}toString(){return Sn.get(this)}},Dt=class extends Te{_getNamespace(){return"NullTypes"}},Mt=class extends Dt{#e};In(Mt,"DbNull");var _t=class extends Dt{#e};In(_t,"JsonNull");var Nt=class extends Dt{#e};In(Nt,"AnyNull");var kn={classes:{DbNull:Mt,JsonNull:_t,AnyNull:Nt},instances:{DbNull:new Mt(Dr),JsonNull:new _t(Dr),AnyNull:new Nt(Dr)}};function In(e,t){Object.defineProperty(e,"name",{value:t,configurable:!0})}d();u();c();p();m();var Fo=": ",Mr=class{constructor(t,r){this.name=t;this.value=r}hasError=!1;markAsError(){this.hasError=!0}getPrintWidth(){return this.name.length+this.value.getPrintWidth()+Fo.length}write(t){let r=new ye(this.name);this.hasError&&r.underline().setColor(t.context.colors.red),t.write(r).write(Fo).write(this.value)}};var On=class{arguments;errorMessages=[];constructor(t){this.arguments=t}write(t){t.write(this.arguments)}addErrorMessage(t){this.errorMessages.push(t)}renderAllMessages(t){return this.errorMessages.map(r=>r(t)).join(` -`)}};function lt(e){return new On(Lo(e))}function Lo(e){let t=new st;for(let[r,n]of Object.entries(e)){let i=new Mr(r,Uo(n));t.addField(i)}return t}function Uo(e){if(typeof e=="string")return new K(JSON.stringify(e));if(typeof e=="number"||typeof e=="boolean")return new K(String(e));if(typeof e=="bigint")return new K(`${e}n`);if(e===null)return new K("null");if(e===void 0)return new K("undefined");if(rt(e))return new K(`new Prisma.Decimal("${e.toFixed()}")`);if(e instanceof Uint8Array)return w.Buffer.isBuffer(e)?new K(`Buffer.alloc(${e.byteLength})`):new K(`new Uint8Array(${e.byteLength})`);if(e instanceof Date){let t=Tr(e)?e.toISOString():"Invalid Date";return new K(`new Date("${t}")`)}return e instanceof Te?new K(`Prisma.${e._getName()}`):at(e)?new K(`prisma.${Me(e.modelName)}.$fields.${e.name}`):Array.isArray(e)?Zu(e):typeof e=="object"?Lo(e):new K(Object.prototype.toString.call(e))}function Zu(e){let t=new ot;for(let r of e)t.addItem(Uo(r));return t}function _r(e,t){let r=t==="pretty"?ko:Ir,n=e.renderAllMessages(r),i=new nt(0,{colors:r}).write(e).toString();return{message:n,args:i}}function Nr({args:e,errors:t,errorFormat:r,callsite:n,originalMethod:i,clientVersion:o,globalOmit:s}){let a=lt(e);for(let h of t)Rr(h,a,s);let{message:l,args:f}=_r(a,r),g=Ar({message:l,callsite:n,originalMethod:i,showColors:r==="pretty",callArguments:f});throw new X(g,{clientVersion:o})}d();u();c();p();m();d();u();c();p();m();function we(e){return e.replace(/^./,t=>t.toLowerCase())}d();u();c();p();m();function qo(e,t,r){let n=we(r);return!t.result||!(t.result.$allModels||t.result[n])?e:Xu({...e,...Bo(t.name,e,t.result.$allModels),...Bo(t.name,e,t.result[n])})}function Xu(e){let t=new he,r=(n,i)=>t.getOrCreate(n,()=>i.has(n)?[n]:(i.add(n),e[n]?e[n].needs.flatMap(o=>r(o,i)):[n]));return Ze(e,n=>({...n,needs:r(n.name,new Set)}))}function Bo(e,t,r){return r?Ze(r,({needs:n,compute:i},o)=>({name:o,needs:n?Object.keys(n).filter(s=>n[s]):[],compute:ec(t,o,i)})):{}}function ec(e,t,r){let n=e?.[t]?.compute;return n?i=>r({...i,[t]:n(i)}):r}function $o(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(e[n.name])for(let i of n.needs)r[i]=!0;return r}function Vo(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(!e[n.name])for(let i of n.needs)delete r[i];return r}var Fr=class{constructor(t,r){this.extension=t;this.previous=r}computedFieldsCache=new he;modelExtensionsCache=new he;queryCallbacksCache=new he;clientExtensions=At(()=>this.extension.client?{...this.previous?.getAllClientExtensions(),...this.extension.client}:this.previous?.getAllClientExtensions());batchCallbacks=At(()=>{let t=this.previous?.getAllBatchQueryCallbacks()??[],r=this.extension.query?.$__internalBatch;return r?t.concat(r):t});getAllComputedFields(t){return this.computedFieldsCache.getOrCreate(t,()=>qo(this.previous?.getAllComputedFields(t),this.extension,t))}getAllClientExtensions(){return this.clientExtensions.get()}getAllModelExtensions(t){return this.modelExtensionsCache.getOrCreate(t,()=>{let r=we(t);return!this.extension.model||!(this.extension.model[r]||this.extension.model.$allModels)?this.previous?.getAllModelExtensions(t):{...this.previous?.getAllModelExtensions(t),...this.extension.model.$allModels,...this.extension.model[r]}})}getAllQueryCallbacks(t,r){return this.queryCallbacksCache.getOrCreate(`${t}:${r}`,()=>{let n=this.previous?.getAllQueryCallbacks(t,r)??[],i=[],o=this.extension.query;return!o||!(o[t]||o.$allModels||o[r]||o.$allOperations)?n:(o[t]!==void 0&&(o[t][r]!==void 0&&i.push(o[t][r]),o[t].$allOperations!==void 0&&i.push(o[t].$allOperations)),t!=="$none"&&o.$allModels!==void 0&&(o.$allModels[r]!==void 0&&i.push(o.$allModels[r]),o.$allModels.$allOperations!==void 0&&i.push(o.$allModels.$allOperations)),o[r]!==void 0&&i.push(o[r]),o.$allOperations!==void 0&&i.push(o.$allOperations),n.concat(i))})}getAllBatchQueryCallbacks(){return this.batchCallbacks.get()}},ut=class e{constructor(t){this.head=t}static empty(){return new e}static single(t){return new e(new Fr(t))}isEmpty(){return this.head===void 0}append(t){return new e(new Fr(t,this.head))}getAllComputedFields(t){return this.head?.getAllComputedFields(t)}getAllClientExtensions(){return this.head?.getAllClientExtensions()}getAllModelExtensions(t){return this.head?.getAllModelExtensions(t)}getAllQueryCallbacks(t,r){return this.head?.getAllQueryCallbacks(t,r)??[]}getAllBatchQueryCallbacks(){return this.head?.getAllBatchQueryCallbacks()??[]}};d();u();c();p();m();var Lr=class{constructor(t){this.name=t}};function jo(e){return e instanceof Lr}function tc(e){return new Lr(e)}d();u();c();p();m();d();u();c();p();m();var Go=Symbol(),Ft=class{constructor(t){if(t!==Go)throw new Error("Skip instance can not be constructed directly")}ifUndefined(t){return t===void 0?Dn:t}},Dn=new Ft(Go);function Ee(e){return e instanceof Ft}var rc={findUnique:"findUnique",findUniqueOrThrow:"findUniqueOrThrow",findFirst:"findFirst",findFirstOrThrow:"findFirstOrThrow",findMany:"findMany",count:"aggregate",create:"createOne",createMany:"createMany",createManyAndReturn:"createManyAndReturn",update:"updateOne",updateMany:"updateMany",updateManyAndReturn:"updateManyAndReturn",upsert:"upsertOne",delete:"deleteOne",deleteMany:"deleteMany",executeRaw:"executeRaw",queryRaw:"queryRaw",aggregate:"aggregate",groupBy:"groupBy",runCommandRaw:"runCommandRaw",findRaw:"findRaw",aggregateRaw:"aggregateRaw"},Qo="explicitly `undefined` values are not allowed";function _n({modelName:e,action:t,args:r,runtimeDataModel:n,extensions:i=ut.empty(),callsite:o,clientMethod:s,errorFormat:a,clientVersion:l,previewFeatures:f,globalOmit:g}){let h=new Mn({runtimeDataModel:n,modelName:e,action:t,rootArgs:r,callsite:o,extensions:i,selectionPath:[],argumentPath:[],originalMethod:s,errorFormat:a,clientVersion:l,previewFeatures:f,globalOmit:g});return{modelName:e,action:rc[t],query:Lt(r,h)}}function Lt({select:e,include:t,...r}={},n){let i=r.omit;return delete r.omit,{arguments:Wo(r,n),selection:nc(e,t,i,n)}}function nc(e,t,r,n){return e?(t?n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"include",secondField:"select",selectionPath:n.getSelectionPath()}):r&&n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"omit",secondField:"select",selectionPath:n.getSelectionPath()}),ac(e,n)):ic(n,t,r)}function ic(e,t,r){let n={};return e.modelOrType&&!e.isRawAction()&&(n.$composites=!0,n.$scalars=!0),t&&oc(n,t,e),sc(n,r,e),n}function oc(e,t,r){for(let[n,i]of Object.entries(t)){if(Ee(i))continue;let o=r.nestSelection(n);if(Nn(i,o),i===!1||i===void 0){e[n]=!1;continue}let s=r.findField(n);if(s&&s.kind!=="object"&&r.throwValidationError({kind:"IncludeOnScalar",selectionPath:r.getSelectionPath().concat(n),outputType:r.getOutputTypeDescription()}),s){e[n]=Lt(i===!0?{}:i,o);continue}if(i===!0){e[n]=!0;continue}e[n]=Lt(i,o)}}function sc(e,t,r){let n=r.getComputedFields(),i={...r.getGlobalOmit(),...t},o=Vo(i,n);for(let[s,a]of Object.entries(o)){if(Ee(a))continue;Nn(a,r.nestSelection(s));let l=r.findField(s);n?.[s]&&!l||(e[s]=!a)}}function ac(e,t){let r={},n=t.getComputedFields(),i=$o(e,n);for(let[o,s]of Object.entries(i)){if(Ee(s))continue;let a=t.nestSelection(o);Nn(s,a);let l=t.findField(o);if(!(n?.[o]&&!l)){if(s===!1||s===void 0||Ee(s)){r[o]=!1;continue}if(s===!0){l?.kind==="object"?r[o]=Lt({},a):r[o]=!0;continue}r[o]=Lt(s,a)}}return r}function Jo(e,t){if(e===null)return null;if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="bigint")return{$type:"BigInt",value:String(e)};if(tt(e)){if(Tr(e))return{$type:"DateTime",value:e.toISOString()};t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:["Date"]},underlyingError:"Provided Date object is invalid"})}if(jo(e))return{$type:"Param",value:e.name};if(at(e))return{$type:"FieldRef",value:{_ref:e.name,_container:e.modelName}};if(Array.isArray(e))return lc(e,t);if(ArrayBuffer.isView(e)){let{buffer:r,byteOffset:n,byteLength:i}=e;return{$type:"Bytes",value:w.Buffer.from(r,n,i).toString("base64")}}if(uc(e))return e.values;if(rt(e))return{$type:"Decimal",value:e.toFixed()};if(e instanceof Te){if(e!==kn.instances[e._getName()])throw new Error("Invalid ObjectEnumValue");return{$type:"Enum",value:e._getName()}}if(cc(e))return e.toJSON();if(typeof e=="object")return Wo(e,t);t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:`We could not serialize ${Object.prototype.toString.call(e)} value. Serialize the object to JSON or implement a ".toJSON()" method on it`})}function Wo(e,t){if(e.$type)return{$type:"Raw",value:e};let r={};for(let n in e){let i=e[n],o=t.nestArgument(n);Ee(i)||(i!==void 0?r[n]=Jo(i,o):t.isPreviewFeatureOn("strictUndefinedChecks")&&t.throwValidationError({kind:"InvalidArgumentValue",argumentPath:o.getArgumentPath(),selectionPath:t.getSelectionPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:Qo}))}return r}function lc(e,t){let r=[];for(let n=0;n({name:t.name,typeName:"boolean",isRelation:t.kind==="object"}))}}isRawAction(){return["executeRaw","queryRaw","runCommandRaw","findRaw","aggregateRaw"].includes(this.params.action)}isPreviewFeatureOn(t){return this.params.previewFeatures.includes(t)}getComputedFields(){if(this.params.modelName)return this.params.extensions.getAllComputedFields(this.params.modelName)}findField(t){return this.modelOrType?.fields.find(r=>r.name===t)}nestSelection(t){let r=this.findField(t),n=r?.kind==="object"?r.type:void 0;return new e({...this.params,modelName:n,selectionPath:this.params.selectionPath.concat(t)})}getGlobalOmit(){return this.params.modelName&&this.shouldApplyGlobalOmit()?this.params.globalOmit?.[Me(this.params.modelName)]??{}:{}}shouldApplyGlobalOmit(){switch(this.params.action){case"findFirst":case"findFirstOrThrow":case"findUniqueOrThrow":case"findMany":case"upsert":case"findUnique":case"createManyAndReturn":case"create":case"update":case"updateManyAndReturn":case"delete":return!0;case"executeRaw":case"aggregateRaw":case"runCommandRaw":case"findRaw":case"createMany":case"deleteMany":case"groupBy":case"updateMany":case"count":case"aggregate":case"queryRaw":return!1;default:xe(this.params.action,"Unknown action")}}nestArgument(t){return new e({...this.params,argumentPath:this.params.argumentPath.concat(t)})}};d();u();c();p();m();function Ko(e){if(!e._hasPreviewFlag("metrics"))throw new X("`metrics` preview feature must be enabled in order to access metrics API",{clientVersion:e._clientVersion})}var Ut=class{_client;constructor(t){this._client=t}prometheus(t){return Ko(this._client),this._client._engine.metrics({format:"prometheus",...t})}json(t){return Ko(this._client),this._client._engine.metrics({format:"json",...t})}};d();u();c();p();m();function pc(e,t){let r=At(()=>mc(t));Object.defineProperty(e,"dmmf",{get:()=>r.get()})}function mc(e){return{datamodel:{models:Fn(e.models),enums:Fn(e.enums),types:Fn(e.types)}}}function Fn(e){return Object.entries(e).map(([t,r])=>({name:t,...r}))}d();u();c();p();m();var Ln=new WeakMap,Ur="$$PrismaTypedSql",Bt=class{constructor(t,r){Ln.set(this,{sql:t,values:r}),Object.defineProperty(this,Ur,{value:Ur})}get sql(){return Ln.get(this).sql}get values(){return Ln.get(this).values}};function dc(e){return(...t)=>new Bt(e,t)}function Br(e){return e!=null&&e[Ur]===Ur}d();u();c();p();m();var pa=Le(gn());d();u();c();p();m();Ho();ji();Wi();d();u();c();p();m();var le=class e{constructor(t,r){if(t.length-1!==r.length)throw t.length===0?new TypeError("Expected at least 1 string"):new TypeError(`Expected ${t.length} strings to have ${t.length-1} values`);let n=r.reduce((s,a)=>s+(a instanceof e?a.values.length:1),0);this.values=new Array(n),this.strings=new Array(n+1),this.strings[0]=t[0];let i=0,o=0;for(;ie.getPropertyValue(r))},getPropertyDescriptor(r){return e.getPropertyDescriptor?.(r)}}}d();u();c();p();m();d();u();c();p();m();var $r={enumerable:!0,configurable:!0,writable:!0};function Vr(e){let t=new Set(e);return{getPrototypeOf:()=>Object.prototype,getOwnPropertyDescriptor:()=>$r,has:(r,n)=>t.has(n),set:(r,n,i)=>t.add(n)&&Reflect.set(r,n,i),ownKeys:()=>[...t]}}var Zo=Symbol.for("nodejs.util.inspect.custom");function pe(e,t){let r=hc(t),n=new Set,i=new Proxy(e,{get(o,s){if(n.has(s))return o[s];let a=r.get(s);return a?a.getPropertyValue(s):o[s]},has(o,s){if(n.has(s))return!0;let a=r.get(s);return a?a.has?.(s)??!0:Reflect.has(o,s)},ownKeys(o){let s=Xo(Reflect.ownKeys(o),r),a=Xo(Array.from(r.keys()),r);return[...new Set([...s,...a,...n])]},set(o,s,a){return r.get(s)?.getPropertyDescriptor?.(s)?.writable===!1?!1:(n.add(s),Reflect.set(o,s,a))},getOwnPropertyDescriptor(o,s){let a=Reflect.getOwnPropertyDescriptor(o,s);if(a&&!a.configurable)return a;let l=r.get(s);return l?l.getPropertyDescriptor?{...$r,...l?.getPropertyDescriptor(s)}:$r:a},defineProperty(o,s,a){return n.add(s),Reflect.defineProperty(o,s,a)},getPrototypeOf:()=>Object.prototype});return i[Zo]=function(){let o={...this};return delete o[Zo],o},i}function hc(e){let t=new Map;for(let r of e){let n=r.getKeys();for(let i of n)t.set(i,r)}return t}function Xo(e,t){return e.filter(r=>t.get(r)?.has?.(r)??!0)}d();u();c();p();m();function ct(e){return{getKeys(){return e},has(){return!1},getPropertyValue(){}}}d();u();c();p();m();function jr(e,t){return{batch:e,transaction:t?.kind==="batch"?{isolationLevel:t.options.isolationLevel}:void 0}}d();u();c();p();m();function es(e){if(e===void 0)return"";let t=lt(e);return new nt(0,{colors:Ir}).write(t).toString()}d();u();c();p();m();var yc="P2037";function Gr({error:e,user_facing_error:t},r,n){return t.error_code?new oe(wc(t,n),{code:t.error_code,clientVersion:r,meta:t.meta,batchRequestIdx:t.batch_request_idx}):new se(e,{clientVersion:r,batchRequestIdx:t.batch_request_idx})}function wc(e,t){let r=e.message;return(t==="postgresql"||t==="postgres"||t==="mysql")&&e.error_code===yc&&(r+=` -Prisma Accelerate has built-in connection pooling to prevent such errors: https://pris.ly/client/error-accelerate`),r}d();u();c();p();m();d();u();c();p();m();d();u();c();p();m();d();u();c();p();m();d();u();c();p();m();var Un=class{getLocation(){return null}};function Ne(e){return typeof $EnabledCallSite=="function"&&e!=="minimal"?new $EnabledCallSite:new Un}d();u();c();p();m();d();u();c();p();m();d();u();c();p();m();var ts={_avg:!0,_count:!0,_sum:!0,_min:!0,_max:!0};function pt(e={}){let t=bc(e);return Object.entries(t).reduce((n,[i,o])=>(ts[i]!==void 0?n.select[i]={select:o}:n[i]=o,n),{select:{}})}function bc(e={}){return typeof e._count=="boolean"?{...e,_count:{_all:e._count}}:e}function Qr(e={}){return t=>(typeof e._count=="boolean"&&(t._count=t._count._all),t)}function rs(e,t){let r=Qr(e);return t({action:"aggregate",unpacker:r,argsMapper:pt})(e)}d();u();c();p();m();function xc(e={}){let{select:t,...r}=e;return typeof t=="object"?pt({...r,_count:t}):pt({...r,_count:{_all:!0}})}function Pc(e={}){return typeof e.select=="object"?t=>Qr(e)(t)._count:t=>Qr(e)(t)._count._all}function ns(e,t){return t({action:"count",unpacker:Pc(e),argsMapper:xc})(e)}d();u();c();p();m();function vc(e={}){let t=pt(e);if(Array.isArray(t.by))for(let r of t.by)typeof r=="string"&&(t.select[r]=!0);else typeof t.by=="string"&&(t.select[t.by]=!0);return t}function Tc(e={}){return t=>(typeof e?._count=="boolean"&&t.forEach(r=>{r._count=r._count._all}),t)}function is(e,t){return t({action:"groupBy",unpacker:Tc(e),argsMapper:vc})(e)}function os(e,t,r){if(t==="aggregate")return n=>rs(n,r);if(t==="count")return n=>ns(n,r);if(t==="groupBy")return n=>is(n,r)}d();u();c();p();m();function ss(e,t){let r=t.fields.filter(i=>!i.relationName),n=xo(r,"name");return new Proxy({},{get(i,o){if(o in i||typeof o=="symbol")return i[o];let s=n[o];if(s)return new Ot(e,o,s.type,s.isList,s.kind==="enum")},...Vr(Object.keys(n))})}d();u();c();p();m();d();u();c();p();m();var as=e=>Array.isArray(e)?e:e.split("."),Bn=(e,t)=>as(t).reduce((r,n)=>r&&r[n],e),ls=(e,t,r)=>as(t).reduceRight((n,i,o,s)=>Object.assign({},Bn(e,s.slice(0,o)),{[i]:n}),r);function Cc(e,t){return e===void 0||t===void 0?[]:[...t,"select",e]}function Ac(e,t,r){return t===void 0?e??{}:ls(t,r,e||!0)}function qn(e,t,r,n,i,o){let a=e._runtimeDataModel.models[t].fields.reduce((l,f)=>({...l,[f.name]:f}),{});return l=>{let f=Ne(e._errorFormat),g=Cc(n,i),h=Ac(l,o,g),v=r({dataPath:g,callsite:f})(h),S=Rc(e,t);return new Proxy(v,{get(C,R){if(!S.includes(R))return C[R];let M=[a[R].type,r,R],U=[g,h];return qn(e,...M,...U)},...Vr([...S,...Object.getOwnPropertyNames(v)])})}}function Rc(e,t){return e._runtimeDataModel.models[t].fields.filter(r=>r.kind==="object").map(r=>r.name)}var Sc=["findUnique","findUniqueOrThrow","findFirst","findFirstOrThrow","create","update","upsert","delete"],kc=["aggregate","count","groupBy"];function $n(e,t){let r=e._extensions.getAllModelExtensions(t)??{},n=[Ic(e,t),Dc(e,t),qt(r),ee("name",()=>t),ee("$name",()=>t),ee("$parent",()=>e._appliedParent)];return pe({},n)}function Ic(e,t){let r=we(t),n=Object.keys(Rt).concat("count");return{getKeys(){return n},getPropertyValue(i){let o=i,s=a=>l=>{let f=Ne(e._errorFormat);return e._createPrismaPromise(g=>{let h={args:l,dataPath:[],action:o,model:t,clientMethod:`${r}.${i}`,jsModelName:r,transaction:g,callsite:f};return e._request({...h,...a})},{action:o,args:l,model:t})};return Sc.includes(o)?qn(e,t,s):Oc(i)?os(e,i,s):s({})}}}function Oc(e){return kc.includes(e)}function Dc(e,t){return qe(ee("fields",()=>{let r=e._runtimeDataModel.models[t];return ss(t,r)}))}d();u();c();p();m();function us(e){return e.replace(/^./,t=>t.toUpperCase())}var Vn=Symbol();function $t(e){let t=[Mc(e),_c(e),ee(Vn,()=>e),ee("$parent",()=>e._appliedParent)],r=e._extensions.getAllClientExtensions();return r&&t.push(qt(r)),pe(e,t)}function Mc(e){let t=Object.getPrototypeOf(e._originalClient),r=[...new Set(Object.getOwnPropertyNames(t))];return{getKeys(){return r},getPropertyValue(n){return e[n]}}}function _c(e){let t=Object.keys(e._runtimeDataModel.models),r=t.map(we),n=[...new Set(t.concat(r))];return qe({getKeys(){return n},getPropertyValue(i){let o=us(i);if(e._runtimeDataModel.models[o]!==void 0)return $n(e,o);if(e._runtimeDataModel.models[i]!==void 0)return $n(e,i)},getPropertyDescriptor(i){if(!r.includes(i))return{enumerable:!1}}})}function cs(e){return e[Vn]?e[Vn]:e}function ps(e){if(typeof e=="function")return e(this);if(e.client?.__AccelerateEngine){let r=e.client.__AccelerateEngine;this._originalClient._engine=new r(this._originalClient._accelerateEngineConfig)}let t=Object.create(this._originalClient,{_extensions:{value:this._extensions.append(e)},_appliedParent:{value:this,configurable:!0},$use:{value:void 0},$on:{value:void 0}});return $t(t)}d();u();c();p();m();d();u();c();p();m();function ms({result:e,modelName:t,select:r,omit:n,extensions:i}){let o=i.getAllComputedFields(t);if(!o)return e;let s=[],a=[];for(let l of Object.values(o)){if(n){if(n[l.name])continue;let f=l.needs.filter(g=>n[g]);f.length>0&&a.push(ct(f))}else if(r){if(!r[l.name])continue;let f=l.needs.filter(g=>!r[g]);f.length>0&&a.push(ct(f))}Nc(e,l.needs)&&s.push(Fc(l,pe(e,s)))}return s.length>0||a.length>0?pe(e,[...s,...a]):e}function Nc(e,t){return t.every(r=>wn(e,r))}function Fc(e,t){return qe(ee(e.name,()=>e.compute(t)))}d();u();c();p();m();function Jr({visitor:e,result:t,args:r,runtimeDataModel:n,modelName:i}){if(Array.isArray(t)){for(let s=0;sg.name===o);if(!l||l.kind!=="object"||!l.relationName)continue;let f=typeof s=="object"?s:{};t[o]=Jr({visitor:i,result:t[o],args:f,modelName:l.type,runtimeDataModel:n})}}function fs({result:e,modelName:t,args:r,extensions:n,runtimeDataModel:i,globalOmit:o}){return n.isEmpty()||e==null||typeof e!="object"||!i.models[t]?e:Jr({result:e,args:r??{},modelName:t,runtimeDataModel:i,visitor:(a,l,f)=>{let g=we(l);return ms({result:a,modelName:g,select:f.select,omit:f.select?void 0:{...o?.[g],...f.omit},extensions:n})}})}d();u();c();p();m();d();u();c();p();m();d();u();c();p();m();var Lc=["$connect","$disconnect","$on","$transaction","$use","$extends"],gs=Lc;function hs(e){if(e instanceof le)return Uc(e);if(Br(e))return Bc(e);if(Array.isArray(e)){let r=[e[0]];for(let n=1;n{let o=t.customDataProxyFetch;return"transaction"in t&&i!==void 0&&(t.transaction?.kind==="batch"&&t.transaction.lock.then(),t.transaction=i),n===r.length?e._executeRequest(t):r[n]({model:t.model,operation:t.model?t.action:t.clientMethod,args:hs(t.args??{}),__internalParams:t,query:(s,a=t)=>{let l=a.customDataProxyFetch;return a.customDataProxyFetch=Ps(o,l),a.args=s,ws(e,a,r,n+1)}})})}function Es(e,t){let{jsModelName:r,action:n,clientMethod:i}=t,o=r?n:i;if(e._extensions.isEmpty())return e._executeRequest(t);let s=e._extensions.getAllQueryCallbacks(r??"$none",o);return ws(e,t,s)}function bs(e){return t=>{let r={requests:t},n=t[0].extensions.getAllBatchQueryCallbacks();return n.length?xs(r,n,0,e):e(r)}}function xs(e,t,r,n){if(r===t.length)return n(e);let i=e.customDataProxyFetch,o=e.requests[0].transaction;return t[r]({args:{queries:e.requests.map(s=>({model:s.modelName,operation:s.action,args:s.args})),transaction:o?{isolationLevel:o.kind==="batch"?o.isolationLevel:void 0}:void 0},__internalParams:e,query(s,a=e){let l=a.customDataProxyFetch;return a.customDataProxyFetch=Ps(i,l),xs(a,t,r+1,n)}})}var ys=e=>e;function Ps(e=ys,t=ys){return r=>e(t(r))}d();u();c();p();m();var vs=Y("prisma:client"),Ts={Vercel:"vercel","Netlify CI":"netlify"};function Cs({postinstall:e,ciName:t,clientVersion:r}){if(vs("checkPlatformCaching:postinstall",e),vs("checkPlatformCaching:ciName",t),e===!0&&t&&t in Ts){let n=`Prisma has detected that this project was built on ${t}, which caches dependencies. This leads to an outdated Prisma Client because Prisma's auto-generation isn't triggered. To fix this, make sure to run the \`prisma generate\` command during the build process. - -Learn how: https://pris.ly/d/${Ts[t]}-build`;throw console.error(n),new Q(n,r)}}d();u();c();p();m();function As(e,t){return e?e.datasources?e.datasources:e.datasourceUrl?{[t[0]]:{url:e.datasourceUrl}}:{}:{}}d();u();c();p();m();d();u();c();p();m();var qc=()=>globalThis.process?.release?.name==="node",$c=()=>!!globalThis.Bun||!!globalThis.process?.versions?.bun,Vc=()=>!!globalThis.Deno,jc=()=>typeof globalThis.Netlify=="object",Gc=()=>typeof globalThis.EdgeRuntime=="object",Qc=()=>globalThis.navigator?.userAgent==="Cloudflare-Workers";function Jc(){return[[jc,"netlify"],[Gc,"edge-light"],[Qc,"workerd"],[Vc,"deno"],[$c,"bun"],[qc,"node"]].flatMap(r=>r[0]()?[r[1]]:[]).at(0)??""}var Wc={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function jn(){let e=Jc();return{id:e,prettyName:Wc[e]||e,isEdge:["workerd","deno","netlify","edge-light"].includes(e)}}d();u();c();p();m();var Rs="6.12.0";d();u();c();p();m();d();u();c();p();m();function mt({inlineDatasources:e,overrideDatasources:t,env:r,clientVersion:n}){let i,o=Object.keys(e)[0],s=e[o]?.url,a=t[o]?.url;if(o===void 0?i=void 0:a?i=a:s?.value?i=s.value:s?.fromEnvVar&&(i=r[s.fromEnvVar]),s?.fromEnvVar!==void 0&&i===void 0)throw jn().id==="workerd"?new Q(`error: Environment variable not found: ${s.fromEnvVar}. - -In Cloudflare module Workers, environment variables are available only in the Worker's \`env\` parameter of \`fetch\`. -To solve this, provide the connection string directly: https://pris.ly/d/cloudflare-datasource-url`,n):new Q(`error: Environment variable not found: ${s.fromEnvVar}.`,n);if(i===void 0)throw new Q("error: Missing URL environment variable, value, or override.",n);return i}d();u();c();p();m();d();u();c();p();m();d();u();c();p();m();var Wr=class extends Error{clientVersion;cause;constructor(t,r){super(t),this.clientVersion=r.clientVersion,this.cause=r.cause}get[Symbol.toStringTag](){return this.name}};var ne=class extends Wr{isRetryable;constructor(t,r){super(t,r),this.isRetryable=r.isRetryable??!0}};d();u();c();p();m();function L(e,t){return{...e,isRetryable:t}}var $e=class extends ne{name="InvalidDatasourceError";code="P6001";constructor(t,r){super(t,L(r,!1))}};N($e,"InvalidDatasourceError");function Ss(e){let t={clientVersion:e.clientVersion},r=Object.keys(e.inlineDatasources)[0],n=mt({inlineDatasources:e.inlineDatasources,overrideDatasources:e.overrideDatasources,clientVersion:e.clientVersion,env:{...e.env,...typeof y<"u"?y.env:{}}}),i;try{i=new URL(n)}catch{throw new $e(`Error validating datasource \`${r}\`: the URL must start with the protocol \`prisma://\``,t)}let{protocol:o,searchParams:s}=i;if(o!=="prisma:"&&o!==dr)throw new $e(`Error validating datasource \`${r}\`: the URL must start with the protocol \`prisma://\` or \`prisma+postgres://\``,t);let a=s.get("api_key");if(a===null||a.length<1)throw new $e(`Error validating datasource \`${r}\`: the URL must contain a valid API key`,t);let l=hn(i)?"http:":"https:",f=new URL(i.href.replace(o,l));return{apiKey:a,url:f}}d();u();c();p();m();var ks=Le(Hi()),Kr=class{apiKey;tracingHelper;logLevel;logQueries;engineHash;constructor({apiKey:t,tracingHelper:r,logLevel:n,logQueries:i,engineHash:o}){this.apiKey=t,this.tracingHelper=r,this.logLevel=n,this.logQueries=i,this.engineHash=o}build({traceparent:t,transactionId:r}={}){let n={Accept:"application/json",Authorization:`Bearer ${this.apiKey}`,"Content-Type":"application/json","Prisma-Engine-Hash":this.engineHash,"Prisma-Engine-Version":ks.enginesVersion};this.tracingHelper.isEnabled()&&(n.traceparent=t??this.tracingHelper.getTraceParent()),r&&(n["X-Transaction-Id"]=r);let i=this.#e();return i.length>0&&(n["X-Capture-Telemetry"]=i.join(", ")),n}#e(){let t=[];return this.tracingHelper.isEnabled()&&t.push("tracing"),this.logLevel&&t.push(this.logLevel),this.logQueries&&t.push("query"),t}};d();u();c();p();m();function Hc(e){return e[0]*1e3+e[1]/1e6}function Gn(e){return new Date(Hc(e))}d();u();c();p();m();d();u();c();p();m();var dt=class extends ne{name="ForcedRetryError";code="P5001";constructor(t){super("This request must be retried",L(t,!0))}};N(dt,"ForcedRetryError");d();u();c();p();m();var Ve=class extends ne{name="NotImplementedYetError";code="P5004";constructor(t,r){super(t,L(r,!1))}};N(Ve,"NotImplementedYetError");d();u();c();p();m();d();u();c();p();m();var j=class extends ne{response;constructor(t,r){super(t,r),this.response=r.response;let n=this.response.headers.get("prisma-request-id");if(n){let i=`(The request id was: ${n})`;this.message=this.message+" "+i}}};var je=class extends j{name="SchemaMissingError";code="P5005";constructor(t){super("Schema needs to be uploaded",L(t,!0))}};N(je,"SchemaMissingError");d();u();c();p();m();d();u();c();p();m();var Qn="This request could not be understood by the server",jt=class extends j{name="BadRequestError";code="P5000";constructor(t,r,n){super(r||Qn,L(t,!1)),n&&(this.code=n)}};N(jt,"BadRequestError");d();u();c();p();m();var Gt=class extends j{name="HealthcheckTimeoutError";code="P5013";logs;constructor(t,r){super("Engine not started: healthcheck timeout",L(t,!0)),this.logs=r}};N(Gt,"HealthcheckTimeoutError");d();u();c();p();m();var Qt=class extends j{name="EngineStartupError";code="P5014";logs;constructor(t,r,n){super(r,L(t,!0)),this.logs=n}};N(Qt,"EngineStartupError");d();u();c();p();m();var Jt=class extends j{name="EngineVersionNotSupportedError";code="P5012";constructor(t){super("Engine version is not supported",L(t,!1))}};N(Jt,"EngineVersionNotSupportedError");d();u();c();p();m();var Jn="Request timed out",Wt=class extends j{name="GatewayTimeoutError";code="P5009";constructor(t,r=Jn){super(r,L(t,!1))}};N(Wt,"GatewayTimeoutError");d();u();c();p();m();var zc="Interactive transaction error",Kt=class extends j{name="InteractiveTransactionError";code="P5015";constructor(t,r=zc){super(r,L(t,!1))}};N(Kt,"InteractiveTransactionError");d();u();c();p();m();var Yc="Request parameters are invalid",Ht=class extends j{name="InvalidRequestError";code="P5011";constructor(t,r=Yc){super(r,L(t,!1))}};N(Ht,"InvalidRequestError");d();u();c();p();m();var Wn="Requested resource does not exist",zt=class extends j{name="NotFoundError";code="P5003";constructor(t,r=Wn){super(r,L(t,!1))}};N(zt,"NotFoundError");d();u();c();p();m();var Kn="Unknown server error",ft=class extends j{name="ServerError";code="P5006";logs;constructor(t,r,n){super(r||Kn,L(t,!0)),this.logs=n}};N(ft,"ServerError");d();u();c();p();m();var Hn="Unauthorized, check your connection string",Yt=class extends j{name="UnauthorizedError";code="P5007";constructor(t,r=Hn){super(r,L(t,!1))}};N(Yt,"UnauthorizedError");d();u();c();p();m();var zn="Usage exceeded, retry again later",Zt=class extends j{name="UsageExceededError";code="P5008";constructor(t,r=zn){super(r,L(t,!0))}};N(Zt,"UsageExceededError");async function Zc(e){let t;try{t=await e.text()}catch{return{type:"EmptyError"}}try{let r=JSON.parse(t);if(typeof r=="string")switch(r){case"InternalDataProxyError":return{type:"DataProxyError",body:r};default:return{type:"UnknownTextError",body:r}}if(typeof r=="object"&&r!==null){if("is_panic"in r&&"message"in r&&"error_code"in r)return{type:"QueryEngineError",body:r};if("EngineNotStarted"in r||"InteractiveTransactionMisrouted"in r||"InvalidRequestError"in r){let n=Object.values(r)[0].reason;return typeof n=="string"&&!["SchemaMissing","EngineVersionNotSupported"].includes(n)?{type:"UnknownJsonError",body:r}:{type:"DataProxyError",body:r}}}return{type:"UnknownJsonError",body:r}}catch{return t===""?{type:"EmptyError"}:{type:"UnknownTextError",body:t}}}async function Xt(e,t){if(e.ok)return;let r={clientVersion:t,response:e},n=await Zc(e);if(n.type==="QueryEngineError")throw new oe(n.body.message,{code:n.body.error_code,clientVersion:t});if(n.type==="DataProxyError"){if(n.body==="InternalDataProxyError")throw new ft(r,"Internal Data Proxy error");if("EngineNotStarted"in n.body){if(n.body.EngineNotStarted.reason==="SchemaMissing")return new je(r);if(n.body.EngineNotStarted.reason==="EngineVersionNotSupported")throw new Jt(r);if("EngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,logs:o}=n.body.EngineNotStarted.reason.EngineStartupError;throw new Qt(r,i,o)}if("KnownEngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,error_code:o}=n.body.EngineNotStarted.reason.KnownEngineStartupError;throw new Q(i,t,o)}if("HealthcheckTimeout"in n.body.EngineNotStarted.reason){let{logs:i}=n.body.EngineNotStarted.reason.HealthcheckTimeout;throw new Gt(r,i)}}if("InteractiveTransactionMisrouted"in n.body){let i={IDParseError:"Could not parse interactive transaction ID",NoQueryEngineFoundError:"Could not find Query Engine for the specified host and transaction ID",TransactionStartError:"Could not start interactive transaction"};throw new Kt(r,i[n.body.InteractiveTransactionMisrouted.reason])}if("InvalidRequestError"in n.body)throw new Ht(r,n.body.InvalidRequestError.reason)}if(e.status===401||e.status===403)throw new Yt(r,gt(Hn,n));if(e.status===404)return new zt(r,gt(Wn,n));if(e.status===429)throw new Zt(r,gt(zn,n));if(e.status===504)throw new Wt(r,gt(Jn,n));if(e.status>=500)throw new ft(r,gt(Kn,n));if(e.status>=400)throw new jt(r,gt(Qn,n))}function gt(e,t){return t.type==="EmptyError"?e:`${e}: ${JSON.stringify(t)}`}d();u();c();p();m();function Is(e){let t=Math.pow(2,e)*50,r=Math.ceil(Math.random()*t)-Math.ceil(t/2),n=t+r;return new Promise(i=>setTimeout(()=>i(n),n))}d();u();c();p();m();var Ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Os(e){let t=new TextEncoder().encode(e),r="",n=t.byteLength,i=n%3,o=n-i,s,a,l,f,g;for(let h=0;h>18,a=(g&258048)>>12,l=(g&4032)>>6,f=g&63,r+=Ce[s]+Ce[a]+Ce[l]+Ce[f];return i==1?(g=t[o],s=(g&252)>>2,a=(g&3)<<4,r+=Ce[s]+Ce[a]+"=="):i==2&&(g=t[o]<<8|t[o+1],s=(g&64512)>>10,a=(g&1008)>>4,l=(g&15)<<2,r+=Ce[s]+Ce[a]+Ce[l]+"="),r}d();u();c();p();m();function Ds(e){if(!!e.generator?.previewFeatures.some(r=>r.toLowerCase().includes("metrics")))throw new Q("The `metrics` preview feature is not yet available with Accelerate.\nPlease remove `metrics` from the `previewFeatures` in your schema.\n\nMore information about Accelerate: https://pris.ly/d/accelerate",e.clientVersion)}d();u();c();p();m();var Ms={"@prisma/debug":"workspace:*","@prisma/engines-version":"6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc","@prisma/fetch-engine":"workspace:*","@prisma/get-platform":"workspace:*"};d();u();c();p();m();d();u();c();p();m();var er=class extends ne{name="RequestError";code="P5010";constructor(t,r){super(`Cannot fetch data from service: -${t}`,L(r,!0))}};N(er,"RequestError");async function Ge(e,t,r=n=>n){let{clientVersion:n,...i}=t,o=r(fetch);try{return await o(e,i)}catch(s){let a=s.message??"Unknown error";throw new er(a,{clientVersion:n,cause:s})}}var ep=/^[1-9][0-9]*\.[0-9]+\.[0-9]+$/,_s=Y("prisma:client:dataproxyEngine");async function tp(e,t){let r=Ms["@prisma/engines-version"],n=t.clientVersion??"unknown";if(y.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION||globalThis.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION)return y.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION||globalThis.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION;if(e.includes("accelerate")&&n!=="0.0.0"&&n!=="in-memory")return n;let[i,o]=n?.split("-")??[];if(o===void 0&&ep.test(i))return i;if(o!==void 0||n==="0.0.0"||n==="in-memory"){let[s]=r.split("-")??[],[a,l,f]=s.split("."),g=rp(`<=${a}.${l}.${f}`),h=await Ge(g,{clientVersion:n});if(!h.ok)throw new Error(`Failed to fetch stable Prisma version, unpkg.com status ${h.status} ${h.statusText}, response body: ${await h.text()||""}`);let v=await h.text();_s("length of body fetched from unpkg.com",v.length);let S;try{S=JSON.parse(v)}catch(C){throw console.error("JSON.parse error: body fetched from unpkg.com: ",v),C}return S.version}throw new Ve("Only `major.minor.patch` versions are supported by Accelerate.",{clientVersion:n})}async function Ns(e,t){let r=await tp(e,t);return _s("version",r),r}function rp(e){return encodeURI(`https://unpkg.com/prisma@${e}/package.json`)}var Fs=3,tr=Y("prisma:client:dataproxyEngine"),ht=class{name="DataProxyEngine";inlineSchema;inlineSchemaHash;inlineDatasources;config;logEmitter;env;clientVersion;engineHash;tracingHelper;remoteClientVersion;host;headerBuilder;startPromise;protocol;constructor(t){Ds(t),this.config=t,this.env=t.env,this.inlineSchema=Os(t.inlineSchema),this.inlineDatasources=t.inlineDatasources,this.inlineSchemaHash=t.inlineSchemaHash,this.clientVersion=t.clientVersion,this.engineHash=t.engineVersion,this.logEmitter=t.logEmitter,this.tracingHelper=t.tracingHelper}apiKey(){return this.headerBuilder.apiKey}version(){return this.engineHash}async start(){this.startPromise!==void 0&&await this.startPromise,this.startPromise=(async()=>{let{apiKey:t,url:r}=this.getURLAndAPIKey();this.host=r.host,this.protocol=r.protocol,this.headerBuilder=new Kr({apiKey:t,tracingHelper:this.tracingHelper,logLevel:this.config.logLevel??"error",logQueries:this.config.logQueries,engineHash:this.engineHash}),this.remoteClientVersion=await Ns(this.host,this.config),tr("host",this.host),tr("protocol",this.protocol)})(),await this.startPromise}async stop(){}propagateResponseExtensions(t){t?.logs?.length&&t.logs.forEach(r=>{switch(r.level){case"debug":case"trace":tr(r);break;case"error":case"warn":case"info":{this.logEmitter.emit(r.level,{timestamp:Gn(r.timestamp),message:r.attributes.message??"",target:r.target});break}case"query":{this.logEmitter.emit("query",{query:r.attributes.query??"",timestamp:Gn(r.timestamp),duration:r.attributes.duration_ms??0,params:r.attributes.params??"",target:r.target});break}default:r.level}}),t?.traces?.length&&this.tracingHelper.dispatchEngineSpans(t.traces)}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the remote query engine')}async url(t){return await this.start(),`${this.protocol}//${this.host}/${this.remoteClientVersion}/${this.inlineSchemaHash}/${t}`}async uploadSchema(){let t={name:"schemaUpload",internal:!0};return this.tracingHelper.runInChildSpan(t,async()=>{let r=await Ge(await this.url("schema"),{method:"PUT",headers:this.headerBuilder.build(),body:this.inlineSchema,clientVersion:this.clientVersion});r.ok||tr("schema response status",r.status);let n=await Xt(r,this.clientVersion);if(n)throw this.logEmitter.emit("warn",{message:`Error while uploading schema: ${n.message}`,timestamp:new Date,target:""}),n;this.logEmitter.emit("info",{message:`Schema (re)uploaded (hash: ${this.inlineSchemaHash})`,timestamp:new Date,target:""})})}request(t,{traceparent:r,interactiveTransaction:n,customDataProxyFetch:i}){return this.requestInternal({body:t,traceparent:r,interactiveTransaction:n,customDataProxyFetch:i})}async requestBatch(t,{traceparent:r,transaction:n,customDataProxyFetch:i}){let o=n?.kind==="itx"?n.options:void 0,s=jr(t,n);return(await this.requestInternal({body:s,customDataProxyFetch:i,interactiveTransaction:o,traceparent:r})).map(l=>(l.extensions&&this.propagateResponseExtensions(l.extensions),"errors"in l?this.convertProtocolErrorsToClientError(l.errors):l))}requestInternal({body:t,traceparent:r,customDataProxyFetch:n,interactiveTransaction:i}){return this.withRetry({actionGerund:"querying",callback:async({logHttpCall:o})=>{let s=i?`${i.payload.endpoint}/graphql`:await this.url("graphql");o(s);let a=await Ge(s,{method:"POST",headers:this.headerBuilder.build({traceparent:r,transactionId:i?.id}),body:JSON.stringify(t),clientVersion:this.clientVersion},n);a.ok||tr("graphql response status",a.status),await this.handleError(await Xt(a,this.clientVersion));let l=await a.json();if(l.extensions&&this.propagateResponseExtensions(l.extensions),"errors"in l)throw this.convertProtocolErrorsToClientError(l.errors);return"batchResult"in l?l.batchResult:l}})}async transaction(t,r,n){let i={start:"starting",commit:"committing",rollback:"rolling back"};return this.withRetry({actionGerund:`${i[t]} transaction`,callback:async({logHttpCall:o})=>{if(t==="start"){let s=JSON.stringify({max_wait:n.maxWait,timeout:n.timeout,isolation_level:n.isolationLevel}),a=await this.url("transaction/start");o(a);let l=await Ge(a,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),body:s,clientVersion:this.clientVersion});await this.handleError(await Xt(l,this.clientVersion));let f=await l.json(),{extensions:g}=f;g&&this.propagateResponseExtensions(g);let h=f.id,v=f["data-proxy"].endpoint;return{id:h,payload:{endpoint:v}}}else{let s=`${n.payload.endpoint}/${t}`;o(s);let a=await Ge(s,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),clientVersion:this.clientVersion});await this.handleError(await Xt(a,this.clientVersion));let l=await a.json(),{extensions:f}=l;f&&this.propagateResponseExtensions(f);return}}})}getURLAndAPIKey(){return Ss({clientVersion:this.clientVersion,env:this.env,inlineDatasources:this.inlineDatasources,overrideDatasources:this.config.overrideDatasources})}metrics(){throw new Ve("Metrics are not yet supported for Accelerate",{clientVersion:this.clientVersion})}async withRetry(t){for(let r=0;;r++){let n=i=>{this.logEmitter.emit("info",{message:`Calling ${i} (n=${r})`,timestamp:new Date,target:""})};try{return await t.callback({logHttpCall:n})}catch(i){if(!(i instanceof ne)||!i.isRetryable)throw i;if(r>=Fs)throw i instanceof dt?i.cause:i;this.logEmitter.emit("warn",{message:`Attempt ${r+1}/${Fs} failed for ${t.actionGerund}: ${i.message??"(unknown)"}`,timestamp:new Date,target:""});let o=await Is(r);this.logEmitter.emit("warn",{message:`Retrying after ${o}ms`,timestamp:new Date,target:""})}}}async handleError(t){if(t instanceof je)throw await this.uploadSchema(),new dt({clientVersion:this.clientVersion,cause:t});if(t)throw t}convertProtocolErrorsToClientError(t){return t.length===1?Gr(t[0],this.config.clientVersion,this.config.activeProvider):new se(JSON.stringify(t),{clientVersion:this.config.clientVersion})}applyPendingMigrations(){throw new Error("Method not implemented.")}};d();u();c();p();m();function Ls({url:e,adapter:t,copyEngine:r,targetBuildType:n}){let i=[],o=[],s=R=>{i.push({_tag:"warning",value:R})},a=R=>{let D=R.join(` -`);o.push({_tag:"error",value:D})},l=!!e?.startsWith("prisma://"),f=fr(e),g=!!t,h=l||f;!g&&r&&h&&s(["recommend--no-engine","In production, we recommend using `prisma generate --no-engine` (See: `prisma generate --help`)"]);let v=h||!r;g&&(v||n==="edge")&&(n==="edge"?a(["Prisma Client was configured to use the `adapter` option but it was imported via its `/edge` endpoint.","Please either remove the `/edge` endpoint or remove the `adapter` from the Prisma Client constructor."]):r?l&&a(["Prisma Client was configured to use the `adapter` option but the URL was a `prisma://` URL.","Please either use the `prisma://` URL or remove the `adapter` from the Prisma Client constructor."]):a(["Prisma Client was configured to use the `adapter` option but `prisma generate` was run with `--no-engine`.","Please run `prisma generate` without `--no-engine` to be able to use Prisma Client with the adapter."]));let S={accelerate:v,ppg:f,driverAdapters:g};function C(R){return R.length>0}return C(o)?{ok:!1,diagnostics:{warnings:i,errors:o},isUsing:S}:{ok:!0,diagnostics:{warnings:i},isUsing:S}}function Us({copyEngine:e=!0},t){let r;try{r=mt({inlineDatasources:t.inlineDatasources,overrideDatasources:t.overrideDatasources,env:{...t.env,...y.env},clientVersion:t.clientVersion})}catch{}let{ok:n,isUsing:i,diagnostics:o}=Ls({url:r,adapter:t.adapter,copyEngine:e,targetBuildType:"edge"});for(let h of o.warnings)gr(...h.value);if(!n){let h=o.errors[0];throw new X(h.value,{clientVersion:t.clientVersion})}let s=Ye(t.generator),a=s==="library",l=s==="binary",f=s==="client",g=(i.accelerate||i.ppg)&&!i.driverAdapters;return i.accelerate?new ht(t):(i.driverAdapters,i.accelerate,new ht(t))}d();u();c();p();m();function Hr({generator:e}){return e?.previewFeatures??[]}d();u();c();p();m();var Bs=e=>({command:e});d();u();c();p();m();d();u();c();p();m();var qs=e=>e.strings.reduce((t,r,n)=>`${t}@P${n}${r}`);d();u();c();p();m();function yt(e){try{return $s(e,"fast")}catch{return $s(e,"slow")}}function $s(e,t){return JSON.stringify(e.map(r=>js(r,t)))}function js(e,t){if(Array.isArray(e))return e.map(r=>js(r,t));if(typeof e=="bigint")return{prisma__type:"bigint",prisma__value:e.toString()};if(tt(e))return{prisma__type:"date",prisma__value:e.toJSON()};if(ve.isDecimal(e))return{prisma__type:"decimal",prisma__value:e.toJSON()};if(w.Buffer.isBuffer(e))return{prisma__type:"bytes",prisma__value:e.toString("base64")};if(np(e))return{prisma__type:"bytes",prisma__value:w.Buffer.from(e).toString("base64")};if(ArrayBuffer.isView(e)){let{buffer:r,byteOffset:n,byteLength:i}=e;return{prisma__type:"bytes",prisma__value:w.Buffer.from(r,n,i).toString("base64")}}return typeof e=="object"&&t==="slow"?Gs(e):e}function np(e){return e instanceof ArrayBuffer||e instanceof SharedArrayBuffer?!0:typeof e=="object"&&e!==null?e[Symbol.toStringTag]==="ArrayBuffer"||e[Symbol.toStringTag]==="SharedArrayBuffer":!1}function Gs(e){if(typeof e!="object"||e===null)return e;if(typeof e.toJSON=="function")return e.toJSON();if(Array.isArray(e))return e.map(Vs);let t={};for(let r of Object.keys(e))t[r]=Vs(e[r]);return t}function Vs(e){return typeof e=="bigint"?e.toString():Gs(e)}var ip=/^(\s*alter\s)/i,Qs=Y("prisma:client");function Yn(e,t,r,n){if(!(e!=="postgresql"&&e!=="cockroachdb")&&r.length>0&&ip.exec(t))throw new Error(`Running ALTER using ${n} is not supported -Using the example below you can still execute your query with Prisma, but please note that it is vulnerable to SQL injection attacks and requires you to take care of input sanitization. - -Example: - await prisma.$executeRawUnsafe(\`ALTER USER prisma WITH PASSWORD '\${password}'\`) - -More Information: https://pris.ly/d/execute-raw -`)}var Zn=({clientMethod:e,activeProvider:t})=>r=>{let n="",i;if(Br(r))n=r.sql,i={values:yt(r.values),__prismaRawParameters__:!0};else if(Array.isArray(r)){let[o,...s]=r;n=o,i={values:yt(s||[]),__prismaRawParameters__:!0}}else switch(t){case"sqlite":case"mysql":{n=r.sql,i={values:yt(r.values),__prismaRawParameters__:!0};break}case"cockroachdb":case"postgresql":case"postgres":{n=r.text,i={values:yt(r.values),__prismaRawParameters__:!0};break}case"sqlserver":{n=qs(r),i={values:yt(r.values),__prismaRawParameters__:!0};break}default:throw new Error(`The ${t} provider does not support ${e}`)}return i?.values?Qs(`prisma.${e}(${n}, ${i.values})`):Qs(`prisma.${e}(${n})`),{query:n,parameters:i}},Js={requestArgsToMiddlewareArgs(e){return[e.strings,...e.values]},middlewareArgsToRequestArgs(e){let[t,...r]=e;return new le(t,r)}},Ws={requestArgsToMiddlewareArgs(e){return[e]},middlewareArgsToRequestArgs(e){return e[0]}};d();u();c();p();m();function Xn(e){return function(r,n){let i,o=(s=e)=>{try{return s===void 0||s?.kind==="itx"?i??=Ks(r(s)):Ks(r(s))}catch(a){return Promise.reject(a)}};return{get spec(){return n},then(s,a){return o().then(s,a)},catch(s){return o().catch(s)},finally(s){return o().finally(s)},requestTransaction(s){let a=o(s);return a.requestTransaction?a.requestTransaction(s):a},[Symbol.toStringTag]:"PrismaPromise"}}}function Ks(e){return typeof e.then=="function"?e:Promise.resolve(e)}d();u();c();p();m();var op=fn.split(".")[0],sp={isEnabled(){return!1},getTraceParent(){return"00-10-10-00"},dispatchEngineSpans(){},getActiveContext(){},runInChildSpan(e,t){return t()}},ei=class{isEnabled(){return this.getGlobalTracingHelper().isEnabled()}getTraceParent(t){return this.getGlobalTracingHelper().getTraceParent(t)}dispatchEngineSpans(t){return this.getGlobalTracingHelper().dispatchEngineSpans(t)}getActiveContext(){return this.getGlobalTracingHelper().getActiveContext()}runInChildSpan(t,r){return this.getGlobalTracingHelper().runInChildSpan(t,r)}getGlobalTracingHelper(){let t=globalThis[`V${op}_PRISMA_INSTRUMENTATION`],r=globalThis.PRISMA_INSTRUMENTATION;return t?.helper??r?.helper??sp}};function Hs(){return new ei}d();u();c();p();m();function zs(e,t=()=>{}){let r,n=new Promise(i=>r=i);return{then(i){return--e===0&&r(t()),i?.(n)}}}d();u();c();p();m();function Ys(e){return typeof e=="string"?e:e.reduce((t,r)=>{let n=typeof r=="string"?r:r.level;return n==="query"?t:t&&(r==="info"||t==="info")?"info":n},void 0)}d();u();c();p();m();var zr=class{_middlewares=[];use(t){this._middlewares.push(t)}get(t){return this._middlewares[t]}has(t){return!!this._middlewares[t]}length(){return this._middlewares.length}};d();u();c();p();m();var Xs=Le(no());d();u();c();p();m();function Yr(e){return typeof e.batchRequestIdx=="number"}d();u();c();p();m();function Zs(e){if(e.action!=="findUnique"&&e.action!=="findUniqueOrThrow")return;let t=[];return e.modelName&&t.push(e.modelName),e.query.arguments&&t.push(ti(e.query.arguments)),t.push(ti(e.query.selection)),t.join("")}function ti(e){return`(${Object.keys(e).sort().map(r=>{let n=e[r];return typeof n=="object"&&n!==null?`(${r} ${ti(n)})`:r}).join(" ")})`}d();u();c();p();m();var ap={aggregate:!1,aggregateRaw:!1,createMany:!0,createManyAndReturn:!0,createOne:!0,deleteMany:!0,deleteOne:!0,executeRaw:!0,findFirst:!1,findFirstOrThrow:!1,findMany:!1,findRaw:!1,findUnique:!1,findUniqueOrThrow:!1,groupBy:!1,queryRaw:!1,runCommandRaw:!0,updateMany:!0,updateManyAndReturn:!0,updateOne:!0,upsertOne:!0};function ri(e){return ap[e]}d();u();c();p();m();var Zr=class{constructor(t){this.options=t;this.batches={}}batches;tickActive=!1;request(t){let r=this.options.batchBy(t);return r?(this.batches[r]||(this.batches[r]=[],this.tickActive||(this.tickActive=!0,y.nextTick(()=>{this.dispatchBatches(),this.tickActive=!1}))),new Promise((n,i)=>{this.batches[r].push({request:t,resolve:n,reject:i})})):this.options.singleLoader(t)}dispatchBatches(){for(let t in this.batches){let r=this.batches[t];delete this.batches[t],r.length===1?this.options.singleLoader(r[0].request).then(n=>{n instanceof Error?r[0].reject(n):r[0].resolve(n)}).catch(n=>{r[0].reject(n)}):(r.sort((n,i)=>this.options.batchOrder(n.request,i.request)),this.options.batchLoader(r.map(n=>n.request)).then(n=>{if(n instanceof Error)for(let i=0;i{for(let i=0;iQe("bigint",r));case"bytes-array":return t.map(r=>Qe("bytes",r));case"decimal-array":return t.map(r=>Qe("decimal",r));case"datetime-array":return t.map(r=>Qe("datetime",r));case"date-array":return t.map(r=>Qe("date",r));case"time-array":return t.map(r=>Qe("time",r));default:return t}}function ni(e){let t=[],r=lp(e);for(let n=0;n{let{transaction:o,otelParentCtx:s}=n[0],a=n.map(h=>h.protocolQuery),l=this.client._tracingHelper.getTraceParent(s),f=n.some(h=>ri(h.protocolQuery.action));return(await this.client._engine.requestBatch(a,{traceparent:l,transaction:cp(o),containsWrite:f,customDataProxyFetch:i})).map((h,v)=>{if(h instanceof Error)return h;try{return this.mapQueryEngineResult(n[v],h)}catch(S){return S}})}),singleLoader:async n=>{let i=n.transaction?.kind==="itx"?ea(n.transaction):void 0,o=await this.client._engine.request(n.protocolQuery,{traceparent:this.client._tracingHelper.getTraceParent(),interactiveTransaction:i,isWrite:ri(n.protocolQuery.action),customDataProxyFetch:n.customDataProxyFetch});return this.mapQueryEngineResult(n,o)},batchBy:n=>n.transaction?.id?`transaction-${n.transaction.id}`:Zs(n.protocolQuery),batchOrder(n,i){return n.transaction?.kind==="batch"&&i.transaction?.kind==="batch"?n.transaction.index-i.transaction.index:0}})}async request(t){try{return await this.dataloader.request(t)}catch(r){let{clientMethod:n,callsite:i,transaction:o,args:s,modelName:a}=t;this.handleAndLogRequestError({error:r,clientMethod:n,callsite:i,transaction:o,args:s,modelName:a,globalOmit:t.globalOmit})}}mapQueryEngineResult({dataPath:t,unpacker:r},n){let i=n?.data,o=this.unpack(i,t,r);return y.env.PRISMA_CLIENT_GET_TIME?{data:o}:o}handleAndLogRequestError(t){try{this.handleRequestError(t)}catch(r){throw this.logEmitter&&this.logEmitter.emit("error",{message:r.message,target:t.clientMethod,timestamp:new Date}),r}}handleRequestError({error:t,clientMethod:r,callsite:n,transaction:i,args:o,modelName:s,globalOmit:a}){if(up(t),pp(t,i))throw t;if(t instanceof oe&&mp(t)){let f=ta(t.meta);Nr({args:o,errors:[f],callsite:n,errorFormat:this.client._errorFormat,originalMethod:r,clientVersion:this.client._clientVersion,globalOmit:a})}let l=t.message;if(n&&(l=Ar({callsite:n,originalMethod:r,isPanic:t.isPanic,showColors:this.client._errorFormat==="pretty",message:l})),l=this.sanitizeMessage(l),t.code){let f=s?{modelName:s,...t.meta}:t.meta;throw new oe(l,{code:t.code,clientVersion:this.client._clientVersion,meta:f,batchRequestIdx:t.batchRequestIdx})}else{if(t.isPanic)throw new Se(l,this.client._clientVersion);if(t instanceof se)throw new se(l,{clientVersion:this.client._clientVersion,batchRequestIdx:t.batchRequestIdx});if(t instanceof Q)throw new Q(l,this.client._clientVersion);if(t instanceof Se)throw new Se(l,this.client._clientVersion)}throw t.clientVersion=this.client._clientVersion,t}sanitizeMessage(t){return this.client._errorFormat&&this.client._errorFormat!=="pretty"?(0,Xs.default)(t):t}unpack(t,r,n){if(!t||(t.data&&(t=t.data),!t))return t;let i=Object.keys(t)[0],o=Object.values(t)[0],s=r.filter(f=>f!=="select"&&f!=="include"),a=Bn(o,s),l=i==="queryRaw"?ni(a):Ct(a);return n?n(l):l}get[Symbol.toStringTag](){return"RequestHandler"}};function cp(e){if(e){if(e.kind==="batch")return{kind:"batch",options:{isolationLevel:e.isolationLevel}};if(e.kind==="itx")return{kind:"itx",options:ea(e)};xe(e,"Unknown transaction kind")}}function ea(e){return{id:e.id,payload:e.payload}}function pp(e,t){return Yr(e)&&t?.kind==="batch"&&e.batchRequestIdx!==t.index}function mp(e){return e.code==="P2009"||e.code==="P2012"}function ta(e){if(e.kind==="Union")return{kind:"Union",errors:e.errors.map(ta)};if(Array.isArray(e.selectionPath)){let[,...t]=e.selectionPath;return{...e,selectionPath:t}}return e}d();u();c();p();m();var ra=Rs;d();u();c();p();m();var aa=Le(An());d();u();c();p();m();var B=class extends Error{constructor(t){super(t+` -Read more at https://pris.ly/d/client-constructor`),this.name="PrismaClientConstructorValidationError"}get[Symbol.toStringTag](){return"PrismaClientConstructorValidationError"}};N(B,"PrismaClientConstructorValidationError");var na=["datasources","datasourceUrl","errorFormat","adapter","log","transactionOptions","omit","__internal"],ia=["pretty","colorless","minimal"],oa=["info","query","warn","error"],dp={datasources:(e,{datasourceNames:t})=>{if(e){if(typeof e!="object"||Array.isArray(e))throw new B(`Invalid value ${JSON.stringify(e)} for "datasources" provided to PrismaClient constructor`);for(let[r,n]of Object.entries(e)){if(!t.includes(r)){let i=wt(r,t)||` Available datasources: ${t.join(", ")}`;throw new B(`Unknown datasource ${r} provided to PrismaClient constructor.${i}`)}if(typeof n!="object"||Array.isArray(n))throw new B(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(n&&typeof n=="object")for(let[i,o]of Object.entries(n)){if(i!=="url")throw new B(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(typeof o!="string")throw new B(`Invalid value ${JSON.stringify(o)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`)}}}},adapter:(e,t)=>{if(!e&&Ye(t.generator)==="client")throw new B('Using engine type "client" requires a driver adapter to be provided to PrismaClient constructor.');if(e===null)return;if(e===void 0)throw new B('"adapter" property must not be undefined, use null to conditionally disable driver adapters.');if(!Hr(t).includes("driverAdapters"))throw new B('"adapter" property can only be provided to PrismaClient constructor when "driverAdapters" preview feature is enabled.');if(Ye(t.generator)==="binary")throw new B('Cannot use a driver adapter with the "binary" Query Engine. Please use the "library" Query Engine.')},datasourceUrl:e=>{if(typeof e<"u"&&typeof e!="string")throw new B(`Invalid value ${JSON.stringify(e)} for "datasourceUrl" provided to PrismaClient constructor. -Expected string or undefined.`)},errorFormat:e=>{if(e){if(typeof e!="string")throw new B(`Invalid value ${JSON.stringify(e)} for "errorFormat" provided to PrismaClient constructor.`);if(!ia.includes(e)){let t=wt(e,ia);throw new B(`Invalid errorFormat ${e} provided to PrismaClient constructor.${t}`)}}},log:e=>{if(!e)return;if(!Array.isArray(e))throw new B(`Invalid value ${JSON.stringify(e)} for "log" provided to PrismaClient constructor.`);function t(r){if(typeof r=="string"&&!oa.includes(r)){let n=wt(r,oa);throw new B(`Invalid log level "${r}" provided to PrismaClient constructor.${n}`)}}for(let r of e){t(r);let n={level:t,emit:i=>{let o=["stdout","event"];if(!o.includes(i)){let s=wt(i,o);throw new B(`Invalid value ${JSON.stringify(i)} for "emit" in logLevel provided to PrismaClient constructor.${s}`)}}};if(r&&typeof r=="object")for(let[i,o]of Object.entries(r))if(n[i])n[i](o);else throw new B(`Invalid property ${i} for "log" provided to PrismaClient constructor`)}},transactionOptions:e=>{if(!e)return;let t=e.maxWait;if(t!=null&&t<=0)throw new B(`Invalid value ${t} for maxWait in "transactionOptions" provided to PrismaClient constructor. maxWait needs to be greater than 0`);let r=e.timeout;if(r!=null&&r<=0)throw new B(`Invalid value ${r} for timeout in "transactionOptions" provided to PrismaClient constructor. timeout needs to be greater than 0`)},omit:(e,t)=>{if(typeof e!="object")throw new B('"omit" option is expected to be an object.');if(e===null)throw new B('"omit" option can not be `null`');let r=[];for(let[n,i]of Object.entries(e)){let o=gp(n,t.runtimeDataModel);if(!o){r.push({kind:"UnknownModel",modelKey:n});continue}for(let[s,a]of Object.entries(i)){let l=o.fields.find(f=>f.name===s);if(!l){r.push({kind:"UnknownField",modelKey:n,fieldName:s});continue}if(l.relationName){r.push({kind:"RelationInOmit",modelKey:n,fieldName:s});continue}typeof a!="boolean"&&r.push({kind:"InvalidFieldValue",modelKey:n,fieldName:s})}}if(r.length>0)throw new B(hp(e,r))},__internal:e=>{if(!e)return;let t=["debug","engine","configOverride"];if(typeof e!="object")throw new B(`Invalid value ${JSON.stringify(e)} for "__internal" to PrismaClient constructor`);for(let[r]of Object.entries(e))if(!t.includes(r)){let n=wt(r,t);throw new B(`Invalid property ${JSON.stringify(r)} for "__internal" provided to PrismaClient constructor.${n}`)}}};function la(e,t){for(let[r,n]of Object.entries(e)){if(!na.includes(r)){let i=wt(r,na);throw new B(`Unknown property ${r} provided to PrismaClient constructor.${i}`)}dp[r](n,t)}if(e.datasourceUrl&&e.datasources)throw new B('Can not use "datasourceUrl" and "datasources" options at the same time. Pick one of them')}function wt(e,t){if(t.length===0||typeof e!="string")return"";let r=fp(e,t);return r?` Did you mean "${r}"?`:""}function fp(e,t){if(t.length===0)return null;let r=t.map(i=>({value:i,distance:(0,aa.default)(e,i)}));r.sort((i,o)=>i.distanceMe(n)===t);if(r)return e[r]}function hp(e,t){let r=lt(e);for(let o of t)switch(o.kind){case"UnknownModel":r.arguments.getField(o.modelKey)?.markAsError(),r.addErrorMessage(()=>`Unknown model name: ${o.modelKey}.`);break;case"UnknownField":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>`Model "${o.modelKey}" does not have a field named "${o.fieldName}".`);break;case"RelationInOmit":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>'Relations are already excluded by default and can not be specified in "omit".');break;case"InvalidFieldValue":r.arguments.getDeepFieldValue([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>"Omit field option value must be a boolean.");break}let{message:n,args:i}=_r(r,"colorless");return`Error validating "omit" option: - -${i} - -${n}`}d();u();c();p();m();function ua(e){return e.length===0?Promise.resolve([]):new Promise((t,r)=>{let n=new Array(e.length),i=null,o=!1,s=0,a=()=>{o||(s++,s===e.length&&(o=!0,i?r(i):t(n)))},l=f=>{o||(o=!0,r(f))};for(let f=0;f{n[f]=g,a()},g=>{if(!Yr(g)){l(g);return}g.batchRequestIdx===f?l(g):(i||(i=g),a())})})}var Fe=Y("prisma:client");typeof globalThis=="object"&&(globalThis.NODE_CLIENT=!0);var yp={requestArgsToMiddlewareArgs:e=>e,middlewareArgsToRequestArgs:e=>e},wp=Symbol.for("prisma.client.transaction.id"),Ep={id:0,nextId(){return++this.id}};function bp(e){class t{_originalClient=this;_runtimeDataModel;_requestHandler;_connectionPromise;_disconnectionPromise;_engineConfig;_accelerateEngineConfig;_clientVersion;_errorFormat;_tracingHelper;_middlewares=new zr;_previewFeatures;_activeProvider;_globalOmit;_extensions;_engine;_appliedParent;_createPrismaPromise=Xn();constructor(n){e=n?.__internal?.configOverride?.(e)??e,Cs(e),n&&la(n,e);let i=new qr().on("error",()=>{});this._extensions=ut.empty(),this._previewFeatures=Hr(e),this._clientVersion=e.clientVersion??ra,this._activeProvider=e.activeProvider,this._globalOmit=n?.omit,this._tracingHelper=Hs();let o=e.relativeEnvPaths&&{rootEnvPath:e.relativeEnvPaths.rootEnvPath&&pr.resolve(e.dirname,e.relativeEnvPaths.rootEnvPath),schemaEnvPath:e.relativeEnvPaths.schemaEnvPath&&pr.resolve(e.dirname,e.relativeEnvPaths.schemaEnvPath)},s;if(n?.adapter){s=n.adapter;let l=e.activeProvider==="postgresql"||e.activeProvider==="cockroachdb"?"postgres":e.activeProvider;if(s.provider!==l)throw new Q(`The Driver Adapter \`${s.adapterName}\`, based on \`${s.provider}\`, is not compatible with the provider \`${l}\` specified in the Prisma schema.`,this._clientVersion);if(n.datasources||n.datasourceUrl!==void 0)throw new Q("Custom datasource configuration is not compatible with Prisma Driver Adapters. Please define the database connection string directly in the Driver Adapter configuration.",this._clientVersion)}let a=e.injectableEdgeEnv?.();try{let l=n??{},f=l.__internal??{},g=f.debug===!0;g&&Y.enable("prisma:client");let h=pr.resolve(e.dirname,e.relativePath);Vi.existsSync(h)||(h=e.dirname),Fe("dirname",e.dirname),Fe("relativePath",e.relativePath),Fe("cwd",h);let v=f.engine||{};if(l.errorFormat?this._errorFormat=l.errorFormat:y.env.NODE_ENV==="production"?this._errorFormat="minimal":y.env.NO_COLOR?this._errorFormat="colorless":this._errorFormat="colorless",this._runtimeDataModel=e.runtimeDataModel,this._engineConfig={cwd:h,dirname:e.dirname,enableDebugLogs:g,allowTriggerPanic:v.allowTriggerPanic,prismaPath:v.binaryPath??void 0,engineEndpoint:v.endpoint,generator:e.generator,showColors:this._errorFormat==="pretty",logLevel:l.log&&Ys(l.log),logQueries:l.log&&!!(typeof l.log=="string"?l.log==="query":l.log.find(S=>typeof S=="string"?S==="query":S.level==="query")),env:a?.parsed??{},flags:[],engineWasm:e.engineWasm,compilerWasm:e.compilerWasm,clientVersion:e.clientVersion,engineVersion:e.engineVersion,previewFeatures:this._previewFeatures,activeProvider:e.activeProvider,inlineSchema:e.inlineSchema,overrideDatasources:As(l,e.datasourceNames),inlineDatasources:e.inlineDatasources,inlineSchemaHash:e.inlineSchemaHash,tracingHelper:this._tracingHelper,transactionOptions:{maxWait:l.transactionOptions?.maxWait??2e3,timeout:l.transactionOptions?.timeout??5e3,isolationLevel:l.transactionOptions?.isolationLevel},logEmitter:i,isBundled:e.isBundled,adapter:s},this._accelerateEngineConfig={...this._engineConfig,accelerateUtils:{resolveDatasourceUrl:mt,getBatchRequestPayload:jr,prismaGraphQLToJSError:Gr,PrismaClientUnknownRequestError:se,PrismaClientInitializationError:Q,PrismaClientKnownRequestError:oe,debug:Y("prisma:client:accelerateEngine"),engineVersion:pa.version,clientVersion:e.clientVersion}},Fe("clientVersion",e.clientVersion),this._engine=Us(e,this._engineConfig),this._requestHandler=new Xr(this,i),l.log)for(let S of l.log){let C=typeof S=="string"?S:S.emit==="stdout"?S.level:null;C&&this.$on(C,R=>{vt.log(`${vt.tags[C]??""}`,R.message||R.query)})}}catch(l){throw l.clientVersion=this._clientVersion,l}return this._appliedParent=$t(this)}get[Symbol.toStringTag](){return"PrismaClient"}$use(n){this._middlewares.use(n)}$on(n,i){return n==="beforeExit"?this._engine.onBeforeExit(i):n&&this._engineConfig.logEmitter.on(n,i),this}$connect(){try{return this._engine.start()}catch(n){throw n.clientVersion=this._clientVersion,n}}async $disconnect(){try{await this._engine.stop()}catch(n){throw n.clientVersion=this._clientVersion,n}finally{qi()}}$executeRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"executeRaw",args:o,transaction:n,clientMethod:i,argsMapper:Zn({clientMethod:i,activeProvider:a}),callsite:Ne(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$executeRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0){let[s,a]=ca(n,i);return Yn(this._activeProvider,s.text,s.values,Array.isArray(n)?"prisma.$executeRaw``":"prisma.$executeRaw(sql``)"),this.$executeRawInternal(o,"$executeRaw",s,a)}throw new X("`$executeRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#executeraw\n",{clientVersion:this._clientVersion})})}$executeRawUnsafe(n,...i){return this._createPrismaPromise(o=>(Yn(this._activeProvider,n,i,"prisma.$executeRawUnsafe(, [...values])"),this.$executeRawInternal(o,"$executeRawUnsafe",[n,...i])))}$runCommandRaw(n){if(e.activeProvider!=="mongodb")throw new X(`The ${e.activeProvider} provider does not support $runCommandRaw. Use the mongodb provider.`,{clientVersion:this._clientVersion});return this._createPrismaPromise(i=>this._request({args:n,clientMethod:"$runCommandRaw",dataPath:[],action:"runCommandRaw",argsMapper:Bs,callsite:Ne(this._errorFormat),transaction:i}))}async $queryRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"queryRaw",args:o,transaction:n,clientMethod:i,argsMapper:Zn({clientMethod:i,activeProvider:a}),callsite:Ne(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$queryRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0)return this.$queryRawInternal(o,"$queryRaw",...ca(n,i));throw new X("`$queryRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#queryraw\n",{clientVersion:this._clientVersion})})}$queryRawTyped(n){return this._createPrismaPromise(i=>{if(!this._hasPreviewFlag("typedSql"))throw new X("`typedSql` preview feature must be enabled in order to access $queryRawTyped API",{clientVersion:this._clientVersion});return this.$queryRawInternal(i,"$queryRawTyped",n)})}$queryRawUnsafe(n,...i){return this._createPrismaPromise(o=>this.$queryRawInternal(o,"$queryRawUnsafe",[n,...i]))}_transactionWithArray({promises:n,options:i}){let o=Ep.nextId(),s=zs(n.length),a=n.map((l,f)=>{if(l?.[Symbol.toStringTag]!=="PrismaPromise")throw new Error("All elements of the array need to be Prisma Client promises. Hint: Please make sure you are not awaiting the Prisma client calls you intended to pass in the $transaction function.");let g=i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel,h={kind:"batch",id:o,index:f,isolationLevel:g,lock:s};return l.requestTransaction?.(h)??l});return ua(a)}async _transactionWithCallback({callback:n,options:i}){let o={traceparent:this._tracingHelper.getTraceParent()},s={maxWait:i?.maxWait??this._engineConfig.transactionOptions.maxWait,timeout:i?.timeout??this._engineConfig.transactionOptions.timeout,isolationLevel:i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel},a=await this._engine.transaction("start",o,s),l;try{let f={kind:"itx",...a};l=await n(this._createItxClient(f)),await this._engine.transaction("commit",o,a)}catch(f){throw await this._engine.transaction("rollback",o,a).catch(()=>{}),f}return l}_createItxClient(n){return pe($t(pe(cs(this),[ee("_appliedParent",()=>this._appliedParent._createItxClient(n)),ee("_createPrismaPromise",()=>Xn(n)),ee(wp,()=>n.id)])),[ct(gs)])}$transaction(n,i){let o;typeof n=="function"?this._engineConfig.adapter?.adapterName==="@prisma/adapter-d1"?o=()=>{throw new Error("Cloudflare D1 does not support interactive transactions. We recommend you to refactor your queries with that limitation in mind, and use batch transactions with `prisma.$transactions([])` where applicable.")}:o=()=>this._transactionWithCallback({callback:n,options:i}):o=()=>this._transactionWithArray({promises:n,options:i});let s={name:"transaction",attributes:{method:"$transaction"}};return this._tracingHelper.runInChildSpan(s,o)}_request(n){n.otelParentCtx=this._tracingHelper.getActiveContext();let i=n.middlewareArgsMapper??yp,o={args:i.requestArgsToMiddlewareArgs(n.args),dataPath:n.dataPath,runInTransaction:!!n.transaction,action:n.action,model:n.model},s={middleware:{name:"middleware",middleware:!0,attributes:{method:"$use"},active:!1},operation:{name:"operation",attributes:{method:o.action,model:o.model,name:o.model?`${o.model}.${o.action}`:o.action}}},a=-1,l=async f=>{let g=this._middlewares.get(++a);if(g)return this._tracingHelper.runInChildSpan(s.middleware,D=>g(f,M=>(D?.end(),l(M))));let{runInTransaction:h,args:v,...S}=f,C={...n,...S};v&&(C.args=i.middlewareArgsToRequestArgs(v)),n.transaction!==void 0&&h===!1&&delete C.transaction;let R=await Es(this,C);return C.model?fs({result:R,modelName:C.model,args:C.args,extensions:this._extensions,runtimeDataModel:this._runtimeDataModel,globalOmit:this._globalOmit}):R};return this._tracingHelper.runInChildSpan(s.operation,()=>l(o))}async _executeRequest({args:n,clientMethod:i,dataPath:o,callsite:s,action:a,model:l,argsMapper:f,transaction:g,unpacker:h,otelParentCtx:v,customDataProxyFetch:S}){try{n=f?f(n):n;let C={name:"serialize"},R=this._tracingHelper.runInChildSpan(C,()=>_n({modelName:l,runtimeDataModel:this._runtimeDataModel,action:a,args:n,clientMethod:i,callsite:s,extensions:this._extensions,errorFormat:this._errorFormat,clientVersion:this._clientVersion,previewFeatures:this._previewFeatures,globalOmit:this._globalOmit}));return Y.enabled("prisma:client")&&(Fe("Prisma Client call:"),Fe(`prisma.${i}(${es(n)})`),Fe("Generated request:"),Fe(JSON.stringify(R,null,2)+` -`)),g?.kind==="batch"&&await g.lock,this._requestHandler.request({protocolQuery:R,modelName:l,action:a,clientMethod:i,dataPath:o,callsite:s,args:n,extensions:this._extensions,transaction:g,unpacker:h,otelParentCtx:v,otelChildCtx:this._tracingHelper.getActiveContext(),globalOmit:this._globalOmit,customDataProxyFetch:S})}catch(C){throw C.clientVersion=this._clientVersion,C}}$metrics=new Ut(this);_hasPreviewFlag(n){return!!this._engineConfig.previewFeatures?.includes(n)}$applyPendingMigrations(){return this._engine.applyPendingMigrations()}$extends=ps}return t}function ca(e,t){return xp(e)?[new le(e,t),Js]:[e,Ws]}function xp(e){return Array.isArray(e)&&Array.isArray(e.raw)}d();u();c();p();m();var Pp=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function vp(e){return new Proxy(e,{get(t,r){if(r in t)return t[r];if(!Pp.has(r))throw new TypeError(`Invalid enum value: ${String(r)}`)}})}d();u();c();p();m();var export_warnEnvConflicts=void 0;export{Cr as DMMF,Y as Debug,ve as Decimal,Ci as Extensions,Ut as MetricsClient,Q as PrismaClientInitializationError,oe as PrismaClientKnownRequestError,Se as PrismaClientRustPanicError,se as PrismaClientUnknownRequestError,X as PrismaClientValidationError,Ri as Public,le as Sql,tc as createParam,pc as defineDmmfProperty,Ct as deserializeJsonResponse,ni as deserializeRawResult,bu as dmmfToRuntimeDataModel,gc as empty,bp as getPrismaClient,jn as getRuntime,fc as join,vp as makeStrictEnum,dc as makeTypedQueryFactory,kn as objectEnumValues,zo as raw,_n as serializeJsonQuery,Dn as skip,Yo as sqltag,export_warnEnvConflicts as warnEnvConflicts,gr as warnOnce}; -//# sourceMappingURL=edge-esm.js.map diff --git a/prisma/generated/client/runtime/edge.js b/prisma/generated/client/runtime/edge.js deleted file mode 100644 index b6f99a3..0000000 --- a/prisma/generated/client/runtime/edge.js +++ /dev/null @@ -1,34 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! -/* eslint-disable */ -"use strict";var Pa=Object.create;var lr=Object.defineProperty;var va=Object.getOwnPropertyDescriptor;var Ta=Object.getOwnPropertyNames;var Ca=Object.getPrototypeOf,Aa=Object.prototype.hasOwnProperty;var me=(e,t)=>()=>(e&&(t=e(e=0)),t);var Re=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Pt=(e,t)=>{for(var r in t)lr(e,r,{get:t[r],enumerable:!0})},li=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ta(t))!Aa.call(e,i)&&i!==r&&lr(e,i,{get:()=>t[i],enumerable:!(n=va(t,i))||n.enumerable});return e};var Le=(e,t,r)=>(r=e!=null?Pa(Ca(e)):{},li(t||!e||!e.__esModule?lr(r,"default",{value:e,enumerable:!0}):r,e)),Ra=e=>li(lr({},"__esModule",{value:!0}),e);var y,u=me(()=>{"use strict";y={nextTick:(e,...t)=>{setTimeout(()=>{e(...t)},0)},env:{},version:"",cwd:()=>"/",stderr:{},argv:["/bin/node"],pid:1e4}});var b,c=me(()=>{"use strict";b=globalThis.performance??(()=>{let e=Date.now();return{now:()=>Date.now()-e}})()});var E,p=me(()=>{"use strict";E=()=>{};E.prototype=E});var m=me(()=>{"use strict"});var Ri=Re(He=>{"use strict";d();u();c();p();m();var di=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Sa=di(e=>{"use strict";e.byteLength=l,e.toByteArray=g,e.fromByteArray=S;var t=[],r=[],n=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(o=0,s=i.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var D=C.indexOf("=");D===-1&&(D=R);var M=D===R?0:4-D%4;return[D,M]}function l(C){var R=a(C),D=R[0],M=R[1];return(D+M)*3/4-M}function f(C,R,D){return(R+D)*3/4-D}function g(C){var R,D=a(C),M=D[0],U=D[1],k=new n(f(C,M,U)),F=0,ae=U>0?M-4:M,G;for(G=0;G>16&255,k[F++]=R>>8&255,k[F++]=R&255;return U===2&&(R=r[C.charCodeAt(G)]<<2|r[C.charCodeAt(G+1)]>>4,k[F++]=R&255),U===1&&(R=r[C.charCodeAt(G)]<<10|r[C.charCodeAt(G+1)]<<4|r[C.charCodeAt(G+2)]>>2,k[F++]=R>>8&255,k[F++]=R&255),k}function h(C){return t[C>>18&63]+t[C>>12&63]+t[C>>6&63]+t[C&63]}function v(C,R,D){for(var M,U=[],k=R;kae?ae:F+k));return M===1?(R=C[D-1],U.push(t[R>>2]+t[R<<4&63]+"==")):M===2&&(R=(C[D-2]<<8)+C[D-1],U.push(t[R>>10]+t[R>>4&63]+t[R<<2&63]+"=")),U.join("")}}),ka=di(e=>{e.read=function(t,r,n,i,o){var s,a,l=o*8-i-1,f=(1<>1,h=-7,v=n?o-1:0,S=n?-1:1,C=t[r+v];for(v+=S,s=C&(1<<-h)-1,C>>=-h,h+=l;h>0;s=s*256+t[r+v],v+=S,h-=8);for(a=s&(1<<-h)-1,s>>=-h,h+=i;h>0;a=a*256+t[r+v],v+=S,h-=8);if(s===0)s=1-g;else{if(s===f)return a?NaN:(C?-1:1)*(1/0);a=a+Math.pow(2,i),s=s-g}return(C?-1:1)*a*Math.pow(2,s-i)},e.write=function(t,r,n,i,o,s){var a,l,f,g=s*8-o-1,h=(1<>1,S=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=i?0:s-1,R=i?1:-1,D=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,a=h):(a=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-a))<1&&(a--,f*=2),a+v>=1?r+=S/f:r+=S*Math.pow(2,1-v),r*f>=2&&(a++,f/=2),a+v>=h?(l=0,a=h):a+v>=1?(l=(r*f-1)*Math.pow(2,o),a=a+v):(l=r*Math.pow(2,v-1)*Math.pow(2,o),a=0));o>=8;t[n+C]=l&255,C+=R,l/=256,o-=8);for(a=a<0;t[n+C]=a&255,C+=R,a/=256,g-=8);t[n+C-R]|=D*128}}),cn=Sa(),We=ka(),ui=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;He.Buffer=T;He.SlowBuffer=Na;He.INSPECT_MAX_BYTES=50;var ur=2147483647;He.kMaxLength=ur;T.TYPED_ARRAY_SUPPORT=Ia();!T.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Ia(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(T.prototype,"parent",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.buffer}});Object.defineProperty(T.prototype,"offset",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.byteOffset}});function xe(e){if(e>ur)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,T.prototype),t}function T(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return dn(e)}return fi(e,t,r)}T.poolSize=8192;function fi(e,t,r){if(typeof e=="string")return Da(e,t);if(ArrayBuffer.isView(e))return Ma(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(de(e,ArrayBuffer)||e&&de(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(de(e,SharedArrayBuffer)||e&&de(e.buffer,SharedArrayBuffer)))return hi(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return T.from(n,t,r);let i=_a(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return T.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}T.from=function(e,t,r){return fi(e,t,r)};Object.setPrototypeOf(T.prototype,Uint8Array.prototype);Object.setPrototypeOf(T,Uint8Array);function gi(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Oa(e,t,r){return gi(e),e<=0?xe(e):t!==void 0?typeof r=="string"?xe(e).fill(t,r):xe(e).fill(t):xe(e)}T.alloc=function(e,t,r){return Oa(e,t,r)};function dn(e){return gi(e),xe(e<0?0:fn(e)|0)}T.allocUnsafe=function(e){return dn(e)};T.allocUnsafeSlow=function(e){return dn(e)};function Da(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!T.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=yi(e,t)|0,n=xe(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function pn(e){let t=e.length<0?0:fn(e.length)|0,r=xe(t);for(let n=0;n=ur)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ur.toString(16)+" bytes");return e|0}function Na(e){return+e!=e&&(e=0),T.alloc(+e)}T.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==T.prototype};T.compare=function(e,t){if(de(e,Uint8Array)&&(e=T.from(e,e.offset,e.byteLength)),de(t,Uint8Array)&&(t=T.from(t,t.offset,t.byteLength)),!T.isBuffer(e)||!T.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);in.length?(T.isBuffer(o)||(o=T.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(T.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function yi(e,t){if(T.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||de(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return mn(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Ai(e).length;default:if(i)return n?-1:mn(e).length;t=(""+t).toLowerCase(),i=!0}}T.byteLength=yi;function Fa(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Ja(this,t,r);case"utf8":case"utf-8":return Ei(this,t,r);case"ascii":return Ga(this,t,r);case"latin1":case"binary":return Qa(this,t,r);case"base64":return Va(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Wa(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}T.prototype._isBuffer=!0;function Ue(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}T.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(e+=" ... "),""};ui&&(T.prototype[ui]=T.prototype.inspect);T.prototype.compare=function(e,t,r,n,i){if(de(e,Uint8Array)&&(e=T.from(e,e.offset,e.byteLength)),!T.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),r===void 0&&(r=e?e.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,s=r-t,a=Math.min(o,s),l=this.slice(n,i),f=e.slice(t,r);for(let g=0;g2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,hn(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=T.from(t,n)),T.isBuffer(t))return t.length===0?-1:ci(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):ci(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function ci(e,t,r,n,i){let o=1,s=e.length,a=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,s/=2,a/=2,r/=2}function l(g,h){return o===1?g[h]:g.readUInt16BE(h*o)}let f;if(i){let g=-1;for(f=r;fs&&(r=s-a),f=r;f>=0;f--){let g=!0;for(let h=0;hi&&(n=i)):n=i;let o=t.length;n>o/2&&(n=o/2);let s;for(s=0;s>>0,isFinite(r)?(r=r>>>0,n===void 0&&(n="utf8")):(n=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((r===void 0||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return La(this,e,t,r);case"utf8":case"utf-8":return Ua(this,e,t,r);case"ascii":case"latin1":case"binary":return Ba(this,e,t,r);case"base64":return qa(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $a(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Va(e,t,r){return t===0&&r===e.length?cn.fromByteArray(e):cn.fromByteArray(e.slice(t,r))}function Ei(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i239?4:o>223?3:o>191?2:1;if(i+a<=r){let l,f,g,h;switch(a){case 1:o<128&&(s=o);break;case 2:l=e[i+1],(l&192)===128&&(h=(o&31)<<6|l&63,h>127&&(s=h));break;case 3:l=e[i+1],f=e[i+2],(l&192)===128&&(f&192)===128&&(h=(o&15)<<12|(l&63)<<6|f&63,h>2047&&(h<55296||h>57343)&&(s=h));break;case 4:l=e[i+1],f=e[i+2],g=e[i+3],(l&192)===128&&(f&192)===128&&(g&192)===128&&(h=(o&15)<<18|(l&63)<<12|(f&63)<<6|g&63,h>65535&&h<1114112&&(s=h))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=a}return ja(n)}var pi=4096;function ja(e){let t=e.length;if(t<=pi)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let o=t;or&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),tr)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function(e,t,r){e=e>>>0,t=t>>>0,r||W(e,t,this.length);let n=this[e],i=1,o=0;for(;++o>>0,t=t>>>0,r||W(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n};T.prototype.readUint8=T.prototype.readUInt8=function(e,t){return e=e>>>0,t||W(e,1,this.length),this[e]};T.prototype.readUint16LE=T.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||W(e,2,this.length),this[e]|this[e+1]<<8};T.prototype.readUint16BE=T.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||W(e,2,this.length),this[e]<<8|this[e+1]};T.prototype.readUint32LE=T.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||W(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};T.prototype.readUint32BE=T.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||W(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};T.prototype.readBigUInt64LE=Se(function(e){e=e>>>0,Ke(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&vt(e,this.length-8);let n=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+r*2**24;return BigInt(n)+(BigInt(i)<>>0,Ke(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&vt(e,this.length-8);let n=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+r;return(BigInt(n)<>>0,t=t>>>0,r||W(e,t,this.length);let n=this[e],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};T.prototype.readIntBE=function(e,t,r){e=e>>>0,t=t>>>0,r||W(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};T.prototype.readInt8=function(e,t){return e=e>>>0,t||W(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};T.prototype.readInt16LE=function(e,t){e=e>>>0,t||W(e,2,this.length);let r=this[e]|this[e+1]<<8;return r&32768?r|4294901760:r};T.prototype.readInt16BE=function(e,t){e=e>>>0,t||W(e,2,this.length);let r=this[e+1]|this[e]<<8;return r&32768?r|4294901760:r};T.prototype.readInt32LE=function(e,t){return e=e>>>0,t||W(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};T.prototype.readInt32BE=function(e,t){return e=e>>>0,t||W(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};T.prototype.readBigInt64LE=Se(function(e){e=e>>>0,Ke(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&vt(e,this.length-8);let n=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(r<<24);return(BigInt(n)<>>0,Ke(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&vt(e,this.length-8);let n=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(n)<>>0,t||W(e,4,this.length),We.read(this,e,!0,23,4)};T.prototype.readFloatBE=function(e,t){return e=e>>>0,t||W(e,4,this.length),We.read(this,e,!1,23,4)};T.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||W(e,8,this.length),We.read(this,e,!0,52,8)};T.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||W(e,8,this.length),We.read(this,e,!1,52,8)};function te(e,t,r,n,i,o){if(!T.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t=t>>>0,r=r>>>0,!n){let s=Math.pow(2,8*r)-1;te(this,e,t,r,s,0)}let i=1,o=0;for(this[t]=e&255;++o>>0,r=r>>>0,!n){let s=Math.pow(2,8*r)-1;te(this,e,t,r,s,0)}let i=r-1,o=1;for(this[t+i]=e&255;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r};T.prototype.writeUint8=T.prototype.writeUInt8=function(e,t,r){return e=+e,t=t>>>0,r||te(this,e,t,1,255,0),this[t]=e&255,t+1};T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||te(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||te(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||te(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||te(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function bi(e,t,r,n,i){Ci(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,r}function xi(e,t,r,n,i){Ci(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o=o>>8,e[r+6]=o,o=o>>8,e[r+5]=o,o=o>>8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s=s>>8,e[r+2]=s,s=s>>8,e[r+1]=s,s=s>>8,e[r]=s,r+8}T.prototype.writeBigUInt64LE=Se(function(e,t=0){return bi(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});T.prototype.writeBigUInt64BE=Se(function(e,t=0){return xi(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});T.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t=t>>>0,!n){let a=Math.pow(2,8*r-1);te(this,e,t,r,a-1,-a)}let i=0,o=1,s=0;for(this[t]=e&255;++i>0)-s&255;return t+r};T.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t=t>>>0,!n){let a=Math.pow(2,8*r-1);te(this,e,t,r,a-1,-a)}let i=r-1,o=1,s=0;for(this[t+i]=e&255;--i>=0&&(o*=256);)e<0&&s===0&&this[t+i+1]!==0&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r};T.prototype.writeInt8=function(e,t,r){return e=+e,t=t>>>0,r||te(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};T.prototype.writeInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||te(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};T.prototype.writeInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||te(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};T.prototype.writeInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||te(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};T.prototype.writeInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||te(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};T.prototype.writeBigInt64LE=Se(function(e,t=0){return bi(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});T.prototype.writeBigInt64BE=Se(function(e,t=0){return xi(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Pi(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function vi(e,t,r,n,i){return t=+t,r=r>>>0,i||Pi(e,t,r,4,34028234663852886e22,-34028234663852886e22),We.write(e,t,r,n,23,4),r+4}T.prototype.writeFloatLE=function(e,t,r){return vi(this,e,t,!0,r)};T.prototype.writeFloatBE=function(e,t,r){return vi(this,e,t,!1,r)};function Ti(e,t,r,n,i){return t=+t,r=r>>>0,i||Pi(e,t,r,8,17976931348623157e292,-17976931348623157e292),We.write(e,t,r,n,52,8),r+8}T.prototype.writeDoubleLE=function(e,t,r){return Ti(this,e,t,!0,r)};T.prototype.writeDoubleBE=function(e,t,r){return Ti(this,e,t,!1,r)};T.prototype.copy=function(e,t,r,n){if(!T.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),!n&&n!==0&&(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>0,r=r===void 0?this.length:r>>>0,e||(e=0);let i;if(typeof e=="number")for(i=t;i2**32?i=mi(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=mi(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function mi(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Ka(e,t,r){Ke(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&vt(t,e.length-(r+1))}function Ci(e,t,r,n,i,o){if(e>r||e3?t===0||t===BigInt(0)?a=`>= 0${s} and < 2${s} ** ${(o+1)*8}${s}`:a=`>= -(2${s} ** ${(o+1)*8-1}${s}) and < 2 ** ${(o+1)*8-1}${s}`:a=`>= ${t}${s} and <= ${r}${s}`,new Je.ERR_OUT_OF_RANGE("value",a,e)}Ka(n,i,o)}function Ke(e,t){if(typeof e!="number")throw new Je.ERR_INVALID_ARG_TYPE(t,"number",e)}function vt(e,t,r){throw Math.floor(e)!==e?(Ke(e,r),new Je.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new Je.ERR_BUFFER_OUT_OF_BOUNDS:new Je.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var Ha=/[^+/0-9A-Za-z-_]/g;function za(e){if(e=e.split("=")[0],e=e.trim().replace(Ha,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function mn(e,t){t=t||1/0;let r,n=e.length,i=null,o=[];for(let s=0;s55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function Ya(e){let t=[];for(let r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function Ai(e){return cn.toByteArray(za(e))}function cr(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function de(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function hn(e){return e!==e}var Xa=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function Se(e){return typeof BigInt>"u"?el:e}function el(){throw new Error("BigInt not supported")}});var w,d=me(()=>{"use strict";w=Le(Ri())});function sl(){return!1}function Gi(){return{dev:0,ino:0,mode:0,nlink:0,uid:0,gid:0,rdev:0,size:0,blksize:0,blocks:0,atimeMs:0,mtimeMs:0,ctimeMs:0,birthtimeMs:0,atime:new Date,mtime:new Date,ctime:new Date,birthtime:new Date}}function al(){return Gi()}function ll(){return[]}function ul(e){e(null,[])}function cl(){return""}function pl(){return""}function ml(){}function dl(){}function fl(){}function gl(){}function hl(){}function yl(){}var wl,El,Qi,Ji=me(()=>{"use strict";d();u();c();p();m();wl={},El={existsSync:sl,lstatSync:Gi,statSync:al,readdirSync:ll,readdir:ul,readlinkSync:cl,realpathSync:pl,chmodSync:ml,renameSync:dl,mkdirSync:fl,rmdirSync:gl,rmSync:hl,unlinkSync:yl,promises:wl},Qi=El});function bl(...e){return e.join("/")}function xl(...e){return e.join("/")}function Pl(e){let t=Wi(e),r=Ki(e),[n,i]=t.split(".");return{root:"/",dir:r,base:t,ext:i,name:n}}function Wi(e){let t=e.split("/");return t[t.length-1]}function Ki(e){return e.split("/").slice(0,-1).join("/")}var Hi,vl,Tl,fr,zi=me(()=>{"use strict";d();u();c();p();m();Hi="/",vl={sep:Hi},Tl={basename:Wi,dirname:Ki,join:xl,parse:Pl,posix:vl,resolve:bl,sep:Hi},fr=Tl});var Yi=Re((fd,Cl)=>{Cl.exports={name:"@prisma/internals",version:"6.12.0",description:"This package is intended for Prisma's internal use",main:"dist/index.js",types:"dist/index.d.ts",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/internals"},homepage:"https://www.prisma.io",author:"Tim Suchanek ",bugs:"https://github.com/prisma/prisma/issues",license:"Apache-2.0",scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",test:"dotenv -e ../../.db.env -- jest --silent",prepublishOnly:"pnpm run build"},files:["README.md","dist","!**/libquery_engine*","!dist/get-generators/engines/*","scripts"],devDependencies:{"@babel/helper-validator-identifier":"7.25.9","@opentelemetry/api":"1.9.0","@swc/core":"1.11.5","@swc/jest":"0.2.37","@types/babel__helper-validator-identifier":"7.15.2","@types/jest":"29.5.14","@types/node":"18.19.76","@types/resolve":"1.20.6",archiver:"6.0.2","checkpoint-client":"1.1.33","cli-truncate":"4.0.0",dotenv:"16.5.0",esbuild:"0.25.5","escape-string-regexp":"5.0.0",execa:"5.1.1","fast-glob":"3.3.3","find-up":"7.0.0","fp-ts":"2.16.9","fs-extra":"11.3.0","fs-jetpack":"5.1.0","global-dirs":"4.0.0",globby:"11.1.0","identifier-regex":"1.0.0","indent-string":"4.0.0","is-windows":"1.0.2","is-wsl":"3.1.0",jest:"29.7.0","jest-junit":"16.0.0",kleur:"4.1.5","mock-stdin":"1.0.0","new-github-issue-url":"0.2.1","node-fetch":"3.3.2","npm-packlist":"5.1.3",open:"7.4.2","p-map":"4.0.0","read-package-up":"11.0.0",resolve:"1.22.10","string-width":"7.2.0","strip-ansi":"6.0.1","strip-indent":"4.0.0","temp-dir":"2.0.0",tempy:"1.0.1","terminal-link":"4.0.0",tmp:"0.2.3","ts-node":"10.9.2","ts-pattern":"5.6.2","ts-toolbelt":"9.6.0",typescript:"5.4.5",yarn:"1.22.22"},dependencies:{"@prisma/config":"workspace:*","@prisma/debug":"workspace:*","@prisma/dmmf":"workspace:*","@prisma/driver-adapter-utils":"workspace:*","@prisma/engines":"workspace:*","@prisma/fetch-engine":"workspace:*","@prisma/generator":"workspace:*","@prisma/generator-helper":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/prisma-schema-wasm":"6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc","@prisma/schema-engine-wasm":"6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc","@prisma/schema-files-loader":"workspace:*",arg:"5.0.2",prompts:"2.4.2"},peerDependencies:{typescript:">=5.1.0"},peerDependenciesMeta:{typescript:{optional:!0}},sideEffects:!1}});var Pn=Re((Rd,kl)=>{kl.exports={name:"@prisma/engines-version",version:"6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek ",prisma:{enginesVersion:"8047c96bbd92db98a2abc7c9323ce77c02c89dbc"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.76",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var Zi=Re(gr=>{"use strict";d();u();c();p();m();Object.defineProperty(gr,"__esModule",{value:!0});gr.enginesVersion=void 0;gr.enginesVersion=Pn().prisma.enginesVersion});var to=Re((qd,eo)=>{"use strict";d();u();c();p();m();eo.exports=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof r.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(t===0)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}});var io=Re((Zd,no)=>{"use strict";d();u();c();p();m();no.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var so=Re((of,oo)=>{"use strict";d();u();c();p();m();var _l=io();oo.exports=e=>typeof e=="string"?e.replace(_l(),""):e});var Mn=Re((Wy,Ao)=>{"use strict";d();u();c();p();m();Ao.exports=function(){function e(t,r,n,i,o){return tn?n+1:t+1:i===o?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;s{"use strict";d();u();c();p();m()});var Do=me(()=>{"use strict";d();u();c();p();m()});var Gr,rs=me(()=>{"use strict";d();u();c();p();m();Gr=class{events={};on(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),this}emit(t,...r){return this.events[t]?(this.events[t].forEach(n=>{n(...r)}),!0):!1}}});var Ap={};Pt(Ap,{DMMF:()=>Ot,Debug:()=>H,Decimal:()=>he,Extensions:()=>yn,MetricsClient:()=>pt,PrismaClientInitializationError:()=>Q,PrismaClientKnownRequestError:()=>re,PrismaClientRustPanicError:()=>ve,PrismaClientUnknownRequestError:()=>ne,PrismaClientValidationError:()=>Z,Public:()=>wn,Sql:()=>oe,createParam:()=>Ko,defineDmmfProperty:()=>es,deserializeJsonResponse:()=>tt,deserializeRawResult:()=>on,dmmfToRuntimeDataModel:()=>Co,empty:()=>is,getPrismaClient:()=>Ea,getRuntime:()=>Yr,join:()=>ns,makeStrictEnum:()=>ba,makeTypedQueryFactory:()=>ts,objectEnumValues:()=>_r,raw:()=>Vn,serializeJsonQuery:()=>$r,skip:()=>qr,sqltag:()=>jn,warnEnvConflicts:()=>void 0,warnOnce:()=>Rt});module.exports=Ra(Ap);d();u();c();p();m();var yn={};Pt(yn,{defineExtension:()=>Si,getExtensionContext:()=>ki});d();u();c();p();m();d();u();c();p();m();function Si(e){return typeof e=="function"?e:t=>t.$extends(e)}d();u();c();p();m();function ki(e){return e}var wn={};Pt(wn,{validator:()=>Ii});d();u();c();p();m();d();u();c();p();m();function Ii(...e){return t=>t}d();u();c();p();m();d();u();c();p();m();d();u();c();p();m();var En,Oi,Di,Mi,_i=!0;typeof y<"u"&&({FORCE_COLOR:En,NODE_DISABLE_COLORS:Oi,NO_COLOR:Di,TERM:Mi}=y.env||{},_i=y.stdout&&y.stdout.isTTY);var tl={enabled:!Oi&&Di==null&&Mi!=="dumb"&&(En!=null&&En!=="0"||_i)};function V(e,t){let r=new RegExp(`\\x1b\\[${t}m`,"g"),n=`\x1B[${e}m`,i=`\x1B[${t}m`;return function(o){return!tl.enabled||o==null?o:n+(~(""+o).indexOf(i)?o.replace(r,i+n):o)+i}}var ym=V(0,0),pr=V(1,22),mr=V(2,22),wm=V(3,23),Ni=V(4,24),Em=V(7,27),bm=V(8,28),xm=V(9,29),Pm=V(30,39),ze=V(31,39),Fi=V(32,39),Li=V(33,39),Ui=V(34,39),vm=V(35,39),Bi=V(36,39),Tm=V(37,39),qi=V(90,39),Cm=V(90,39),Am=V(40,49),Rm=V(41,49),Sm=V(42,49),km=V(43,49),Im=V(44,49),Om=V(45,49),Dm=V(46,49),Mm=V(47,49);d();u();c();p();m();var rl=100,$i=["green","yellow","blue","magenta","cyan","red"],dr=[],Vi=Date.now(),nl=0,bn=typeof y<"u"?y.env:{};globalThis.DEBUG??=bn.DEBUG??"";globalThis.DEBUG_COLORS??=bn.DEBUG_COLORS?bn.DEBUG_COLORS==="true":!0;var Tt={enable(e){typeof e=="string"&&(globalThis.DEBUG=e)},disable(){let e=globalThis.DEBUG;return globalThis.DEBUG="",e},enabled(e){let t=globalThis.DEBUG.split(",").map(i=>i.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),r=t.some(i=>i===""||i[0]==="-"?!1:e.match(RegExp(i.split("*").join(".*")+"$"))),n=t.some(i=>i===""||i[0]!=="-"?!1:e.match(RegExp(i.slice(1).split("*").join(".*")+"$")));return r&&!n},log:(...e)=>{let[t,r,...n]=e;(console.warn??console.log)(`${t} ${r}`,...n)},formatters:{}};function il(e){let t={color:$i[nl++%$i.length],enabled:Tt.enabled(e),namespace:e,log:Tt.log,extend:()=>{}},r=(...n)=>{let{enabled:i,namespace:o,color:s,log:a}=t;if(n.length!==0&&dr.push([o,...n]),dr.length>rl&&dr.shift(),Tt.enabled(o)||i){let l=n.map(g=>typeof g=="string"?g:ol(g)),f=`+${Date.now()-Vi}ms`;Vi=Date.now(),a(o,...l,f)}};return new Proxy(r,{get:(n,i)=>t[i],set:(n,i,o)=>t[i]=o})}var H=new Proxy(il,{get:(e,t)=>Tt[t],set:(e,t,r)=>Tt[t]=r});function ol(e,t=2){let r=new Set;return JSON.stringify(e,(n,i)=>{if(typeof i=="object"&&i!==null){if(r.has(i))return"[Circular *]";r.add(i)}else if(typeof i=="bigint")return i.toString();return i},t)}function ji(){dr.length=0}d();u();c();p();m();d();u();c();p();m();var Al=Yi(),xn=Al.version;d();u();c();p();m();function Ye(e){let t=Rl();return t||(e?.config.engineType==="library"?"library":e?.config.engineType==="binary"?"binary":e?.config.engineType==="client"?"client":Sl(e))}function Rl(){let e=y.env.PRISMA_CLIENT_ENGINE_TYPE;return e==="library"?"library":e==="binary"?"binary":e==="client"?"client":void 0}function Sl(e){return e?.previewFeatures.includes("queryCompiler")?"client":"library"}d();u();c();p();m();var Xi="prisma+postgres",hr=`${Xi}:`;function yr(e){return e?.toString().startsWith(`${hr}//`)??!1}function vn(e){if(!yr(e))return!1;let{host:t}=new URL(e);return t.includes("localhost")||t.includes("127.0.0.1")||t.includes("[::1]")}var At={};Pt(At,{error:()=>Dl,info:()=>Ol,log:()=>Il,query:()=>Ml,should:()=>ro,tags:()=>Ct,warn:()=>Tn});d();u();c();p();m();var Ct={error:ze("prisma:error"),warn:Li("prisma:warn"),info:Bi("prisma:info"),query:Ui("prisma:query")},ro={warn:()=>!y.env.PRISMA_DISABLE_WARNINGS};function Il(...e){console.log(...e)}function Tn(e,...t){ro.warn()&&console.warn(`${Ct.warn} ${e}`,...t)}function Ol(e,...t){console.info(`${Ct.info} ${e}`,...t)}function Dl(e,...t){console.error(`${Ct.error} ${e}`,...t)}function Ml(e,...t){console.log(`${Ct.query} ${e}`,...t)}d();u();c();p();m();function Pe(e,t){throw new Error(t)}d();u();c();p();m();function Cn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}d();u();c();p();m();function Ze(e,t){let r={};for(let n of Object.keys(e))r[n]=t(e[n],n);return r}d();u();c();p();m();function An(e,t){if(e.length===0)return;let r=e[0];for(let n=1;n{ao.has(e)||(ao.add(e),Tn(t,...r))};var Q=class e extends Error{clientVersion;errorCode;retryable;constructor(t,r,n){super(t),this.name="PrismaClientInitializationError",this.clientVersion=r,this.errorCode=n,Error.captureStackTrace(e)}get[Symbol.toStringTag](){return"PrismaClientInitializationError"}};N(Q,"PrismaClientInitializationError");d();u();c();p();m();var re=class extends Error{code;meta;clientVersion;batchRequestIdx;constructor(t,{code:r,clientVersion:n,meta:i,batchRequestIdx:o}){super(t),this.name="PrismaClientKnownRequestError",this.code=r,this.clientVersion=n,this.meta=i,Object.defineProperty(this,"batchRequestIdx",{value:o,enumerable:!1,writable:!0})}get[Symbol.toStringTag](){return"PrismaClientKnownRequestError"}};N(re,"PrismaClientKnownRequestError");d();u();c();p();m();var ve=class extends Error{clientVersion;constructor(t,r){super(t),this.name="PrismaClientRustPanicError",this.clientVersion=r}get[Symbol.toStringTag](){return"PrismaClientRustPanicError"}};N(ve,"PrismaClientRustPanicError");d();u();c();p();m();var ne=class extends Error{clientVersion;batchRequestIdx;constructor(t,{clientVersion:r,batchRequestIdx:n}){super(t),this.name="PrismaClientUnknownRequestError",this.clientVersion=r,Object.defineProperty(this,"batchRequestIdx",{value:n,writable:!0,enumerable:!1})}get[Symbol.toStringTag](){return"PrismaClientUnknownRequestError"}};N(ne,"PrismaClientUnknownRequestError");d();u();c();p();m();var Z=class extends Error{name="PrismaClientValidationError";clientVersion;constructor(t,{clientVersion:r}){super(t),this.clientVersion=r}get[Symbol.toStringTag](){return"PrismaClientValidationError"}};N(Z,"PrismaClientValidationError");d();u();c();p();m();d();u();c();p();m();var Xe=9e15,De=1e9,Rn="0123456789abcdef",br="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",xr="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Sn={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-Xe,maxE:Xe,crypto:!1},mo,Te,_=!0,vr="[DecimalError] ",Oe=vr+"Invalid argument: ",fo=vr+"Precision limit exceeded",go=vr+"crypto unavailable",ho="[object Decimal]",X=Math.floor,J=Math.pow,Nl=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Fl=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,Ll=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,yo=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ce=1e7,O=7,Ul=9007199254740991,Bl=br.length-1,kn=xr.length-1,A={toStringTag:ho};A.absoluteValue=A.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),I(e)};A.ceil=function(){return I(new this.constructor(this),this.e+1,2)};A.clampedTo=A.clamp=function(e,t){var r,n=this,i=n.constructor;if(e=new i(e),t=new i(t),!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(Oe+t);return r=n.cmp(e),r<0?e:n.cmp(t)>0?t:new i(n)};A.comparedTo=A.cmp=function(e){var t,r,n,i,o=this,s=o.d,a=(e=new o.constructor(e)).d,l=o.s,f=e.s;if(!s||!a)return!l||!f?NaN:l!==f?l:s===a?0:!s^l<0?1:-1;if(!s[0]||!a[0])return s[0]?l:a[0]?-f:0;if(l!==f)return l;if(o.e!==e.e)return o.e>e.e^l<0?1:-1;for(n=s.length,i=a.length,t=0,r=na[t]^l<0?1:-1;return n===i?0:n>i^l<0?1:-1};A.cosine=A.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+O,n.rounding=1,r=ql(n,Po(n,r)),n.precision=e,n.rounding=t,I(Te==2||Te==3?r.neg():r,e,t,!0)):new n(1):new n(NaN)};A.cubeRoot=A.cbrt=function(){var e,t,r,n,i,o,s,a,l,f,g=this,h=g.constructor;if(!g.isFinite()||g.isZero())return new h(g);for(_=!1,o=g.s*J(g.s*g,1/3),!o||Math.abs(o)==1/0?(r=z(g.d),e=g.e,(o=(e-r.length+1)%3)&&(r+=o==1||o==-2?"0":"00"),o=J(r,1/3),e=X((e+1)/3)-(e%3==(e<0?-1:2)),o==1/0?r="5e"+e:(r=o.toExponential(),r=r.slice(0,r.indexOf("e")+1)+e),n=new h(r),n.s=g.s):n=new h(o.toString()),s=(e=h.precision)+3;;)if(a=n,l=a.times(a).times(a),f=l.plus(g),n=q(f.plus(g).times(a),f.plus(l),s+2,1),z(a.d).slice(0,s)===(r=z(n.d)).slice(0,s))if(r=r.slice(s-3,s+1),r=="9999"||!i&&r=="4999"){if(!i&&(I(a,e+1,0),a.times(a).times(a).eq(g))){n=a;break}s+=4,i=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&(I(n,e+1,1),t=!n.times(n).times(n).eq(g));break}return _=!0,I(n,e,h.rounding,t)};A.decimalPlaces=A.dp=function(){var e,t=this.d,r=NaN;if(t){if(e=t.length-1,r=(e-X(this.e/O))*O,e=t[e],e)for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r};A.dividedBy=A.div=function(e){return q(this,new this.constructor(e))};A.dividedToIntegerBy=A.divToInt=function(e){var t=this,r=t.constructor;return I(q(t,new r(e),0,1,1),r.precision,r.rounding)};A.equals=A.eq=function(e){return this.cmp(e)===0};A.floor=function(){return I(new this.constructor(this),this.e+1,3)};A.greaterThan=A.gt=function(e){return this.cmp(e)>0};A.greaterThanOrEqualTo=A.gte=function(e){var t=this.cmp(e);return t==1||t===0};A.hyperbolicCosine=A.cosh=function(){var e,t,r,n,i,o=this,s=o.constructor,a=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return a;r=s.precision,n=s.rounding,s.precision=r+Math.max(o.e,o.sd())+4,s.rounding=1,i=o.d.length,i<32?(e=Math.ceil(i/3),t=(1/Cr(4,e)).toString()):(e=16,t="2.3283064365386962890625e-10"),o=et(s,1,o.times(t),new s(1),!0);for(var l,f=e,g=new s(8);f--;)l=o.times(o),o=a.minus(l.times(g.minus(l.times(g))));return I(o,s.precision=r,s.rounding=n,!0)};A.hyperbolicSine=A.sinh=function(){var e,t,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,r=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,n=i.d.length,n<3)i=et(o,2,i,i,!0);else{e=1.4*Math.sqrt(n),e=e>16?16:e|0,i=i.times(1/Cr(5,e)),i=et(o,2,i,i,!0);for(var s,a=new o(5),l=new o(16),f=new o(20);e--;)s=i.times(i),i=i.times(a.plus(s.times(l.times(s).plus(f))))}return o.precision=t,o.rounding=r,I(i,t,r,!0)};A.hyperbolicTangent=A.tanh=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,q(r.sinh(),r.cosh(),n.precision=e,n.rounding=t)):new n(r.s)};A.inverseCosine=A.acos=function(){var e=this,t=e.constructor,r=e.abs().cmp(1),n=t.precision,i=t.rounding;return r!==-1?r===0?e.isNeg()?fe(t,n,i):new t(0):new t(NaN):e.isZero()?fe(t,n+4,i).times(.5):(t.precision=n+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=n,t.rounding=i,e.times(2))};A.inverseHyperbolicCosine=A.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,_=!1,r=r.times(r).minus(1).sqrt().plus(r),_=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)};A.inverseHyperbolicSine=A.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,_=!1,r=r.times(r).plus(1).sqrt().plus(r),_=!0,n.precision=e,n.rounding=t,r.ln())};A.inverseHyperbolicTangent=A.atanh=function(){var e,t,r,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,n=i.sd(),Math.max(n,e)<2*-i.e-1?I(new o(i),e,t,!0):(o.precision=r=n-i.e,i=q(i.plus(1),new o(1).minus(i),r+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5))):new o(NaN)};A.inverseSine=A.asin=function(){var e,t,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),r=o.precision,n=o.rounding,t!==-1?t===0?(e=fe(o,r+4,n).times(.5),e.s=i.s,e):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2)))};A.inverseTangent=A.atan=function(){var e,t,r,n,i,o,s,a,l,f=this,g=f.constructor,h=g.precision,v=g.rounding;if(f.isFinite()){if(f.isZero())return new g(f);if(f.abs().eq(1)&&h+4<=kn)return s=fe(g,h+4,v).times(.25),s.s=f.s,s}else{if(!f.s)return new g(NaN);if(h+4<=kn)return s=fe(g,h+4,v).times(.5),s.s=f.s,s}for(g.precision=a=h+10,g.rounding=1,r=Math.min(28,a/O+2|0),e=r;e;--e)f=f.div(f.times(f).plus(1).sqrt().plus(1));for(_=!1,t=Math.ceil(a/O),n=1,l=f.times(f),s=new g(f),i=f;e!==-1;)if(i=i.times(l),o=s.minus(i.div(n+=2)),i=i.times(l),s=o.plus(i.div(n+=2)),s.d[t]!==void 0)for(e=t;s.d[e]===o.d[e]&&e--;);return r&&(s=s.times(2<this.d.length-2};A.isNaN=function(){return!this.s};A.isNegative=A.isNeg=function(){return this.s<0};A.isPositive=A.isPos=function(){return this.s>0};A.isZero=function(){return!!this.d&&this.d[0]===0};A.lessThan=A.lt=function(e){return this.cmp(e)<0};A.lessThanOrEqualTo=A.lte=function(e){return this.cmp(e)<1};A.logarithm=A.log=function(e){var t,r,n,i,o,s,a,l,f=this,g=f.constructor,h=g.precision,v=g.rounding,S=5;if(e==null)e=new g(10),t=!0;else{if(e=new g(e),r=e.d,e.s<0||!r||!r[0]||e.eq(1))return new g(NaN);t=e.eq(10)}if(r=f.d,f.s<0||!r||!r[0]||f.eq(1))return new g(r&&!r[0]?-1/0:f.s!=1?NaN:r?0:1/0);if(t)if(r.length>1)o=!0;else{for(i=r[0];i%10===0;)i/=10;o=i!==1}if(_=!1,a=h+S,s=Ie(f,a),n=t?Pr(g,a+10):Ie(e,a),l=q(s,n,a,1),St(l.d,i=h,v))do if(a+=10,s=Ie(f,a),n=t?Pr(g,a+10):Ie(e,a),l=q(s,n,a,1),!o){+z(l.d).slice(i+1,i+15)+1==1e14&&(l=I(l,h+1,0));break}while(St(l.d,i+=10,v));return _=!0,I(l,h,v)};A.minus=A.sub=function(e){var t,r,n,i,o,s,a,l,f,g,h,v,S=this,C=S.constructor;if(e=new C(e),!S.d||!e.d)return!S.s||!e.s?e=new C(NaN):S.d?e.s=-e.s:e=new C(e.d||S.s!==e.s?S:NaN),e;if(S.s!=e.s)return e.s=-e.s,S.plus(e);if(f=S.d,v=e.d,a=C.precision,l=C.rounding,!f[0]||!v[0]){if(v[0])e.s=-e.s;else if(f[0])e=new C(S);else return new C(l===3?-0:0);return _?I(e,a,l):e}if(r=X(e.e/O),g=X(S.e/O),f=f.slice(),o=g-r,o){for(h=o<0,h?(t=f,o=-o,s=v.length):(t=v,r=g,s=f.length),n=Math.max(Math.ceil(a/O),s)+2,o>n&&(o=n,t.length=1),t.reverse(),n=o;n--;)t.push(0);t.reverse()}else{for(n=f.length,s=v.length,h=n0;--n)f[s++]=0;for(n=v.length;n>o;){if(f[--n]s?o+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=f.length,i=g.length,s-i<0&&(i=s,r=g,g=f,f=r),t=0;i;)t=(f[--i]=f[i]+g[i]+t)/ce|0,f[i]%=ce;for(t&&(f.unshift(t),++n),s=f.length;f[--s]==0;)f.pop();return e.d=f,e.e=Tr(f,n),_?I(e,a,l):e};A.precision=A.sd=function(e){var t,r=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Oe+e);return r.d?(t=wo(r.d),e&&r.e+1>t&&(t=r.e+1)):t=NaN,t};A.round=function(){var e=this,t=e.constructor;return I(new t(e),e.e+1,t.rounding)};A.sine=A.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+O,n.rounding=1,r=Vl(n,Po(n,r)),n.precision=e,n.rounding=t,I(Te>2?r.neg():r,e,t,!0)):new n(NaN)};A.squareRoot=A.sqrt=function(){var e,t,r,n,i,o,s=this,a=s.d,l=s.e,f=s.s,g=s.constructor;if(f!==1||!a||!a[0])return new g(!f||f<0&&(!a||a[0])?NaN:a?s:1/0);for(_=!1,f=Math.sqrt(+s),f==0||f==1/0?(t=z(a),(t.length+l)%2==0&&(t+="0"),f=Math.sqrt(t),l=X((l+1)/2)-(l<0||l%2),f==1/0?t="5e"+l:(t=f.toExponential(),t=t.slice(0,t.indexOf("e")+1)+l),n=new g(t)):n=new g(f.toString()),r=(l=g.precision)+3;;)if(o=n,n=o.plus(q(s,o,r+2,1)).times(.5),z(o.d).slice(0,r)===(t=z(n.d)).slice(0,r))if(t=t.slice(r-3,r+1),t=="9999"||!i&&t=="4999"){if(!i&&(I(o,l+1,0),o.times(o).eq(s))){n=o;break}r+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(I(n,l+1,1),e=!n.times(n).eq(s));break}return _=!0,I(n,l,g.rounding,e)};A.tangent=A.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,r=r.sin(),r.s=1,r=q(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,I(Te==2||Te==4?r.neg():r,e,t,!0)):new n(NaN)};A.times=A.mul=function(e){var t,r,n,i,o,s,a,l,f,g=this,h=g.constructor,v=g.d,S=(e=new h(e)).d;if(e.s*=g.s,!v||!v[0]||!S||!S[0])return new h(!e.s||v&&!v[0]&&!S||S&&!S[0]&&!v?NaN:!v||!S?e.s/0:e.s*0);for(r=X(g.e/O)+X(e.e/O),l=v.length,f=S.length,l=0;){for(t=0,i=l+n;i>n;)a=o[i]+S[n]*v[i-n-1]+t,o[i--]=a%ce|0,t=a/ce|0;o[i]=(o[i]+t)%ce|0}for(;!o[--s];)o.pop();return t?++r:o.shift(),e.d=o,e.e=Tr(o,r),_?I(e,h.precision,h.rounding):e};A.toBinary=function(e,t){return On(this,2,e,t)};A.toDecimalPlaces=A.toDP=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(ie(e,0,De),t===void 0?t=n.rounding:ie(t,0,8),I(r,e+r.e+1,t))};A.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=ge(n,!0):(ie(e,0,De),t===void 0?t=i.rounding:ie(t,0,8),n=I(new i(n),e+1,t),r=ge(n,!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r};A.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?r=ge(i):(ie(e,0,De),t===void 0?t=o.rounding:ie(t,0,8),n=I(new o(i),e+i.e+1,t),r=ge(n,!1,e+n.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r};A.toFraction=function(e){var t,r,n,i,o,s,a,l,f,g,h,v,S=this,C=S.d,R=S.constructor;if(!C)return new R(S);if(f=r=new R(1),n=l=new R(0),t=new R(n),o=t.e=wo(C)-S.e-1,s=o%O,t.d[0]=J(10,s<0?O+s:s),e==null)e=o>0?t:f;else{if(a=new R(e),!a.isInt()||a.lt(f))throw Error(Oe+a);e=a.gt(t)?o>0?t:f:a}for(_=!1,a=new R(z(C)),g=R.precision,R.precision=o=C.length*O*2;h=q(a,t,0,1,1),i=r.plus(h.times(n)),i.cmp(e)!=1;)r=n,n=i,i=f,f=l.plus(h.times(i)),l=i,i=t,t=a.minus(h.times(i)),a=i;return i=q(e.minus(r),n,0,1,1),l=l.plus(i.times(f)),r=r.plus(i.times(n)),l.s=f.s=S.s,v=q(f,n,o,1).minus(S).abs().cmp(q(l,r,o,1).minus(S).abs())<1?[f,n]:[l,r],R.precision=g,_=!0,v};A.toHexadecimal=A.toHex=function(e,t){return On(this,16,e,t)};A.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),e==null){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),t===void 0?t=n.rounding:ie(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(_=!1,r=q(r,e,0,t,1).times(e),_=!0,I(r)):(e.s=r.s,r=e),r};A.toNumber=function(){return+this};A.toOctal=function(e,t){return On(this,8,e,t)};A.toPower=A.pow=function(e){var t,r,n,i,o,s,a=this,l=a.constructor,f=+(e=new l(e));if(!a.d||!e.d||!a.d[0]||!e.d[0])return new l(J(+a,f));if(a=new l(a),a.eq(1))return a;if(n=l.precision,o=l.rounding,e.eq(1))return I(a,n,o);if(t=X(e.e/O),t>=e.d.length-1&&(r=f<0?-f:f)<=Ul)return i=Eo(l,a,r,n),e.s<0?new l(1).div(i):I(i,n,o);if(s=a.s,s<0){if(tl.maxE+1||t0?s/0:0):(_=!1,l.rounding=a.s=1,r=Math.min(12,(t+"").length),i=In(e.times(Ie(a,n+r)),n),i.d&&(i=I(i,n+5,1),St(i.d,n,o)&&(t=n+10,i=I(In(e.times(Ie(a,t+r)),t),t+5,1),+z(i.d).slice(n+1,n+15)+1==1e14&&(i=I(i,n+1,0)))),i.s=s,_=!0,l.rounding=o,I(i,n,o))};A.toPrecision=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=ge(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(ie(e,1,De),t===void 0?t=i.rounding:ie(t,0,8),n=I(new i(n),e,t),r=ge(n,e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r};A.toSignificantDigits=A.toSD=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(ie(e,1,De),t===void 0?t=n.rounding:ie(t,0,8)),I(new n(r),e,t)};A.toString=function(){var e=this,t=e.constructor,r=ge(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r};A.truncated=A.trunc=function(){return I(new this.constructor(this),this.e+1,1)};A.valueOf=A.toJSON=function(){var e=this,t=e.constructor,r=ge(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};function z(e){var t,r,n,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;tr)throw Error(Oe+e)}function St(e,t,r,n){var i,o,s,a;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=O,i=0):(i=Math.ceil((t+1)/O),t%=O),o=J(10,O-t),a=e[i]%o|0,n==null?t<3?(t==0?a=a/100|0:t==1&&(a=a/10|0),s=r<4&&a==99999||r>3&&a==49999||a==5e4||a==0):s=(r<4&&a+1==o||r>3&&a+1==o/2)&&(e[i+1]/o/100|0)==J(10,t-2)-1||(a==o/2||a==0)&&(e[i+1]/o/100|0)==0:t<4?(t==0?a=a/1e3|0:t==1?a=a/100|0:t==2&&(a=a/10|0),s=(n||r<4)&&a==9999||!n&&r>3&&a==4999):s=((n||r<4)&&a+1==o||!n&&r>3&&a+1==o/2)&&(e[i+1]/o/1e3|0)==J(10,t-3)-1,s}function wr(e,t,r){for(var n,i=[0],o,s=0,a=e.length;sr-1&&(i[n+1]===void 0&&(i[n+1]=0),i[n+1]+=i[n]/r|0,i[n]%=r)}return i.reverse()}function ql(e,t){var r,n,i;if(t.isZero())return t;n=t.d.length,n<32?(r=Math.ceil(n/3),i=(1/Cr(4,r)).toString()):(r=16,i="2.3283064365386962890625e-10"),e.precision+=r,t=et(e,1,t.times(i),new e(1));for(var o=r;o--;){var s=t.times(t);t=s.times(s).minus(s).times(8).plus(1)}return e.precision-=r,t}var q=function(){function e(n,i,o){var s,a=0,l=n.length;for(n=n.slice();l--;)s=n[l]*i+a,n[l]=s%o|0,a=s/o|0;return a&&n.unshift(a),n}function t(n,i,o,s){var a,l;if(o!=s)l=o>s?1:-1;else for(a=l=0;ai[a]?1:-1;break}return l}function r(n,i,o,s){for(var a=0;o--;)n[o]-=a,a=n[o]1;)n.shift()}return function(n,i,o,s,a,l){var f,g,h,v,S,C,R,D,M,U,k,F,ae,G,an,or,xt,ln,ue,sr,ar=n.constructor,un=n.s==i.s?1:-1,Y=n.d,$=i.d;if(!Y||!Y[0]||!$||!$[0])return new ar(!n.s||!i.s||(Y?$&&Y[0]==$[0]:!$)?NaN:Y&&Y[0]==0||!$?un*0:un/0);for(l?(S=1,g=n.e-i.e):(l=ce,S=O,g=X(n.e/S)-X(i.e/S)),ue=$.length,xt=Y.length,M=new ar(un),U=M.d=[],h=0;$[h]==(Y[h]||0);h++);if($[h]>(Y[h]||0)&&g--,o==null?(G=o=ar.precision,s=ar.rounding):a?G=o+(n.e-i.e)+1:G=o,G<0)U.push(1),C=!0;else{if(G=G/S+2|0,h=0,ue==1){for(v=0,$=$[0],G++;(h1&&($=e($,v,l),Y=e(Y,v,l),ue=$.length,xt=Y.length),or=ue,k=Y.slice(0,ue),F=k.length;F=l/2&&++ln;do v=0,f=t($,k,ue,F),f<0?(ae=k[0],ue!=F&&(ae=ae*l+(k[1]||0)),v=ae/ln|0,v>1?(v>=l&&(v=l-1),R=e($,v,l),D=R.length,F=k.length,f=t(R,k,D,F),f==1&&(v--,r(R,ue=10;v/=10)h++;M.e=h+g*S-1,I(M,a?o+M.e+1:o,s,C)}return M}}();function I(e,t,r,n){var i,o,s,a,l,f,g,h,v,S=e.constructor;e:if(t!=null){if(h=e.d,!h)return e;for(i=1,a=h[0];a>=10;a/=10)i++;if(o=t-i,o<0)o+=O,s=t,g=h[v=0],l=g/J(10,i-s-1)%10|0;else if(v=Math.ceil((o+1)/O),a=h.length,v>=a)if(n){for(;a++<=v;)h.push(0);g=l=0,i=1,o%=O,s=o-O+1}else break e;else{for(g=a=h[v],i=1;a>=10;a/=10)i++;o%=O,s=o-O+i,l=s<0?0:g/J(10,i-s-1)%10|0}if(n=n||t<0||h[v+1]!==void 0||(s<0?g:g%J(10,i-s-1)),f=r<4?(l||n)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||n||r==6&&(o>0?s>0?g/J(10,i-s):0:h[v-1])%10&1||r==(e.s<0?8:7)),t<1||!h[0])return h.length=0,f?(t-=e.e+1,h[0]=J(10,(O-t%O)%O),e.e=-t||0):h[0]=e.e=0,e;if(o==0?(h.length=v,a=1,v--):(h.length=v+1,a=J(10,O-o),h[v]=s>0?(g/J(10,i-s)%J(10,s)|0)*a:0),f)for(;;)if(v==0){for(o=1,s=h[0];s>=10;s/=10)o++;for(s=h[0]+=a,a=1;s>=10;s/=10)a++;o!=a&&(e.e++,h[0]==ce&&(h[0]=1));break}else{if(h[v]+=a,h[v]!=ce)break;h[v--]=0,a=1}for(o=h.length;h[--o]===0;)h.pop()}return _&&(e.e>S.maxE?(e.d=null,e.e=NaN):e.e0?o=o.charAt(0)+"."+o.slice(1)+ke(n):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+ke(-i-1)+o,r&&(n=r-s)>0&&(o+=ke(n))):i>=s?(o+=ke(i+1-s),r&&(n=r-i-1)>0&&(o=o+"."+ke(n))):((n=i+1)0&&(i+1===s&&(o+="."),o+=ke(n))),o}function Tr(e,t){var r=e[0];for(t*=O;r>=10;r/=10)t++;return t}function Pr(e,t,r){if(t>Bl)throw _=!0,r&&(e.precision=r),Error(fo);return I(new e(br),t,1,!0)}function fe(e,t,r){if(t>kn)throw Error(fo);return I(new e(xr),t,r,!0)}function wo(e){var t=e.length-1,r=t*O+1;if(t=e[t],t){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function ke(e){for(var t="";e--;)t+="0";return t}function Eo(e,t,r,n){var i,o=new e(1),s=Math.ceil(n/O+4);for(_=!1;;){if(r%2&&(o=o.times(t),co(o.d,s)&&(i=!0)),r=X(r/2),r===0){r=o.d.length-1,i&&o.d[r]===0&&++o.d[r];break}t=t.times(t),co(t.d,s)}return _=!0,o}function uo(e){return e.d[e.d.length-1]&1}function bo(e,t,r){for(var n,i,o=new e(t[0]),s=0;++s17)return new v(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(t==null?(_=!1,l=C):l=t,a=new v(.03125);e.e>-2;)e=e.times(a),h+=5;for(n=Math.log(J(2,h))/Math.LN10*2+5|0,l+=n,r=o=s=new v(1),v.precision=l;;){if(o=I(o.times(e),l,1),r=r.times(++g),a=s.plus(q(o,r,l,1)),z(a.d).slice(0,l)===z(s.d).slice(0,l)){for(i=h;i--;)s=I(s.times(s),l,1);if(t==null)if(f<3&&St(s.d,l-n,S,f))v.precision=l+=10,r=o=a=new v(1),g=0,f++;else return I(s,v.precision=C,S,_=!0);else return v.precision=C,s}s=a}}function Ie(e,t){var r,n,i,o,s,a,l,f,g,h,v,S=1,C=10,R=e,D=R.d,M=R.constructor,U=M.rounding,k=M.precision;if(R.s<0||!D||!D[0]||!R.e&&D[0]==1&&D.length==1)return new M(D&&!D[0]?-1/0:R.s!=1?NaN:D?0:R);if(t==null?(_=!1,g=k):g=t,M.precision=g+=C,r=z(D),n=r.charAt(0),Math.abs(o=R.e)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)R=R.times(e),r=z(R.d),n=r.charAt(0),S++;o=R.e,n>1?(R=new M("0."+r),o++):R=new M(n+"."+r.slice(1))}else return f=Pr(M,g+2,k).times(o+""),R=Ie(new M(n+"."+r.slice(1)),g-C).plus(f),M.precision=k,t==null?I(R,k,U,_=!0):R;for(h=R,l=s=R=q(R.minus(1),R.plus(1),g,1),v=I(R.times(R),g,1),i=3;;){if(s=I(s.times(v),g,1),f=l.plus(q(s,new M(i),g,1)),z(f.d).slice(0,g)===z(l.d).slice(0,g))if(l=l.times(2),o!==0&&(l=l.plus(Pr(M,g+2,k).times(o+""))),l=q(l,new M(S),g,1),t==null)if(St(l.d,g-C,U,a))M.precision=g+=C,f=s=R=q(h.minus(1),h.plus(1),g,1),v=I(R.times(R),g,1),i=a=1;else return I(l,M.precision=k,U,_=!0);else return M.precision=k,l;l=f,i+=2}}function xo(e){return String(e.s*e.s/0)}function Er(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;n++);for(i=t.length;t.charCodeAt(i-1)===48;--i);if(t=t.slice(n,i),t){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%O,r<0&&(n+=O),ne.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),yo.test(t))return Er(e,t)}else if(t==="Infinity"||t==="NaN")return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(Fl.test(t))r=16,t=t.toLowerCase();else if(Nl.test(t))r=2;else if(Ll.test(t))r=8;else throw Error(Oe+t);for(o=t.search(/p/i),o>0?(l=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),o=t.indexOf("."),s=o>=0,n=e.constructor,s&&(t=t.replace(".",""),a=t.length,o=a-o,i=Eo(n,new n(r),o,o*2)),f=wr(t,r,ce),g=f.length-1,o=g;f[o]===0;--o)f.pop();return o<0?new n(e.s*0):(e.e=Tr(f,g),e.d=f,_=!1,s&&(e=q(e,i,a*4)),l&&(e=e.times(Math.abs(l)<54?J(2,l):Be.pow(2,l))),_=!0,e)}function Vl(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:et(e,2,t,t);r=1.4*Math.sqrt(n),r=r>16?16:r|0,t=t.times(1/Cr(5,r)),t=et(e,2,t,t);for(var i,o=new e(5),s=new e(16),a=new e(20);r--;)i=t.times(t),t=t.times(o.plus(i.times(s.times(i).minus(a))));return t}function et(e,t,r,n,i){var o,s,a,l,f=1,g=e.precision,h=Math.ceil(g/O);for(_=!1,l=r.times(r),a=new e(n);;){if(s=q(a.times(l),new e(t++*t++),g,1),a=i?n.plus(s):n.minus(s),n=q(s.times(l),new e(t++*t++),g,1),s=a.plus(n),s.d[h]!==void 0){for(o=h;s.d[o]===a.d[o]&&o--;);if(o==-1)break}o=a,a=n,n=s,s=o,f++}return _=!0,s.d.length=h+1,s}function Cr(e,t){for(var r=e;--t;)r*=e;return r}function Po(e,t){var r,n=t.s<0,i=fe(e,e.precision,1),o=i.times(.5);if(t=t.abs(),t.lte(o))return Te=n?4:1,t;if(r=t.divToInt(i),r.isZero())Te=n?3:2;else{if(t=t.minus(r.times(i)),t.lte(o))return Te=uo(r)?n?2:3:n?4:1,t;Te=uo(r)?n?1:4:n?3:2}return t.minus(i).abs()}function On(e,t,r,n){var i,o,s,a,l,f,g,h,v,S=e.constructor,C=r!==void 0;if(C?(ie(r,1,De),n===void 0?n=S.rounding:ie(n,0,8)):(r=S.precision,n=S.rounding),!e.isFinite())g=xo(e);else{for(g=ge(e),s=g.indexOf("."),C?(i=2,t==16?r=r*4-3:t==8&&(r=r*3-2)):i=t,s>=0&&(g=g.replace(".",""),v=new S(1),v.e=g.length-s,v.d=wr(ge(v),10,i),v.e=v.d.length),h=wr(g,10,i),o=l=h.length;h[--l]==0;)h.pop();if(!h[0])g=C?"0p+0":"0";else{if(s<0?o--:(e=new S(e),e.d=h,e.e=o,e=q(e,v,r,n,0,i),h=e.d,o=e.e,f=mo),s=h[r],a=i/2,f=f||h[r+1]!==void 0,f=n<4?(s!==void 0||f)&&(n===0||n===(e.s<0?3:2)):s>a||s===a&&(n===4||f||n===6&&h[r-1]&1||n===(e.s<0?8:7)),h.length=r,f)for(;++h[--r]>i-1;)h[r]=0,r||(++o,h.unshift(1));for(l=h.length;!h[l-1];--l);for(s=0,g="";s1)if(t==16||t==8){for(s=t==16?4:3,--l;l%s;l++)g+="0";for(h=wr(g,i,t),l=h.length;!h[l-1];--l);for(s=1,g="1.";sl)for(o-=l;o--;)g+="0";else ot)return e.length=t,!0}function jl(e){return new this(e).abs()}function Gl(e){return new this(e).acos()}function Ql(e){return new this(e).acosh()}function Jl(e,t){return new this(e).plus(t)}function Wl(e){return new this(e).asin()}function Kl(e){return new this(e).asinh()}function Hl(e){return new this(e).atan()}function zl(e){return new this(e).atanh()}function Yl(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,o=n+4;return!e.s||!t.s?r=new this(NaN):!e.d&&!t.d?(r=fe(this,o,1).times(t.s>0?.25:.75),r.s=e.s):!t.d||e.isZero()?(r=t.s<0?fe(this,n,i):new this(0),r.s=e.s):!e.d||t.isZero()?(r=fe(this,o,1).times(.5),r.s=e.s):t.s<0?(this.precision=o,this.rounding=1,r=this.atan(q(e,t,o,1)),t=fe(this,o,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(q(e,t,o,1)),r}function Zl(e){return new this(e).cbrt()}function Xl(e){return I(e=new this(e),e.e+1,2)}function eu(e,t,r){return new this(e).clamp(t,r)}function tu(e){if(!e||typeof e!="object")throw Error(vr+"Object expected");var t,r,n,i=e.defaults===!0,o=["precision",1,De,"rounding",0,8,"toExpNeg",-Xe,0,"toExpPos",0,Xe,"maxE",0,Xe,"minE",-Xe,0,"modulo",0,9];for(t=0;t=o[t+1]&&n<=o[t+2])this[r]=n;else throw Error(Oe+r+": "+n);if(r="crypto",i&&(this[r]=Sn[r]),(n=e[r])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(go);else this[r]=!1;else throw Error(Oe+r+": "+n);return this}function ru(e){return new this(e).cos()}function nu(e){return new this(e).cosh()}function vo(e){var t,r,n;function i(o){var s,a,l,f=this;if(!(f instanceof i))return new i(o);if(f.constructor=i,po(o)){f.s=o.s,_?!o.d||o.e>i.maxE?(f.e=NaN,f.d=null):o.e=10;a/=10)s++;_?s>i.maxE?(f.e=NaN,f.d=null):s=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:a[o++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(n*=4);o=214e7?crypto.randomBytes(4).copy(t,o):(a.push(i%1e7),o+=4);o=n/4}else throw Error(go);else for(;o=10;i/=10)n++;nIt,datamodelEnumToSchemaEnum:()=>Iu});d();u();c();p();m();d();u();c();p();m();function Iu(e){return{name:e.name,values:e.values.map(t=>t.name)}}d();u();c();p();m();var It=(k=>(k.findUnique="findUnique",k.findUniqueOrThrow="findUniqueOrThrow",k.findFirst="findFirst",k.findFirstOrThrow="findFirstOrThrow",k.findMany="findMany",k.create="create",k.createMany="createMany",k.createManyAndReturn="createManyAndReturn",k.update="update",k.updateMany="updateMany",k.updateManyAndReturn="updateManyAndReturn",k.upsert="upsert",k.delete="delete",k.deleteMany="deleteMany",k.groupBy="groupBy",k.count="count",k.aggregate="aggregate",k.findRaw="findRaw",k.aggregateRaw="aggregateRaw",k))(It||{});var Ou=Le(to());var Du={red:ze,gray:qi,dim:mr,bold:pr,underline:Ni,highlightSource:e=>e.highlight()},Mu={red:e=>e,gray:e=>e,dim:e=>e,bold:e=>e,underline:e=>e,highlightSource:e=>e};function _u({message:e,originalMethod:t,isPanic:r,callArguments:n}){return{functionName:`prisma.${t}()`,message:e,isPanic:r??!1,callArguments:n}}function Nu({functionName:e,location:t,message:r,isPanic:n,contextLines:i,callArguments:o},s){let a=[""],l=t?" in":":";if(n?(a.push(s.red(`Oops, an unknown error occurred! This is ${s.bold("on us")}, you did nothing wrong.`)),a.push(s.red(`It occurred in the ${s.bold(`\`${e}\``)} invocation${l}`))):a.push(s.red(`Invalid ${s.bold(`\`${e}\``)} invocation${l}`)),t&&a.push(s.underline(Fu(t))),i){a.push("");let f=[i.toString()];o&&(f.push(o),f.push(s.dim(")"))),a.push(f.join("")),o&&a.push("")}else a.push(""),o&&a.push(o),a.push("");return a.push(r),a.join(` -`)}function Fu(e){let t=[e.fileName];return e.lineNumber&&t.push(String(e.lineNumber)),e.columnNumber&&t.push(String(e.columnNumber)),t.join(":")}function Rr(e){let t=e.showColors?Du:Mu,r;return typeof $getTemplateParameters<"u"?r=$getTemplateParameters(e,t):r=_u(e),Nu(r,t)}d();u();c();p();m();var _o=Le(Mn());d();u();c();p();m();function ko(e,t,r){let n=Io(e),i=Lu(n),o=Bu(i);o?Sr(o,t,r):t.addErrorMessage(()=>"Unknown error")}function Io(e){return e.errors.flatMap(t=>t.kind==="Union"?Io(t):[t])}function Lu(e){let t=new Map,r=[];for(let n of e){if(n.kind!=="InvalidArgumentType"){r.push(n);continue}let i=`${n.selectionPath.join(".")}:${n.argumentPath.join(".")}`,o=t.get(i);o?t.set(i,{...n,argument:{...n.argument,typeNames:Uu(o.argument.typeNames,n.argument.typeNames)}}):t.set(i,n)}return r.push(...t.values()),r}function Uu(e,t){return[...new Set(e.concat(t))]}function Bu(e){return An(e,(t,r)=>{let n=Ro(t),i=Ro(r);return n!==i?n-i:So(t)-So(r)})}function Ro(e){let t=0;return Array.isArray(e.selectionPath)&&(t+=e.selectionPath.length),Array.isArray(e.argumentPath)&&(t+=e.argumentPath.length),t}function So(e){switch(e.kind){case"InvalidArgumentValue":case"ValueTooLarge":return 20;case"InvalidArgumentType":return 10;case"RequiredArgumentMissing":return-10;default:return 0}}d();u();c();p();m();var le=class{constructor(t,r){this.name=t;this.value=r}isRequired=!1;makeRequired(){return this.isRequired=!0,this}write(t){let{colors:{green:r}}=t.context;t.addMarginSymbol(r(this.isRequired?"+":"?")),t.write(r(this.name)),this.isRequired||t.write(r("?")),t.write(r(": ")),typeof this.value=="string"?t.write(r(this.value)):t.write(this.value)}};d();u();c();p();m();d();u();c();p();m();Do();d();u();c();p();m();var it=class{constructor(t=0,r){this.context=r;this.currentIndent=t}lines=[];currentLine="";currentIndent=0;marginSymbol;afterNextNewLineCallback;write(t){return typeof t=="string"?this.currentLine+=t:t.write(this),this}writeJoined(t,r,n=(i,o)=>o.write(i)){let i=r.length-1;for(let o=0;o0&&this.currentIndent--,this}addMarginSymbol(t){return this.marginSymbol=t,this}toString(){return this.lines.concat(this.indentedCurrentLine()).join(` -`)}getCurrentLineLength(){return this.currentLine.length}indentedCurrentLine(){let t=this.currentLine.padStart(this.currentLine.length+2*this.currentIndent);return this.marginSymbol?this.marginSymbol+t.slice(1):t}};Oo();d();u();c();p();m();d();u();c();p();m();var kr=class{constructor(t){this.value=t}write(t){t.write(this.value)}markAsError(){this.value.markAsError()}};d();u();c();p();m();var Ir=e=>e,Or={bold:Ir,red:Ir,green:Ir,dim:Ir,enabled:!1},Mo={bold:pr,red:ze,green:Fi,dim:mr,enabled:!0},ot={write(e){e.writeLine(",")}};d();u();c();p();m();var we=class{constructor(t){this.contents=t}isUnderlined=!1;color=t=>t;underline(){return this.isUnderlined=!0,this}setColor(t){return this.color=t,this}write(t){let r=t.getCurrentLineLength();t.write(this.color(this.contents)),this.isUnderlined&&t.afterNextNewline(()=>{t.write(" ".repeat(r)).writeLine(this.color("~".repeat(this.contents.length)))})}};d();u();c();p();m();var _e=class{hasError=!1;markAsError(){return this.hasError=!0,this}};var st=class extends _e{items=[];addItem(t){return this.items.push(new kr(t)),this}getField(t){return this.items[t]}getPrintWidth(){return this.items.length===0?2:Math.max(...this.items.map(r=>r.value.getPrintWidth()))+2}write(t){if(this.items.length===0){this.writeEmpty(t);return}this.writeWithItems(t)}writeEmpty(t){let r=new we("[]");this.hasError&&r.setColor(t.context.colors.red).underline(),t.write(r)}writeWithItems(t){let{colors:r}=t.context;t.writeLine("[").withIndent(()=>t.writeJoined(ot,this.items).newLine()).write("]"),this.hasError&&t.afterNextNewline(()=>{t.writeLine(r.red("~".repeat(this.getPrintWidth())))})}asObject(){}};var at=class e extends _e{fields={};suggestions=[];addField(t){this.fields[t.name]=t}addSuggestion(t){this.suggestions.push(t)}getField(t){return this.fields[t]}getDeepField(t){let[r,...n]=t,i=this.getField(r);if(!i)return;let o=i;for(let s of n){let a;if(o.value instanceof e?a=o.value.getField(s):o.value instanceof st&&(a=o.value.getField(Number(s))),!a)return;o=a}return o}getDeepFieldValue(t){return t.length===0?this:this.getDeepField(t)?.value}hasField(t){return!!this.getField(t)}removeAllFields(){this.fields={}}removeField(t){delete this.fields[t]}getFields(){return this.fields}isEmpty(){return Object.keys(this.fields).length===0}getFieldValue(t){return this.getField(t)?.value}getDeepSubSelectionValue(t){let r=this;for(let n of t){if(!(r instanceof e))return;let i=r.getSubSelectionValue(n);if(!i)return;r=i}return r}getDeepSelectionParent(t){let r=this.getSelectionParent();if(!r)return;let n=r;for(let i of t){let o=n.value.getFieldValue(i);if(!o||!(o instanceof e))return;let s=o.getSelectionParent();if(!s)return;n=s}return n}getSelectionParent(){let t=this.getField("select")?.value.asObject();if(t)return{kind:"select",value:t};let r=this.getField("include")?.value.asObject();if(r)return{kind:"include",value:r}}getSubSelectionValue(t){return this.getSelectionParent()?.value.fields[t].value}getPrintWidth(){let t=Object.values(this.fields);return t.length==0?2:Math.max(...t.map(n=>n.getPrintWidth()))+2}write(t){let r=Object.values(this.fields);if(r.length===0&&this.suggestions.length===0){this.writeEmpty(t);return}this.writeWithContents(t,r)}asObject(){return this}writeEmpty(t){let r=new we("{}");this.hasError&&r.setColor(t.context.colors.red).underline(),t.write(r)}writeWithContents(t,r){t.writeLine("{").withIndent(()=>{t.writeJoined(ot,[...r,...this.suggestions]).newLine()}),t.write("}"),this.hasError&&t.afterNextNewline(()=>{t.writeLine(t.context.colors.red("~".repeat(this.getPrintWidth())))})}};d();u();c();p();m();var K=class extends _e{constructor(r){super();this.text=r}getPrintWidth(){return this.text.length}write(r){let n=new we(this.text);this.hasError&&n.underline().setColor(r.context.colors.red),r.write(n)}asObject(){}};d();u();c();p();m();var Dt=class{fields=[];addField(t,r){return this.fields.push({write(n){let{green:i,dim:o}=n.context.colors;n.write(i(o(`${t}: ${r}`))).addMarginSymbol(i(o("+")))}}),this}write(t){let{colors:{green:r}}=t.context;t.writeLine(r("{")).withIndent(()=>{t.writeJoined(ot,this.fields).newLine()}).write(r("}")).addMarginSymbol(r("+"))}};function Sr(e,t,r){switch(e.kind){case"MutuallyExclusiveFields":qu(e,t);break;case"IncludeOnScalar":$u(e,t);break;case"EmptySelection":Vu(e,t,r);break;case"UnknownSelectionField":Ju(e,t);break;case"InvalidSelectionValue":Wu(e,t);break;case"UnknownArgument":Ku(e,t);break;case"UnknownInputField":Hu(e,t);break;case"RequiredArgumentMissing":zu(e,t);break;case"InvalidArgumentType":Yu(e,t);break;case"InvalidArgumentValue":Zu(e,t);break;case"ValueTooLarge":Xu(e,t);break;case"SomeFieldsMissing":ec(e,t);break;case"TooManyFieldsGiven":tc(e,t);break;case"Union":ko(e,t,r);break;default:throw new Error("not implemented: "+e.kind)}}function qu(e,t){let r=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();r&&(r.getField(e.firstField)?.markAsError(),r.getField(e.secondField)?.markAsError()),t.addErrorMessage(n=>`Please ${n.bold("either")} use ${n.green(`\`${e.firstField}\``)} or ${n.green(`\`${e.secondField}\``)}, but ${n.red("not both")} at the same time.`)}function $u(e,t){let[r,n]=Mt(e.selectionPath),i=e.outputType,o=t.arguments.getDeepSelectionParent(r)?.value;if(o&&(o.getField(n)?.markAsError(),i))for(let s of i.fields)s.isRelation&&o.addSuggestion(new le(s.name,"true"));t.addErrorMessage(s=>{let a=`Invalid scalar field ${s.red(`\`${n}\``)} for ${s.bold("include")} statement`;return i?a+=` on model ${s.bold(i.name)}. ${_t(s)}`:a+=".",a+=` -Note that ${s.bold("include")} statements only accept relation fields.`,a})}function Vu(e,t,r){let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getField("omit")?.value.asObject();if(i){ju(e,t,i);return}if(n.hasField("select")){Gu(e,t);return}}if(r?.[Me(e.outputType.name)]){Qu(e,t);return}t.addErrorMessage(()=>`Unknown field at "${e.selectionPath.join(".")} selection"`)}function ju(e,t,r){r.removeAllFields();for(let n of e.outputType.fields)r.addSuggestion(new le(n.name,"false"));t.addErrorMessage(n=>`The ${n.red("omit")} statement includes every field of the model ${n.bold(e.outputType.name)}. At least one field must be included in the result`)}function Gu(e,t){let r=e.outputType,n=t.arguments.getDeepSelectionParent(e.selectionPath)?.value,i=n?.isEmpty()??!1;n&&(n.removeAllFields(),Lo(n,r)),t.addErrorMessage(o=>i?`The ${o.red("`select`")} statement for type ${o.bold(r.name)} must not be empty. ${_t(o)}`:`The ${o.red("`select`")} statement for type ${o.bold(r.name)} needs ${o.bold("at least one truthy value")}.`)}function Qu(e,t){let r=new Dt;for(let i of e.outputType.fields)i.isRelation||r.addField(i.name,"false");let n=new le("omit",r).makeRequired();if(e.selectionPath.length===0)t.arguments.addSuggestion(n);else{let[i,o]=Mt(e.selectionPath),a=t.arguments.getDeepSelectionParent(i)?.value.asObject()?.getField(o);if(a){let l=a?.value.asObject()??new at;l.addSuggestion(n),a.value=l}}t.addErrorMessage(i=>`The global ${i.red("omit")} configuration excludes every field of the model ${i.bold(e.outputType.name)}. At least one field must be included in the result`)}function Ju(e,t){let r=Uo(e.selectionPath,t);if(r.parentKind!=="unknown"){r.field.markAsError();let n=r.parent;switch(r.parentKind){case"select":Lo(n,e.outputType);break;case"include":rc(n,e.outputType);break;case"omit":nc(n,e.outputType);break}}t.addErrorMessage(n=>{let i=[`Unknown field ${n.red(`\`${r.fieldName}\``)}`];return r.parentKind!=="unknown"&&i.push(`for ${n.bold(r.parentKind)} statement`),i.push(`on model ${n.bold(`\`${e.outputType.name}\``)}.`),i.push(_t(n)),i.join(" ")})}function Wu(e,t){let r=Uo(e.selectionPath,t);r.parentKind!=="unknown"&&r.field.value.markAsError(),t.addErrorMessage(n=>`Invalid value for selection field \`${n.red(r.fieldName)}\`: ${e.underlyingError}`)}function Ku(e,t){let r=e.argumentPath[0],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&(n.getField(r)?.markAsError(),ic(n,e.arguments)),t.addErrorMessage(i=>No(i,r,e.arguments.map(o=>o.name)))}function Hu(e,t){let[r,n]=Mt(e.argumentPath),i=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(i){i.getDeepField(e.argumentPath)?.markAsError();let o=i.getDeepFieldValue(r)?.asObject();o&&Bo(o,e.inputType)}t.addErrorMessage(o=>No(o,n,e.inputType.fields.map(s=>s.name)))}function No(e,t,r){let n=[`Unknown argument \`${e.red(t)}\`.`],i=sc(t,r);return i&&n.push(`Did you mean \`${e.green(i)}\`?`),r.length>0&&n.push(_t(e)),n.join(" ")}function zu(e,t){let r;t.addErrorMessage(l=>r?.value instanceof K&&r.value.text==="null"?`Argument \`${l.green(o)}\` must not be ${l.red("null")}.`:`Argument \`${l.green(o)}\` is missing.`);let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(!n)return;let[i,o]=Mt(e.argumentPath),s=new Dt,a=n.getDeepFieldValue(i)?.asObject();if(a)if(r=a.getField(o),r&&a.removeField(o),e.inputTypes.length===1&&e.inputTypes[0].kind==="object"){for(let l of e.inputTypes[0].fields)s.addField(l.name,l.typeNames.join(" | "));a.addSuggestion(new le(o,s).makeRequired())}else{let l=e.inputTypes.map(Fo).join(" | ");a.addSuggestion(new le(o,l).makeRequired())}}function Fo(e){return e.kind==="list"?`${Fo(e.elementType)}[]`:e.name}function Yu(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=Dr("or",e.argument.typeNames.map(s=>i.green(s)));return`Argument \`${i.bold(r)}\`: Invalid value provided. Expected ${o}, provided ${i.red(e.inferredType)}.`})}function Zu(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=[`Invalid value for argument \`${i.bold(r)}\``];if(e.underlyingError&&o.push(`: ${e.underlyingError}`),o.push("."),e.argument.typeNames.length>0){let s=Dr("or",e.argument.typeNames.map(a=>i.green(a)));o.push(` Expected ${s}.`)}return o.join("")})}function Xu(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i;if(n){let s=n.getDeepField(e.argumentPath)?.value;s?.markAsError(),s instanceof K&&(i=s.text)}t.addErrorMessage(o=>{let s=["Unable to fit value"];return i&&s.push(o.red(i)),s.push(`into a 64-bit signed integer for field \`${o.bold(r)}\``),s.join(" ")})}function ec(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getDeepFieldValue(e.argumentPath)?.asObject();i&&Bo(i,e.inputType)}t.addErrorMessage(i=>{let o=[`Argument \`${i.bold(r)}\` of type ${i.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1?e.constraints.requiredFields?o.push(`${i.green("at least one of")} ${Dr("or",e.constraints.requiredFields.map(s=>`\`${i.bold(s)}\``))} arguments.`):o.push(`${i.green("at least one")} argument.`):o.push(`${i.green(`at least ${e.constraints.minFieldCount}`)} arguments.`),o.push(_t(i)),o.join(" ")})}function tc(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i=[];if(n){let o=n.getDeepFieldValue(e.argumentPath)?.asObject();o&&(o.markAsError(),i=Object.keys(o.getFields()))}t.addErrorMessage(o=>{let s=[`Argument \`${o.bold(r)}\` of type ${o.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1&&e.constraints.maxFieldCount==1?s.push(`${o.green("exactly one")} argument,`):e.constraints.maxFieldCount==1?s.push(`${o.green("at most one")} argument,`):s.push(`${o.green(`at most ${e.constraints.maxFieldCount}`)} arguments,`),s.push(`but you provided ${Dr("and",i.map(a=>o.red(a)))}. Please choose`),e.constraints.maxFieldCount===1?s.push("one."):s.push(`${e.constraints.maxFieldCount}.`),s.join(" ")})}function Lo(e,t){for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new le(r.name,"true"))}function rc(e,t){for(let r of t.fields)r.isRelation&&!e.hasField(r.name)&&e.addSuggestion(new le(r.name,"true"))}function nc(e,t){for(let r of t.fields)!e.hasField(r.name)&&!r.isRelation&&e.addSuggestion(new le(r.name,"true"))}function ic(e,t){for(let r of t)e.hasField(r.name)||e.addSuggestion(new le(r.name,r.typeNames.join(" | ")))}function Uo(e,t){let[r,n]=Mt(e),i=t.arguments.getDeepSubSelectionValue(r)?.asObject();if(!i)return{parentKind:"unknown",fieldName:n};let o=i.getFieldValue("select")?.asObject(),s=i.getFieldValue("include")?.asObject(),a=i.getFieldValue("omit")?.asObject(),l=o?.getField(n);return o&&l?{parentKind:"select",parent:o,field:l,fieldName:n}:(l=s?.getField(n),s&&l?{parentKind:"include",field:l,parent:s,fieldName:n}:(l=a?.getField(n),a&&l?{parentKind:"omit",field:l,parent:a,fieldName:n}:{parentKind:"unknown",fieldName:n}))}function Bo(e,t){if(t.kind==="object")for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new le(r.name,r.typeNames.join(" | ")))}function Mt(e){let t=[...e],r=t.pop();if(!r)throw new Error("unexpected empty path");return[t,r]}function _t({green:e,enabled:t}){return"Available options are "+(t?`listed in ${e("green")}`:"marked with ?")+"."}function Dr(e,t){if(t.length===1)return t[0];let r=[...t],n=r.pop();return`${r.join(", ")} ${e} ${n}`}var oc=3;function sc(e,t){let r=1/0,n;for(let i of t){let o=(0,_o.default)(e,i);o>oc||o`}};function lt(e){return e instanceof Nt}d();u();c();p();m();var Mr=Symbol(),Nn=new WeakMap,Ce=class{constructor(t){t===Mr?Nn.set(this,`Prisma.${this._getName()}`):Nn.set(this,`new Prisma.${this._getNamespace()}.${this._getName()}()`)}_getName(){return this.constructor.name}toString(){return Nn.get(this)}},Ft=class extends Ce{_getNamespace(){return"NullTypes"}},Lt=class extends Ft{#e};Fn(Lt,"DbNull");var Ut=class extends Ft{#e};Fn(Ut,"JsonNull");var Bt=class extends Ft{#e};Fn(Bt,"AnyNull");var _r={classes:{DbNull:Lt,JsonNull:Ut,AnyNull:Bt},instances:{DbNull:new Lt(Mr),JsonNull:new Ut(Mr),AnyNull:new Bt(Mr)}};function Fn(e,t){Object.defineProperty(e,"name",{value:t,configurable:!0})}d();u();c();p();m();var qo=": ",Nr=class{constructor(t,r){this.name=t;this.value=r}hasError=!1;markAsError(){this.hasError=!0}getPrintWidth(){return this.name.length+this.value.getPrintWidth()+qo.length}write(t){let r=new we(this.name);this.hasError&&r.underline().setColor(t.context.colors.red),t.write(r).write(qo).write(this.value)}};var Ln=class{arguments;errorMessages=[];constructor(t){this.arguments=t}write(t){t.write(this.arguments)}addErrorMessage(t){this.errorMessages.push(t)}renderAllMessages(t){return this.errorMessages.map(r=>r(t)).join(` -`)}};function ut(e){return new Ln($o(e))}function $o(e){let t=new at;for(let[r,n]of Object.entries(e)){let i=new Nr(r,Vo(n));t.addField(i)}return t}function Vo(e){if(typeof e=="string")return new K(JSON.stringify(e));if(typeof e=="number"||typeof e=="boolean")return new K(String(e));if(typeof e=="bigint")return new K(`${e}n`);if(e===null)return new K("null");if(e===void 0)return new K("undefined");if(nt(e))return new K(`new Prisma.Decimal("${e.toFixed()}")`);if(e instanceof Uint8Array)return w.Buffer.isBuffer(e)?new K(`Buffer.alloc(${e.byteLength})`):new K(`new Uint8Array(${e.byteLength})`);if(e instanceof Date){let t=Ar(e)?e.toISOString():"Invalid Date";return new K(`new Date("${t}")`)}return e instanceof Ce?new K(`Prisma.${e._getName()}`):lt(e)?new K(`prisma.${Me(e.modelName)}.$fields.${e.name}`):Array.isArray(e)?ac(e):typeof e=="object"?$o(e):new K(Object.prototype.toString.call(e))}function ac(e){let t=new st;for(let r of e)t.addItem(Vo(r));return t}function Fr(e,t){let r=t==="pretty"?Mo:Or,n=e.renderAllMessages(r),i=new it(0,{colors:r}).write(e).toString();return{message:n,args:i}}function Lr({args:e,errors:t,errorFormat:r,callsite:n,originalMethod:i,clientVersion:o,globalOmit:s}){let a=ut(e);for(let h of t)Sr(h,a,s);let{message:l,args:f}=Fr(a,r),g=Rr({message:l,callsite:n,originalMethod:i,showColors:r==="pretty",callArguments:f});throw new Z(g,{clientVersion:o})}d();u();c();p();m();d();u();c();p();m();function Ee(e){return e.replace(/^./,t=>t.toLowerCase())}d();u();c();p();m();function Go(e,t,r){let n=Ee(r);return!t.result||!(t.result.$allModels||t.result[n])?e:lc({...e,...jo(t.name,e,t.result.$allModels),...jo(t.name,e,t.result[n])})}function lc(e){let t=new ye,r=(n,i)=>t.getOrCreate(n,()=>i.has(n)?[n]:(i.add(n),e[n]?e[n].needs.flatMap(o=>r(o,i)):[n]));return Ze(e,n=>({...n,needs:r(n.name,new Set)}))}function jo(e,t,r){return r?Ze(r,({needs:n,compute:i},o)=>({name:o,needs:n?Object.keys(n).filter(s=>n[s]):[],compute:uc(t,o,i)})):{}}function uc(e,t,r){let n=e?.[t]?.compute;return n?i=>r({...i,[t]:n(i)}):r}function Qo(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(e[n.name])for(let i of n.needs)r[i]=!0;return r}function Jo(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(!e[n.name])for(let i of n.needs)delete r[i];return r}var Ur=class{constructor(t,r){this.extension=t;this.previous=r}computedFieldsCache=new ye;modelExtensionsCache=new ye;queryCallbacksCache=new ye;clientExtensions=kt(()=>this.extension.client?{...this.previous?.getAllClientExtensions(),...this.extension.client}:this.previous?.getAllClientExtensions());batchCallbacks=kt(()=>{let t=this.previous?.getAllBatchQueryCallbacks()??[],r=this.extension.query?.$__internalBatch;return r?t.concat(r):t});getAllComputedFields(t){return this.computedFieldsCache.getOrCreate(t,()=>Go(this.previous?.getAllComputedFields(t),this.extension,t))}getAllClientExtensions(){return this.clientExtensions.get()}getAllModelExtensions(t){return this.modelExtensionsCache.getOrCreate(t,()=>{let r=Ee(t);return!this.extension.model||!(this.extension.model[r]||this.extension.model.$allModels)?this.previous?.getAllModelExtensions(t):{...this.previous?.getAllModelExtensions(t),...this.extension.model.$allModels,...this.extension.model[r]}})}getAllQueryCallbacks(t,r){return this.queryCallbacksCache.getOrCreate(`${t}:${r}`,()=>{let n=this.previous?.getAllQueryCallbacks(t,r)??[],i=[],o=this.extension.query;return!o||!(o[t]||o.$allModels||o[r]||o.$allOperations)?n:(o[t]!==void 0&&(o[t][r]!==void 0&&i.push(o[t][r]),o[t].$allOperations!==void 0&&i.push(o[t].$allOperations)),t!=="$none"&&o.$allModels!==void 0&&(o.$allModels[r]!==void 0&&i.push(o.$allModels[r]),o.$allModels.$allOperations!==void 0&&i.push(o.$allModels.$allOperations)),o[r]!==void 0&&i.push(o[r]),o.$allOperations!==void 0&&i.push(o.$allOperations),n.concat(i))})}getAllBatchQueryCallbacks(){return this.batchCallbacks.get()}},ct=class e{constructor(t){this.head=t}static empty(){return new e}static single(t){return new e(new Ur(t))}isEmpty(){return this.head===void 0}append(t){return new e(new Ur(t,this.head))}getAllComputedFields(t){return this.head?.getAllComputedFields(t)}getAllClientExtensions(){return this.head?.getAllClientExtensions()}getAllModelExtensions(t){return this.head?.getAllModelExtensions(t)}getAllQueryCallbacks(t,r){return this.head?.getAllQueryCallbacks(t,r)??[]}getAllBatchQueryCallbacks(){return this.head?.getAllBatchQueryCallbacks()??[]}};d();u();c();p();m();var Br=class{constructor(t){this.name=t}};function Wo(e){return e instanceof Br}function Ko(e){return new Br(e)}d();u();c();p();m();d();u();c();p();m();var Ho=Symbol(),qt=class{constructor(t){if(t!==Ho)throw new Error("Skip instance can not be constructed directly")}ifUndefined(t){return t===void 0?qr:t}},qr=new qt(Ho);function be(e){return e instanceof qt}var cc={findUnique:"findUnique",findUniqueOrThrow:"findUniqueOrThrow",findFirst:"findFirst",findFirstOrThrow:"findFirstOrThrow",findMany:"findMany",count:"aggregate",create:"createOne",createMany:"createMany",createManyAndReturn:"createManyAndReturn",update:"updateOne",updateMany:"updateMany",updateManyAndReturn:"updateManyAndReturn",upsert:"upsertOne",delete:"deleteOne",deleteMany:"deleteMany",executeRaw:"executeRaw",queryRaw:"queryRaw",aggregate:"aggregate",groupBy:"groupBy",runCommandRaw:"runCommandRaw",findRaw:"findRaw",aggregateRaw:"aggregateRaw"},zo="explicitly `undefined` values are not allowed";function $r({modelName:e,action:t,args:r,runtimeDataModel:n,extensions:i=ct.empty(),callsite:o,clientMethod:s,errorFormat:a,clientVersion:l,previewFeatures:f,globalOmit:g}){let h=new Un({runtimeDataModel:n,modelName:e,action:t,rootArgs:r,callsite:o,extensions:i,selectionPath:[],argumentPath:[],originalMethod:s,errorFormat:a,clientVersion:l,previewFeatures:f,globalOmit:g});return{modelName:e,action:cc[t],query:$t(r,h)}}function $t({select:e,include:t,...r}={},n){let i=r.omit;return delete r.omit,{arguments:Zo(r,n),selection:pc(e,t,i,n)}}function pc(e,t,r,n){return e?(t?n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"include",secondField:"select",selectionPath:n.getSelectionPath()}):r&&n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"omit",secondField:"select",selectionPath:n.getSelectionPath()}),gc(e,n)):mc(n,t,r)}function mc(e,t,r){let n={};return e.modelOrType&&!e.isRawAction()&&(n.$composites=!0,n.$scalars=!0),t&&dc(n,t,e),fc(n,r,e),n}function dc(e,t,r){for(let[n,i]of Object.entries(t)){if(be(i))continue;let o=r.nestSelection(n);if(Bn(i,o),i===!1||i===void 0){e[n]=!1;continue}let s=r.findField(n);if(s&&s.kind!=="object"&&r.throwValidationError({kind:"IncludeOnScalar",selectionPath:r.getSelectionPath().concat(n),outputType:r.getOutputTypeDescription()}),s){e[n]=$t(i===!0?{}:i,o);continue}if(i===!0){e[n]=!0;continue}e[n]=$t(i,o)}}function fc(e,t,r){let n=r.getComputedFields(),i={...r.getGlobalOmit(),...t},o=Jo(i,n);for(let[s,a]of Object.entries(o)){if(be(a))continue;Bn(a,r.nestSelection(s));let l=r.findField(s);n?.[s]&&!l||(e[s]=!a)}}function gc(e,t){let r={},n=t.getComputedFields(),i=Qo(e,n);for(let[o,s]of Object.entries(i)){if(be(s))continue;let a=t.nestSelection(o);Bn(s,a);let l=t.findField(o);if(!(n?.[o]&&!l)){if(s===!1||s===void 0||be(s)){r[o]=!1;continue}if(s===!0){l?.kind==="object"?r[o]=$t({},a):r[o]=!0;continue}r[o]=$t(s,a)}}return r}function Yo(e,t){if(e===null)return null;if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="bigint")return{$type:"BigInt",value:String(e)};if(rt(e)){if(Ar(e))return{$type:"DateTime",value:e.toISOString()};t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:["Date"]},underlyingError:"Provided Date object is invalid"})}if(Wo(e))return{$type:"Param",value:e.name};if(lt(e))return{$type:"FieldRef",value:{_ref:e.name,_container:e.modelName}};if(Array.isArray(e))return hc(e,t);if(ArrayBuffer.isView(e)){let{buffer:r,byteOffset:n,byteLength:i}=e;return{$type:"Bytes",value:w.Buffer.from(r,n,i).toString("base64")}}if(yc(e))return e.values;if(nt(e))return{$type:"Decimal",value:e.toFixed()};if(e instanceof Ce){if(e!==_r.instances[e._getName()])throw new Error("Invalid ObjectEnumValue");return{$type:"Enum",value:e._getName()}}if(wc(e))return e.toJSON();if(typeof e=="object")return Zo(e,t);t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:`We could not serialize ${Object.prototype.toString.call(e)} value. Serialize the object to JSON or implement a ".toJSON()" method on it`})}function Zo(e,t){if(e.$type)return{$type:"Raw",value:e};let r={};for(let n in e){let i=e[n],o=t.nestArgument(n);be(i)||(i!==void 0?r[n]=Yo(i,o):t.isPreviewFeatureOn("strictUndefinedChecks")&&t.throwValidationError({kind:"InvalidArgumentValue",argumentPath:o.getArgumentPath(),selectionPath:t.getSelectionPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:zo}))}return r}function hc(e,t){let r=[];for(let n=0;n({name:t.name,typeName:"boolean",isRelation:t.kind==="object"}))}}isRawAction(){return["executeRaw","queryRaw","runCommandRaw","findRaw","aggregateRaw"].includes(this.params.action)}isPreviewFeatureOn(t){return this.params.previewFeatures.includes(t)}getComputedFields(){if(this.params.modelName)return this.params.extensions.getAllComputedFields(this.params.modelName)}findField(t){return this.modelOrType?.fields.find(r=>r.name===t)}nestSelection(t){let r=this.findField(t),n=r?.kind==="object"?r.type:void 0;return new e({...this.params,modelName:n,selectionPath:this.params.selectionPath.concat(t)})}getGlobalOmit(){return this.params.modelName&&this.shouldApplyGlobalOmit()?this.params.globalOmit?.[Me(this.params.modelName)]??{}:{}}shouldApplyGlobalOmit(){switch(this.params.action){case"findFirst":case"findFirstOrThrow":case"findUniqueOrThrow":case"findMany":case"upsert":case"findUnique":case"createManyAndReturn":case"create":case"update":case"updateManyAndReturn":case"delete":return!0;case"executeRaw":case"aggregateRaw":case"runCommandRaw":case"findRaw":case"createMany":case"deleteMany":case"groupBy":case"updateMany":case"count":case"aggregate":case"queryRaw":return!1;default:Pe(this.params.action,"Unknown action")}}nestArgument(t){return new e({...this.params,argumentPath:this.params.argumentPath.concat(t)})}};d();u();c();p();m();function Xo(e){if(!e._hasPreviewFlag("metrics"))throw new Z("`metrics` preview feature must be enabled in order to access metrics API",{clientVersion:e._clientVersion})}var pt=class{_client;constructor(t){this._client=t}prometheus(t){return Xo(this._client),this._client._engine.metrics({format:"prometheus",...t})}json(t){return Xo(this._client),this._client._engine.metrics({format:"json",...t})}};d();u();c();p();m();function es(e,t){let r=kt(()=>Ec(t));Object.defineProperty(e,"dmmf",{get:()=>r.get()})}function Ec(e){return{datamodel:{models:qn(e.models),enums:qn(e.enums),types:qn(e.types)}}}function qn(e){return Object.entries(e).map(([t,r])=>({name:t,...r}))}d();u();c();p();m();var $n=new WeakMap,Vr="$$PrismaTypedSql",Vt=class{constructor(t,r){$n.set(this,{sql:t,values:r}),Object.defineProperty(this,Vr,{value:Vr})}get sql(){return $n.get(this).sql}get values(){return $n.get(this).values}};function ts(e){return(...t)=>new Vt(e,t)}function jr(e){return e!=null&&e[Vr]===Vr}d();u();c();p();m();var wa=Le(Pn());d();u();c();p();m();rs();Ji();zi();d();u();c();p();m();var oe=class e{constructor(t,r){if(t.length-1!==r.length)throw t.length===0?new TypeError("Expected at least 1 string"):new TypeError(`Expected ${t.length} strings to have ${t.length-1} values`);let n=r.reduce((s,a)=>s+(a instanceof e?a.values.length:1),0);this.values=new Array(n),this.strings=new Array(n+1),this.strings[0]=t[0];let i=0,o=0;for(;ie.getPropertyValue(r))},getPropertyDescriptor(r){return e.getPropertyDescriptor?.(r)}}}d();u();c();p();m();d();u();c();p();m();var Qr={enumerable:!0,configurable:!0,writable:!0};function Jr(e){let t=new Set(e);return{getPrototypeOf:()=>Object.prototype,getOwnPropertyDescriptor:()=>Qr,has:(r,n)=>t.has(n),set:(r,n,i)=>t.add(n)&&Reflect.set(r,n,i),ownKeys:()=>[...t]}}var os=Symbol.for("nodejs.util.inspect.custom");function pe(e,t){let r=bc(t),n=new Set,i=new Proxy(e,{get(o,s){if(n.has(s))return o[s];let a=r.get(s);return a?a.getPropertyValue(s):o[s]},has(o,s){if(n.has(s))return!0;let a=r.get(s);return a?a.has?.(s)??!0:Reflect.has(o,s)},ownKeys(o){let s=ss(Reflect.ownKeys(o),r),a=ss(Array.from(r.keys()),r);return[...new Set([...s,...a,...n])]},set(o,s,a){return r.get(s)?.getPropertyDescriptor?.(s)?.writable===!1?!1:(n.add(s),Reflect.set(o,s,a))},getOwnPropertyDescriptor(o,s){let a=Reflect.getOwnPropertyDescriptor(o,s);if(a&&!a.configurable)return a;let l=r.get(s);return l?l.getPropertyDescriptor?{...Qr,...l?.getPropertyDescriptor(s)}:Qr:a},defineProperty(o,s,a){return n.add(s),Reflect.defineProperty(o,s,a)},getPrototypeOf:()=>Object.prototype});return i[os]=function(){let o={...this};return delete o[os],o},i}function bc(e){let t=new Map;for(let r of e){let n=r.getKeys();for(let i of n)t.set(i,r)}return t}function ss(e,t){return e.filter(r=>t.get(r)?.has?.(r)??!0)}d();u();c();p();m();function mt(e){return{getKeys(){return e},has(){return!1},getPropertyValue(){}}}d();u();c();p();m();function Wr(e,t){return{batch:e,transaction:t?.kind==="batch"?{isolationLevel:t.options.isolationLevel}:void 0}}d();u();c();p();m();function as(e){if(e===void 0)return"";let t=ut(e);return new it(0,{colors:Or}).write(t).toString()}d();u();c();p();m();var xc="P2037";function Kr({error:e,user_facing_error:t},r,n){return t.error_code?new re(Pc(t,n),{code:t.error_code,clientVersion:r,meta:t.meta,batchRequestIdx:t.batch_request_idx}):new ne(e,{clientVersion:r,batchRequestIdx:t.batch_request_idx})}function Pc(e,t){let r=e.message;return(t==="postgresql"||t==="postgres"||t==="mysql")&&e.error_code===xc&&(r+=` -Prisma Accelerate has built-in connection pooling to prevent such errors: https://pris.ly/client/error-accelerate`),r}d();u();c();p();m();d();u();c();p();m();d();u();c();p();m();d();u();c();p();m();d();u();c();p();m();var Gn=class{getLocation(){return null}};function Ne(e){return typeof $EnabledCallSite=="function"&&e!=="minimal"?new $EnabledCallSite:new Gn}d();u();c();p();m();d();u();c();p();m();d();u();c();p();m();var ls={_avg:!0,_count:!0,_sum:!0,_min:!0,_max:!0};function dt(e={}){let t=Tc(e);return Object.entries(t).reduce((n,[i,o])=>(ls[i]!==void 0?n.select[i]={select:o}:n[i]=o,n),{select:{}})}function Tc(e={}){return typeof e._count=="boolean"?{...e,_count:{_all:e._count}}:e}function Hr(e={}){return t=>(typeof e._count=="boolean"&&(t._count=t._count._all),t)}function us(e,t){let r=Hr(e);return t({action:"aggregate",unpacker:r,argsMapper:dt})(e)}d();u();c();p();m();function Cc(e={}){let{select:t,...r}=e;return typeof t=="object"?dt({...r,_count:t}):dt({...r,_count:{_all:!0}})}function Ac(e={}){return typeof e.select=="object"?t=>Hr(e)(t)._count:t=>Hr(e)(t)._count._all}function cs(e,t){return t({action:"count",unpacker:Ac(e),argsMapper:Cc})(e)}d();u();c();p();m();function Rc(e={}){let t=dt(e);if(Array.isArray(t.by))for(let r of t.by)typeof r=="string"&&(t.select[r]=!0);else typeof t.by=="string"&&(t.select[t.by]=!0);return t}function Sc(e={}){return t=>(typeof e?._count=="boolean"&&t.forEach(r=>{r._count=r._count._all}),t)}function ps(e,t){return t({action:"groupBy",unpacker:Sc(e),argsMapper:Rc})(e)}function ms(e,t,r){if(t==="aggregate")return n=>us(n,r);if(t==="count")return n=>cs(n,r);if(t==="groupBy")return n=>ps(n,r)}d();u();c();p();m();function ds(e,t){let r=t.fields.filter(i=>!i.relationName),n=To(r,"name");return new Proxy({},{get(i,o){if(o in i||typeof o=="symbol")return i[o];let s=n[o];if(s)return new Nt(e,o,s.type,s.isList,s.kind==="enum")},...Jr(Object.keys(n))})}d();u();c();p();m();d();u();c();p();m();var fs=e=>Array.isArray(e)?e:e.split("."),Qn=(e,t)=>fs(t).reduce((r,n)=>r&&r[n],e),gs=(e,t,r)=>fs(t).reduceRight((n,i,o,s)=>Object.assign({},Qn(e,s.slice(0,o)),{[i]:n}),r);function kc(e,t){return e===void 0||t===void 0?[]:[...t,"select",e]}function Ic(e,t,r){return t===void 0?e??{}:gs(t,r,e||!0)}function Jn(e,t,r,n,i,o){let a=e._runtimeDataModel.models[t].fields.reduce((l,f)=>({...l,[f.name]:f}),{});return l=>{let f=Ne(e._errorFormat),g=kc(n,i),h=Ic(l,o,g),v=r({dataPath:g,callsite:f})(h),S=Oc(e,t);return new Proxy(v,{get(C,R){if(!S.includes(R))return C[R];let M=[a[R].type,r,R],U=[g,h];return Jn(e,...M,...U)},...Jr([...S,...Object.getOwnPropertyNames(v)])})}}function Oc(e,t){return e._runtimeDataModel.models[t].fields.filter(r=>r.kind==="object").map(r=>r.name)}var Dc=["findUnique","findUniqueOrThrow","findFirst","findFirstOrThrow","create","update","upsert","delete"],Mc=["aggregate","count","groupBy"];function Wn(e,t){let r=e._extensions.getAllModelExtensions(t)??{},n=[_c(e,t),Fc(e,t),jt(r),ee("name",()=>t),ee("$name",()=>t),ee("$parent",()=>e._appliedParent)];return pe({},n)}function _c(e,t){let r=Ee(t),n=Object.keys(It).concat("count");return{getKeys(){return n},getPropertyValue(i){let o=i,s=a=>l=>{let f=Ne(e._errorFormat);return e._createPrismaPromise(g=>{let h={args:l,dataPath:[],action:o,model:t,clientMethod:`${r}.${i}`,jsModelName:r,transaction:g,callsite:f};return e._request({...h,...a})},{action:o,args:l,model:t})};return Dc.includes(o)?Jn(e,t,s):Nc(i)?ms(e,i,s):s({})}}}function Nc(e){return Mc.includes(e)}function Fc(e,t){return qe(ee("fields",()=>{let r=e._runtimeDataModel.models[t];return ds(t,r)}))}d();u();c();p();m();function hs(e){return e.replace(/^./,t=>t.toUpperCase())}var Kn=Symbol();function Gt(e){let t=[Lc(e),Uc(e),ee(Kn,()=>e),ee("$parent",()=>e._appliedParent)],r=e._extensions.getAllClientExtensions();return r&&t.push(jt(r)),pe(e,t)}function Lc(e){let t=Object.getPrototypeOf(e._originalClient),r=[...new Set(Object.getOwnPropertyNames(t))];return{getKeys(){return r},getPropertyValue(n){return e[n]}}}function Uc(e){let t=Object.keys(e._runtimeDataModel.models),r=t.map(Ee),n=[...new Set(t.concat(r))];return qe({getKeys(){return n},getPropertyValue(i){let o=hs(i);if(e._runtimeDataModel.models[o]!==void 0)return Wn(e,o);if(e._runtimeDataModel.models[i]!==void 0)return Wn(e,i)},getPropertyDescriptor(i){if(!r.includes(i))return{enumerable:!1}}})}function ys(e){return e[Kn]?e[Kn]:e}function ws(e){if(typeof e=="function")return e(this);if(e.client?.__AccelerateEngine){let r=e.client.__AccelerateEngine;this._originalClient._engine=new r(this._originalClient._accelerateEngineConfig)}let t=Object.create(this._originalClient,{_extensions:{value:this._extensions.append(e)},_appliedParent:{value:this,configurable:!0},$use:{value:void 0},$on:{value:void 0}});return Gt(t)}d();u();c();p();m();d();u();c();p();m();function Es({result:e,modelName:t,select:r,omit:n,extensions:i}){let o=i.getAllComputedFields(t);if(!o)return e;let s=[],a=[];for(let l of Object.values(o)){if(n){if(n[l.name])continue;let f=l.needs.filter(g=>n[g]);f.length>0&&a.push(mt(f))}else if(r){if(!r[l.name])continue;let f=l.needs.filter(g=>!r[g]);f.length>0&&a.push(mt(f))}Bc(e,l.needs)&&s.push(qc(l,pe(e,s)))}return s.length>0||a.length>0?pe(e,[...s,...a]):e}function Bc(e,t){return t.every(r=>Cn(e,r))}function qc(e,t){return qe(ee(e.name,()=>e.compute(t)))}d();u();c();p();m();function zr({visitor:e,result:t,args:r,runtimeDataModel:n,modelName:i}){if(Array.isArray(t)){for(let s=0;sg.name===o);if(!l||l.kind!=="object"||!l.relationName)continue;let f=typeof s=="object"?s:{};t[o]=zr({visitor:i,result:t[o],args:f,modelName:l.type,runtimeDataModel:n})}}function xs({result:e,modelName:t,args:r,extensions:n,runtimeDataModel:i,globalOmit:o}){return n.isEmpty()||e==null||typeof e!="object"||!i.models[t]?e:zr({result:e,args:r??{},modelName:t,runtimeDataModel:i,visitor:(a,l,f)=>{let g=Ee(l);return Es({result:a,modelName:g,select:f.select,omit:f.select?void 0:{...o?.[g],...f.omit},extensions:n})}})}d();u();c();p();m();d();u();c();p();m();d();u();c();p();m();var $c=["$connect","$disconnect","$on","$transaction","$use","$extends"],Ps=$c;function vs(e){if(e instanceof oe)return Vc(e);if(jr(e))return jc(e);if(Array.isArray(e)){let r=[e[0]];for(let n=1;n{let o=t.customDataProxyFetch;return"transaction"in t&&i!==void 0&&(t.transaction?.kind==="batch"&&t.transaction.lock.then(),t.transaction=i),n===r.length?e._executeRequest(t):r[n]({model:t.model,operation:t.model?t.action:t.clientMethod,args:vs(t.args??{}),__internalParams:t,query:(s,a=t)=>{let l=a.customDataProxyFetch;return a.customDataProxyFetch=ks(o,l),a.args=s,Cs(e,a,r,n+1)}})})}function As(e,t){let{jsModelName:r,action:n,clientMethod:i}=t,o=r?n:i;if(e._extensions.isEmpty())return e._executeRequest(t);let s=e._extensions.getAllQueryCallbacks(r??"$none",o);return Cs(e,t,s)}function Rs(e){return t=>{let r={requests:t},n=t[0].extensions.getAllBatchQueryCallbacks();return n.length?Ss(r,n,0,e):e(r)}}function Ss(e,t,r,n){if(r===t.length)return n(e);let i=e.customDataProxyFetch,o=e.requests[0].transaction;return t[r]({args:{queries:e.requests.map(s=>({model:s.modelName,operation:s.action,args:s.args})),transaction:o?{isolationLevel:o.kind==="batch"?o.isolationLevel:void 0}:void 0},__internalParams:e,query(s,a=e){let l=a.customDataProxyFetch;return a.customDataProxyFetch=ks(i,l),Ss(a,t,r+1,n)}})}var Ts=e=>e;function ks(e=Ts,t=Ts){return r=>e(t(r))}d();u();c();p();m();var Is=H("prisma:client"),Os={Vercel:"vercel","Netlify CI":"netlify"};function Ds({postinstall:e,ciName:t,clientVersion:r}){if(Is("checkPlatformCaching:postinstall",e),Is("checkPlatformCaching:ciName",t),e===!0&&t&&t in Os){let n=`Prisma has detected that this project was built on ${t}, which caches dependencies. This leads to an outdated Prisma Client because Prisma's auto-generation isn't triggered. To fix this, make sure to run the \`prisma generate\` command during the build process. - -Learn how: https://pris.ly/d/${Os[t]}-build`;throw console.error(n),new Q(n,r)}}d();u();c();p();m();function Ms(e,t){return e?e.datasources?e.datasources:e.datasourceUrl?{[t[0]]:{url:e.datasourceUrl}}:{}:{}}d();u();c();p();m();d();u();c();p();m();var Gc=()=>globalThis.process?.release?.name==="node",Qc=()=>!!globalThis.Bun||!!globalThis.process?.versions?.bun,Jc=()=>!!globalThis.Deno,Wc=()=>typeof globalThis.Netlify=="object",Kc=()=>typeof globalThis.EdgeRuntime=="object",Hc=()=>globalThis.navigator?.userAgent==="Cloudflare-Workers";function zc(){return[[Wc,"netlify"],[Kc,"edge-light"],[Hc,"workerd"],[Jc,"deno"],[Qc,"bun"],[Gc,"node"]].flatMap(r=>r[0]()?[r[1]]:[]).at(0)??""}var Yc={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function Yr(){let e=zc();return{id:e,prettyName:Yc[e]||e,isEdge:["workerd","deno","netlify","edge-light"].includes(e)}}d();u();c();p();m();var _s="6.12.0";d();u();c();p();m();d();u();c();p();m();function ft({inlineDatasources:e,overrideDatasources:t,env:r,clientVersion:n}){let i,o=Object.keys(e)[0],s=e[o]?.url,a=t[o]?.url;if(o===void 0?i=void 0:a?i=a:s?.value?i=s.value:s?.fromEnvVar&&(i=r[s.fromEnvVar]),s?.fromEnvVar!==void 0&&i===void 0)throw Yr().id==="workerd"?new Q(`error: Environment variable not found: ${s.fromEnvVar}. - -In Cloudflare module Workers, environment variables are available only in the Worker's \`env\` parameter of \`fetch\`. -To solve this, provide the connection string directly: https://pris.ly/d/cloudflare-datasource-url`,n):new Q(`error: Environment variable not found: ${s.fromEnvVar}.`,n);if(i===void 0)throw new Q("error: Missing URL environment variable, value, or override.",n);return i}d();u();c();p();m();d();u();c();p();m();d();u();c();p();m();var Zr=class extends Error{clientVersion;cause;constructor(t,r){super(t),this.clientVersion=r.clientVersion,this.cause=r.cause}get[Symbol.toStringTag](){return this.name}};var se=class extends Zr{isRetryable;constructor(t,r){super(t,r),this.isRetryable=r.isRetryable??!0}};d();u();c();p();m();function L(e,t){return{...e,isRetryable:t}}var $e=class extends se{name="InvalidDatasourceError";code="P6001";constructor(t,r){super(t,L(r,!1))}};N($e,"InvalidDatasourceError");function Ns(e){let t={clientVersion:e.clientVersion},r=Object.keys(e.inlineDatasources)[0],n=ft({inlineDatasources:e.inlineDatasources,overrideDatasources:e.overrideDatasources,clientVersion:e.clientVersion,env:{...e.env,...typeof y<"u"?y.env:{}}}),i;try{i=new URL(n)}catch{throw new $e(`Error validating datasource \`${r}\`: the URL must start with the protocol \`prisma://\``,t)}let{protocol:o,searchParams:s}=i;if(o!=="prisma:"&&o!==hr)throw new $e(`Error validating datasource \`${r}\`: the URL must start with the protocol \`prisma://\` or \`prisma+postgres://\``,t);let a=s.get("api_key");if(a===null||a.length<1)throw new $e(`Error validating datasource \`${r}\`: the URL must contain a valid API key`,t);let l=vn(i)?"http:":"https:",f=new URL(i.href.replace(o,l));return{apiKey:a,url:f}}d();u();c();p();m();var Fs=Le(Zi()),Xr=class{apiKey;tracingHelper;logLevel;logQueries;engineHash;constructor({apiKey:t,tracingHelper:r,logLevel:n,logQueries:i,engineHash:o}){this.apiKey=t,this.tracingHelper=r,this.logLevel=n,this.logQueries=i,this.engineHash=o}build({traceparent:t,transactionId:r}={}){let n={Accept:"application/json",Authorization:`Bearer ${this.apiKey}`,"Content-Type":"application/json","Prisma-Engine-Hash":this.engineHash,"Prisma-Engine-Version":Fs.enginesVersion};this.tracingHelper.isEnabled()&&(n.traceparent=t??this.tracingHelper.getTraceParent()),r&&(n["X-Transaction-Id"]=r);let i=this.#e();return i.length>0&&(n["X-Capture-Telemetry"]=i.join(", ")),n}#e(){let t=[];return this.tracingHelper.isEnabled()&&t.push("tracing"),this.logLevel&&t.push(this.logLevel),this.logQueries&&t.push("query"),t}};d();u();c();p();m();function Xc(e){return e[0]*1e3+e[1]/1e6}function Hn(e){return new Date(Xc(e))}d();u();c();p();m();d();u();c();p();m();var gt=class extends se{name="ForcedRetryError";code="P5001";constructor(t){super("This request must be retried",L(t,!0))}};N(gt,"ForcedRetryError");d();u();c();p();m();var Ve=class extends se{name="NotImplementedYetError";code="P5004";constructor(t,r){super(t,L(r,!1))}};N(Ve,"NotImplementedYetError");d();u();c();p();m();d();u();c();p();m();var j=class extends se{response;constructor(t,r){super(t,r),this.response=r.response;let n=this.response.headers.get("prisma-request-id");if(n){let i=`(The request id was: ${n})`;this.message=this.message+" "+i}}};var je=class extends j{name="SchemaMissingError";code="P5005";constructor(t){super("Schema needs to be uploaded",L(t,!0))}};N(je,"SchemaMissingError");d();u();c();p();m();d();u();c();p();m();var zn="This request could not be understood by the server",Jt=class extends j{name="BadRequestError";code="P5000";constructor(t,r,n){super(r||zn,L(t,!1)),n&&(this.code=n)}};N(Jt,"BadRequestError");d();u();c();p();m();var Wt=class extends j{name="HealthcheckTimeoutError";code="P5013";logs;constructor(t,r){super("Engine not started: healthcheck timeout",L(t,!0)),this.logs=r}};N(Wt,"HealthcheckTimeoutError");d();u();c();p();m();var Kt=class extends j{name="EngineStartupError";code="P5014";logs;constructor(t,r,n){super(r,L(t,!0)),this.logs=n}};N(Kt,"EngineStartupError");d();u();c();p();m();var Ht=class extends j{name="EngineVersionNotSupportedError";code="P5012";constructor(t){super("Engine version is not supported",L(t,!1))}};N(Ht,"EngineVersionNotSupportedError");d();u();c();p();m();var Yn="Request timed out",zt=class extends j{name="GatewayTimeoutError";code="P5009";constructor(t,r=Yn){super(r,L(t,!1))}};N(zt,"GatewayTimeoutError");d();u();c();p();m();var ep="Interactive transaction error",Yt=class extends j{name="InteractiveTransactionError";code="P5015";constructor(t,r=ep){super(r,L(t,!1))}};N(Yt,"InteractiveTransactionError");d();u();c();p();m();var tp="Request parameters are invalid",Zt=class extends j{name="InvalidRequestError";code="P5011";constructor(t,r=tp){super(r,L(t,!1))}};N(Zt,"InvalidRequestError");d();u();c();p();m();var Zn="Requested resource does not exist",Xt=class extends j{name="NotFoundError";code="P5003";constructor(t,r=Zn){super(r,L(t,!1))}};N(Xt,"NotFoundError");d();u();c();p();m();var Xn="Unknown server error",ht=class extends j{name="ServerError";code="P5006";logs;constructor(t,r,n){super(r||Xn,L(t,!0)),this.logs=n}};N(ht,"ServerError");d();u();c();p();m();var ei="Unauthorized, check your connection string",er=class extends j{name="UnauthorizedError";code="P5007";constructor(t,r=ei){super(r,L(t,!1))}};N(er,"UnauthorizedError");d();u();c();p();m();var ti="Usage exceeded, retry again later",tr=class extends j{name="UsageExceededError";code="P5008";constructor(t,r=ti){super(r,L(t,!0))}};N(tr,"UsageExceededError");async function rp(e){let t;try{t=await e.text()}catch{return{type:"EmptyError"}}try{let r=JSON.parse(t);if(typeof r=="string")switch(r){case"InternalDataProxyError":return{type:"DataProxyError",body:r};default:return{type:"UnknownTextError",body:r}}if(typeof r=="object"&&r!==null){if("is_panic"in r&&"message"in r&&"error_code"in r)return{type:"QueryEngineError",body:r};if("EngineNotStarted"in r||"InteractiveTransactionMisrouted"in r||"InvalidRequestError"in r){let n=Object.values(r)[0].reason;return typeof n=="string"&&!["SchemaMissing","EngineVersionNotSupported"].includes(n)?{type:"UnknownJsonError",body:r}:{type:"DataProxyError",body:r}}}return{type:"UnknownJsonError",body:r}}catch{return t===""?{type:"EmptyError"}:{type:"UnknownTextError",body:t}}}async function rr(e,t){if(e.ok)return;let r={clientVersion:t,response:e},n=await rp(e);if(n.type==="QueryEngineError")throw new re(n.body.message,{code:n.body.error_code,clientVersion:t});if(n.type==="DataProxyError"){if(n.body==="InternalDataProxyError")throw new ht(r,"Internal Data Proxy error");if("EngineNotStarted"in n.body){if(n.body.EngineNotStarted.reason==="SchemaMissing")return new je(r);if(n.body.EngineNotStarted.reason==="EngineVersionNotSupported")throw new Ht(r);if("EngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,logs:o}=n.body.EngineNotStarted.reason.EngineStartupError;throw new Kt(r,i,o)}if("KnownEngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,error_code:o}=n.body.EngineNotStarted.reason.KnownEngineStartupError;throw new Q(i,t,o)}if("HealthcheckTimeout"in n.body.EngineNotStarted.reason){let{logs:i}=n.body.EngineNotStarted.reason.HealthcheckTimeout;throw new Wt(r,i)}}if("InteractiveTransactionMisrouted"in n.body){let i={IDParseError:"Could not parse interactive transaction ID",NoQueryEngineFoundError:"Could not find Query Engine for the specified host and transaction ID",TransactionStartError:"Could not start interactive transaction"};throw new Yt(r,i[n.body.InteractiveTransactionMisrouted.reason])}if("InvalidRequestError"in n.body)throw new Zt(r,n.body.InvalidRequestError.reason)}if(e.status===401||e.status===403)throw new er(r,yt(ei,n));if(e.status===404)return new Xt(r,yt(Zn,n));if(e.status===429)throw new tr(r,yt(ti,n));if(e.status===504)throw new zt(r,yt(Yn,n));if(e.status>=500)throw new ht(r,yt(Xn,n));if(e.status>=400)throw new Jt(r,yt(zn,n))}function yt(e,t){return t.type==="EmptyError"?e:`${e}: ${JSON.stringify(t)}`}d();u();c();p();m();function Ls(e){let t=Math.pow(2,e)*50,r=Math.ceil(Math.random()*t)-Math.ceil(t/2),n=t+r;return new Promise(i=>setTimeout(()=>i(n),n))}d();u();c();p();m();var Ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Us(e){let t=new TextEncoder().encode(e),r="",n=t.byteLength,i=n%3,o=n-i,s,a,l,f,g;for(let h=0;h>18,a=(g&258048)>>12,l=(g&4032)>>6,f=g&63,r+=Ae[s]+Ae[a]+Ae[l]+Ae[f];return i==1?(g=t[o],s=(g&252)>>2,a=(g&3)<<4,r+=Ae[s]+Ae[a]+"=="):i==2&&(g=t[o]<<8|t[o+1],s=(g&64512)>>10,a=(g&1008)>>4,l=(g&15)<<2,r+=Ae[s]+Ae[a]+Ae[l]+"="),r}d();u();c();p();m();function Bs(e){if(!!e.generator?.previewFeatures.some(r=>r.toLowerCase().includes("metrics")))throw new Q("The `metrics` preview feature is not yet available with Accelerate.\nPlease remove `metrics` from the `previewFeatures` in your schema.\n\nMore information about Accelerate: https://pris.ly/d/accelerate",e.clientVersion)}d();u();c();p();m();var qs={"@prisma/debug":"workspace:*","@prisma/engines-version":"6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc","@prisma/fetch-engine":"workspace:*","@prisma/get-platform":"workspace:*"};d();u();c();p();m();d();u();c();p();m();var nr=class extends se{name="RequestError";code="P5010";constructor(t,r){super(`Cannot fetch data from service: -${t}`,L(r,!0))}};N(nr,"RequestError");async function Ge(e,t,r=n=>n){let{clientVersion:n,...i}=t,o=r(fetch);try{return await o(e,i)}catch(s){let a=s.message??"Unknown error";throw new nr(a,{clientVersion:n,cause:s})}}var ip=/^[1-9][0-9]*\.[0-9]+\.[0-9]+$/,$s=H("prisma:client:dataproxyEngine");async function op(e,t){let r=qs["@prisma/engines-version"],n=t.clientVersion??"unknown";if(y.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION||globalThis.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION)return y.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION||globalThis.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION;if(e.includes("accelerate")&&n!=="0.0.0"&&n!=="in-memory")return n;let[i,o]=n?.split("-")??[];if(o===void 0&&ip.test(i))return i;if(o!==void 0||n==="0.0.0"||n==="in-memory"){let[s]=r.split("-")??[],[a,l,f]=s.split("."),g=sp(`<=${a}.${l}.${f}`),h=await Ge(g,{clientVersion:n});if(!h.ok)throw new Error(`Failed to fetch stable Prisma version, unpkg.com status ${h.status} ${h.statusText}, response body: ${await h.text()||""}`);let v=await h.text();$s("length of body fetched from unpkg.com",v.length);let S;try{S=JSON.parse(v)}catch(C){throw console.error("JSON.parse error: body fetched from unpkg.com: ",v),C}return S.version}throw new Ve("Only `major.minor.patch` versions are supported by Accelerate.",{clientVersion:n})}async function Vs(e,t){let r=await op(e,t);return $s("version",r),r}function sp(e){return encodeURI(`https://unpkg.com/prisma@${e}/package.json`)}var js=3,ir=H("prisma:client:dataproxyEngine"),wt=class{name="DataProxyEngine";inlineSchema;inlineSchemaHash;inlineDatasources;config;logEmitter;env;clientVersion;engineHash;tracingHelper;remoteClientVersion;host;headerBuilder;startPromise;protocol;constructor(t){Bs(t),this.config=t,this.env=t.env,this.inlineSchema=Us(t.inlineSchema),this.inlineDatasources=t.inlineDatasources,this.inlineSchemaHash=t.inlineSchemaHash,this.clientVersion=t.clientVersion,this.engineHash=t.engineVersion,this.logEmitter=t.logEmitter,this.tracingHelper=t.tracingHelper}apiKey(){return this.headerBuilder.apiKey}version(){return this.engineHash}async start(){this.startPromise!==void 0&&await this.startPromise,this.startPromise=(async()=>{let{apiKey:t,url:r}=this.getURLAndAPIKey();this.host=r.host,this.protocol=r.protocol,this.headerBuilder=new Xr({apiKey:t,tracingHelper:this.tracingHelper,logLevel:this.config.logLevel??"error",logQueries:this.config.logQueries,engineHash:this.engineHash}),this.remoteClientVersion=await Vs(this.host,this.config),ir("host",this.host),ir("protocol",this.protocol)})(),await this.startPromise}async stop(){}propagateResponseExtensions(t){t?.logs?.length&&t.logs.forEach(r=>{switch(r.level){case"debug":case"trace":ir(r);break;case"error":case"warn":case"info":{this.logEmitter.emit(r.level,{timestamp:Hn(r.timestamp),message:r.attributes.message??"",target:r.target});break}case"query":{this.logEmitter.emit("query",{query:r.attributes.query??"",timestamp:Hn(r.timestamp),duration:r.attributes.duration_ms??0,params:r.attributes.params??"",target:r.target});break}default:r.level}}),t?.traces?.length&&this.tracingHelper.dispatchEngineSpans(t.traces)}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the remote query engine')}async url(t){return await this.start(),`${this.protocol}//${this.host}/${this.remoteClientVersion}/${this.inlineSchemaHash}/${t}`}async uploadSchema(){let t={name:"schemaUpload",internal:!0};return this.tracingHelper.runInChildSpan(t,async()=>{let r=await Ge(await this.url("schema"),{method:"PUT",headers:this.headerBuilder.build(),body:this.inlineSchema,clientVersion:this.clientVersion});r.ok||ir("schema response status",r.status);let n=await rr(r,this.clientVersion);if(n)throw this.logEmitter.emit("warn",{message:`Error while uploading schema: ${n.message}`,timestamp:new Date,target:""}),n;this.logEmitter.emit("info",{message:`Schema (re)uploaded (hash: ${this.inlineSchemaHash})`,timestamp:new Date,target:""})})}request(t,{traceparent:r,interactiveTransaction:n,customDataProxyFetch:i}){return this.requestInternal({body:t,traceparent:r,interactiveTransaction:n,customDataProxyFetch:i})}async requestBatch(t,{traceparent:r,transaction:n,customDataProxyFetch:i}){let o=n?.kind==="itx"?n.options:void 0,s=Wr(t,n);return(await this.requestInternal({body:s,customDataProxyFetch:i,interactiveTransaction:o,traceparent:r})).map(l=>(l.extensions&&this.propagateResponseExtensions(l.extensions),"errors"in l?this.convertProtocolErrorsToClientError(l.errors):l))}requestInternal({body:t,traceparent:r,customDataProxyFetch:n,interactiveTransaction:i}){return this.withRetry({actionGerund:"querying",callback:async({logHttpCall:o})=>{let s=i?`${i.payload.endpoint}/graphql`:await this.url("graphql");o(s);let a=await Ge(s,{method:"POST",headers:this.headerBuilder.build({traceparent:r,transactionId:i?.id}),body:JSON.stringify(t),clientVersion:this.clientVersion},n);a.ok||ir("graphql response status",a.status),await this.handleError(await rr(a,this.clientVersion));let l=await a.json();if(l.extensions&&this.propagateResponseExtensions(l.extensions),"errors"in l)throw this.convertProtocolErrorsToClientError(l.errors);return"batchResult"in l?l.batchResult:l}})}async transaction(t,r,n){let i={start:"starting",commit:"committing",rollback:"rolling back"};return this.withRetry({actionGerund:`${i[t]} transaction`,callback:async({logHttpCall:o})=>{if(t==="start"){let s=JSON.stringify({max_wait:n.maxWait,timeout:n.timeout,isolation_level:n.isolationLevel}),a=await this.url("transaction/start");o(a);let l=await Ge(a,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),body:s,clientVersion:this.clientVersion});await this.handleError(await rr(l,this.clientVersion));let f=await l.json(),{extensions:g}=f;g&&this.propagateResponseExtensions(g);let h=f.id,v=f["data-proxy"].endpoint;return{id:h,payload:{endpoint:v}}}else{let s=`${n.payload.endpoint}/${t}`;o(s);let a=await Ge(s,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),clientVersion:this.clientVersion});await this.handleError(await rr(a,this.clientVersion));let l=await a.json(),{extensions:f}=l;f&&this.propagateResponseExtensions(f);return}}})}getURLAndAPIKey(){return Ns({clientVersion:this.clientVersion,env:this.env,inlineDatasources:this.inlineDatasources,overrideDatasources:this.config.overrideDatasources})}metrics(){throw new Ve("Metrics are not yet supported for Accelerate",{clientVersion:this.clientVersion})}async withRetry(t){for(let r=0;;r++){let n=i=>{this.logEmitter.emit("info",{message:`Calling ${i} (n=${r})`,timestamp:new Date,target:""})};try{return await t.callback({logHttpCall:n})}catch(i){if(!(i instanceof se)||!i.isRetryable)throw i;if(r>=js)throw i instanceof gt?i.cause:i;this.logEmitter.emit("warn",{message:`Attempt ${r+1}/${js} failed for ${t.actionGerund}: ${i.message??"(unknown)"}`,timestamp:new Date,target:""});let o=await Ls(r);this.logEmitter.emit("warn",{message:`Retrying after ${o}ms`,timestamp:new Date,target:""})}}}async handleError(t){if(t instanceof je)throw await this.uploadSchema(),new gt({clientVersion:this.clientVersion,cause:t});if(t)throw t}convertProtocolErrorsToClientError(t){return t.length===1?Kr(t[0],this.config.clientVersion,this.config.activeProvider):new ne(JSON.stringify(t),{clientVersion:this.config.clientVersion})}applyPendingMigrations(){throw new Error("Method not implemented.")}};d();u();c();p();m();function Gs({url:e,adapter:t,copyEngine:r,targetBuildType:n}){let i=[],o=[],s=R=>{i.push({_tag:"warning",value:R})},a=R=>{let D=R.join(` -`);o.push({_tag:"error",value:D})},l=!!e?.startsWith("prisma://"),f=yr(e),g=!!t,h=l||f;!g&&r&&h&&s(["recommend--no-engine","In production, we recommend using `prisma generate --no-engine` (See: `prisma generate --help`)"]);let v=h||!r;g&&(v||n==="edge")&&(n==="edge"?a(["Prisma Client was configured to use the `adapter` option but it was imported via its `/edge` endpoint.","Please either remove the `/edge` endpoint or remove the `adapter` from the Prisma Client constructor."]):r?l&&a(["Prisma Client was configured to use the `adapter` option but the URL was a `prisma://` URL.","Please either use the `prisma://` URL or remove the `adapter` from the Prisma Client constructor."]):a(["Prisma Client was configured to use the `adapter` option but `prisma generate` was run with `--no-engine`.","Please run `prisma generate` without `--no-engine` to be able to use Prisma Client with the adapter."]));let S={accelerate:v,ppg:f,driverAdapters:g};function C(R){return R.length>0}return C(o)?{ok:!1,diagnostics:{warnings:i,errors:o},isUsing:S}:{ok:!0,diagnostics:{warnings:i},isUsing:S}}function Qs({copyEngine:e=!0},t){let r;try{r=ft({inlineDatasources:t.inlineDatasources,overrideDatasources:t.overrideDatasources,env:{...t.env,...y.env},clientVersion:t.clientVersion})}catch{}let{ok:n,isUsing:i,diagnostics:o}=Gs({url:r,adapter:t.adapter,copyEngine:e,targetBuildType:"edge"});for(let h of o.warnings)Rt(...h.value);if(!n){let h=o.errors[0];throw new Z(h.value,{clientVersion:t.clientVersion})}let s=Ye(t.generator),a=s==="library",l=s==="binary",f=s==="client",g=(i.accelerate||i.ppg)&&!i.driverAdapters;return i.accelerate?new wt(t):(i.driverAdapters,i.accelerate,new wt(t))}d();u();c();p();m();function en({generator:e}){return e?.previewFeatures??[]}d();u();c();p();m();var Js=e=>({command:e});d();u();c();p();m();d();u();c();p();m();var Ws=e=>e.strings.reduce((t,r,n)=>`${t}@P${n}${r}`);d();u();c();p();m();function Et(e){try{return Ks(e,"fast")}catch{return Ks(e,"slow")}}function Ks(e,t){return JSON.stringify(e.map(r=>zs(r,t)))}function zs(e,t){if(Array.isArray(e))return e.map(r=>zs(r,t));if(typeof e=="bigint")return{prisma__type:"bigint",prisma__value:e.toString()};if(rt(e))return{prisma__type:"date",prisma__value:e.toJSON()};if(he.isDecimal(e))return{prisma__type:"decimal",prisma__value:e.toJSON()};if(w.Buffer.isBuffer(e))return{prisma__type:"bytes",prisma__value:e.toString("base64")};if(ap(e))return{prisma__type:"bytes",prisma__value:w.Buffer.from(e).toString("base64")};if(ArrayBuffer.isView(e)){let{buffer:r,byteOffset:n,byteLength:i}=e;return{prisma__type:"bytes",prisma__value:w.Buffer.from(r,n,i).toString("base64")}}return typeof e=="object"&&t==="slow"?Ys(e):e}function ap(e){return e instanceof ArrayBuffer||e instanceof SharedArrayBuffer?!0:typeof e=="object"&&e!==null?e[Symbol.toStringTag]==="ArrayBuffer"||e[Symbol.toStringTag]==="SharedArrayBuffer":!1}function Ys(e){if(typeof e!="object"||e===null)return e;if(typeof e.toJSON=="function")return e.toJSON();if(Array.isArray(e))return e.map(Hs);let t={};for(let r of Object.keys(e))t[r]=Hs(e[r]);return t}function Hs(e){return typeof e=="bigint"?e.toString():Ys(e)}var lp=/^(\s*alter\s)/i,Zs=H("prisma:client");function ri(e,t,r,n){if(!(e!=="postgresql"&&e!=="cockroachdb")&&r.length>0&&lp.exec(t))throw new Error(`Running ALTER using ${n} is not supported -Using the example below you can still execute your query with Prisma, but please note that it is vulnerable to SQL injection attacks and requires you to take care of input sanitization. - -Example: - await prisma.$executeRawUnsafe(\`ALTER USER prisma WITH PASSWORD '\${password}'\`) - -More Information: https://pris.ly/d/execute-raw -`)}var ni=({clientMethod:e,activeProvider:t})=>r=>{let n="",i;if(jr(r))n=r.sql,i={values:Et(r.values),__prismaRawParameters__:!0};else if(Array.isArray(r)){let[o,...s]=r;n=o,i={values:Et(s||[]),__prismaRawParameters__:!0}}else switch(t){case"sqlite":case"mysql":{n=r.sql,i={values:Et(r.values),__prismaRawParameters__:!0};break}case"cockroachdb":case"postgresql":case"postgres":{n=r.text,i={values:Et(r.values),__prismaRawParameters__:!0};break}case"sqlserver":{n=Ws(r),i={values:Et(r.values),__prismaRawParameters__:!0};break}default:throw new Error(`The ${t} provider does not support ${e}`)}return i?.values?Zs(`prisma.${e}(${n}, ${i.values})`):Zs(`prisma.${e}(${n})`),{query:n,parameters:i}},Xs={requestArgsToMiddlewareArgs(e){return[e.strings,...e.values]},middlewareArgsToRequestArgs(e){let[t,...r]=e;return new oe(t,r)}},ea={requestArgsToMiddlewareArgs(e){return[e]},middlewareArgsToRequestArgs(e){return e[0]}};d();u();c();p();m();function ii(e){return function(r,n){let i,o=(s=e)=>{try{return s===void 0||s?.kind==="itx"?i??=ta(r(s)):ta(r(s))}catch(a){return Promise.reject(a)}};return{get spec(){return n},then(s,a){return o().then(s,a)},catch(s){return o().catch(s)},finally(s){return o().finally(s)},requestTransaction(s){let a=o(s);return a.requestTransaction?a.requestTransaction(s):a},[Symbol.toStringTag]:"PrismaPromise"}}}function ta(e){return typeof e.then=="function"?e:Promise.resolve(e)}d();u();c();p();m();var up=xn.split(".")[0],cp={isEnabled(){return!1},getTraceParent(){return"00-10-10-00"},dispatchEngineSpans(){},getActiveContext(){},runInChildSpan(e,t){return t()}},oi=class{isEnabled(){return this.getGlobalTracingHelper().isEnabled()}getTraceParent(t){return this.getGlobalTracingHelper().getTraceParent(t)}dispatchEngineSpans(t){return this.getGlobalTracingHelper().dispatchEngineSpans(t)}getActiveContext(){return this.getGlobalTracingHelper().getActiveContext()}runInChildSpan(t,r){return this.getGlobalTracingHelper().runInChildSpan(t,r)}getGlobalTracingHelper(){let t=globalThis[`V${up}_PRISMA_INSTRUMENTATION`],r=globalThis.PRISMA_INSTRUMENTATION;return t?.helper??r?.helper??cp}};function ra(){return new oi}d();u();c();p();m();function na(e,t=()=>{}){let r,n=new Promise(i=>r=i);return{then(i){return--e===0&&r(t()),i?.(n)}}}d();u();c();p();m();function ia(e){return typeof e=="string"?e:e.reduce((t,r)=>{let n=typeof r=="string"?r:r.level;return n==="query"?t:t&&(r==="info"||t==="info")?"info":n},void 0)}d();u();c();p();m();var tn=class{_middlewares=[];use(t){this._middlewares.push(t)}get(t){return this._middlewares[t]}has(t){return!!this._middlewares[t]}length(){return this._middlewares.length}};d();u();c();p();m();var sa=Le(so());d();u();c();p();m();function rn(e){return typeof e.batchRequestIdx=="number"}d();u();c();p();m();function oa(e){if(e.action!=="findUnique"&&e.action!=="findUniqueOrThrow")return;let t=[];return e.modelName&&t.push(e.modelName),e.query.arguments&&t.push(si(e.query.arguments)),t.push(si(e.query.selection)),t.join("")}function si(e){return`(${Object.keys(e).sort().map(r=>{let n=e[r];return typeof n=="object"&&n!==null?`(${r} ${si(n)})`:r}).join(" ")})`}d();u();c();p();m();var pp={aggregate:!1,aggregateRaw:!1,createMany:!0,createManyAndReturn:!0,createOne:!0,deleteMany:!0,deleteOne:!0,executeRaw:!0,findFirst:!1,findFirstOrThrow:!1,findMany:!1,findRaw:!1,findUnique:!1,findUniqueOrThrow:!1,groupBy:!1,queryRaw:!1,runCommandRaw:!0,updateMany:!0,updateManyAndReturn:!0,updateOne:!0,upsertOne:!0};function ai(e){return pp[e]}d();u();c();p();m();var nn=class{constructor(t){this.options=t;this.batches={}}batches;tickActive=!1;request(t){let r=this.options.batchBy(t);return r?(this.batches[r]||(this.batches[r]=[],this.tickActive||(this.tickActive=!0,y.nextTick(()=>{this.dispatchBatches(),this.tickActive=!1}))),new Promise((n,i)=>{this.batches[r].push({request:t,resolve:n,reject:i})})):this.options.singleLoader(t)}dispatchBatches(){for(let t in this.batches){let r=this.batches[t];delete this.batches[t],r.length===1?this.options.singleLoader(r[0].request).then(n=>{n instanceof Error?r[0].reject(n):r[0].resolve(n)}).catch(n=>{r[0].reject(n)}):(r.sort((n,i)=>this.options.batchOrder(n.request,i.request)),this.options.batchLoader(r.map(n=>n.request)).then(n=>{if(n instanceof Error)for(let i=0;i{for(let i=0;iQe("bigint",r));case"bytes-array":return t.map(r=>Qe("bytes",r));case"decimal-array":return t.map(r=>Qe("decimal",r));case"datetime-array":return t.map(r=>Qe("datetime",r));case"date-array":return t.map(r=>Qe("date",r));case"time-array":return t.map(r=>Qe("time",r));default:return t}}function on(e){let t=[],r=mp(e);for(let n=0;n{let{transaction:o,otelParentCtx:s}=n[0],a=n.map(h=>h.protocolQuery),l=this.client._tracingHelper.getTraceParent(s),f=n.some(h=>ai(h.protocolQuery.action));return(await this.client._engine.requestBatch(a,{traceparent:l,transaction:fp(o),containsWrite:f,customDataProxyFetch:i})).map((h,v)=>{if(h instanceof Error)return h;try{return this.mapQueryEngineResult(n[v],h)}catch(S){return S}})}),singleLoader:async n=>{let i=n.transaction?.kind==="itx"?aa(n.transaction):void 0,o=await this.client._engine.request(n.protocolQuery,{traceparent:this.client._tracingHelper.getTraceParent(),interactiveTransaction:i,isWrite:ai(n.protocolQuery.action),customDataProxyFetch:n.customDataProxyFetch});return this.mapQueryEngineResult(n,o)},batchBy:n=>n.transaction?.id?`transaction-${n.transaction.id}`:oa(n.protocolQuery),batchOrder(n,i){return n.transaction?.kind==="batch"&&i.transaction?.kind==="batch"?n.transaction.index-i.transaction.index:0}})}async request(t){try{return await this.dataloader.request(t)}catch(r){let{clientMethod:n,callsite:i,transaction:o,args:s,modelName:a}=t;this.handleAndLogRequestError({error:r,clientMethod:n,callsite:i,transaction:o,args:s,modelName:a,globalOmit:t.globalOmit})}}mapQueryEngineResult({dataPath:t,unpacker:r},n){let i=n?.data,o=this.unpack(i,t,r);return y.env.PRISMA_CLIENT_GET_TIME?{data:o}:o}handleAndLogRequestError(t){try{this.handleRequestError(t)}catch(r){throw this.logEmitter&&this.logEmitter.emit("error",{message:r.message,target:t.clientMethod,timestamp:new Date}),r}}handleRequestError({error:t,clientMethod:r,callsite:n,transaction:i,args:o,modelName:s,globalOmit:a}){if(dp(t),gp(t,i))throw t;if(t instanceof re&&hp(t)){let f=la(t.meta);Lr({args:o,errors:[f],callsite:n,errorFormat:this.client._errorFormat,originalMethod:r,clientVersion:this.client._clientVersion,globalOmit:a})}let l=t.message;if(n&&(l=Rr({callsite:n,originalMethod:r,isPanic:t.isPanic,showColors:this.client._errorFormat==="pretty",message:l})),l=this.sanitizeMessage(l),t.code){let f=s?{modelName:s,...t.meta}:t.meta;throw new re(l,{code:t.code,clientVersion:this.client._clientVersion,meta:f,batchRequestIdx:t.batchRequestIdx})}else{if(t.isPanic)throw new ve(l,this.client._clientVersion);if(t instanceof ne)throw new ne(l,{clientVersion:this.client._clientVersion,batchRequestIdx:t.batchRequestIdx});if(t instanceof Q)throw new Q(l,this.client._clientVersion);if(t instanceof ve)throw new ve(l,this.client._clientVersion)}throw t.clientVersion=this.client._clientVersion,t}sanitizeMessage(t){return this.client._errorFormat&&this.client._errorFormat!=="pretty"?(0,sa.default)(t):t}unpack(t,r,n){if(!t||(t.data&&(t=t.data),!t))return t;let i=Object.keys(t)[0],o=Object.values(t)[0],s=r.filter(f=>f!=="select"&&f!=="include"),a=Qn(o,s),l=i==="queryRaw"?on(a):tt(a);return n?n(l):l}get[Symbol.toStringTag](){return"RequestHandler"}};function fp(e){if(e){if(e.kind==="batch")return{kind:"batch",options:{isolationLevel:e.isolationLevel}};if(e.kind==="itx")return{kind:"itx",options:aa(e)};Pe(e,"Unknown transaction kind")}}function aa(e){return{id:e.id,payload:e.payload}}function gp(e,t){return rn(e)&&t?.kind==="batch"&&e.batchRequestIdx!==t.index}function hp(e){return e.code==="P2009"||e.code==="P2012"}function la(e){if(e.kind==="Union")return{kind:"Union",errors:e.errors.map(la)};if(Array.isArray(e.selectionPath)){let[,...t]=e.selectionPath;return{...e,selectionPath:t}}return e}d();u();c();p();m();var ua=_s;d();u();c();p();m();var fa=Le(Mn());d();u();c();p();m();var B=class extends Error{constructor(t){super(t+` -Read more at https://pris.ly/d/client-constructor`),this.name="PrismaClientConstructorValidationError"}get[Symbol.toStringTag](){return"PrismaClientConstructorValidationError"}};N(B,"PrismaClientConstructorValidationError");var ca=["datasources","datasourceUrl","errorFormat","adapter","log","transactionOptions","omit","__internal"],pa=["pretty","colorless","minimal"],ma=["info","query","warn","error"],yp={datasources:(e,{datasourceNames:t})=>{if(e){if(typeof e!="object"||Array.isArray(e))throw new B(`Invalid value ${JSON.stringify(e)} for "datasources" provided to PrismaClient constructor`);for(let[r,n]of Object.entries(e)){if(!t.includes(r)){let i=bt(r,t)||` Available datasources: ${t.join(", ")}`;throw new B(`Unknown datasource ${r} provided to PrismaClient constructor.${i}`)}if(typeof n!="object"||Array.isArray(n))throw new B(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(n&&typeof n=="object")for(let[i,o]of Object.entries(n)){if(i!=="url")throw new B(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(typeof o!="string")throw new B(`Invalid value ${JSON.stringify(o)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`)}}}},adapter:(e,t)=>{if(!e&&Ye(t.generator)==="client")throw new B('Using engine type "client" requires a driver adapter to be provided to PrismaClient constructor.');if(e===null)return;if(e===void 0)throw new B('"adapter" property must not be undefined, use null to conditionally disable driver adapters.');if(!en(t).includes("driverAdapters"))throw new B('"adapter" property can only be provided to PrismaClient constructor when "driverAdapters" preview feature is enabled.');if(Ye(t.generator)==="binary")throw new B('Cannot use a driver adapter with the "binary" Query Engine. Please use the "library" Query Engine.')},datasourceUrl:e=>{if(typeof e<"u"&&typeof e!="string")throw new B(`Invalid value ${JSON.stringify(e)} for "datasourceUrl" provided to PrismaClient constructor. -Expected string or undefined.`)},errorFormat:e=>{if(e){if(typeof e!="string")throw new B(`Invalid value ${JSON.stringify(e)} for "errorFormat" provided to PrismaClient constructor.`);if(!pa.includes(e)){let t=bt(e,pa);throw new B(`Invalid errorFormat ${e} provided to PrismaClient constructor.${t}`)}}},log:e=>{if(!e)return;if(!Array.isArray(e))throw new B(`Invalid value ${JSON.stringify(e)} for "log" provided to PrismaClient constructor.`);function t(r){if(typeof r=="string"&&!ma.includes(r)){let n=bt(r,ma);throw new B(`Invalid log level "${r}" provided to PrismaClient constructor.${n}`)}}for(let r of e){t(r);let n={level:t,emit:i=>{let o=["stdout","event"];if(!o.includes(i)){let s=bt(i,o);throw new B(`Invalid value ${JSON.stringify(i)} for "emit" in logLevel provided to PrismaClient constructor.${s}`)}}};if(r&&typeof r=="object")for(let[i,o]of Object.entries(r))if(n[i])n[i](o);else throw new B(`Invalid property ${i} for "log" provided to PrismaClient constructor`)}},transactionOptions:e=>{if(!e)return;let t=e.maxWait;if(t!=null&&t<=0)throw new B(`Invalid value ${t} for maxWait in "transactionOptions" provided to PrismaClient constructor. maxWait needs to be greater than 0`);let r=e.timeout;if(r!=null&&r<=0)throw new B(`Invalid value ${r} for timeout in "transactionOptions" provided to PrismaClient constructor. timeout needs to be greater than 0`)},omit:(e,t)=>{if(typeof e!="object")throw new B('"omit" option is expected to be an object.');if(e===null)throw new B('"omit" option can not be `null`');let r=[];for(let[n,i]of Object.entries(e)){let o=Ep(n,t.runtimeDataModel);if(!o){r.push({kind:"UnknownModel",modelKey:n});continue}for(let[s,a]of Object.entries(i)){let l=o.fields.find(f=>f.name===s);if(!l){r.push({kind:"UnknownField",modelKey:n,fieldName:s});continue}if(l.relationName){r.push({kind:"RelationInOmit",modelKey:n,fieldName:s});continue}typeof a!="boolean"&&r.push({kind:"InvalidFieldValue",modelKey:n,fieldName:s})}}if(r.length>0)throw new B(bp(e,r))},__internal:e=>{if(!e)return;let t=["debug","engine","configOverride"];if(typeof e!="object")throw new B(`Invalid value ${JSON.stringify(e)} for "__internal" to PrismaClient constructor`);for(let[r]of Object.entries(e))if(!t.includes(r)){let n=bt(r,t);throw new B(`Invalid property ${JSON.stringify(r)} for "__internal" provided to PrismaClient constructor.${n}`)}}};function ga(e,t){for(let[r,n]of Object.entries(e)){if(!ca.includes(r)){let i=bt(r,ca);throw new B(`Unknown property ${r} provided to PrismaClient constructor.${i}`)}yp[r](n,t)}if(e.datasourceUrl&&e.datasources)throw new B('Can not use "datasourceUrl" and "datasources" options at the same time. Pick one of them')}function bt(e,t){if(t.length===0||typeof e!="string")return"";let r=wp(e,t);return r?` Did you mean "${r}"?`:""}function wp(e,t){if(t.length===0)return null;let r=t.map(i=>({value:i,distance:(0,fa.default)(e,i)}));r.sort((i,o)=>i.distanceMe(n)===t);if(r)return e[r]}function bp(e,t){let r=ut(e);for(let o of t)switch(o.kind){case"UnknownModel":r.arguments.getField(o.modelKey)?.markAsError(),r.addErrorMessage(()=>`Unknown model name: ${o.modelKey}.`);break;case"UnknownField":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>`Model "${o.modelKey}" does not have a field named "${o.fieldName}".`);break;case"RelationInOmit":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>'Relations are already excluded by default and can not be specified in "omit".');break;case"InvalidFieldValue":r.arguments.getDeepFieldValue([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>"Omit field option value must be a boolean.");break}let{message:n,args:i}=Fr(r,"colorless");return`Error validating "omit" option: - -${i} - -${n}`}d();u();c();p();m();function ha(e){return e.length===0?Promise.resolve([]):new Promise((t,r)=>{let n=new Array(e.length),i=null,o=!1,s=0,a=()=>{o||(s++,s===e.length&&(o=!0,i?r(i):t(n)))},l=f=>{o||(o=!0,r(f))};for(let f=0;f{n[f]=g,a()},g=>{if(!rn(g)){l(g);return}g.batchRequestIdx===f?l(g):(i||(i=g),a())})})}var Fe=H("prisma:client");typeof globalThis=="object"&&(globalThis.NODE_CLIENT=!0);var xp={requestArgsToMiddlewareArgs:e=>e,middlewareArgsToRequestArgs:e=>e},Pp=Symbol.for("prisma.client.transaction.id"),vp={id:0,nextId(){return++this.id}};function Ea(e){class t{_originalClient=this;_runtimeDataModel;_requestHandler;_connectionPromise;_disconnectionPromise;_engineConfig;_accelerateEngineConfig;_clientVersion;_errorFormat;_tracingHelper;_middlewares=new tn;_previewFeatures;_activeProvider;_globalOmit;_extensions;_engine;_appliedParent;_createPrismaPromise=ii();constructor(n){e=n?.__internal?.configOverride?.(e)??e,Ds(e),n&&ga(n,e);let i=new Gr().on("error",()=>{});this._extensions=ct.empty(),this._previewFeatures=en(e),this._clientVersion=e.clientVersion??ua,this._activeProvider=e.activeProvider,this._globalOmit=n?.omit,this._tracingHelper=ra();let o=e.relativeEnvPaths&&{rootEnvPath:e.relativeEnvPaths.rootEnvPath&&fr.resolve(e.dirname,e.relativeEnvPaths.rootEnvPath),schemaEnvPath:e.relativeEnvPaths.schemaEnvPath&&fr.resolve(e.dirname,e.relativeEnvPaths.schemaEnvPath)},s;if(n?.adapter){s=n.adapter;let l=e.activeProvider==="postgresql"||e.activeProvider==="cockroachdb"?"postgres":e.activeProvider;if(s.provider!==l)throw new Q(`The Driver Adapter \`${s.adapterName}\`, based on \`${s.provider}\`, is not compatible with the provider \`${l}\` specified in the Prisma schema.`,this._clientVersion);if(n.datasources||n.datasourceUrl!==void 0)throw new Q("Custom datasource configuration is not compatible with Prisma Driver Adapters. Please define the database connection string directly in the Driver Adapter configuration.",this._clientVersion)}let a=e.injectableEdgeEnv?.();try{let l=n??{},f=l.__internal??{},g=f.debug===!0;g&&H.enable("prisma:client");let h=fr.resolve(e.dirname,e.relativePath);Qi.existsSync(h)||(h=e.dirname),Fe("dirname",e.dirname),Fe("relativePath",e.relativePath),Fe("cwd",h);let v=f.engine||{};if(l.errorFormat?this._errorFormat=l.errorFormat:y.env.NODE_ENV==="production"?this._errorFormat="minimal":y.env.NO_COLOR?this._errorFormat="colorless":this._errorFormat="colorless",this._runtimeDataModel=e.runtimeDataModel,this._engineConfig={cwd:h,dirname:e.dirname,enableDebugLogs:g,allowTriggerPanic:v.allowTriggerPanic,prismaPath:v.binaryPath??void 0,engineEndpoint:v.endpoint,generator:e.generator,showColors:this._errorFormat==="pretty",logLevel:l.log&&ia(l.log),logQueries:l.log&&!!(typeof l.log=="string"?l.log==="query":l.log.find(S=>typeof S=="string"?S==="query":S.level==="query")),env:a?.parsed??{},flags:[],engineWasm:e.engineWasm,compilerWasm:e.compilerWasm,clientVersion:e.clientVersion,engineVersion:e.engineVersion,previewFeatures:this._previewFeatures,activeProvider:e.activeProvider,inlineSchema:e.inlineSchema,overrideDatasources:Ms(l,e.datasourceNames),inlineDatasources:e.inlineDatasources,inlineSchemaHash:e.inlineSchemaHash,tracingHelper:this._tracingHelper,transactionOptions:{maxWait:l.transactionOptions?.maxWait??2e3,timeout:l.transactionOptions?.timeout??5e3,isolationLevel:l.transactionOptions?.isolationLevel},logEmitter:i,isBundled:e.isBundled,adapter:s},this._accelerateEngineConfig={...this._engineConfig,accelerateUtils:{resolveDatasourceUrl:ft,getBatchRequestPayload:Wr,prismaGraphQLToJSError:Kr,PrismaClientUnknownRequestError:ne,PrismaClientInitializationError:Q,PrismaClientKnownRequestError:re,debug:H("prisma:client:accelerateEngine"),engineVersion:wa.version,clientVersion:e.clientVersion}},Fe("clientVersion",e.clientVersion),this._engine=Qs(e,this._engineConfig),this._requestHandler=new sn(this,i),l.log)for(let S of l.log){let C=typeof S=="string"?S:S.emit==="stdout"?S.level:null;C&&this.$on(C,R=>{At.log(`${At.tags[C]??""}`,R.message||R.query)})}}catch(l){throw l.clientVersion=this._clientVersion,l}return this._appliedParent=Gt(this)}get[Symbol.toStringTag](){return"PrismaClient"}$use(n){this._middlewares.use(n)}$on(n,i){return n==="beforeExit"?this._engine.onBeforeExit(i):n&&this._engineConfig.logEmitter.on(n,i),this}$connect(){try{return this._engine.start()}catch(n){throw n.clientVersion=this._clientVersion,n}}async $disconnect(){try{await this._engine.stop()}catch(n){throw n.clientVersion=this._clientVersion,n}finally{ji()}}$executeRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"executeRaw",args:o,transaction:n,clientMethod:i,argsMapper:ni({clientMethod:i,activeProvider:a}),callsite:Ne(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$executeRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0){let[s,a]=ya(n,i);return ri(this._activeProvider,s.text,s.values,Array.isArray(n)?"prisma.$executeRaw``":"prisma.$executeRaw(sql``)"),this.$executeRawInternal(o,"$executeRaw",s,a)}throw new Z("`$executeRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#executeraw\n",{clientVersion:this._clientVersion})})}$executeRawUnsafe(n,...i){return this._createPrismaPromise(o=>(ri(this._activeProvider,n,i,"prisma.$executeRawUnsafe(, [...values])"),this.$executeRawInternal(o,"$executeRawUnsafe",[n,...i])))}$runCommandRaw(n){if(e.activeProvider!=="mongodb")throw new Z(`The ${e.activeProvider} provider does not support $runCommandRaw. Use the mongodb provider.`,{clientVersion:this._clientVersion});return this._createPrismaPromise(i=>this._request({args:n,clientMethod:"$runCommandRaw",dataPath:[],action:"runCommandRaw",argsMapper:Js,callsite:Ne(this._errorFormat),transaction:i}))}async $queryRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"queryRaw",args:o,transaction:n,clientMethod:i,argsMapper:ni({clientMethod:i,activeProvider:a}),callsite:Ne(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$queryRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0)return this.$queryRawInternal(o,"$queryRaw",...ya(n,i));throw new Z("`$queryRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#queryraw\n",{clientVersion:this._clientVersion})})}$queryRawTyped(n){return this._createPrismaPromise(i=>{if(!this._hasPreviewFlag("typedSql"))throw new Z("`typedSql` preview feature must be enabled in order to access $queryRawTyped API",{clientVersion:this._clientVersion});return this.$queryRawInternal(i,"$queryRawTyped",n)})}$queryRawUnsafe(n,...i){return this._createPrismaPromise(o=>this.$queryRawInternal(o,"$queryRawUnsafe",[n,...i]))}_transactionWithArray({promises:n,options:i}){let o=vp.nextId(),s=na(n.length),a=n.map((l,f)=>{if(l?.[Symbol.toStringTag]!=="PrismaPromise")throw new Error("All elements of the array need to be Prisma Client promises. Hint: Please make sure you are not awaiting the Prisma client calls you intended to pass in the $transaction function.");let g=i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel,h={kind:"batch",id:o,index:f,isolationLevel:g,lock:s};return l.requestTransaction?.(h)??l});return ha(a)}async _transactionWithCallback({callback:n,options:i}){let o={traceparent:this._tracingHelper.getTraceParent()},s={maxWait:i?.maxWait??this._engineConfig.transactionOptions.maxWait,timeout:i?.timeout??this._engineConfig.transactionOptions.timeout,isolationLevel:i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel},a=await this._engine.transaction("start",o,s),l;try{let f={kind:"itx",...a};l=await n(this._createItxClient(f)),await this._engine.transaction("commit",o,a)}catch(f){throw await this._engine.transaction("rollback",o,a).catch(()=>{}),f}return l}_createItxClient(n){return pe(Gt(pe(ys(this),[ee("_appliedParent",()=>this._appliedParent._createItxClient(n)),ee("_createPrismaPromise",()=>ii(n)),ee(Pp,()=>n.id)])),[mt(Ps)])}$transaction(n,i){let o;typeof n=="function"?this._engineConfig.adapter?.adapterName==="@prisma/adapter-d1"?o=()=>{throw new Error("Cloudflare D1 does not support interactive transactions. We recommend you to refactor your queries with that limitation in mind, and use batch transactions with `prisma.$transactions([])` where applicable.")}:o=()=>this._transactionWithCallback({callback:n,options:i}):o=()=>this._transactionWithArray({promises:n,options:i});let s={name:"transaction",attributes:{method:"$transaction"}};return this._tracingHelper.runInChildSpan(s,o)}_request(n){n.otelParentCtx=this._tracingHelper.getActiveContext();let i=n.middlewareArgsMapper??xp,o={args:i.requestArgsToMiddlewareArgs(n.args),dataPath:n.dataPath,runInTransaction:!!n.transaction,action:n.action,model:n.model},s={middleware:{name:"middleware",middleware:!0,attributes:{method:"$use"},active:!1},operation:{name:"operation",attributes:{method:o.action,model:o.model,name:o.model?`${o.model}.${o.action}`:o.action}}},a=-1,l=async f=>{let g=this._middlewares.get(++a);if(g)return this._tracingHelper.runInChildSpan(s.middleware,D=>g(f,M=>(D?.end(),l(M))));let{runInTransaction:h,args:v,...S}=f,C={...n,...S};v&&(C.args=i.middlewareArgsToRequestArgs(v)),n.transaction!==void 0&&h===!1&&delete C.transaction;let R=await As(this,C);return C.model?xs({result:R,modelName:C.model,args:C.args,extensions:this._extensions,runtimeDataModel:this._runtimeDataModel,globalOmit:this._globalOmit}):R};return this._tracingHelper.runInChildSpan(s.operation,()=>l(o))}async _executeRequest({args:n,clientMethod:i,dataPath:o,callsite:s,action:a,model:l,argsMapper:f,transaction:g,unpacker:h,otelParentCtx:v,customDataProxyFetch:S}){try{n=f?f(n):n;let C={name:"serialize"},R=this._tracingHelper.runInChildSpan(C,()=>$r({modelName:l,runtimeDataModel:this._runtimeDataModel,action:a,args:n,clientMethod:i,callsite:s,extensions:this._extensions,errorFormat:this._errorFormat,clientVersion:this._clientVersion,previewFeatures:this._previewFeatures,globalOmit:this._globalOmit}));return H.enabled("prisma:client")&&(Fe("Prisma Client call:"),Fe(`prisma.${i}(${as(n)})`),Fe("Generated request:"),Fe(JSON.stringify(R,null,2)+` -`)),g?.kind==="batch"&&await g.lock,this._requestHandler.request({protocolQuery:R,modelName:l,action:a,clientMethod:i,dataPath:o,callsite:s,args:n,extensions:this._extensions,transaction:g,unpacker:h,otelParentCtx:v,otelChildCtx:this._tracingHelper.getActiveContext(),globalOmit:this._globalOmit,customDataProxyFetch:S})}catch(C){throw C.clientVersion=this._clientVersion,C}}$metrics=new pt(this);_hasPreviewFlag(n){return!!this._engineConfig.previewFeatures?.includes(n)}$applyPendingMigrations(){return this._engine.applyPendingMigrations()}$extends=ws}return t}function ya(e,t){return Tp(e)?[new oe(e,t),Xs]:[e,ea]}function Tp(e){return Array.isArray(e)&&Array.isArray(e.raw)}d();u();c();p();m();var Cp=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function ba(e){return new Proxy(e,{get(t,r){if(r in t)return t[r];if(!Cp.has(r))throw new TypeError(`Invalid enum value: ${String(r)}`)}})}d();u();c();p();m();0&&(module.exports={DMMF,Debug,Decimal,Extensions,MetricsClient,PrismaClientInitializationError,PrismaClientKnownRequestError,PrismaClientRustPanicError,PrismaClientUnknownRequestError,PrismaClientValidationError,Public,Sql,createParam,defineDmmfProperty,deserializeJsonResponse,deserializeRawResult,dmmfToRuntimeDataModel,empty,getPrismaClient,getRuntime,join,makeStrictEnum,makeTypedQueryFactory,objectEnumValues,raw,serializeJsonQuery,skip,sqltag,warnEnvConflicts,warnOnce}); -//# sourceMappingURL=edge.js.map diff --git a/prisma/generated/client/runtime/index-browser.d.ts b/prisma/generated/client/runtime/index-browser.d.ts deleted file mode 100644 index 0e96e4b..0000000 --- a/prisma/generated/client/runtime/index-browser.d.ts +++ /dev/null @@ -1,370 +0,0 @@ -declare class AnyNull extends NullTypesEnumValue { - #private; -} - -declare type Args = T extends { - [K: symbol]: { - types: { - operations: { - [K in F]: { - args: any; - }; - }; - }; - }; -} ? T[symbol]['types']['operations'][F]['args'] : any; - -declare class DbNull extends NullTypesEnumValue { - #private; -} - -export declare function Decimal(n: Decimal.Value): Decimal; - -export declare namespace Decimal { - export type Constructor = typeof Decimal; - export type Instance = Decimal; - export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8; - export type Modulo = Rounding | 9; - export type Value = string | number | Decimal; - - // http://mikemcl.github.io/decimal.js/#constructor-properties - export interface Config { - precision?: number; - rounding?: Rounding; - toExpNeg?: number; - toExpPos?: number; - minE?: number; - maxE?: number; - crypto?: boolean; - modulo?: Modulo; - defaults?: boolean; - } -} - -export declare class Decimal { - readonly d: number[]; - readonly e: number; - readonly s: number; - - constructor(n: Decimal.Value); - - absoluteValue(): Decimal; - abs(): Decimal; - - ceil(): Decimal; - - clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal; - clamp(min: Decimal.Value, max: Decimal.Value): Decimal; - - comparedTo(n: Decimal.Value): number; - cmp(n: Decimal.Value): number; - - cosine(): Decimal; - cos(): Decimal; - - cubeRoot(): Decimal; - cbrt(): Decimal; - - decimalPlaces(): number; - dp(): number; - - dividedBy(n: Decimal.Value): Decimal; - div(n: Decimal.Value): Decimal; - - dividedToIntegerBy(n: Decimal.Value): Decimal; - divToInt(n: Decimal.Value): Decimal; - - equals(n: Decimal.Value): boolean; - eq(n: Decimal.Value): boolean; - - floor(): Decimal; - - greaterThan(n: Decimal.Value): boolean; - gt(n: Decimal.Value): boolean; - - greaterThanOrEqualTo(n: Decimal.Value): boolean; - gte(n: Decimal.Value): boolean; - - hyperbolicCosine(): Decimal; - cosh(): Decimal; - - hyperbolicSine(): Decimal; - sinh(): Decimal; - - hyperbolicTangent(): Decimal; - tanh(): Decimal; - - inverseCosine(): Decimal; - acos(): Decimal; - - inverseHyperbolicCosine(): Decimal; - acosh(): Decimal; - - inverseHyperbolicSine(): Decimal; - asinh(): Decimal; - - inverseHyperbolicTangent(): Decimal; - atanh(): Decimal; - - inverseSine(): Decimal; - asin(): Decimal; - - inverseTangent(): Decimal; - atan(): Decimal; - - isFinite(): boolean; - - isInteger(): boolean; - isInt(): boolean; - - isNaN(): boolean; - - isNegative(): boolean; - isNeg(): boolean; - - isPositive(): boolean; - isPos(): boolean; - - isZero(): boolean; - - lessThan(n: Decimal.Value): boolean; - lt(n: Decimal.Value): boolean; - - lessThanOrEqualTo(n: Decimal.Value): boolean; - lte(n: Decimal.Value): boolean; - - logarithm(n?: Decimal.Value): Decimal; - log(n?: Decimal.Value): Decimal; - - minus(n: Decimal.Value): Decimal; - sub(n: Decimal.Value): Decimal; - - modulo(n: Decimal.Value): Decimal; - mod(n: Decimal.Value): Decimal; - - naturalExponential(): Decimal; - exp(): Decimal; - - naturalLogarithm(): Decimal; - ln(): Decimal; - - negated(): Decimal; - neg(): Decimal; - - plus(n: Decimal.Value): Decimal; - add(n: Decimal.Value): Decimal; - - precision(includeZeros?: boolean): number; - sd(includeZeros?: boolean): number; - - round(): Decimal; - - sine() : Decimal; - sin() : Decimal; - - squareRoot(): Decimal; - sqrt(): Decimal; - - tangent() : Decimal; - tan() : Decimal; - - times(n: Decimal.Value): Decimal; - mul(n: Decimal.Value) : Decimal; - - toBinary(significantDigits?: number): string; - toBinary(significantDigits: number, rounding: Decimal.Rounding): string; - - toDecimalPlaces(decimalPlaces?: number): Decimal; - toDecimalPlaces(decimalPlaces: number, rounding: Decimal.Rounding): Decimal; - toDP(decimalPlaces?: number): Decimal; - toDP(decimalPlaces: number, rounding: Decimal.Rounding): Decimal; - - toExponential(decimalPlaces?: number): string; - toExponential(decimalPlaces: number, rounding: Decimal.Rounding): string; - - toFixed(decimalPlaces?: number): string; - toFixed(decimalPlaces: number, rounding: Decimal.Rounding): string; - - toFraction(max_denominator?: Decimal.Value): Decimal[]; - - toHexadecimal(significantDigits?: number): string; - toHexadecimal(significantDigits: number, rounding: Decimal.Rounding): string; - toHex(significantDigits?: number): string; - toHex(significantDigits: number, rounding?: Decimal.Rounding): string; - - toJSON(): string; - - toNearest(n: Decimal.Value, rounding?: Decimal.Rounding): Decimal; - - toNumber(): number; - - toOctal(significantDigits?: number): string; - toOctal(significantDigits: number, rounding: Decimal.Rounding): string; - - toPower(n: Decimal.Value): Decimal; - pow(n: Decimal.Value): Decimal; - - toPrecision(significantDigits?: number): string; - toPrecision(significantDigits: number, rounding: Decimal.Rounding): string; - - toSignificantDigits(significantDigits?: number): Decimal; - toSignificantDigits(significantDigits: number, rounding: Decimal.Rounding): Decimal; - toSD(significantDigits?: number): Decimal; - toSD(significantDigits: number, rounding: Decimal.Rounding): Decimal; - - toString(): string; - - truncated(): Decimal; - trunc(): Decimal; - - valueOf(): string; - - static abs(n: Decimal.Value): Decimal; - static acos(n: Decimal.Value): Decimal; - static acosh(n: Decimal.Value): Decimal; - static add(x: Decimal.Value, y: Decimal.Value): Decimal; - static asin(n: Decimal.Value): Decimal; - static asinh(n: Decimal.Value): Decimal; - static atan(n: Decimal.Value): Decimal; - static atanh(n: Decimal.Value): Decimal; - static atan2(y: Decimal.Value, x: Decimal.Value): Decimal; - static cbrt(n: Decimal.Value): Decimal; - static ceil(n: Decimal.Value): Decimal; - static clamp(n: Decimal.Value, min: Decimal.Value, max: Decimal.Value): Decimal; - static clone(object?: Decimal.Config): Decimal.Constructor; - static config(object: Decimal.Config): Decimal.Constructor; - static cos(n: Decimal.Value): Decimal; - static cosh(n: Decimal.Value): Decimal; - static div(x: Decimal.Value, y: Decimal.Value): Decimal; - static exp(n: Decimal.Value): Decimal; - static floor(n: Decimal.Value): Decimal; - static hypot(...n: Decimal.Value[]): Decimal; - static isDecimal(object: any): object is Decimal; - static ln(n: Decimal.Value): Decimal; - static log(n: Decimal.Value, base?: Decimal.Value): Decimal; - static log2(n: Decimal.Value): Decimal; - static log10(n: Decimal.Value): Decimal; - static max(...n: Decimal.Value[]): Decimal; - static min(...n: Decimal.Value[]): Decimal; - static mod(x: Decimal.Value, y: Decimal.Value): Decimal; - static mul(x: Decimal.Value, y: Decimal.Value): Decimal; - static noConflict(): Decimal.Constructor; // Browser only - static pow(base: Decimal.Value, exponent: Decimal.Value): Decimal; - static random(significantDigits?: number): Decimal; - static round(n: Decimal.Value): Decimal; - static set(object: Decimal.Config): Decimal.Constructor; - static sign(n: Decimal.Value): number; - static sin(n: Decimal.Value): Decimal; - static sinh(n: Decimal.Value): Decimal; - static sqrt(n: Decimal.Value): Decimal; - static sub(x: Decimal.Value, y: Decimal.Value): Decimal; - static sum(...n: Decimal.Value[]): Decimal; - static tan(n: Decimal.Value): Decimal; - static tanh(n: Decimal.Value): Decimal; - static trunc(n: Decimal.Value): Decimal; - - static readonly default?: Decimal.Constructor; - static readonly Decimal?: Decimal.Constructor; - - static readonly precision: number; - static readonly rounding: Decimal.Rounding; - static readonly toExpNeg: number; - static readonly toExpPos: number; - static readonly minE: number; - static readonly maxE: number; - static readonly crypto: boolean; - static readonly modulo: Decimal.Modulo; - - static readonly ROUND_UP: 0; - static readonly ROUND_DOWN: 1; - static readonly ROUND_CEIL: 2; - static readonly ROUND_FLOOR: 3; - static readonly ROUND_HALF_UP: 4; - static readonly ROUND_HALF_DOWN: 5; - static readonly ROUND_HALF_EVEN: 6; - static readonly ROUND_HALF_CEIL: 7; - static readonly ROUND_HALF_FLOOR: 8; - static readonly EUCLID: 9; -} - -declare type Exact = (A extends unknown ? (W extends A ? { - [K in keyof A]: Exact; -} : W) : never) | (A extends Narrowable ? A : never); - -export declare function getRuntime(): GetRuntimeOutput; - -declare type GetRuntimeOutput = { - id: RuntimeName; - prettyName: string; - isEdge: boolean; -}; - -declare class JsonNull extends NullTypesEnumValue { - #private; -} - -/** - * Generates more strict variant of an enum which, unlike regular enum, - * throws on non-existing property access. This can be useful in following situations: - * - we have an API, that accepts both `undefined` and `SomeEnumType` as an input - * - enum values are generated dynamically from DMMF. - * - * In that case, if using normal enums and no compile-time typechecking, using non-existing property - * will result in `undefined` value being used, which will be accepted. Using strict enum - * in this case will help to have a runtime exception, telling you that you are probably doing something wrong. - * - * Note: if you need to check for existence of a value in the enum you can still use either - * `in` operator or `hasOwnProperty` function. - * - * @param definition - * @returns - */ -export declare function makeStrictEnum>(definition: T): T; - -declare type Narrowable = string | number | bigint | boolean | []; - -declare class NullTypesEnumValue extends ObjectEnumValue { - _getNamespace(): string; -} - -/** - * Base class for unique values of object-valued enums. - */ -declare abstract class ObjectEnumValue { - constructor(arg?: symbol); - abstract _getNamespace(): string; - _getName(): string; - toString(): string; -} - -export declare const objectEnumValues: { - classes: { - DbNull: typeof DbNull; - JsonNull: typeof JsonNull; - AnyNull: typeof AnyNull; - }; - instances: { - DbNull: DbNull; - JsonNull: JsonNull; - AnyNull: AnyNull; - }; -}; - -declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw'; - -declare namespace Public { - export { - validator - } -} -export { Public } - -declare type RuntimeName = 'workerd' | 'deno' | 'netlify' | 'node' | 'bun' | 'edge-light' | ''; - -declare function validator(): (select: Exact) => S; - -declare function validator, O extends keyof C[M] & Operation>(client: C, model: M, operation: O): (select: Exact>) => S; - -declare function validator, O extends keyof C[M] & Operation, P extends keyof Args>(client: C, model: M, operation: O, prop: P): (select: Exact[P]>) => S; - -export { } diff --git a/prisma/generated/client/runtime/index-browser.js b/prisma/generated/client/runtime/index-browser.js deleted file mode 100644 index 373ada9..0000000 --- a/prisma/generated/client/runtime/index-browser.js +++ /dev/null @@ -1,16 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! -/* eslint-disable */ -"use strict";var pe=Object.defineProperty;var Xe=Object.getOwnPropertyDescriptor;var Ke=Object.getOwnPropertyNames;var Qe=Object.prototype.hasOwnProperty;var Ye=e=>{throw TypeError(e)};var Oe=(e,n)=>{for(var i in n)pe(e,i,{get:n[i],enumerable:!0})},xe=(e,n,i,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of Ke(n))!Qe.call(e,r)&&r!==i&&pe(e,r,{get:()=>n[r],enumerable:!(t=Xe(n,r))||t.enumerable});return e};var ze=e=>xe(pe({},"__esModule",{value:!0}),e);var ne=(e,n,i)=>n.has(e)?Ye("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,i);var ii={};Oe(ii,{Decimal:()=>Je,Public:()=>ge,getRuntime:()=>_e,makeStrictEnum:()=>qe,objectEnumValues:()=>Ae});module.exports=ze(ii);var ge={};Oe(ge,{validator:()=>Re});function Re(...e){return n=>n}var ie=Symbol(),me=new WeakMap,we=class{constructor(n){n===ie?me.set(this,"Prisma.".concat(this._getName())):me.set(this,"new Prisma.".concat(this._getNamespace(),".").concat(this._getName(),"()"))}_getName(){return this.constructor.name}toString(){return me.get(this)}},G=class extends we{_getNamespace(){return"NullTypes"}},Ne,J=class extends G{constructor(){super(...arguments);ne(this,Ne)}};Ne=new WeakMap;ke(J,"DbNull");var ve,X=class extends G{constructor(){super(...arguments);ne(this,ve)}};ve=new WeakMap;ke(X,"JsonNull");var Ee,K=class extends G{constructor(){super(...arguments);ne(this,Ee)}};Ee=new WeakMap;ke(K,"AnyNull");var Ae={classes:{DbNull:J,JsonNull:X,AnyNull:K},instances:{DbNull:new J(ie),JsonNull:new X(ie),AnyNull:new K(ie)}};function ke(e,n){Object.defineProperty(e,"name",{value:n,configurable:!0})}var ye=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function qe(e){return new Proxy(e,{get(n,i){if(i in n)return n[i];if(!ye.has(i))throw new TypeError("Invalid enum value: ".concat(String(i)))}})}var en=()=>{var e,n;return((n=(e=globalThis.process)==null?void 0:e.release)==null?void 0:n.name)==="node"},nn=()=>{var e,n;return!!globalThis.Bun||!!((n=(e=globalThis.process)==null?void 0:e.versions)!=null&&n.bun)},tn=()=>!!globalThis.Deno,rn=()=>typeof globalThis.Netlify=="object",sn=()=>typeof globalThis.EdgeRuntime=="object",on=()=>{var e;return((e=globalThis.navigator)==null?void 0:e.userAgent)==="Cloudflare-Workers"};function un(){var i;return(i=[[rn,"netlify"],[sn,"edge-light"],[on,"workerd"],[tn,"deno"],[nn,"bun"],[en,"node"]].flatMap(t=>t[0]()?[t[1]]:[]).at(0))!=null?i:""}var fn={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function _e(){let e=un();return{id:e,prettyName:fn[e]||e,isEdge:["workerd","deno","netlify","edge-light"].includes(e)}}var V=9e15,H=1e9,Se="0123456789abcdef",se="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",oe="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Me={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-V,maxE:V,crypto:!1},Le,Z,w=!0,fe="[DecimalError] ",$=fe+"Invalid argument: ",Ie=fe+"Precision limit exceeded",Ze=fe+"crypto unavailable",Ue="[object Decimal]",R=Math.floor,C=Math.pow,cn=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,ln=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,an=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Be=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,D=1e7,m=7,dn=9007199254740991,hn=se.length-1,Ce=oe.length-1,h={toStringTag:Ue};h.absoluteValue=h.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),p(e)};h.ceil=function(){return p(new this.constructor(this),this.e+1,2)};h.clampedTo=h.clamp=function(e,n){var i,t=this,r=t.constructor;if(e=new r(e),n=new r(n),!e.s||!n.s)return new r(NaN);if(e.gt(n))throw Error($+n);return i=t.cmp(e),i<0?e:t.cmp(n)>0?n:new r(t)};h.comparedTo=h.cmp=function(e){var n,i,t,r,s=this,o=s.d,u=(e=new s.constructor(e)).d,c=s.s,f=e.s;if(!o||!u)return!c||!f?NaN:c!==f?c:o===u?0:!o^c<0?1:-1;if(!o[0]||!u[0])return o[0]?c:u[0]?-f:0;if(c!==f)return c;if(s.e!==e.e)return s.e>e.e^c<0?1:-1;for(t=o.length,r=u.length,n=0,i=tu[n]^c<0?1:-1;return t===r?0:t>r^c<0?1:-1};h.cosine=h.cos=function(){var e,n,i=this,t=i.constructor;return i.d?i.d[0]?(e=t.precision,n=t.rounding,t.precision=e+Math.max(i.e,i.sd())+m,t.rounding=1,i=pn(t,We(t,i)),t.precision=e,t.rounding=n,p(Z==2||Z==3?i.neg():i,e,n,!0)):new t(1):new t(NaN)};h.cubeRoot=h.cbrt=function(){var e,n,i,t,r,s,o,u,c,f,l=this,a=l.constructor;if(!l.isFinite()||l.isZero())return new a(l);for(w=!1,s=l.s*C(l.s*l,1/3),!s||Math.abs(s)==1/0?(i=b(l.d),e=l.e,(s=(e-i.length+1)%3)&&(i+=s==1||s==-2?"0":"00"),s=C(i,1/3),e=R((e+1)/3)-(e%3==(e<0?-1:2)),s==1/0?i="5e"+e:(i=s.toExponential(),i=i.slice(0,i.indexOf("e")+1)+e),t=new a(i),t.s=l.s):t=new a(s.toString()),o=(e=a.precision)+3;;)if(u=t,c=u.times(u).times(u),f=c.plus(l),t=k(f.plus(l).times(u),f.plus(c),o+2,1),b(u.d).slice(0,o)===(i=b(t.d)).slice(0,o))if(i=i.slice(o-3,o+1),i=="9999"||!r&&i=="4999"){if(!r&&(p(u,e+1,0),u.times(u).times(u).eq(l))){t=u;break}o+=4,r=1}else{(!+i||!+i.slice(1)&&i.charAt(0)=="5")&&(p(t,e+1,1),n=!t.times(t).times(t).eq(l));break}return w=!0,p(t,e,a.rounding,n)};h.decimalPlaces=h.dp=function(){var e,n=this.d,i=NaN;if(n){if(e=n.length-1,i=(e-R(this.e/m))*m,e=n[e],e)for(;e%10==0;e/=10)i--;i<0&&(i=0)}return i};h.dividedBy=h.div=function(e){return k(this,new this.constructor(e))};h.dividedToIntegerBy=h.divToInt=function(e){var n=this,i=n.constructor;return p(k(n,new i(e),0,1,1),i.precision,i.rounding)};h.equals=h.eq=function(e){return this.cmp(e)===0};h.floor=function(){return p(new this.constructor(this),this.e+1,3)};h.greaterThan=h.gt=function(e){return this.cmp(e)>0};h.greaterThanOrEqualTo=h.gte=function(e){var n=this.cmp(e);return n==1||n===0};h.hyperbolicCosine=h.cosh=function(){var e,n,i,t,r,s=this,o=s.constructor,u=new o(1);if(!s.isFinite())return new o(s.s?1/0:NaN);if(s.isZero())return u;i=o.precision,t=o.rounding,o.precision=i+Math.max(s.e,s.sd())+4,o.rounding=1,r=s.d.length,r<32?(e=Math.ceil(r/3),n=(1/le(4,e)).toString()):(e=16,n="2.3283064365386962890625e-10"),s=j(o,1,s.times(n),new o(1),!0);for(var c,f=e,l=new o(8);f--;)c=s.times(s),s=u.minus(c.times(l.minus(c.times(l))));return p(s,o.precision=i,o.rounding=t,!0)};h.hyperbolicSine=h.sinh=function(){var e,n,i,t,r=this,s=r.constructor;if(!r.isFinite()||r.isZero())return new s(r);if(n=s.precision,i=s.rounding,s.precision=n+Math.max(r.e,r.sd())+4,s.rounding=1,t=r.d.length,t<3)r=j(s,2,r,r,!0);else{e=1.4*Math.sqrt(t),e=e>16?16:e|0,r=r.times(1/le(5,e)),r=j(s,2,r,r,!0);for(var o,u=new s(5),c=new s(16),f=new s(20);e--;)o=r.times(r),r=r.times(u.plus(o.times(c.times(o).plus(f))))}return s.precision=n,s.rounding=i,p(r,n,i,!0)};h.hyperbolicTangent=h.tanh=function(){var e,n,i=this,t=i.constructor;return i.isFinite()?i.isZero()?new t(i):(e=t.precision,n=t.rounding,t.precision=e+7,t.rounding=1,k(i.sinh(),i.cosh(),t.precision=e,t.rounding=n)):new t(i.s)};h.inverseCosine=h.acos=function(){var e=this,n=e.constructor,i=e.abs().cmp(1),t=n.precision,r=n.rounding;return i!==-1?i===0?e.isNeg()?F(n,t,r):new n(0):new n(NaN):e.isZero()?F(n,t+4,r).times(.5):(n.precision=t+6,n.rounding=1,e=new n(1).minus(e).div(e.plus(1)).sqrt().atan(),n.precision=t,n.rounding=r,e.times(2))};h.inverseHyperbolicCosine=h.acosh=function(){var e,n,i=this,t=i.constructor;return i.lte(1)?new t(i.eq(1)?0:NaN):i.isFinite()?(e=t.precision,n=t.rounding,t.precision=e+Math.max(Math.abs(i.e),i.sd())+4,t.rounding=1,w=!1,i=i.times(i).minus(1).sqrt().plus(i),w=!0,t.precision=e,t.rounding=n,i.ln()):new t(i)};h.inverseHyperbolicSine=h.asinh=function(){var e,n,i=this,t=i.constructor;return!i.isFinite()||i.isZero()?new t(i):(e=t.precision,n=t.rounding,t.precision=e+2*Math.max(Math.abs(i.e),i.sd())+6,t.rounding=1,w=!1,i=i.times(i).plus(1).sqrt().plus(i),w=!0,t.precision=e,t.rounding=n,i.ln())};h.inverseHyperbolicTangent=h.atanh=function(){var e,n,i,t,r=this,s=r.constructor;return r.isFinite()?r.e>=0?new s(r.abs().eq(1)?r.s/0:r.isZero()?r:NaN):(e=s.precision,n=s.rounding,t=r.sd(),Math.max(t,e)<2*-r.e-1?p(new s(r),e,n,!0):(s.precision=i=t-r.e,r=k(r.plus(1),new s(1).minus(r),i+e,1),s.precision=e+4,s.rounding=1,r=r.ln(),s.precision=e,s.rounding=n,r.times(.5))):new s(NaN)};h.inverseSine=h.asin=function(){var e,n,i,t,r=this,s=r.constructor;return r.isZero()?new s(r):(n=r.abs().cmp(1),i=s.precision,t=s.rounding,n!==-1?n===0?(e=F(s,i+4,t).times(.5),e.s=r.s,e):new s(NaN):(s.precision=i+6,s.rounding=1,r=r.div(new s(1).minus(r.times(r)).sqrt().plus(1)).atan(),s.precision=i,s.rounding=t,r.times(2)))};h.inverseTangent=h.atan=function(){var e,n,i,t,r,s,o,u,c,f=this,l=f.constructor,a=l.precision,d=l.rounding;if(f.isFinite()){if(f.isZero())return new l(f);if(f.abs().eq(1)&&a+4<=Ce)return o=F(l,a+4,d).times(.25),o.s=f.s,o}else{if(!f.s)return new l(NaN);if(a+4<=Ce)return o=F(l,a+4,d).times(.5),o.s=f.s,o}for(l.precision=u=a+10,l.rounding=1,i=Math.min(28,u/m+2|0),e=i;e;--e)f=f.div(f.times(f).plus(1).sqrt().plus(1));for(w=!1,n=Math.ceil(u/m),t=1,c=f.times(f),o=new l(f),r=f;e!==-1;)if(r=r.times(c),s=o.minus(r.div(t+=2)),r=r.times(c),o=s.plus(r.div(t+=2)),o.d[n]!==void 0)for(e=n;o.d[e]===s.d[e]&&e--;);return i&&(o=o.times(2<this.d.length-2};h.isNaN=function(){return!this.s};h.isNegative=h.isNeg=function(){return this.s<0};h.isPositive=h.isPos=function(){return this.s>0};h.isZero=function(){return!!this.d&&this.d[0]===0};h.lessThan=h.lt=function(e){return this.cmp(e)<0};h.lessThanOrEqualTo=h.lte=function(e){return this.cmp(e)<1};h.logarithm=h.log=function(e){var n,i,t,r,s,o,u,c,f=this,l=f.constructor,a=l.precision,d=l.rounding,g=5;if(e==null)e=new l(10),n=!0;else{if(e=new l(e),i=e.d,e.s<0||!i||!i[0]||e.eq(1))return new l(NaN);n=e.eq(10)}if(i=f.d,f.s<0||!i||!i[0]||f.eq(1))return new l(i&&!i[0]?-1/0:f.s!=1?NaN:i?0:1/0);if(n)if(i.length>1)s=!0;else{for(r=i[0];r%10===0;)r/=10;s=r!==1}if(w=!1,u=a+g,o=B(f,u),t=n?ue(l,u+10):B(e,u),c=k(o,t,u,1),Q(c.d,r=a,d))do if(u+=10,o=B(f,u),t=n?ue(l,u+10):B(e,u),c=k(o,t,u,1),!s){+b(c.d).slice(r+1,r+15)+1==1e14&&(c=p(c,a+1,0));break}while(Q(c.d,r+=10,d));return w=!0,p(c,a,d)};h.minus=h.sub=function(e){var n,i,t,r,s,o,u,c,f,l,a,d,g=this,v=g.constructor;if(e=new v(e),!g.d||!e.d)return!g.s||!e.s?e=new v(NaN):g.d?e.s=-e.s:e=new v(e.d||g.s!==e.s?g:NaN),e;if(g.s!=e.s)return e.s=-e.s,g.plus(e);if(f=g.d,d=e.d,u=v.precision,c=v.rounding,!f[0]||!d[0]){if(d[0])e.s=-e.s;else if(f[0])e=new v(g);else return new v(c===3?-0:0);return w?p(e,u,c):e}if(i=R(e.e/m),l=R(g.e/m),f=f.slice(),s=l-i,s){for(a=s<0,a?(n=f,s=-s,o=d.length):(n=d,i=l,o=f.length),t=Math.max(Math.ceil(u/m),o)+2,s>t&&(s=t,n.length=1),n.reverse(),t=s;t--;)n.push(0);n.reverse()}else{for(t=f.length,o=d.length,a=t0;--t)f[o++]=0;for(t=d.length;t>s;){if(f[--t]o?s+1:o+1,r>o&&(r=o,i.length=1),i.reverse();r--;)i.push(0);i.reverse()}for(o=f.length,r=l.length,o-r<0&&(r=o,i=l,l=f,f=i),n=0;r;)n=(f[--r]=f[r]+l[r]+n)/D|0,f[r]%=D;for(n&&(f.unshift(n),++t),o=f.length;f[--o]==0;)f.pop();return e.d=f,e.e=ce(f,t),w?p(e,u,c):e};h.precision=h.sd=function(e){var n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error($+e);return i.d?(n=$e(i.d),e&&i.e+1>n&&(n=i.e+1)):n=NaN,n};h.round=function(){var e=this,n=e.constructor;return p(new n(e),e.e+1,n.rounding)};h.sine=h.sin=function(){var e,n,i=this,t=i.constructor;return i.isFinite()?i.isZero()?new t(i):(e=t.precision,n=t.rounding,t.precision=e+Math.max(i.e,i.sd())+m,t.rounding=1,i=mn(t,We(t,i)),t.precision=e,t.rounding=n,p(Z>2?i.neg():i,e,n,!0)):new t(NaN)};h.squareRoot=h.sqrt=function(){var e,n,i,t,r,s,o=this,u=o.d,c=o.e,f=o.s,l=o.constructor;if(f!==1||!u||!u[0])return new l(!f||f<0&&(!u||u[0])?NaN:u?o:1/0);for(w=!1,f=Math.sqrt(+o),f==0||f==1/0?(n=b(u),(n.length+c)%2==0&&(n+="0"),f=Math.sqrt(n),c=R((c+1)/2)-(c<0||c%2),f==1/0?n="5e"+c:(n=f.toExponential(),n=n.slice(0,n.indexOf("e")+1)+c),t=new l(n)):t=new l(f.toString()),i=(c=l.precision)+3;;)if(s=t,t=s.plus(k(o,s,i+2,1)).times(.5),b(s.d).slice(0,i)===(n=b(t.d)).slice(0,i))if(n=n.slice(i-3,i+1),n=="9999"||!r&&n=="4999"){if(!r&&(p(s,c+1,0),s.times(s).eq(o))){t=s;break}i+=4,r=1}else{(!+n||!+n.slice(1)&&n.charAt(0)=="5")&&(p(t,c+1,1),e=!t.times(t).eq(o));break}return w=!0,p(t,c,l.rounding,e)};h.tangent=h.tan=function(){var e,n,i=this,t=i.constructor;return i.isFinite()?i.isZero()?new t(i):(e=t.precision,n=t.rounding,t.precision=e+10,t.rounding=1,i=i.sin(),i.s=1,i=k(i,new t(1).minus(i.times(i)).sqrt(),e+10,0),t.precision=e,t.rounding=n,p(Z==2||Z==4?i.neg():i,e,n,!0)):new t(NaN)};h.times=h.mul=function(e){var n,i,t,r,s,o,u,c,f,l=this,a=l.constructor,d=l.d,g=(e=new a(e)).d;if(e.s*=l.s,!d||!d[0]||!g||!g[0])return new a(!e.s||d&&!d[0]&&!g||g&&!g[0]&&!d?NaN:!d||!g?e.s/0:e.s*0);for(i=R(l.e/m)+R(e.e/m),c=d.length,f=g.length,c=0;){for(n=0,r=c+t;r>t;)u=s[r]+g[t]*d[r-t-1]+n,s[r--]=u%D|0,n=u/D|0;s[r]=(s[r]+n)%D|0}for(;!s[--o];)s.pop();return n?++i:s.shift(),e.d=s,e.e=ce(s,i),w?p(e,a.precision,a.rounding):e};h.toBinary=function(e,n){return Pe(this,2,e,n)};h.toDecimalPlaces=h.toDP=function(e,n){var i=this,t=i.constructor;return i=new t(i),e===void 0?i:(q(e,0,H),n===void 0?n=t.rounding:q(n,0,8),p(i,e+i.e+1,n))};h.toExponential=function(e,n){var i,t=this,r=t.constructor;return e===void 0?i=L(t,!0):(q(e,0,H),n===void 0?n=r.rounding:q(n,0,8),t=p(new r(t),e+1,n),i=L(t,!0,e+1)),t.isNeg()&&!t.isZero()?"-"+i:i};h.toFixed=function(e,n){var i,t,r=this,s=r.constructor;return e===void 0?i=L(r):(q(e,0,H),n===void 0?n=s.rounding:q(n,0,8),t=p(new s(r),e+r.e+1,n),i=L(t,!1,e+t.e+1)),r.isNeg()&&!r.isZero()?"-"+i:i};h.toFraction=function(e){var n,i,t,r,s,o,u,c,f,l,a,d,g=this,v=g.d,N=g.constructor;if(!v)return new N(g);if(f=i=new N(1),t=c=new N(0),n=new N(t),s=n.e=$e(v)-g.e-1,o=s%m,n.d[0]=C(10,o<0?m+o:o),e==null)e=s>0?n:f;else{if(u=new N(e),!u.isInt()||u.lt(f))throw Error($+u);e=u.gt(n)?s>0?n:f:u}for(w=!1,u=new N(b(v)),l=N.precision,N.precision=s=v.length*m*2;a=k(u,n,0,1,1),r=i.plus(a.times(t)),r.cmp(e)!=1;)i=t,t=r,r=f,f=c.plus(a.times(r)),c=r,r=n,n=u.minus(a.times(r)),u=r;return r=k(e.minus(i),t,0,1,1),c=c.plus(r.times(f)),i=i.plus(r.times(t)),c.s=f.s=g.s,d=k(f,t,s,1).minus(g).abs().cmp(k(c,i,s,1).minus(g).abs())<1?[f,t]:[c,i],N.precision=l,w=!0,d};h.toHexadecimal=h.toHex=function(e,n){return Pe(this,16,e,n)};h.toNearest=function(e,n){var i=this,t=i.constructor;if(i=new t(i),e==null){if(!i.d)return i;e=new t(1),n=t.rounding}else{if(e=new t(e),n===void 0?n=t.rounding:q(n,0,8),!i.d)return e.s?i:e;if(!e.d)return e.s&&(e.s=i.s),e}return e.d[0]?(w=!1,i=k(i,e,0,n,1).times(e),w=!0,p(i)):(e.s=i.s,i=e),i};h.toNumber=function(){return+this};h.toOctal=function(e,n){return Pe(this,8,e,n)};h.toPower=h.pow=function(e){var n,i,t,r,s,o,u=this,c=u.constructor,f=+(e=new c(e));if(!u.d||!e.d||!u.d[0]||!e.d[0])return new c(C(+u,f));if(u=new c(u),u.eq(1))return u;if(t=c.precision,s=c.rounding,e.eq(1))return p(u,t,s);if(n=R(e.e/m),n>=e.d.length-1&&(i=f<0?-f:f)<=dn)return r=He(c,u,i,t),e.s<0?new c(1).div(r):p(r,t,s);if(o=u.s,o<0){if(nc.maxE+1||n0?o/0:0):(w=!1,c.rounding=u.s=1,i=Math.min(12,(n+"").length),r=be(e.times(B(u,t+i)),t),r.d&&(r=p(r,t+5,1),Q(r.d,t,s)&&(n=t+10,r=p(be(e.times(B(u,n+i)),n),n+5,1),+b(r.d).slice(t+1,t+15)+1==1e14&&(r=p(r,t+1,0)))),r.s=o,w=!0,c.rounding=s,p(r,t,s))};h.toPrecision=function(e,n){var i,t=this,r=t.constructor;return e===void 0?i=L(t,t.e<=r.toExpNeg||t.e>=r.toExpPos):(q(e,1,H),n===void 0?n=r.rounding:q(n,0,8),t=p(new r(t),e,n),i=L(t,e<=t.e||t.e<=r.toExpNeg,e)),t.isNeg()&&!t.isZero()?"-"+i:i};h.toSignificantDigits=h.toSD=function(e,n){var i=this,t=i.constructor;return e===void 0?(e=t.precision,n=t.rounding):(q(e,1,H),n===void 0?n=t.rounding:q(n,0,8)),p(new t(i),e,n)};h.toString=function(){var e=this,n=e.constructor,i=L(e,e.e<=n.toExpNeg||e.e>=n.toExpPos);return e.isNeg()&&!e.isZero()?"-"+i:i};h.truncated=h.trunc=function(){return p(new this.constructor(this),this.e+1,1)};h.valueOf=h.toJSON=function(){var e=this,n=e.constructor,i=L(e,e.e<=n.toExpNeg||e.e>=n.toExpPos);return e.isNeg()?"-"+i:i};function b(e){var n,i,t,r=e.length-1,s="",o=e[0];if(r>0){for(s+=o,n=1;ni)throw Error($+e)}function Q(e,n,i,t){var r,s,o,u;for(s=e[0];s>=10;s/=10)--n;return--n<0?(n+=m,r=0):(r=Math.ceil((n+1)/m),n%=m),s=C(10,m-n),u=e[r]%s|0,t==null?n<3?(n==0?u=u/100|0:n==1&&(u=u/10|0),o=i<4&&u==99999||i>3&&u==49999||u==5e4||u==0):o=(i<4&&u+1==s||i>3&&u+1==s/2)&&(e[r+1]/s/100|0)==C(10,n-2)-1||(u==s/2||u==0)&&(e[r+1]/s/100|0)==0:n<4?(n==0?u=u/1e3|0:n==1?u=u/100|0:n==2&&(u=u/10|0),o=(t||i<4)&&u==9999||!t&&i>3&&u==4999):o=((t||i<4)&&u+1==s||!t&&i>3&&u+1==s/2)&&(e[r+1]/s/1e3|0)==C(10,n-3)-1,o}function te(e,n,i){for(var t,r=[0],s,o=0,u=e.length;oi-1&&(r[t+1]===void 0&&(r[t+1]=0),r[t+1]+=r[t]/i|0,r[t]%=i)}return r.reverse()}function pn(e,n){var i,t,r;if(n.isZero())return n;t=n.d.length,t<32?(i=Math.ceil(t/3),r=(1/le(4,i)).toString()):(i=16,r="2.3283064365386962890625e-10"),e.precision+=i,n=j(e,1,n.times(r),new e(1));for(var s=i;s--;){var o=n.times(n);n=o.times(o).minus(o).times(8).plus(1)}return e.precision-=i,n}var k=function(){function e(t,r,s){var o,u=0,c=t.length;for(t=t.slice();c--;)o=t[c]*r+u,t[c]=o%s|0,u=o/s|0;return u&&t.unshift(u),t}function n(t,r,s,o){var u,c;if(s!=o)c=s>o?1:-1;else for(u=c=0;ur[u]?1:-1;break}return c}function i(t,r,s,o){for(var u=0;s--;)t[s]-=u,u=t[s]1;)t.shift()}return function(t,r,s,o,u,c){var f,l,a,d,g,v,N,A,M,_,E,P,x,I,ae,z,W,de,T,y,ee=t.constructor,he=t.s==r.s?1:-1,O=t.d,S=r.d;if(!O||!O[0]||!S||!S[0])return new ee(!t.s||!r.s||(O?S&&O[0]==S[0]:!S)?NaN:O&&O[0]==0||!S?he*0:he/0);for(c?(g=1,l=t.e-r.e):(c=D,g=m,l=R(t.e/g)-R(r.e/g)),T=S.length,W=O.length,M=new ee(he),_=M.d=[],a=0;S[a]==(O[a]||0);a++);if(S[a]>(O[a]||0)&&l--,s==null?(I=s=ee.precision,o=ee.rounding):u?I=s+(t.e-r.e)+1:I=s,I<0)_.push(1),v=!0;else{if(I=I/g+2|0,a=0,T==1){for(d=0,S=S[0],I++;(a1&&(S=e(S,d,c),O=e(O,d,c),T=S.length,W=O.length),z=T,E=O.slice(0,T),P=E.length;P=c/2&&++de;do d=0,f=n(S,E,T,P),f<0?(x=E[0],T!=P&&(x=x*c+(E[1]||0)),d=x/de|0,d>1?(d>=c&&(d=c-1),N=e(S,d,c),A=N.length,P=E.length,f=n(N,E,A,P),f==1&&(d--,i(N,T=10;d/=10)a++;M.e=a+l*g-1,p(M,u?s+M.e+1:s,o,v)}return M}}();function p(e,n,i,t){var r,s,o,u,c,f,l,a,d,g=e.constructor;e:if(n!=null){if(a=e.d,!a)return e;for(r=1,u=a[0];u>=10;u/=10)r++;if(s=n-r,s<0)s+=m,o=n,l=a[d=0],c=l/C(10,r-o-1)%10|0;else if(d=Math.ceil((s+1)/m),u=a.length,d>=u)if(t){for(;u++<=d;)a.push(0);l=c=0,r=1,s%=m,o=s-m+1}else break e;else{for(l=u=a[d],r=1;u>=10;u/=10)r++;s%=m,o=s-m+r,c=o<0?0:l/C(10,r-o-1)%10|0}if(t=t||n<0||a[d+1]!==void 0||(o<0?l:l%C(10,r-o-1)),f=i<4?(c||t)&&(i==0||i==(e.s<0?3:2)):c>5||c==5&&(i==4||t||i==6&&(s>0?o>0?l/C(10,r-o):0:a[d-1])%10&1||i==(e.s<0?8:7)),n<1||!a[0])return a.length=0,f?(n-=e.e+1,a[0]=C(10,(m-n%m)%m),e.e=-n||0):a[0]=e.e=0,e;if(s==0?(a.length=d,u=1,d--):(a.length=d+1,u=C(10,m-s),a[d]=o>0?(l/C(10,r-o)%C(10,o)|0)*u:0),f)for(;;)if(d==0){for(s=1,o=a[0];o>=10;o/=10)s++;for(o=a[0]+=u,u=1;o>=10;o/=10)u++;s!=u&&(e.e++,a[0]==D&&(a[0]=1));break}else{if(a[d]+=u,a[d]!=D)break;a[d--]=0,u=1}for(s=a.length;a[--s]===0;)a.pop()}return w&&(e.e>g.maxE?(e.d=null,e.e=NaN):e.e0?s=s.charAt(0)+"."+s.slice(1)+U(t):o>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(e.e<0?"e":"e+")+e.e):r<0?(s="0."+U(-r-1)+s,i&&(t=i-o)>0&&(s+=U(t))):r>=o?(s+=U(r+1-o),i&&(t=i-r-1)>0&&(s=s+"."+U(t))):((t=r+1)0&&(r+1===o&&(s+="."),s+=U(t))),s}function ce(e,n){var i=e[0];for(n*=m;i>=10;i/=10)n++;return n}function ue(e,n,i){if(n>hn)throw w=!0,i&&(e.precision=i),Error(Ie);return p(new e(se),n,1,!0)}function F(e,n,i){if(n>Ce)throw Error(Ie);return p(new e(oe),n,i,!0)}function $e(e){var n=e.length-1,i=n*m+1;if(n=e[n],n){for(;n%10==0;n/=10)i--;for(n=e[0];n>=10;n/=10)i++}return i}function U(e){for(var n="";e--;)n+="0";return n}function He(e,n,i,t){var r,s=new e(1),o=Math.ceil(t/m+4);for(w=!1;;){if(i%2&&(s=s.times(n),De(s.d,o)&&(r=!0)),i=R(i/2),i===0){i=s.d.length-1,r&&s.d[i]===0&&++s.d[i];break}n=n.times(n),De(n.d,o)}return w=!0,s}function Te(e){return e.d[e.d.length-1]&1}function Ve(e,n,i){for(var t,r,s=new e(n[0]),o=0;++o17)return new d(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(n==null?(w=!1,c=v):c=n,u=new d(.03125);e.e>-2;)e=e.times(u),a+=5;for(t=Math.log(C(2,a))/Math.LN10*2+5|0,c+=t,i=s=o=new d(1),d.precision=c;;){if(s=p(s.times(e),c,1),i=i.times(++l),u=o.plus(k(s,i,c,1)),b(u.d).slice(0,c)===b(o.d).slice(0,c)){for(r=a;r--;)o=p(o.times(o),c,1);if(n==null)if(f<3&&Q(o.d,c-t,g,f))d.precision=c+=10,i=s=u=new d(1),l=0,f++;else return p(o,d.precision=v,g,w=!0);else return d.precision=v,o}o=u}}function B(e,n){var i,t,r,s,o,u,c,f,l,a,d,g=1,v=10,N=e,A=N.d,M=N.constructor,_=M.rounding,E=M.precision;if(N.s<0||!A||!A[0]||!N.e&&A[0]==1&&A.length==1)return new M(A&&!A[0]?-1/0:N.s!=1?NaN:A?0:N);if(n==null?(w=!1,l=E):l=n,M.precision=l+=v,i=b(A),t=i.charAt(0),Math.abs(s=N.e)<15e14){for(;t<7&&t!=1||t==1&&i.charAt(1)>3;)N=N.times(e),i=b(N.d),t=i.charAt(0),g++;s=N.e,t>1?(N=new M("0."+i),s++):N=new M(t+"."+i.slice(1))}else return f=ue(M,l+2,E).times(s+""),N=B(new M(t+"."+i.slice(1)),l-v).plus(f),M.precision=E,n==null?p(N,E,_,w=!0):N;for(a=N,c=o=N=k(N.minus(1),N.plus(1),l,1),d=p(N.times(N),l,1),r=3;;){if(o=p(o.times(d),l,1),f=c.plus(k(o,new M(r),l,1)),b(f.d).slice(0,l)===b(c.d).slice(0,l))if(c=c.times(2),s!==0&&(c=c.plus(ue(M,l+2,E).times(s+""))),c=k(c,new M(g),l,1),n==null)if(Q(c.d,l-v,_,u))M.precision=l+=v,f=o=N=k(a.minus(1),a.plus(1),l,1),d=p(N.times(N),l,1),r=u=1;else return p(c,M.precision=E,_,w=!0);else return M.precision=E,c;c=f,r+=2}}function je(e){return String(e.s*e.s/0)}function re(e,n){var i,t,r;for((i=n.indexOf("."))>-1&&(n=n.replace(".","")),(t=n.search(/e/i))>0?(i<0&&(i=t),i+=+n.slice(t+1),n=n.substring(0,t)):i<0&&(i=n.length),t=0;n.charCodeAt(t)===48;t++);for(r=n.length;n.charCodeAt(r-1)===48;--r);if(n=n.slice(t,r),n){if(r-=t,e.e=i=i-t-1,e.d=[],t=(i+1)%m,i<0&&(t+=m),te.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(n=n.replace(/(\d)_(?=\d)/g,"$1"),Be.test(n))return re(e,n)}else if(n==="Infinity"||n==="NaN")return+n||(e.s=NaN),e.e=NaN,e.d=null,e;if(ln.test(n))i=16,n=n.toLowerCase();else if(cn.test(n))i=2;else if(an.test(n))i=8;else throw Error($+n);for(s=n.search(/p/i),s>0?(c=+n.slice(s+1),n=n.substring(2,s)):n=n.slice(2),s=n.indexOf("."),o=s>=0,t=e.constructor,o&&(n=n.replace(".",""),u=n.length,s=u-s,r=He(t,new t(i),s,s*2)),f=te(n,i,D),l=f.length-1,s=l;f[s]===0;--s)f.pop();return s<0?new t(e.s*0):(e.e=ce(f,l),e.d=f,w=!1,o&&(e=k(e,r,u*4)),c&&(e=e.times(Math.abs(c)<54?C(2,c):Y.pow(2,c))),w=!0,e)}function mn(e,n){var i,t=n.d.length;if(t<3)return n.isZero()?n:j(e,2,n,n);i=1.4*Math.sqrt(t),i=i>16?16:i|0,n=n.times(1/le(5,i)),n=j(e,2,n,n);for(var r,s=new e(5),o=new e(16),u=new e(20);i--;)r=n.times(n),n=n.times(s.plus(r.times(o.times(r).minus(u))));return n}function j(e,n,i,t,r){var s,o,u,c,f=1,l=e.precision,a=Math.ceil(l/m);for(w=!1,c=i.times(i),u=new e(t);;){if(o=k(u.times(c),new e(n++*n++),l,1),u=r?t.plus(o):t.minus(o),t=k(o.times(c),new e(n++*n++),l,1),o=u.plus(t),o.d[a]!==void 0){for(s=a;o.d[s]===u.d[s]&&s--;);if(s==-1)break}s=u,u=t,t=o,o=s,f++}return w=!0,o.d.length=a+1,o}function le(e,n){for(var i=e;--n;)i*=e;return i}function We(e,n){var i,t=n.s<0,r=F(e,e.precision,1),s=r.times(.5);if(n=n.abs(),n.lte(s))return Z=t?4:1,n;if(i=n.divToInt(r),i.isZero())Z=t?3:2;else{if(n=n.minus(i.times(r)),n.lte(s))return Z=Te(i)?t?2:3:t?4:1,n;Z=Te(i)?t?1:4:t?3:2}return n.minus(r).abs()}function Pe(e,n,i,t){var r,s,o,u,c,f,l,a,d,g=e.constructor,v=i!==void 0;if(v?(q(i,1,H),t===void 0?t=g.rounding:q(t,0,8)):(i=g.precision,t=g.rounding),!e.isFinite())l=je(e);else{for(l=L(e),o=l.indexOf("."),v?(r=2,n==16?i=i*4-3:n==8&&(i=i*3-2)):r=n,o>=0&&(l=l.replace(".",""),d=new g(1),d.e=l.length-o,d.d=te(L(d),10,r),d.e=d.d.length),a=te(l,10,r),s=c=a.length;a[--c]==0;)a.pop();if(!a[0])l=v?"0p+0":"0";else{if(o<0?s--:(e=new g(e),e.d=a,e.e=s,e=k(e,d,i,t,0,r),a=e.d,s=e.e,f=Le),o=a[i],u=r/2,f=f||a[i+1]!==void 0,f=t<4?(o!==void 0||f)&&(t===0||t===(e.s<0?3:2)):o>u||o===u&&(t===4||f||t===6&&a[i-1]&1||t===(e.s<0?8:7)),a.length=i,f)for(;++a[--i]>r-1;)a[i]=0,i||(++s,a.unshift(1));for(c=a.length;!a[c-1];--c);for(o=0,l="";o1)if(n==16||n==8){for(o=n==16?4:3,--c;c%o;c++)l+="0";for(a=te(l,r,n),c=a.length;!a[c-1];--c);for(o=1,l="1.";oc)for(s-=c;s--;)l+="0";else sn)return e.length=n,!0}function wn(e){return new this(e).abs()}function Nn(e){return new this(e).acos()}function vn(e){return new this(e).acosh()}function En(e,n){return new this(e).plus(n)}function kn(e){return new this(e).asin()}function Sn(e){return new this(e).asinh()}function Mn(e){return new this(e).atan()}function Cn(e){return new this(e).atanh()}function bn(e,n){e=new this(e),n=new this(n);var i,t=this.precision,r=this.rounding,s=t+4;return!e.s||!n.s?i=new this(NaN):!e.d&&!n.d?(i=F(this,s,1).times(n.s>0?.25:.75),i.s=e.s):!n.d||e.isZero()?(i=n.s<0?F(this,t,r):new this(0),i.s=e.s):!e.d||n.isZero()?(i=F(this,s,1).times(.5),i.s=e.s):n.s<0?(this.precision=s,this.rounding=1,i=this.atan(k(e,n,s,1)),n=F(this,s,1),this.precision=t,this.rounding=r,i=e.s<0?i.minus(n):i.plus(n)):i=this.atan(k(e,n,s,1)),i}function Pn(e){return new this(e).cbrt()}function On(e){return p(e=new this(e),e.e+1,2)}function Rn(e,n,i){return new this(e).clamp(n,i)}function An(e){if(!e||typeof e!="object")throw Error(fe+"Object expected");var n,i,t,r=e.defaults===!0,s=["precision",1,H,"rounding",0,8,"toExpNeg",-V,0,"toExpPos",0,V,"maxE",0,V,"minE",-V,0,"modulo",0,9];for(n=0;n=s[n+1]&&t<=s[n+2])this[i]=t;else throw Error($+i+": "+t);if(i="crypto",r&&(this[i]=Me[i]),(t=e[i])!==void 0)if(t===!0||t===!1||t===0||t===1)if(t)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[i]=!0;else throw Error(Ze);else this[i]=!1;else throw Error($+i+": "+t);return this}function qn(e){return new this(e).cos()}function _n(e){return new this(e).cosh()}function Ge(e){var n,i,t;function r(s){var o,u,c,f=this;if(!(f instanceof r))return new r(s);if(f.constructor=r,Fe(s)){f.s=s.s,w?!s.d||s.e>r.maxE?(f.e=NaN,f.d=null):s.e=10;u/=10)o++;w?o>r.maxE?(f.e=NaN,f.d=null):o=429e7?n[s]=crypto.getRandomValues(new Uint32Array(1))[0]:u[s++]=r%1e7;else if(crypto.randomBytes){for(n=crypto.randomBytes(t*=4);s=214e7?crypto.randomBytes(4).copy(n,s):(u.push(r%1e7),s+=4);s=t/4}else throw Error(Ze);else for(;s=10;r/=10)t++;t - * MIT Licence - *) -*/ -//# sourceMappingURL=index-browser.js.map diff --git a/prisma/generated/client/runtime/library.d.ts b/prisma/generated/client/runtime/library.d.ts deleted file mode 100644 index 3450043..0000000 --- a/prisma/generated/client/runtime/library.d.ts +++ /dev/null @@ -1,3687 +0,0 @@ -/** - * @param this - */ -declare function $extends(this: Client, extension: ExtensionArgs | ((client: Client) => Client)): Client; - -declare type AccelerateEngineConfig = { - inlineSchema: EngineConfig['inlineSchema']; - inlineSchemaHash: EngineConfig['inlineSchemaHash']; - env: EngineConfig['env']; - generator?: { - previewFeatures: string[]; - }; - inlineDatasources: EngineConfig['inlineDatasources']; - overrideDatasources: EngineConfig['overrideDatasources']; - clientVersion: EngineConfig['clientVersion']; - engineVersion: EngineConfig['engineVersion']; - logEmitter: EngineConfig['logEmitter']; - logQueries?: EngineConfig['logQueries']; - logLevel?: EngineConfig['logLevel']; - tracingHelper: EngineConfig['tracingHelper']; - accelerateUtils?: AccelerateUtils; -}; - -declare type AccelerateUtils = EngineConfig['accelerateUtils']; - -export declare type Action = keyof typeof DMMF_2.ModelAction | 'executeRaw' | 'queryRaw' | 'runCommandRaw'; - -declare type ActiveConnectorType = Exclude; - -/** - * An interface that exposes some basic information about the - * adapter like its name and provider type. - */ -declare interface AdapterInfo { - readonly provider: Provider; - readonly adapterName: (typeof officialPrismaAdapters)[number] | (string & {}); -} - -export declare type Aggregate = '_count' | '_max' | '_min' | '_avg' | '_sum'; - -export declare type AllModelsToStringIndex, K extends PropertyKey> = Args extends { - [P in K]: { - $allModels: infer AllModels; - }; -} ? { - [P in K]: Record; -} : {}; - -declare class AnyNull extends NullTypesEnumValue { - #private; -} - -export declare type ApplyOmit = Compute<{ - [K in keyof T as OmitValue extends true ? never : K]: T[K]; -}>; - -export declare type Args = T extends { - [K: symbol]: { - types: { - operations: { - [K in F]: { - args: any; - }; - }; - }; - }; -} ? T[symbol]['types']['operations'][F]['args'] : any; - -export declare type Args_3 = Args; - -/** - * Original `quaint::ValueType` enum tag from Prisma's `quaint`. - * Query arguments marked with this type are sanitized before being sent to the database. - * Notice while a query argument may be `null`, `ArgType` is guaranteed to be defined. - */ -declare type ArgType = 'Int32' | 'Int64' | 'Float' | 'Double' | 'Text' | 'Enum' | 'EnumArray' | 'Bytes' | 'Boolean' | 'Char' | 'Array' | 'Numeric' | 'Json' | 'Xml' | 'Uuid' | 'DateTime' | 'Date' | 'Time' | 'Unknown'; - -/** - * Attributes is a map from string to attribute values. - * - * Note: only the own enumerable keys are counted as valid attribute keys. - */ -declare interface Attributes { - [attributeKey: string]: AttributeValue | undefined; -} - -/** - * Attribute values may be any non-nullish primitive value except an object. - * - * null or undefined attribute values are invalid and will result in undefined behavior. - */ -declare type AttributeValue = string | number | boolean | Array | Array | Array; - -export declare type BaseDMMF = { - readonly datamodel: Omit; -}; - -declare type BatchArgs = { - queries: BatchQuery[]; - transaction?: { - isolationLevel?: IsolationLevel_2; - }; -}; - -declare type BatchInternalParams = { - requests: RequestParams[]; - customDataProxyFetch?: CustomDataProxyFetch; -}; - -declare type BatchQuery = { - model: string | undefined; - operation: string; - args: JsArgs | RawQueryArgs; -}; - -declare type BatchQueryEngineResult = QueryEngineResultData | Error; - -declare type BatchQueryOptionsCb = (args: BatchQueryOptionsCbArgs) => Promise; - -declare type BatchQueryOptionsCbArgs = { - args: BatchArgs; - query: (args: BatchArgs, __internalParams?: BatchInternalParams) => Promise; - __internalParams: BatchInternalParams; -}; - -declare type BatchResponse = MultiBatchResponse | CompactedBatchResponse; - -declare type BatchTransactionOptions = { - isolationLevel?: Transaction_2.IsolationLevel; -}; - -declare interface BinaryTargetsEnvValue { - fromEnvVar: string | null; - value: string; - native?: boolean; -} - -export declare type Call = (F & { - params: P; -})['returns']; - -declare interface CallSite { - getLocation(): LocationInFile | null; -} - -export declare type Cast = A extends W ? A : W; - -declare type Client = ReturnType extends new () => infer T ? T : never; - -export declare type ClientArg = { - [MethodName in string]: unknown; -}; - -export declare type ClientArgs = { - client: ClientArg; -}; - -export declare type ClientBuiltInProp = keyof DynamicClientExtensionThisBuiltin; - -export declare type ClientOptionDef = undefined | { - [K in string]: any; -}; - -export declare type ClientOtherOps = { - $queryRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise; - $queryRawTyped(query: TypedSql): PrismaPromise; - $queryRawUnsafe(query: string, ...values: any[]): PrismaPromise; - $executeRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise; - $executeRawUnsafe(query: string, ...values: any[]): PrismaPromise; - $runCommandRaw(command: InputJsonObject): PrismaPromise; -}; - -declare type ColumnType = (typeof ColumnTypeEnum)[keyof typeof ColumnTypeEnum]; - -declare const ColumnTypeEnum: { - readonly Int32: 0; - readonly Int64: 1; - readonly Float: 2; - readonly Double: 3; - readonly Numeric: 4; - readonly Boolean: 5; - readonly Character: 6; - readonly Text: 7; - readonly Date: 8; - readonly Time: 9; - readonly DateTime: 10; - readonly Json: 11; - readonly Enum: 12; - readonly Bytes: 13; - readonly Set: 14; - readonly Uuid: 15; - readonly Int32Array: 64; - readonly Int64Array: 65; - readonly FloatArray: 66; - readonly DoubleArray: 67; - readonly NumericArray: 68; - readonly BooleanArray: 69; - readonly CharacterArray: 70; - readonly TextArray: 71; - readonly DateArray: 72; - readonly TimeArray: 73; - readonly DateTimeArray: 74; - readonly JsonArray: 75; - readonly EnumArray: 76; - readonly BytesArray: 77; - readonly UuidArray: 78; - readonly UnknownNumber: 128; -}; - -declare type CompactedBatchResponse = { - type: 'compacted'; - plan: {}; - arguments: Record[]; - nestedSelection: string[]; - keys: string[]; - expectNonEmpty: boolean; -}; - -declare type CompilerWasmLoadingConfig = { - /** - * WASM-bindgen runtime for corresponding module - */ - getRuntime: () => Promise<{ - __wbg_set_wasm(exports: unknown): void; - QueryCompiler: QueryCompilerConstructor; - }>; - /** - * Loads the raw wasm module for the wasm compiler engine. This configuration is - * generated specifically for each type of client, eg. Node.js client and Edge - * clients will have different implementations. - * @remarks this is a callback on purpose, we only load the wasm if needed. - * @remarks only used by ClientEngine - */ - getQueryCompilerWasmModule: () => Promise; -}; - -export declare type Compute = T extends Function ? T : { - [K in keyof T]: T[K]; -} & unknown; - -export declare type ComputeDeep = T extends Function ? T : { - [K in keyof T]: ComputeDeep; -} & unknown; - -declare type ComputedField = { - name: string; - needs: string[]; - compute: ResultArgsFieldCompute; -}; - -declare type ComputedFieldsMap = { - [fieldName: string]: ComputedField; -}; - -declare type ConnectionInfo = { - schemaName?: string; - maxBindValues?: number; - supportsRelationJoins: boolean; -}; - -declare type ConnectorType = 'mysql' | 'mongodb' | 'sqlite' | 'postgresql' | 'postgres' | 'prisma+postgres' | 'sqlserver' | 'cockroachdb'; - -declare interface Context { - /** - * Get a value from the context. - * - * @param key key which identifies a context value - */ - getValue(key: symbol): unknown; - /** - * Create a new context which inherits from this context and has - * the given key set to the given value. - * - * @param key context key for which to set the value - * @param value value to set for the given key - */ - setValue(key: symbol, value: unknown): Context; - /** - * Return a new context which inherits from this context but does - * not contain a value for the given key. - * - * @param key context key for which to clear a value - */ - deleteValue(key: symbol): Context; -} - -declare type Context_2 = T extends { - [K: symbol]: { - ctx: infer C; - }; -} ? C & T & { - /** - * @deprecated Use `$name` instead. - */ - name?: string; - $name?: string; - $parent?: unknown; -} : T & { - /** - * @deprecated Use `$name` instead. - */ - name?: string; - $name?: string; - $parent?: unknown; -}; - -export declare type Count = { - [K in keyof O]: Count; -} & {}; - -export declare function createParam(name: string): Param; - -/** - * Custom fetch function for `DataProxyEngine`. - * - * We can't use the actual type of `globalThis.fetch` because this will result - * in API Extractor referencing Node.js type definitions in the `.d.ts` bundle - * for the client runtime. We can only use such types in internal types that - * don't end up exported anywhere. - - * It's also not possible to write a definition of `fetch` that would accept the - * actual `fetch` function from different environments such as Node.js and - * Cloudflare Workers (with their extensions to `RequestInit` and `Response`). - * `fetch` is used in both covariant and contravariant positions in - * `CustomDataProxyFetch`, making it invariant, so we need the exact same type. - * Even if we removed the argument and left `fetch` in covariant position only, - * then for an extension-supplied function to be assignable to `customDataProxyFetch`, - * the platform-specific (or custom) `fetch` function needs to be assignable - * to our `fetch` definition. This, in turn, requires the third-party `Response` - * to be a subtype of our `Response` (which is not a problem, we could declare - * a minimal `Response` type that only includes what we use) *and* requires the - * third-party `RequestInit` to be a supertype of our `RequestInit` (i.e. we - * have to declare all properties any `RequestInit` implementation in existence - * could possibly have), which is not possible. - * - * Since `@prisma/extension-accelerate` redefines the type of - * `__internalParams.customDataProxyFetch` to its own type anyway (probably for - * exactly this reason), our definition is never actually used and is completely - * ignored, so it doesn't matter, and we can just use `unknown` as the type of - * `fetch` here. - */ -declare type CustomDataProxyFetch = (fetch: unknown) => unknown; - -declare class DataLoader { - private options; - batches: { - [key: string]: Job[]; - }; - private tickActive; - constructor(options: DataLoaderOptions); - request(request: T): Promise; - private dispatchBatches; - get [Symbol.toStringTag](): string; -} - -declare type DataLoaderOptions = { - singleLoader: (request: T) => Promise; - batchLoader: (request: T[]) => Promise; - batchBy: (request: T) => string | undefined; - batchOrder: (requestA: T, requestB: T) => number; -}; - -declare type Datamodel = ReadonlyDeep_2<{ - models: Model[]; - enums: DatamodelEnum[]; - types: Model[]; - indexes: Index[]; -}>; - -declare type DatamodelEnum = ReadonlyDeep_2<{ - name: string; - values: EnumValue[]; - dbName?: string | null; - documentation?: string; -}>; - -declare function datamodelEnumToSchemaEnum(datamodelEnum: DatamodelEnum): SchemaEnum; - -declare type Datasource = { - url?: string; -}; - -declare type Datasources = { - [name in string]: Datasource; -}; - -declare class DbNull extends NullTypesEnumValue { - #private; -} - -export declare const Debug: typeof debugCreate & { - enable(namespace: any): void; - disable(): any; - enabled(namespace: string): boolean; - log: (...args: string[]) => void; - formatters: {}; -}; - -/** - * Create a new debug instance with the given namespace. - * - * @example - * ```ts - * import Debug from '@prisma/debug' - * const debug = Debug('prisma:client') - * debug('Hello World') - * ``` - */ -declare function debugCreate(namespace: string): ((...args: any[]) => void) & { - color: string; - enabled: boolean; - namespace: string; - log: (...args: string[]) => void; - extend: () => void; -}; - -export declare function Decimal(n: Decimal.Value): Decimal; - -export declare namespace Decimal { - export type Constructor = typeof Decimal; - export type Instance = Decimal; - export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8; - export type Modulo = Rounding | 9; - export type Value = string | number | Decimal; - - // http://mikemcl.github.io/decimal.js/#constructor-properties - export interface Config { - precision?: number; - rounding?: Rounding; - toExpNeg?: number; - toExpPos?: number; - minE?: number; - maxE?: number; - crypto?: boolean; - modulo?: Modulo; - defaults?: boolean; - } -} - -export declare class Decimal { - readonly d: number[]; - readonly e: number; - readonly s: number; - - constructor(n: Decimal.Value); - - absoluteValue(): Decimal; - abs(): Decimal; - - ceil(): Decimal; - - clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal; - clamp(min: Decimal.Value, max: Decimal.Value): Decimal; - - comparedTo(n: Decimal.Value): number; - cmp(n: Decimal.Value): number; - - cosine(): Decimal; - cos(): Decimal; - - cubeRoot(): Decimal; - cbrt(): Decimal; - - decimalPlaces(): number; - dp(): number; - - dividedBy(n: Decimal.Value): Decimal; - div(n: Decimal.Value): Decimal; - - dividedToIntegerBy(n: Decimal.Value): Decimal; - divToInt(n: Decimal.Value): Decimal; - - equals(n: Decimal.Value): boolean; - eq(n: Decimal.Value): boolean; - - floor(): Decimal; - - greaterThan(n: Decimal.Value): boolean; - gt(n: Decimal.Value): boolean; - - greaterThanOrEqualTo(n: Decimal.Value): boolean; - gte(n: Decimal.Value): boolean; - - hyperbolicCosine(): Decimal; - cosh(): Decimal; - - hyperbolicSine(): Decimal; - sinh(): Decimal; - - hyperbolicTangent(): Decimal; - tanh(): Decimal; - - inverseCosine(): Decimal; - acos(): Decimal; - - inverseHyperbolicCosine(): Decimal; - acosh(): Decimal; - - inverseHyperbolicSine(): Decimal; - asinh(): Decimal; - - inverseHyperbolicTangent(): Decimal; - atanh(): Decimal; - - inverseSine(): Decimal; - asin(): Decimal; - - inverseTangent(): Decimal; - atan(): Decimal; - - isFinite(): boolean; - - isInteger(): boolean; - isInt(): boolean; - - isNaN(): boolean; - - isNegative(): boolean; - isNeg(): boolean; - - isPositive(): boolean; - isPos(): boolean; - - isZero(): boolean; - - lessThan(n: Decimal.Value): boolean; - lt(n: Decimal.Value): boolean; - - lessThanOrEqualTo(n: Decimal.Value): boolean; - lte(n: Decimal.Value): boolean; - - logarithm(n?: Decimal.Value): Decimal; - log(n?: Decimal.Value): Decimal; - - minus(n: Decimal.Value): Decimal; - sub(n: Decimal.Value): Decimal; - - modulo(n: Decimal.Value): Decimal; - mod(n: Decimal.Value): Decimal; - - naturalExponential(): Decimal; - exp(): Decimal; - - naturalLogarithm(): Decimal; - ln(): Decimal; - - negated(): Decimal; - neg(): Decimal; - - plus(n: Decimal.Value): Decimal; - add(n: Decimal.Value): Decimal; - - precision(includeZeros?: boolean): number; - sd(includeZeros?: boolean): number; - - round(): Decimal; - - sine() : Decimal; - sin() : Decimal; - - squareRoot(): Decimal; - sqrt(): Decimal; - - tangent() : Decimal; - tan() : Decimal; - - times(n: Decimal.Value): Decimal; - mul(n: Decimal.Value) : Decimal; - - toBinary(significantDigits?: number): string; - toBinary(significantDigits: number, rounding: Decimal.Rounding): string; - - toDecimalPlaces(decimalPlaces?: number): Decimal; - toDecimalPlaces(decimalPlaces: number, rounding: Decimal.Rounding): Decimal; - toDP(decimalPlaces?: number): Decimal; - toDP(decimalPlaces: number, rounding: Decimal.Rounding): Decimal; - - toExponential(decimalPlaces?: number): string; - toExponential(decimalPlaces: number, rounding: Decimal.Rounding): string; - - toFixed(decimalPlaces?: number): string; - toFixed(decimalPlaces: number, rounding: Decimal.Rounding): string; - - toFraction(max_denominator?: Decimal.Value): Decimal[]; - - toHexadecimal(significantDigits?: number): string; - toHexadecimal(significantDigits: number, rounding: Decimal.Rounding): string; - toHex(significantDigits?: number): string; - toHex(significantDigits: number, rounding?: Decimal.Rounding): string; - - toJSON(): string; - - toNearest(n: Decimal.Value, rounding?: Decimal.Rounding): Decimal; - - toNumber(): number; - - toOctal(significantDigits?: number): string; - toOctal(significantDigits: number, rounding: Decimal.Rounding): string; - - toPower(n: Decimal.Value): Decimal; - pow(n: Decimal.Value): Decimal; - - toPrecision(significantDigits?: number): string; - toPrecision(significantDigits: number, rounding: Decimal.Rounding): string; - - toSignificantDigits(significantDigits?: number): Decimal; - toSignificantDigits(significantDigits: number, rounding: Decimal.Rounding): Decimal; - toSD(significantDigits?: number): Decimal; - toSD(significantDigits: number, rounding: Decimal.Rounding): Decimal; - - toString(): string; - - truncated(): Decimal; - trunc(): Decimal; - - valueOf(): string; - - static abs(n: Decimal.Value): Decimal; - static acos(n: Decimal.Value): Decimal; - static acosh(n: Decimal.Value): Decimal; - static add(x: Decimal.Value, y: Decimal.Value): Decimal; - static asin(n: Decimal.Value): Decimal; - static asinh(n: Decimal.Value): Decimal; - static atan(n: Decimal.Value): Decimal; - static atanh(n: Decimal.Value): Decimal; - static atan2(y: Decimal.Value, x: Decimal.Value): Decimal; - static cbrt(n: Decimal.Value): Decimal; - static ceil(n: Decimal.Value): Decimal; - static clamp(n: Decimal.Value, min: Decimal.Value, max: Decimal.Value): Decimal; - static clone(object?: Decimal.Config): Decimal.Constructor; - static config(object: Decimal.Config): Decimal.Constructor; - static cos(n: Decimal.Value): Decimal; - static cosh(n: Decimal.Value): Decimal; - static div(x: Decimal.Value, y: Decimal.Value): Decimal; - static exp(n: Decimal.Value): Decimal; - static floor(n: Decimal.Value): Decimal; - static hypot(...n: Decimal.Value[]): Decimal; - static isDecimal(object: any): object is Decimal; - static ln(n: Decimal.Value): Decimal; - static log(n: Decimal.Value, base?: Decimal.Value): Decimal; - static log2(n: Decimal.Value): Decimal; - static log10(n: Decimal.Value): Decimal; - static max(...n: Decimal.Value[]): Decimal; - static min(...n: Decimal.Value[]): Decimal; - static mod(x: Decimal.Value, y: Decimal.Value): Decimal; - static mul(x: Decimal.Value, y: Decimal.Value): Decimal; - static noConflict(): Decimal.Constructor; // Browser only - static pow(base: Decimal.Value, exponent: Decimal.Value): Decimal; - static random(significantDigits?: number): Decimal; - static round(n: Decimal.Value): Decimal; - static set(object: Decimal.Config): Decimal.Constructor; - static sign(n: Decimal.Value): number; - static sin(n: Decimal.Value): Decimal; - static sinh(n: Decimal.Value): Decimal; - static sqrt(n: Decimal.Value): Decimal; - static sub(x: Decimal.Value, y: Decimal.Value): Decimal; - static sum(...n: Decimal.Value[]): Decimal; - static tan(n: Decimal.Value): Decimal; - static tanh(n: Decimal.Value): Decimal; - static trunc(n: Decimal.Value): Decimal; - - static readonly default?: Decimal.Constructor; - static readonly Decimal?: Decimal.Constructor; - - static readonly precision: number; - static readonly rounding: Decimal.Rounding; - static readonly toExpNeg: number; - static readonly toExpPos: number; - static readonly minE: number; - static readonly maxE: number; - static readonly crypto: boolean; - static readonly modulo: Decimal.Modulo; - - static readonly ROUND_UP: 0; - static readonly ROUND_DOWN: 1; - static readonly ROUND_CEIL: 2; - static readonly ROUND_FLOOR: 3; - static readonly ROUND_HALF_UP: 4; - static readonly ROUND_HALF_DOWN: 5; - static readonly ROUND_HALF_EVEN: 6; - static readonly ROUND_HALF_CEIL: 7; - static readonly ROUND_HALF_FLOOR: 8; - static readonly EUCLID: 9; -} - -/** - * Interface for any Decimal.js-like library - * Allows us to accept Decimal.js from different - * versions and some compatible alternatives - */ -export declare interface DecimalJsLike { - d: number[]; - e: number; - s: number; - toFixed(): string; -} - -export declare type DefaultArgs = InternalArgs<{}, {}, {}, {}>; - -export declare type DefaultSelection = Args extends { - omit: infer LocalOmit; -} ? ApplyOmit['default'], PatchFlat>>> : ApplyOmit['default'], ExtractGlobalOmit>>; - -export declare function defineDmmfProperty(target: object, runtimeDataModel: RuntimeDataModel): void; - -declare function defineExtension(ext: ExtensionArgs | ((client: Client) => Client)): (client: Client) => Client; - -declare const denylist: readonly ["$connect", "$disconnect", "$on", "$transaction", "$use", "$extends"]; - -declare type Deprecation = ReadonlyDeep_2<{ - sinceVersion: string; - reason: string; - plannedRemovalVersion?: string; -}>; - -declare type DeserializedResponse = Array>; - -export declare function deserializeJsonResponse(result: unknown): unknown; - -export declare function deserializeRawResult(response: RawResponse): DeserializedResponse; - -export declare type DevTypeMapDef = { - meta: { - modelProps: string; - }; - model: { - [Model in PropertyKey]: { - [Operation in PropertyKey]: DevTypeMapFnDef; - }; - }; - other: { - [Operation in PropertyKey]: DevTypeMapFnDef; - }; -}; - -export declare type DevTypeMapFnDef = { - args: any; - result: any; - payload: OperationPayload; -}; - -export declare namespace DMMF { - export { - datamodelEnumToSchemaEnum, - Document_2 as Document, - Mappings, - OtherOperationMappings, - DatamodelEnum, - SchemaEnum, - EnumValue, - Datamodel, - uniqueIndex, - PrimaryKey, - Model, - FieldKind, - FieldNamespace, - FieldLocation, - Field, - FieldDefault, - FieldDefaultScalar, - Index, - IndexType, - IndexField, - SortOrder, - Schema, - Query, - QueryOutput, - TypeRef, - InputTypeRef, - SchemaArg, - OutputType, - SchemaField, - OutputTypeRef, - Deprecation, - InputType, - FieldRefType, - FieldRefAllowType, - ModelMapping, - ModelAction - } -} - -declare namespace DMMF_2 { - export { - datamodelEnumToSchemaEnum, - Document_2 as Document, - Mappings, - OtherOperationMappings, - DatamodelEnum, - SchemaEnum, - EnumValue, - Datamodel, - uniqueIndex, - PrimaryKey, - Model, - FieldKind, - FieldNamespace, - FieldLocation, - Field, - FieldDefault, - FieldDefaultScalar, - Index, - IndexType, - IndexField, - SortOrder, - Schema, - Query, - QueryOutput, - TypeRef, - InputTypeRef, - SchemaArg, - OutputType, - SchemaField, - OutputTypeRef, - Deprecation, - InputType, - FieldRefType, - FieldRefAllowType, - ModelMapping, - ModelAction - } -} - -export declare function dmmfToRuntimeDataModel(dmmfDataModel: DMMF_2.Datamodel): RuntimeDataModel; - -declare type Document_2 = ReadonlyDeep_2<{ - datamodel: Datamodel; - schema: Schema; - mappings: Mappings; -}>; - -/** - * A generic driver adapter factory that allows the user to instantiate a - * driver adapter. The query and result types are specific to the adapter. - */ -declare interface DriverAdapterFactory extends AdapterInfo { - /** - * Instantiate a driver adapter. - */ - connect(): Promise>; -} - -/** Client */ -export declare type DynamicClientExtensionArgs> = { - [P in keyof C_]: unknown; -} & { - [K: symbol]: { - ctx: Optional, ITXClientDenyList> & { - $parent: Optional, ITXClientDenyList>; - }; - }; -}; - -export declare type DynamicClientExtensionThis> = { - [P in keyof ExtArgs['client']]: Return; -} & { - [P in Exclude]: DynamicModelExtensionThis, ExtArgs>; -} & { - [P in Exclude]: P extends keyof ClientOtherOps ? ClientOtherOps[P] : never; -} & { - [P in Exclude]: DynamicClientExtensionThisBuiltin[P]; -} & { - [K: symbol]: { - types: TypeMap['other']; - }; -}; - -export declare type DynamicClientExtensionThisBuiltin> = { - $extends: ExtendsHook<'extends', TypeMapCb, ExtArgs, Call>; - $transaction

[]>(arg: [...P], options?: { - isolationLevel?: TypeMap['meta']['txIsolationLevel']; - }): Promise>; - $transaction(fn: (client: Omit, ITXClientDenyList>) => Promise, options?: { - maxWait?: number; - timeout?: number; - isolationLevel?: TypeMap['meta']['txIsolationLevel']; - }): Promise; - $disconnect(): Promise; - $connect(): Promise; -}; - -/** Model */ -export declare type DynamicModelExtensionArgs> = { - [K in keyof M_]: K extends '$allModels' ? { - [P in keyof M_[K]]?: unknown; - } & { - [K: symbol]: {}; - } : K extends TypeMap['meta']['modelProps'] ? { - [P in keyof M_[K]]?: unknown; - } & { - [K: symbol]: { - ctx: DynamicModelExtensionThis, ExtArgs> & { - $parent: DynamicClientExtensionThis; - } & { - $name: ModelKey; - } & { - /** - * @deprecated Use `$name` instead. - */ - name: ModelKey; - }; - }; - } : never; -}; - -export declare type DynamicModelExtensionFluentApi = { - [K in keyof TypeMap['model'][M]['payload']['objects']]: (args?: Exact>) => PrismaPromise, [K]> | Null> & DynamicModelExtensionFluentApi>; -}; - -export declare type DynamicModelExtensionFnResult = P extends FluentOperation ? DynamicModelExtensionFluentApi & PrismaPromise | Null> : PrismaPromise>; - -export declare type DynamicModelExtensionFnResultBase = GetResult; - -export declare type DynamicModelExtensionFnResultNull

= P extends 'findUnique' | 'findFirst' ? null : never; - -export declare type DynamicModelExtensionOperationFn = {} extends TypeMap['model'][M]['operations'][P]['args'] ? (args?: Exact) => DynamicModelExtensionFnResult> : (args: Exact) => DynamicModelExtensionFnResult>; - -export declare type DynamicModelExtensionThis> = { - [P in keyof ExtArgs['model'][Uncapitalize]]: Return][P]>; -} & { - [P in Exclude]>]: DynamicModelExtensionOperationFn; -} & { - [P in Exclude<'fields', keyof ExtArgs['model'][Uncapitalize]>]: TypeMap['model'][M]['fields']; -} & { - [K: symbol]: { - types: TypeMap['model'][M]; - }; -}; - -/** Query */ -export declare type DynamicQueryExtensionArgs = { - [K in keyof Q_]: K extends '$allOperations' ? (args: { - model?: string; - operation: string; - args: any; - query: (args: any) => PrismaPromise; - }) => Promise : K extends '$allModels' ? { - [P in keyof Q_[K] | keyof TypeMap['model'][keyof TypeMap['model']]['operations'] | '$allOperations']?: P extends '$allOperations' ? DynamicQueryExtensionCb : P extends keyof TypeMap['model'][keyof TypeMap['model']]['operations'] ? DynamicQueryExtensionCb : never; - } : K extends TypeMap['meta']['modelProps'] ? { - [P in keyof Q_[K] | keyof TypeMap['model'][ModelKey]['operations'] | '$allOperations']?: P extends '$allOperations' ? DynamicQueryExtensionCb, keyof TypeMap['model'][ModelKey]['operations']> : P extends keyof TypeMap['model'][ModelKey]['operations'] ? DynamicQueryExtensionCb, P> : never; - } : K extends keyof TypeMap['other']['operations'] ? DynamicQueryExtensionCb<[TypeMap], 0, 'other', K> : never; -}; - -export declare type DynamicQueryExtensionCb = >(args: A) => Promise; - -export declare type DynamicQueryExtensionCbArgs = (_1 extends unknown ? _2 extends unknown ? { - args: DynamicQueryExtensionCbArgsArgs; - model: _0 extends 0 ? undefined : _1; - operation: _2; - query: >(args: A) => PrismaPromise; -} : never : never) & { - query: (args: DynamicQueryExtensionCbArgsArgs) => PrismaPromise; -}; - -export declare type DynamicQueryExtensionCbArgsArgs = _2 extends '$queryRaw' | '$executeRaw' ? Sql : TypeMap[_0][_1]['operations'][_2]['args']; - -/** Result */ -export declare type DynamicResultExtensionArgs = { - [K in keyof R_]: { - [P in keyof R_[K]]?: { - needs?: DynamicResultExtensionNeeds, R_[K][P]>; - compute(data: DynamicResultExtensionData, R_[K][P]>): any; - }; - }; -}; - -export declare type DynamicResultExtensionData = GetFindResult; - -export declare type DynamicResultExtensionNeeds = { - [K in keyof S]: K extends keyof TypeMap['model'][M]['payload']['scalars'] ? S[K] : never; -} & { - [N in keyof TypeMap['model'][M]['payload']['scalars']]?: boolean; -}; - -/** - * Placeholder value for "no text". - */ -export declare const empty: Sql; - -export declare type EmptyToUnknown = T; - -declare interface Engine { - /** The name of the engine. This is meant to be consumed externally */ - readonly name: string; - onBeforeExit(callback: () => Promise): void; - start(): Promise; - stop(): Promise; - version(forceRun?: boolean): Promise | string; - request(query: JsonQuery, options: RequestOptions): Promise>; - requestBatch(queries: JsonQuery[], options: RequestBatchOptions): Promise[]>; - transaction(action: 'start', headers: Transaction_2.TransactionHeaders, options: Transaction_2.Options): Promise>; - transaction(action: 'commit', headers: Transaction_2.TransactionHeaders, info: Transaction_2.InteractiveTransactionInfo): Promise; - transaction(action: 'rollback', headers: Transaction_2.TransactionHeaders, info: Transaction_2.InteractiveTransactionInfo): Promise; - metrics(options: MetricsOptionsJson): Promise; - metrics(options: MetricsOptionsPrometheus): Promise; - applyPendingMigrations(): Promise; -} - -declare interface EngineConfig { - cwd: string; - dirname: string; - enableDebugLogs?: boolean; - allowTriggerPanic?: boolean; - prismaPath?: string; - generator?: GeneratorConfig; - /** - * @remarks this field is used internally by Policy, do not rename or remove - */ - overrideDatasources: Datasources; - showColors?: boolean; - logQueries?: boolean; - logLevel?: 'info' | 'warn'; - env: Record; - flags?: string[]; - clientVersion: string; - engineVersion: string; - previewFeatures?: string[]; - engineEndpoint?: string; - activeProvider?: string; - logEmitter: LogEmitter; - transactionOptions: Transaction_2.Options; - /** - * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`. - * If set, this is only used in the library engine, and all queries would be performed through it, - * rather than Prisma's Rust drivers. - * @remarks only used by LibraryEngine.ts - */ - adapter?: SqlDriverAdapterFactory; - /** - * The contents of the schema encoded into a string - */ - inlineSchema: string; - /** - * The contents of the datasource url saved in a string - * @remarks only used by DataProxyEngine.ts - * @remarks this field is used internally by Policy, do not rename or remove - */ - inlineDatasources: GetPrismaClientConfig['inlineDatasources']; - /** - * The string hash that was produced for a given schema - * @remarks only used by DataProxyEngine.ts - */ - inlineSchemaHash: string; - /** - * The helper for interaction with OTEL tracing - * @remarks enabling is determined by the client and @prisma/instrumentation package - */ - tracingHelper: TracingHelper; - /** - * Information about whether we have not found a schema.prisma file in the - * default location, and that we fell back to finding the schema.prisma file - * in the current working directory. This usually means it has been bundled. - */ - isBundled?: boolean; - /** - * Web Assembly module loading configuration - */ - engineWasm?: EngineWasmLoadingConfig; - compilerWasm?: CompilerWasmLoadingConfig; - /** - * Allows Accelerate to use runtime utilities from the client. These are - * necessary for the AccelerateEngine to function correctly. - */ - accelerateUtils?: { - resolveDatasourceUrl: typeof resolveDatasourceUrl; - getBatchRequestPayload: typeof getBatchRequestPayload; - prismaGraphQLToJSError: typeof prismaGraphQLToJSError; - PrismaClientUnknownRequestError: typeof PrismaClientUnknownRequestError; - PrismaClientInitializationError: typeof PrismaClientInitializationError; - PrismaClientKnownRequestError: typeof PrismaClientKnownRequestError; - debug: (...args: any[]) => void; - engineVersion: string; - clientVersion: string; - }; -} - -declare type EngineEvent = E extends QueryEventType ? QueryEvent : LogEvent; - -declare type EngineEventType = QueryEventType | LogEventType; - -declare type EngineSpan = { - id: EngineSpanId; - parentId: string | null; - name: string; - startTime: HrTime; - endTime: HrTime; - kind: EngineSpanKind; - attributes?: Record; - links?: EngineSpanId[]; -}; - -declare type EngineSpanId = string; - -declare type EngineSpanKind = 'client' | 'internal'; - -declare type EngineWasmLoadingConfig = { - /** - * WASM-bindgen runtime for corresponding module - */ - getRuntime: () => Promise<{ - __wbg_set_wasm(exports: unknown): void; - QueryEngine: QueryEngineConstructor; - }>; - /** - * Loads the raw wasm module for the wasm query engine. This configuration is - * generated specifically for each type of client, eg. Node.js client and Edge - * clients will have different implementations. - * @remarks this is a callback on purpose, we only load the wasm if needed. - * @remarks only used by LibraryEngine - */ - getQueryEngineWasmModule: () => Promise; -}; - -declare type EnumValue = ReadonlyDeep_2<{ - name: string; - dbName: string | null; -}>; - -declare type EnvPaths = { - rootEnvPath: string | null; - schemaEnvPath: string | undefined; -}; - -declare interface EnvValue { - fromEnvVar: null | string; - value: null | string; -} - -export declare type Equals = (() => T extends A ? 1 : 2) extends (() => T extends B ? 1 : 2) ? 1 : 0; - -declare type Error_2 = { - kind: 'GenericJs'; - id: number; -} | { - kind: 'UnsupportedNativeDataType'; - type: string; -} | { - kind: 'InvalidIsolationLevel'; - level: string; -} | { - kind: 'LengthMismatch'; - column?: string; -} | { - kind: 'UniqueConstraintViolation'; - constraint?: { - fields: string[]; - } | { - index: string; - } | { - foreignKey: {}; - }; -} | { - kind: 'NullConstraintViolation'; - constraint?: { - fields: string[]; - } | { - index: string; - } | { - foreignKey: {}; - }; -} | { - kind: 'ForeignKeyConstraintViolation'; - constraint?: { - fields: string[]; - } | { - index: string; - } | { - foreignKey: {}; - }; -} | { - kind: 'DatabaseDoesNotExist'; - db?: string; -} | { - kind: 'DatabaseAlreadyExists'; - db?: string; -} | { - kind: 'DatabaseAccessDenied'; - db?: string; -} | { - kind: 'AuthenticationFailed'; - user?: string; -} | { - kind: 'TransactionWriteConflict'; -} | { - kind: 'TableDoesNotExist'; - table?: string; -} | { - kind: 'ColumnNotFound'; - column?: string; -} | { - kind: 'TooManyConnections'; - cause: string; -} | { - kind: 'ValueOutOfRange'; - cause: string; -} | { - kind: 'MissingFullTextSearchIndex'; -} | { - kind: 'SocketTimeout'; -} | { - kind: 'InconsistentColumnData'; - cause: string; -} | { - kind: 'TransactionAlreadyClosed'; - cause: string; -} | { - kind: 'postgres'; - code: string; - severity: string; - message: string; - detail: string | undefined; - column: string | undefined; - hint: string | undefined; -} | { - kind: 'mysql'; - code: number; - message: string; - state: string; -} | { - kind: 'sqlite'; - /** - * Sqlite extended error code: https://www.sqlite.org/rescode.html - */ - extendedCode: number; - message: string; -} | { - kind: 'mssql'; - code: number; - message: string; -}; - -declare type ErrorCapturingFunction = T extends (...args: infer A) => Promise ? (...args: A) => Promise>> : T extends (...args: infer A) => infer R ? (...args: A) => Result_4> : T; - -declare type ErrorCapturingInterface = { - [K in keyof T]: ErrorCapturingFunction; -}; - -declare interface ErrorCapturingSqlDriverAdapter extends ErrorCapturingInterface { - readonly errorRegistry: ErrorRegistry; -} - -declare type ErrorFormat = 'pretty' | 'colorless' | 'minimal'; - -declare type ErrorRecord = { - error: unknown; -}; - -declare interface ErrorRegistry { - consumeError(id: number): ErrorRecord | undefined; -} - -declare interface ErrorWithBatchIndex { - batchRequestIdx?: number; -} - -declare type EventCallback = [E] extends ['beforeExit'] ? () => Promise : [E] extends [LogLevel] ? (event: EngineEvent) => void : never; - -export declare type Exact = (A extends unknown ? (W extends A ? { - [K in keyof A]: Exact; -} : W) : never) | (A extends Narrowable ? A : never); - -/** - * Defines Exception. - * - * string or an object with one of (message or name or code) and optional stack - */ -declare type Exception = ExceptionWithCode | ExceptionWithMessage | ExceptionWithName | string; - -declare interface ExceptionWithCode { - code: string | number; - name?: string; - message?: string; - stack?: string; -} - -declare interface ExceptionWithMessage { - code?: string | number; - message: string; - name?: string; - stack?: string; -} - -declare interface ExceptionWithName { - code?: string | number; - message?: string; - name: string; - stack?: string; -} - -declare type ExtendedEventType = LogLevel | 'beforeExit'; - -declare type ExtendedSpanOptions = SpanOptions & { - /** The name of the span */ - name: string; - internal?: boolean; - middleware?: boolean; - /** Whether it propagates context (?=true) */ - active?: boolean; - /** The context to append the span to */ - context?: Context; -}; - -/** $extends, defineExtension */ -export declare interface ExtendsHook, TypeMap extends TypeMapDef = Call> { - extArgs: ExtArgs; - , MergedArgs extends InternalArgs = MergeExtArgs>(extension: ((client: DynamicClientExtensionThis) => { - $extends: { - extArgs: Args; - }; - }) | { - name?: string; - query?: DynamicQueryExtensionArgs; - result?: DynamicResultExtensionArgs & R; - model?: DynamicModelExtensionArgs & M; - client?: DynamicClientExtensionArgs & C; - }): { - extends: DynamicClientExtensionThis, TypeMapCb, MergedArgs>; - define: (client: any) => { - $extends: { - extArgs: Args; - }; - }; - }[Variant]; -} - -export declare type ExtensionArgs = Optional; - -declare namespace Extensions { - export { - defineExtension, - getExtensionContext - } -} -export { Extensions } - -declare namespace Extensions_2 { - export { - InternalArgs, - DefaultArgs, - GetPayloadResultExtensionKeys, - GetPayloadResultExtensionObject, - GetPayloadResult, - GetSelect, - GetOmit, - DynamicQueryExtensionArgs, - DynamicQueryExtensionCb, - DynamicQueryExtensionCbArgs, - DynamicQueryExtensionCbArgsArgs, - DynamicResultExtensionArgs, - DynamicResultExtensionNeeds, - DynamicResultExtensionData, - DynamicModelExtensionArgs, - DynamicModelExtensionThis, - DynamicModelExtensionOperationFn, - DynamicModelExtensionFnResult, - DynamicModelExtensionFnResultBase, - DynamicModelExtensionFluentApi, - DynamicModelExtensionFnResultNull, - DynamicClientExtensionArgs, - DynamicClientExtensionThis, - ClientBuiltInProp, - DynamicClientExtensionThisBuiltin, - ExtendsHook, - MergeExtArgs, - AllModelsToStringIndex, - TypeMapDef, - DevTypeMapDef, - DevTypeMapFnDef, - ClientOptionDef, - ClientOtherOps, - TypeMapCbDef, - ModelKey, - RequiredExtensionArgs as UserArgs - } -} - -export declare type ExtractGlobalOmit = Options extends { - omit: { - [K in ModelName]: infer GlobalOmit; - }; -} ? GlobalOmit : {}; - -declare type Field = ReadonlyDeep_2<{ - kind: FieldKind; - name: string; - isRequired: boolean; - isList: boolean; - isUnique: boolean; - isId: boolean; - isReadOnly: boolean; - isGenerated?: boolean; - isUpdatedAt?: boolean; - /** - * Describes the data type in the same the way it is defined in the Prisma schema: - * BigInt, Boolean, Bytes, DateTime, Decimal, Float, Int, JSON, String, $ModelName - */ - type: string; - /** - * Native database type, if specified. - * For example, `@db.VarChar(191)` is encoded as `['VarChar', ['191']]`, - * `@db.Text` is encoded as `['Text', []]`. - */ - nativeType?: [string, string[]] | null; - dbName?: string | null; - hasDefaultValue: boolean; - default?: FieldDefault | FieldDefaultScalar | FieldDefaultScalar[]; - relationFromFields?: string[]; - relationToFields?: string[]; - relationOnDelete?: string; - relationOnUpdate?: string; - relationName?: string; - documentation?: string; -}>; - -declare type FieldDefault = ReadonlyDeep_2<{ - name: string; - args: Array; -}>; - -declare type FieldDefaultScalar = string | boolean | number; - -declare type FieldKind = 'scalar' | 'object' | 'enum' | 'unsupported'; - -declare type FieldLocation = 'scalar' | 'inputObjectTypes' | 'outputObjectTypes' | 'enumTypes' | 'fieldRefTypes'; - -declare type FieldNamespace = 'model' | 'prisma'; - -/** - * A reference to a specific field of a specific model - */ -export declare interface FieldRef { - readonly modelName: Model; - readonly name: string; - readonly typeName: FieldType; - readonly isList: boolean; -} - -declare type FieldRefAllowType = TypeRef<'scalar' | 'enumTypes'>; - -declare type FieldRefType = ReadonlyDeep_2<{ - name: string; - allowTypes: FieldRefAllowType[]; - fields: SchemaArg[]; -}>; - -declare type FluentOperation = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'update' | 'upsert' | 'delete'; - -export declare interface Fn { - params: Params; - returns: Returns; -} - -declare interface GeneratorConfig { - name: string; - output: EnvValue | null; - isCustomOutput?: boolean; - provider: EnvValue; - config: { - /** `output` is a reserved name and will only be available directly at `generator.output` */ - output?: never; - /** `provider` is a reserved name and will only be available directly at `generator.provider` */ - provider?: never; - /** `binaryTargets` is a reserved name and will only be available directly at `generator.binaryTargets` */ - binaryTargets?: never; - /** `previewFeatures` is a reserved name and will only be available directly at `generator.previewFeatures` */ - previewFeatures?: never; - } & { - [key: string]: string | string[] | undefined; - }; - binaryTargets: BinaryTargetsEnvValue[]; - previewFeatures: string[]; - envPaths?: EnvPaths; - sourceFilePath: string; -} - -export declare type GetAggregateResult

= { - [K in keyof A as K extends Aggregate ? K : never]: K extends '_count' ? A[K] extends true ? number : Count : { - [J in keyof A[K] & string]: P['scalars'][J] | null; - }; -}; - -declare function getBatchRequestPayload(batch: JsonQuery[], transaction?: TransactionOptions_2): QueryEngineBatchRequest; - -export declare type GetBatchResult = { - count: number; -}; - -export declare type GetCountResult = A extends { - select: infer S; -} ? (S extends true ? number : Count) : number; - -declare function getExtensionContext(that: T): Context_2; - -export declare type GetFindResult

= Equals extends 1 ? DefaultSelection : A extends { - select: infer S extends object; -} & Record | { - include: infer I extends object; -} & Record ? { - [K in keyof S | keyof I as (S & I)[K] extends false | undefined | Skip | null ? never : K]: (S & I)[K] extends object ? P extends SelectablePayloadFields ? O extends OperationPayload ? GetFindResult[] : never : P extends SelectablePayloadFields ? O extends OperationPayload ? GetFindResult | SelectField & null : never : K extends '_count' ? Count> : never : P extends SelectablePayloadFields ? O extends OperationPayload ? DefaultSelection[] : never : P extends SelectablePayloadFields ? O extends OperationPayload ? DefaultSelection | SelectField & null : never : P extends { - scalars: { - [k in K]: infer O; - }; - } ? O : K extends '_count' ? Count : never; -} & (A extends { - include: any; -} & Record ? DefaultSelection : unknown) : DefaultSelection; - -export declare type GetGroupByResult

= A extends { - by: string[]; -} ? Array & { - [K in A['by'][number]]: P['scalars'][K]; -}> : A extends { - by: string; -} ? Array & { - [K in A['by']]: P['scalars'][K]; -}> : {}[]; - -export declare type GetOmit = { - [K in (string extends keyof R ? never : keyof R) | BaseKeys]?: boolean | ExtraType; -}; - -export declare type GetPayloadResult, R extends InternalArgs['result'][string]> = Omit> & GetPayloadResultExtensionObject; - -export declare type GetPayloadResultExtensionKeys = KR; - -export declare type GetPayloadResultExtensionObject = { - [K in GetPayloadResultExtensionKeys]: R[K] extends () => { - compute: (...args: any) => infer C; - } ? C : never; -}; - -export declare function getPrismaClient(config: GetPrismaClientConfig): { - new (optionsArg?: PrismaClientOptions): { - _originalClient: any; - _runtimeDataModel: RuntimeDataModel; - _requestHandler: RequestHandler; - _connectionPromise?: Promise | undefined; - _disconnectionPromise?: Promise | undefined; - _engineConfig: EngineConfig; - _accelerateEngineConfig: AccelerateEngineConfig; - _clientVersion: string; - _errorFormat: ErrorFormat; - _tracingHelper: TracingHelper; - _middlewares: MiddlewareHandler; - _previewFeatures: string[]; - _activeProvider: string; - _globalOmit?: GlobalOmitOptions | undefined; - _extensions: MergedExtensionsList; - /** - * @remarks This is used internally by Policy, do not rename or remove - */ - _engine: Engine; - /** - * A fully constructed/applied Client that references the parent - * PrismaClient. This is used for Client extensions only. - */ - _appliedParent: any; - _createPrismaPromise: PrismaPromiseFactory; - /** - * Hook a middleware into the client - * @param middleware to hook - */ - $use(middleware: QueryMiddleware): void; - $on(eventType: E, callback: EventCallback): any; - $connect(): Promise; - /** - * Disconnect from the database - */ - $disconnect(): Promise; - /** - * Executes a raw query and always returns a number - */ - $executeRawInternal(transaction: PrismaPromiseTransaction | undefined, clientMethod: string, args: RawQueryArgs, middlewareArgsMapper?: MiddlewareArgsMapper): Promise; - /** - * Executes a raw query provided through a safe tag function - * @see https://github.com/prisma/prisma/issues/7142 - * - * @param query - * @param values - * @returns - */ - $executeRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise_2; - /** - * Unsafe counterpart of `$executeRaw` that is susceptible to SQL injections - * @see https://github.com/prisma/prisma/issues/7142 - * - * @param query - * @param values - * @returns - */ - $executeRawUnsafe(query: string, ...values: RawValue[]): PrismaPromise_2; - /** - * Executes a raw command only for MongoDB - * - * @param command - * @returns - */ - $runCommandRaw(command: Record): PrismaPromise_2; - /** - * Executes a raw query and returns selected data - */ - $queryRawInternal(transaction: PrismaPromiseTransaction | undefined, clientMethod: string, args: RawQueryArgs, middlewareArgsMapper?: MiddlewareArgsMapper): Promise; - /** - * Executes a raw query provided through a safe tag function - * @see https://github.com/prisma/prisma/issues/7142 - * - * @param query - * @param values - * @returns - */ - $queryRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise_2; - /** - * Counterpart to $queryRaw, that returns strongly typed results - * @param typedSql - */ - $queryRawTyped(typedSql: UnknownTypedSql): PrismaPromise_2; - /** - * Unsafe counterpart of `$queryRaw` that is susceptible to SQL injections - * @see https://github.com/prisma/prisma/issues/7142 - * - * @param query - * @param values - * @returns - */ - $queryRawUnsafe(query: string, ...values: RawValue[]): PrismaPromise_2; - /** - * Execute a batch of requests in a transaction - * @param requests - * @param options - */ - _transactionWithArray({ promises, options, }: { - promises: Array>; - options?: BatchTransactionOptions; - }): Promise; - /** - * Perform a long-running transaction - * @param callback - * @param options - * @returns - */ - _transactionWithCallback({ callback, options, }: { - callback: (client: Client) => Promise; - options?: Options; - }): Promise; - _createItxClient(transaction: PrismaPromiseInteractiveTransaction): Client; - /** - * Execute queries within a transaction - * @param input a callback or a query list - * @param options to set timeouts (callback) - * @returns - */ - $transaction(input: any, options?: any): Promise; - /** - * Runs the middlewares over params before executing a request - * @param internalParams - * @returns - */ - _request(internalParams: InternalRequestParams): Promise; - _executeRequest({ args, clientMethod, dataPath, callsite, action, model, argsMapper, transaction, unpacker, otelParentCtx, customDataProxyFetch, }: InternalRequestParams): Promise; - $metrics: MetricsClient; - /** - * Shortcut for checking a preview flag - * @param feature preview flag - * @returns - */ - _hasPreviewFlag(feature: string): boolean; - $applyPendingMigrations(): Promise; - $extends: typeof $extends; - readonly [Symbol.toStringTag]: string; - }; -}; - -/** - * Config that is stored into the generated client. When the generated client is - * loaded, this same config is passed to {@link getPrismaClient} which creates a - * closure with that config around a non-instantiated [[PrismaClient]]. - */ -export declare type GetPrismaClientConfig = { - runtimeDataModel: RuntimeDataModel; - generator?: GeneratorConfig; - relativeEnvPaths?: { - rootEnvPath?: string | null; - schemaEnvPath?: string | null; - }; - relativePath: string; - dirname: string; - clientVersion: string; - engineVersion: string; - datasourceNames: string[]; - activeProvider: ActiveConnectorType; - /** - * The contents of the schema encoded into a string - * @remarks only used for the purpose of data proxy - */ - inlineSchema: string; - /** - * A special env object just for the data proxy edge runtime. - * Allows bundlers to inject their own env variables (Vercel). - * Allows platforms to declare global variables as env (Workers). - * @remarks only used for the purpose of data proxy - */ - injectableEdgeEnv?: () => LoadedEnv; - /** - * The contents of the datasource url saved in a string. - * This can either be an env var name or connection string. - * It is needed by the client to connect to the Data Proxy. - * @remarks only used for the purpose of data proxy - */ - inlineDatasources: { - [name in string]: { - url: EnvValue; - }; - }; - /** - * The string hash that was produced for a given schema - * @remarks only used for the purpose of data proxy - */ - inlineSchemaHash: string; - /** - * A marker to indicate that the client was not generated via `prisma - * generate` but was generated via `generate --postinstall` script instead. - * @remarks used to error for Vercel/Netlify for schema caching issues - */ - postinstall?: boolean; - /** - * Information about the CI where the Prisma Client has been generated. The - * name of the CI environment is stored at generation time because CI - * information is not always available at runtime. Moreover, the edge client - * has no notion of environment variables, so this works around that. - * @remarks used to error for Vercel/Netlify for schema caching issues - */ - ciName?: string; - /** - * Information about whether we have not found a schema.prisma file in the - * default location, and that we fell back to finding the schema.prisma file - * in the current working directory. This usually means it has been bundled. - */ - isBundled?: boolean; - /** - * A boolean that is `false` when the client was generated with --no-engine. At - * runtime, this means the client will be bound to be using the Data Proxy. - */ - copyEngine?: boolean; - /** - * Optional wasm loading configuration - */ - engineWasm?: EngineWasmLoadingConfig; - compilerWasm?: CompilerWasmLoadingConfig; -}; - -export declare type GetResult = { - findUnique: GetFindResult | null; - findUniqueOrThrow: GetFindResult; - findFirst: GetFindResult | null; - findFirstOrThrow: GetFindResult; - findMany: GetFindResult[]; - create: GetFindResult; - createMany: GetBatchResult; - createManyAndReturn: GetFindResult[]; - update: GetFindResult; - updateMany: GetBatchResult; - updateManyAndReturn: GetFindResult[]; - upsert: GetFindResult; - delete: GetFindResult; - deleteMany: GetBatchResult; - aggregate: GetAggregateResult; - count: GetCountResult; - groupBy: GetGroupByResult; - $queryRaw: unknown; - $queryRawTyped: unknown; - $executeRaw: number; - $queryRawUnsafe: unknown; - $executeRawUnsafe: number; - $runCommandRaw: JsonObject; - findRaw: JsonObject; - aggregateRaw: JsonObject; -}[OperationName]; - -export declare function getRuntime(): GetRuntimeOutput; - -declare type GetRuntimeOutput = { - id: RuntimeName; - prettyName: string; - isEdge: boolean; -}; - -export declare type GetSelect, R extends InternalArgs['result'][string], KR extends keyof R = string extends keyof R ? never : keyof R> = { - [K in KR | keyof Base]?: K extends KR ? boolean : Base[K]; -}; - -declare type GlobalOmitOptions = { - [modelName: string]: { - [fieldName: string]: boolean; - }; -}; - -declare type HandleErrorParams = { - args: JsArgs; - error: any; - clientMethod: string; - callsite?: CallSite; - transaction?: PrismaPromiseTransaction; - modelName?: string; - globalOmit?: GlobalOmitOptions; -}; - -declare type HrTime = [number, number]; - -/** - * Defines High-Resolution Time. - * - * The first number, HrTime[0], is UNIX Epoch time in seconds since 00:00:00 UTC on 1 January 1970. - * The second number, HrTime[1], represents the partial second elapsed since Unix Epoch time represented by first number in nanoseconds. - * For example, 2021-01-01T12:30:10.150Z in UNIX Epoch time in milliseconds is represented as 1609504210150. - * The first number is calculated by converting and truncating the Epoch time in milliseconds to seconds: - * HrTime[0] = Math.trunc(1609504210150 / 1000) = 1609504210. - * The second number is calculated by converting the digits after the decimal point of the subtraction, (1609504210150 / 1000) - HrTime[0], to nanoseconds: - * HrTime[1] = Number((1609504210.150 - HrTime[0]).toFixed(9)) * 1e9 = 150000000. - * This is represented in HrTime format as [1609504210, 150000000]. - */ -declare type HrTime_2 = [number, number]; - -declare type Index = ReadonlyDeep_2<{ - model: string; - type: IndexType; - isDefinedOnField: boolean; - name?: string; - dbName?: string; - algorithm?: string; - clustered?: boolean; - fields: IndexField[]; -}>; - -declare type IndexField = ReadonlyDeep_2<{ - name: string; - sortOrder?: SortOrder; - length?: number; - operatorClass?: string; -}>; - -declare type IndexType = 'id' | 'normal' | 'unique' | 'fulltext'; - -/** - * Matches a JSON array. - * Unlike \`JsonArray\`, readonly arrays are assignable to this type. - */ -export declare interface InputJsonArray extends ReadonlyArray { -} - -/** - * Matches a JSON object. - * Unlike \`JsonObject\`, this type allows undefined and read-only properties. - */ -export declare type InputJsonObject = { - readonly [Key in string]?: InputJsonValue | null; -}; - -/** - * Matches any valid value that can be used as an input for operations like - * create and update as the value of a JSON field. Unlike \`JsonValue\`, this - * type allows read-only arrays and read-only object properties and disallows - * \`null\` at the top level. - * - * \`null\` cannot be used as the value of a JSON field because its meaning - * would be ambiguous. Use \`Prisma.JsonNull\` to store the JSON null value or - * \`Prisma.DbNull\` to clear the JSON value and set the field to the database - * NULL value instead. - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-by-null-values - */ -export declare type InputJsonValue = string | number | boolean | InputJsonObject | InputJsonArray | { - toJSON(): unknown; -}; - -declare type InputType = ReadonlyDeep_2<{ - name: string; - constraints: { - maxNumFields: number | null; - minNumFields: number | null; - fields?: string[]; - }; - meta?: { - source?: string; - grouping?: string; - }; - fields: SchemaArg[]; -}>; - -declare type InputTypeRef = TypeRef<'scalar' | 'inputObjectTypes' | 'enumTypes' | 'fieldRefTypes'>; - -declare type InteractiveTransactionInfo = { - /** - * Transaction ID returned by the query engine. - */ - id: string; - /** - * Arbitrary payload the meaning of which depends on the `Engine` implementation. - * For example, `DataProxyEngine` needs to associate different API endpoints with transactions. - * In `LibraryEngine` and `BinaryEngine` it is currently not used. - */ - payload: Payload; -}; - -declare type InteractiveTransactionOptions = Transaction_2.InteractiveTransactionInfo; - -export declare type InternalArgs = { - result: { - [K in keyof R]: { - [P in keyof R[K]]: () => R[K][P]; - }; - }; - model: { - [K in keyof M]: { - [P in keyof M[K]]: () => M[K][P]; - }; - }; - query: { - [K in keyof Q]: { - [P in keyof Q[K]]: () => Q[K][P]; - }; - }; - client: { - [K in keyof C]: () => C[K]; - }; -}; - -declare type InternalRequestParams = { - /** - * The original client method being called. - * Even though the rootField / operation can be changed, - * this method stays as it is, as it's what the user's - * code looks like - */ - clientMethod: string; - /** - * Name of js model that triggered the request. Might be used - * for warnings or error messages - */ - jsModelName?: string; - callsite?: CallSite; - transaction?: PrismaPromiseTransaction; - unpacker?: Unpacker; - otelParentCtx?: Context; - /** Used to "desugar" a user input into an "expanded" one */ - argsMapper?: (args?: UserArgs_2) => UserArgs_2; - /** Used to convert args for middleware and back */ - middlewareArgsMapper?: MiddlewareArgsMapper; - /** Used for Accelerate client extension via Data Proxy */ - customDataProxyFetch?: CustomDataProxyFetch; -} & Omit; - -declare type IsolationLevel = 'READ UNCOMMITTED' | 'READ COMMITTED' | 'REPEATABLE READ' | 'SNAPSHOT' | 'SERIALIZABLE'; - -declare type IsolationLevel_2 = 'ReadUncommitted' | 'ReadCommitted' | 'RepeatableRead' | 'Snapshot' | 'Serializable'; - -declare function isSkip(value: unknown): value is Skip; - -export declare function isTypedSql(value: unknown): value is UnknownTypedSql; - -export declare type ITXClientDenyList = (typeof denylist)[number]; - -export declare const itxClientDenyList: readonly (string | symbol)[]; - -declare interface Job { - resolve: (data: any) => void; - reject: (data: any) => void; - request: any; -} - -/** - * Create a SQL query for a list of values. - */ -export declare function join(values: readonly RawValue[], separator?: string, prefix?: string, suffix?: string): Sql; - -export declare type JsArgs = { - select?: Selection_2; - include?: Selection_2; - omit?: Omission; - [argName: string]: JsInputValue; -}; - -export declare type JsInputValue = null | undefined | string | number | boolean | bigint | Uint8Array | Date | DecimalJsLike | ObjectEnumValue | RawParameters | JsonConvertible | FieldRef | JsInputValue[] | Skip | { - [key: string]: JsInputValue; -}; - -declare type JsonArgumentValue = number | string | boolean | null | RawTaggedValue | JsonArgumentValue[] | { - [key: string]: JsonArgumentValue; -}; - -/** - * From https://github.com/sindresorhus/type-fest/ - * Matches a JSON array. - */ -export declare interface JsonArray extends Array { -} - -export declare type JsonBatchQuery = { - batch: JsonQuery[]; - transaction?: { - isolationLevel?: IsolationLevel_2; - }; -}; - -export declare interface JsonConvertible { - toJSON(): unknown; -} - -declare type JsonFieldSelection = { - arguments?: Record | RawTaggedValue; - selection: JsonSelectionSet; -}; - -declare class JsonNull extends NullTypesEnumValue { - #private; -} - -/** - * From https://github.com/sindresorhus/type-fest/ - * Matches a JSON object. - * This type can be useful to enforce some input to be JSON-compatible or as a super-type to be extended from. - */ -export declare type JsonObject = { - [Key in string]?: JsonValue; -}; - -export declare type JsonQuery = { - modelName?: string; - action: JsonQueryAction; - query: JsonFieldSelection; -}; - -declare type JsonQueryAction = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'findMany' | 'createOne' | 'createMany' | 'createManyAndReturn' | 'updateOne' | 'updateMany' | 'updateManyAndReturn' | 'deleteOne' | 'deleteMany' | 'upsertOne' | 'aggregate' | 'groupBy' | 'executeRaw' | 'queryRaw' | 'runCommandRaw' | 'findRaw' | 'aggregateRaw'; - -declare type JsonSelectionSet = { - $scalars?: boolean; - $composites?: boolean; -} & { - [fieldName: string]: boolean | JsonFieldSelection; -}; - -/** - * From https://github.com/sindresorhus/type-fest/ - * Matches any valid JSON value. - */ -export declare type JsonValue = string | number | boolean | JsonObject | JsonArray | null; - -export declare type JsOutputValue = null | string | number | boolean | bigint | Uint8Array | Date | Decimal | JsOutputValue[] | { - [key: string]: JsOutputValue; -}; - -export declare type JsPromise = Promise & {}; - -declare type KnownErrorParams = { - code: string; - clientVersion: string; - meta?: Record; - batchRequestIdx?: number; -}; - -/** - * A pointer from the current {@link Span} to another span in the same trace or - * in a different trace. - * Few examples of Link usage. - * 1. Batch Processing: A batch of elements may contain elements associated - * with one or more traces/spans. Since there can only be one parent - * SpanContext, Link is used to keep reference to SpanContext of all - * elements in the batch. - * 2. Public Endpoint: A SpanContext in incoming client request on a public - * endpoint is untrusted from service provider perspective. In such case it - * is advisable to start a new trace with appropriate sampling decision. - * However, it is desirable to associate incoming SpanContext to new trace - * initiated on service provider side so two traces (from Client and from - * Service Provider) can be correlated. - */ -declare interface Link { - /** The {@link SpanContext} of a linked span. */ - context: SpanContext; - /** A set of {@link SpanAttributes} on the link. */ - attributes?: SpanAttributes; - /** Count of attributes of the link that were dropped due to collection limits */ - droppedAttributesCount?: number; -} - -declare type LoadedEnv = { - message?: string; - parsed: { - [x: string]: string; - }; -} | undefined; - -declare type LocationInFile = { - fileName: string; - lineNumber: number | null; - columnNumber: number | null; -}; - -declare type LogDefinition = { - level: LogLevel; - emit: 'stdout' | 'event'; -}; - -/** - * Typings for the events we emit. - * - * @remarks - * If this is updated, our edge runtime shim needs to be updated as well. - */ -declare type LogEmitter = { - on(event: E, listener: (event: EngineEvent) => void): LogEmitter; - emit(event: QueryEventType, payload: QueryEvent): boolean; - emit(event: LogEventType, payload: LogEvent): boolean; -}; - -declare type LogEvent = { - timestamp: Date; - message: string; - target: string; -}; - -declare type LogEventType = 'info' | 'warn' | 'error'; - -declare type LogLevel = 'info' | 'query' | 'warn' | 'error'; - -/** - * Generates more strict variant of an enum which, unlike regular enum, - * throws on non-existing property access. This can be useful in following situations: - * - we have an API, that accepts both `undefined` and `SomeEnumType` as an input - * - enum values are generated dynamically from DMMF. - * - * In that case, if using normal enums and no compile-time typechecking, using non-existing property - * will result in `undefined` value being used, which will be accepted. Using strict enum - * in this case will help to have a runtime exception, telling you that you are probably doing something wrong. - * - * Note: if you need to check for existence of a value in the enum you can still use either - * `in` operator or `hasOwnProperty` function. - * - * @param definition - * @returns - */ -export declare function makeStrictEnum>(definition: T): T; - -export declare function makeTypedQueryFactory(sql: string): (...values: any[]) => TypedSql; - -declare type Mappings = ReadonlyDeep_2<{ - modelOperations: ModelMapping[]; - otherOperations: { - read: string[]; - write: string[]; - }; -}>; - -/** - * Class that holds the list of all extensions, applied to particular instance, - * as well as resolved versions of the components that need to apply on - * different levels. Main idea of this class: avoid re-resolving as much of the - * stuff as possible when new extensions are added while also delaying the - * resolve until the point it is actually needed. For example, computed fields - * of the model won't be resolved unless the model is actually queried. Neither - * adding extensions with `client` component only cause other components to - * recompute. - */ -declare class MergedExtensionsList { - private head?; - private constructor(); - static empty(): MergedExtensionsList; - static single(extension: ExtensionArgs): MergedExtensionsList; - isEmpty(): boolean; - append(extension: ExtensionArgs): MergedExtensionsList; - getAllComputedFields(dmmfModelName: string): ComputedFieldsMap | undefined; - getAllClientExtensions(): ClientArg | undefined; - getAllModelExtensions(dmmfModelName: string): ModelArg | undefined; - getAllQueryCallbacks(jsModelName: string, operation: string): any; - getAllBatchQueryCallbacks(): BatchQueryOptionsCb[]; -} - -export declare type MergeExtArgs, Args extends Record> = ComputeDeep & AllModelsToStringIndex>; - -export declare type Metric = { - key: string; - value: T; - labels: Record; - description: string; -}; - -export declare type MetricHistogram = { - buckets: MetricHistogramBucket[]; - sum: number; - count: number; -}; - -export declare type MetricHistogramBucket = [maxValue: number, count: number]; - -export declare type Metrics = { - counters: Metric[]; - gauges: Metric[]; - histograms: Metric[]; -}; - -export declare class MetricsClient { - private _client; - constructor(client: Client); - /** - * Returns all metrics gathered up to this point in prometheus format. - * Result of this call can be exposed directly to prometheus scraping endpoint - * - * @param options - * @returns - */ - prometheus(options?: MetricsOptions): Promise; - /** - * Returns all metrics gathered up to this point in prometheus format. - * - * @param options - * @returns - */ - json(options?: MetricsOptions): Promise; -} - -declare type MetricsOptions = { - /** - * Labels to add to every metrics in key-value format - */ - globalLabels?: Record; -}; - -declare type MetricsOptionsCommon = { - globalLabels?: Record; -}; - -declare type MetricsOptionsJson = { - format: 'json'; -} & MetricsOptionsCommon; - -declare type MetricsOptionsPrometheus = { - format: 'prometheus'; -} & MetricsOptionsCommon; - -declare type MiddlewareArgsMapper = { - requestArgsToMiddlewareArgs(requestArgs: RequestArgs): MiddlewareArgs; - middlewareArgsToRequestArgs(middlewareArgs: MiddlewareArgs): RequestArgs; -}; - -declare class MiddlewareHandler { - private _middlewares; - use(middleware: M): void; - get(id: number): M | undefined; - has(id: number): boolean; - length(): number; -} - -declare type Model = ReadonlyDeep_2<{ - name: string; - dbName: string | null; - schema: string | null; - fields: Field[]; - uniqueFields: string[][]; - uniqueIndexes: uniqueIndex[]; - documentation?: string; - primaryKey: PrimaryKey | null; - isGenerated?: boolean; -}>; - -declare enum ModelAction { - findUnique = "findUnique", - findUniqueOrThrow = "findUniqueOrThrow", - findFirst = "findFirst", - findFirstOrThrow = "findFirstOrThrow", - findMany = "findMany", - create = "create", - createMany = "createMany", - createManyAndReturn = "createManyAndReturn", - update = "update", - updateMany = "updateMany", - updateManyAndReturn = "updateManyAndReturn", - upsert = "upsert", - delete = "delete", - deleteMany = "deleteMany", - groupBy = "groupBy", - count = "count",// TODO: count does not actually exist in DMMF - aggregate = "aggregate", - findRaw = "findRaw", - aggregateRaw = "aggregateRaw" -} - -export declare type ModelArg = { - [MethodName in string]: unknown; -}; - -export declare type ModelArgs = { - model: { - [ModelName in string]: ModelArg; - }; -}; - -export declare type ModelKey = M extends keyof TypeMap['model'] ? M : Capitalize; - -declare type ModelMapping = ReadonlyDeep_2<{ - model: string; - plural: string; - findUnique?: string | null; - findUniqueOrThrow?: string | null; - findFirst?: string | null; - findFirstOrThrow?: string | null; - findMany?: string | null; - create?: string | null; - createMany?: string | null; - createManyAndReturn?: string | null; - update?: string | null; - updateMany?: string | null; - updateManyAndReturn?: string | null; - upsert?: string | null; - delete?: string | null; - deleteMany?: string | null; - aggregate?: string | null; - groupBy?: string | null; - count?: string | null; - findRaw?: string | null; - aggregateRaw?: string | null; -}>; - -export declare type ModelQueryOptionsCb = (args: ModelQueryOptionsCbArgs) => Promise; - -export declare type ModelQueryOptionsCbArgs = { - model: string; - operation: string; - args: JsArgs; - query: (args: JsArgs) => Promise; -}; - -declare type MultiBatchResponse = { - type: 'multi'; - plans: object[]; -}; - -export declare type NameArgs = { - name?: string; -}; - -export declare type Narrow = { - [K in keyof A]: A[K] extends Function ? A[K] : Narrow; -} | (A extends Narrowable ? A : never); - -export declare type Narrowable = string | number | bigint | boolean | []; - -export declare type NeverToUnknown = [T] extends [never] ? unknown : T; - -declare class NullTypesEnumValue extends ObjectEnumValue { - _getNamespace(): string; -} - -/** - * Base class for unique values of object-valued enums. - */ -export declare abstract class ObjectEnumValue { - constructor(arg?: symbol); - abstract _getNamespace(): string; - _getName(): string; - toString(): string; -} - -export declare const objectEnumValues: { - classes: { - DbNull: typeof DbNull; - JsonNull: typeof JsonNull; - AnyNull: typeof AnyNull; - }; - instances: { - DbNull: DbNull; - JsonNull: JsonNull; - AnyNull: AnyNull; - }; -}; - -declare const officialPrismaAdapters: readonly ["@prisma/adapter-planetscale", "@prisma/adapter-neon", "@prisma/adapter-libsql", "@prisma/adapter-better-sqlite3", "@prisma/adapter-d1", "@prisma/adapter-pg", "@prisma/adapter-mssql", "@prisma/adapter-mariadb"]; - -export declare type Omission = Record; - -declare type Omit_2 = { - [P in keyof T as P extends K ? never : P]: T[P]; -}; -export { Omit_2 as Omit } - -export declare type OmitValue = Key extends keyof Omit ? Omit[Key] : false; - -export declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw'; - -export declare type OperationPayload = { - name: string; - scalars: { - [ScalarName in string]: unknown; - }; - objects: { - [ObjectName in string]: unknown; - }; - composites: { - [CompositeName in string]: unknown; - }; -}; - -export declare type Optional = { - [P in K & keyof O]?: O[P]; -} & { - [P in Exclude]: O[P]; -}; - -export declare type OptionalFlat = { - [K in keyof T]?: T[K]; -}; - -export declare type OptionalKeys = { - [K in keyof O]-?: {} extends Pick_2 ? K : never; -}[keyof O]; - -declare type Options = { - /** Timeout for starting the transaction */ - maxWait?: number; - /** Timeout for the transaction body */ - timeout?: number; - /** Transaction isolation level */ - isolationLevel?: IsolationLevel_2; -}; - -declare type Options_2 = { - clientVersion: string; -}; - -export declare type Or = { - 0: { - 0: 0; - 1: 1; - }; - 1: { - 0: 1; - 1: 1; - }; -}[A][B]; - -declare type OtherOperationMappings = ReadonlyDeep_2<{ - read: string[]; - write: string[]; -}>; - -declare type OutputType = ReadonlyDeep_2<{ - name: string; - fields: SchemaField[]; -}>; - -declare type OutputTypeRef = TypeRef<'scalar' | 'outputObjectTypes' | 'enumTypes'>; - -export declare function Param<$Type, $Value extends string>(name: $Value): Param<$Type, $Value>; - -export declare type Param = { - readonly name: $Value; -}; - -export declare type PatchFlat = O1 & Omit_2; - -export declare type Path = O extends unknown ? P extends [infer K, ...infer R] ? K extends keyof O ? Path : Default : O : never; - -export declare type Payload = T extends { - [K: symbol]: { - types: { - payload: any; - }; - }; -} ? T[symbol]['types']['payload'] : any; - -export declare type PayloadToResult = RenameAndNestPayloadKeys

> = { - [K in keyof O]?: O[K][K] extends any[] ? PayloadToResult[] : O[K][K] extends object ? PayloadToResult : O[K][K]; -}; - -declare type Pick_2 = { - [P in keyof T as P extends K ? P : never]: T[P]; -}; -export { Pick_2 as Pick } - -declare type PrimaryKey = ReadonlyDeep_2<{ - name: string | null; - fields: string[]; -}>; - -export declare class PrismaClientInitializationError extends Error { - clientVersion: string; - errorCode?: string; - retryable?: boolean; - constructor(message: string, clientVersion: string, errorCode?: string); - get [Symbol.toStringTag](): string; -} - -export declare class PrismaClientKnownRequestError extends Error implements ErrorWithBatchIndex { - code: string; - meta?: Record; - clientVersion: string; - batchRequestIdx?: number; - constructor(message: string, { code, clientVersion, meta, batchRequestIdx }: KnownErrorParams); - get [Symbol.toStringTag](): string; -} - -export declare type PrismaClientOptions = { - /** - * Overwrites the primary datasource url from your schema.prisma file - */ - datasourceUrl?: string; - /** - * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale. - */ - adapter?: SqlDriverAdapterFactory | null; - /** - * Overwrites the datasource url from your schema.prisma file - */ - datasources?: Datasources; - /** - * @default "colorless" - */ - errorFormat?: ErrorFormat; - /** - * The default values for Transaction options - * maxWait ?= 2000 - * timeout ?= 5000 - */ - transactionOptions?: Transaction_2.Options; - /** - * @example - * \`\`\` - * // Defaults to stdout - * log: ['query', 'info', 'warn'] - * - * // Emit as events - * log: [ - * { emit: 'stdout', level: 'query' }, - * { emit: 'stdout', level: 'info' }, - * { emit: 'stdout', level: 'warn' } - * ] - * \`\`\` - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option). - */ - log?: Array; - omit?: GlobalOmitOptions; - /** - * @internal - * You probably don't want to use this. \`__internal\` is used by internal tooling. - */ - __internal?: { - debug?: boolean; - engine?: { - cwd?: string; - binaryPath?: string; - endpoint?: string; - allowTriggerPanic?: boolean; - }; - /** This can be used for testing purposes */ - configOverride?: (config: GetPrismaClientConfig) => GetPrismaClientConfig; - }; -}; - -export declare class PrismaClientRustPanicError extends Error { - clientVersion: string; - constructor(message: string, clientVersion: string); - get [Symbol.toStringTag](): string; -} - -export declare class PrismaClientUnknownRequestError extends Error implements ErrorWithBatchIndex { - clientVersion: string; - batchRequestIdx?: number; - constructor(message: string, { clientVersion, batchRequestIdx }: UnknownErrorParams); - get [Symbol.toStringTag](): string; -} - -export declare class PrismaClientValidationError extends Error { - name: string; - clientVersion: string; - constructor(message: string, { clientVersion }: Options_2); - get [Symbol.toStringTag](): string; -} - -declare function prismaGraphQLToJSError({ error, user_facing_error }: RequestError, clientVersion: string, activeProvider: string): PrismaClientKnownRequestError | PrismaClientUnknownRequestError; - -declare type PrismaOperationSpec = { - args: TArgs; - action: TAction; - model: string; -}; - -export declare interface PrismaPromise extends Promise { - [Symbol.toStringTag]: 'PrismaPromise'; -} - -/** - * Prisma's `Promise` that is backwards-compatible. All additions on top of the - * original `Promise` are optional so that it can be backwards-compatible. - * @see [[createPrismaPromise]] - */ -declare interface PrismaPromise_2 = any> extends Promise { - get spec(): TSpec; - /** - * Extension of the original `.then` function - * @param onfulfilled same as regular promises - * @param onrejected same as regular promises - * @param transaction transaction options - */ - then(onfulfilled?: (value: TResult) => R1 | PromiseLike, onrejected?: (error: unknown) => R2 | PromiseLike, transaction?: PrismaPromiseTransaction): Promise; - /** - * Extension of the original `.catch` function - * @param onrejected same as regular promises - * @param transaction transaction options - */ - catch(onrejected?: ((reason: any) => R | PromiseLike) | undefined | null, transaction?: PrismaPromiseTransaction): Promise; - /** - * Extension of the original `.finally` function - * @param onfinally same as regular promises - * @param transaction transaction options - */ - finally(onfinally?: (() => void) | undefined | null, transaction?: PrismaPromiseTransaction): Promise; - /** - * Called when executing a batch of regular tx - * @param transaction transaction options for batch tx - */ - requestTransaction?(transaction: PrismaPromiseBatchTransaction): PromiseLike; -} - -declare type PrismaPromiseBatchTransaction = { - kind: 'batch'; - id: number; - isolationLevel?: IsolationLevel_2; - index: number; - lock: PromiseLike; -}; - -declare type PrismaPromiseCallback = (transaction?: PrismaPromiseTransaction) => Promise; - -/** - * Creates a [[PrismaPromise]]. It is Prisma's implementation of `Promise` which - * is essentially a proxy for `Promise`. All the transaction-compatible client - * methods return one, this allows for pre-preparing queries without executing - * them until `.then` is called. It's the foundation of Prisma's query batching. - * @param callback that will be wrapped within our promise implementation - * @see [[PrismaPromise]] - * @returns - */ -declare type PrismaPromiseFactory = >(callback: PrismaPromiseCallback, op?: T) => PrismaPromise_2; - -declare type PrismaPromiseInteractiveTransaction = { - kind: 'itx'; - id: string; - payload: PayloadType; -}; - -declare type PrismaPromiseTransaction = PrismaPromiseBatchTransaction | PrismaPromiseInteractiveTransaction; - -export declare const PrivateResultType: unique symbol; - -declare type Provider = 'mysql' | 'postgres' | 'sqlite' | 'sqlserver'; - -declare namespace Public { - export { - validator - } -} -export { Public } - -declare namespace Public_2 { - export { - Args, - Result, - Payload, - PrismaPromise, - Operation, - Exact - } -} - -declare type Query = ReadonlyDeep_2<{ - name: string; - args: SchemaArg[]; - output: QueryOutput; -}>; - -declare interface Queryable extends AdapterInfo { - /** - * Execute a query and return its result. - */ - queryRaw(params: Query): Promise; - /** - * Execute a query and return the number of affected rows. - */ - executeRaw(params: Query): Promise; -} - -declare type QueryCompiler = { - compile(request: string): {}; - compileBatch(batchRequest: string): BatchResponse; - free(): void; -}; - -declare interface QueryCompilerConstructor { - new (options: QueryCompilerOptions): QueryCompiler; -} - -declare type QueryCompilerOptions = { - datamodel: string; - provider: Provider; - connectionInfo: ConnectionInfo; -}; - -declare type QueryEngineBatchGraphQLRequest = { - batch: QueryEngineRequest[]; - transaction?: boolean; - isolationLevel?: IsolationLevel_2; -}; - -declare type QueryEngineBatchRequest = QueryEngineBatchGraphQLRequest | JsonBatchQuery; - -declare type QueryEngineConfig = { - datamodel: string; - configDir: string; - logQueries: boolean; - ignoreEnvVarErrors: boolean; - datasourceOverrides: Record; - env: Record; - logLevel: QueryEngineLogLevel; - engineProtocol: QueryEngineProtocol; - enableTracing: boolean; -}; - -declare interface QueryEngineConstructor { - new (config: QueryEngineConfig, logger: (log: string) => void, adapter?: ErrorCapturingSqlDriverAdapter): QueryEngineInstance; -} - -declare type QueryEngineInstance = { - connect(headers: string, requestId: string): Promise; - disconnect(headers: string, requestId: string): Promise; - /** - * Frees any resources allocated by the engine's WASM instance. This method is automatically created by WASM bindgen. - * Noop for other engines. - */ - free?(): void; - /** - * @param requestStr JSON.stringified `QueryEngineRequest | QueryEngineBatchRequest` - * @param headersStr JSON.stringified `QueryEngineRequestHeaders` - */ - query(requestStr: string, headersStr: string, transactionId: string | undefined, requestId: string): Promise; - sdlSchema?(): Promise; - startTransaction(options: string, traceHeaders: string, requestId: string): Promise; - commitTransaction(id: string, traceHeaders: string, requestId: string): Promise; - rollbackTransaction(id: string, traceHeaders: string, requestId: string): Promise; - metrics?(options: string): Promise; - applyPendingMigrations?(): Promise; - trace(requestId: string): Promise; -}; - -declare type QueryEngineLogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'off'; - -declare type QueryEngineProtocol = 'graphql' | 'json'; - -declare type QueryEngineRequest = { - query: string; - variables: Object; -}; - -declare type QueryEngineResultData = { - data: T; -}; - -declare type QueryEvent = { - timestamp: Date; - query: string; - params: string; - duration: number; - target: string; -}; - -declare type QueryEventType = 'query'; - -declare type QueryIntrospectionBuiltinType = 'int' | 'bigint' | 'float' | 'double' | 'string' | 'enum' | 'bytes' | 'bool' | 'char' | 'decimal' | 'json' | 'xml' | 'uuid' | 'datetime' | 'date' | 'time' | 'int-array' | 'bigint-array' | 'float-array' | 'double-array' | 'string-array' | 'char-array' | 'bytes-array' | 'bool-array' | 'decimal-array' | 'json-array' | 'xml-array' | 'uuid-array' | 'datetime-array' | 'date-array' | 'time-array' | 'null' | 'unknown'; - -declare type QueryMiddleware = (params: QueryMiddlewareParams, next: (params: QueryMiddlewareParams) => Promise) => Promise; - -declare type QueryMiddlewareParams = { - /** The model this is executed on */ - model?: string; - /** The action that is being handled */ - action: Action; - /** TODO what is this */ - dataPath: string[]; - /** TODO what is this */ - runInTransaction: boolean; - args?: UserArgs_2; -}; - -export declare type QueryOptions = { - query: { - [ModelName in string]: { - [ModelAction in string]: ModelQueryOptionsCb; - } | QueryOptionsCb; - }; -}; - -export declare type QueryOptionsCb = (args: QueryOptionsCbArgs) => Promise; - -export declare type QueryOptionsCbArgs = { - model?: string; - operation: string; - args: JsArgs | RawQueryArgs; - query: (args: JsArgs | RawQueryArgs) => Promise; -}; - -declare type QueryOutput = ReadonlyDeep_2<{ - name: string; - isRequired: boolean; - isList: boolean; -}>; - -/** - * Create raw SQL statement. - */ -export declare function raw(value: string): Sql; - -export declare type RawParameters = { - __prismaRawParameters__: true; - values: string; -}; - -export declare type RawQueryArgs = Sql | UnknownTypedSql | [query: string, ...values: RawValue[]]; - -declare type RawResponse = { - columns: string[]; - types: QueryIntrospectionBuiltinType[]; - rows: unknown[][]; -}; - -declare type RawTaggedValue = { - $type: 'Raw'; - value: unknown; -}; - -/** - * Supported value or SQL instance. - */ -export declare type RawValue = Value | Sql; - -export declare type ReadonlyDeep = { - readonly [K in keyof T]: ReadonlyDeep; -}; - -declare type ReadonlyDeep_2 = { - +readonly [K in keyof O]: ReadonlyDeep_2; -}; - -declare type Record_2 = { - [P in T]: U; -}; -export { Record_2 as Record } - -export declare type RenameAndNestPayloadKeys

= { - [K in keyof P as K extends 'scalars' | 'objects' | 'composites' ? keyof P[K] : never]: P[K]; -}; - -declare type RequestBatchOptions = { - transaction?: TransactionOptions_2; - traceparent?: string; - numTry?: number; - containsWrite: boolean; - customDataProxyFetch?: CustomDataProxyFetch; -}; - -declare interface RequestError { - error: string; - user_facing_error: { - is_panic: boolean; - message: string; - meta?: Record; - error_code?: string; - batch_request_idx?: number; - }; -} - -declare class RequestHandler { - client: Client; - dataloader: DataLoader; - private logEmitter?; - constructor(client: Client, logEmitter?: LogEmitter); - request(params: RequestParams): Promise; - mapQueryEngineResult({ dataPath, unpacker }: RequestParams, response: QueryEngineResultData): any; - /** - * Handles the error and logs it, logging the error is done synchronously waiting for the event - * handlers to finish. - */ - handleAndLogRequestError(params: HandleErrorParams): never; - handleRequestError({ error, clientMethod, callsite, transaction, args, modelName, globalOmit, }: HandleErrorParams): never; - sanitizeMessage(message: any): any; - unpack(data: unknown, dataPath: string[], unpacker?: Unpacker): any; - get [Symbol.toStringTag](): string; -} - -declare type RequestOptions = { - traceparent?: string; - numTry?: number; - interactiveTransaction?: InteractiveTransactionOptions; - isWrite: boolean; - customDataProxyFetch?: CustomDataProxyFetch; -}; - -declare type RequestParams = { - modelName?: string; - action: Action; - protocolQuery: JsonQuery; - dataPath: string[]; - clientMethod: string; - callsite?: CallSite; - transaction?: PrismaPromiseTransaction; - extensions: MergedExtensionsList; - args?: any; - headers?: Record; - unpacker?: Unpacker; - otelParentCtx?: Context; - otelChildCtx?: Context; - globalOmit?: GlobalOmitOptions; - customDataProxyFetch?: CustomDataProxyFetch; -}; - -declare type RequiredExtensionArgs = NameArgs & ResultArgs & ModelArgs & ClientArgs & QueryOptions; -export { RequiredExtensionArgs } -export { RequiredExtensionArgs as UserArgs } - -export declare type RequiredKeys = { - [K in keyof O]-?: {} extends Pick_2 ? never : K; -}[keyof O]; - -declare function resolveDatasourceUrl({ inlineDatasources, overrideDatasources, env, clientVersion, }: { - inlineDatasources: GetPrismaClientConfig['inlineDatasources']; - overrideDatasources: Datasources; - env: Record; - clientVersion: string; -}): string; - -export declare type Result = T extends { - [K: symbol]: { - types: { - payload: any; - }; - }; -} ? GetResult : GetResult<{ - composites: {}; - objects: {}; - scalars: {}; - name: ''; -}, {}, F>; - -export declare type Result_2 = Result; - -declare namespace Result_3 { - export { - Count, - GetFindResult, - SelectablePayloadFields, - SelectField, - DefaultSelection, - UnwrapPayload, - ApplyOmit, - OmitValue, - GetCountResult, - Aggregate, - GetAggregateResult, - GetBatchResult, - GetGroupByResult, - GetResult, - ExtractGlobalOmit - } -} - -declare type Result_4 = { - map(fn: (value: T) => U): Result_4; - flatMap(fn: (value: T) => Result_4): Result_4; -} & ({ - readonly ok: true; - readonly value: T; -} | { - readonly ok: false; - readonly error: Error_2; -}); - -export declare type ResultArg = { - [FieldName in string]: ResultFieldDefinition; -}; - -export declare type ResultArgs = { - result: { - [ModelName in string]: ResultArg; - }; -}; - -export declare type ResultArgsFieldCompute = (model: any) => unknown; - -export declare type ResultFieldDefinition = { - needs?: { - [FieldName in string]: boolean; - }; - compute: ResultArgsFieldCompute; -}; - -export declare type Return = T extends (...args: any[]) => infer R ? R : T; - -export declare type RuntimeDataModel = { - readonly models: Record; - readonly enums: Record; - readonly types: Record; -}; - -declare type RuntimeEnum = Omit; - -declare type RuntimeModel = Omit; - -declare type RuntimeName = 'workerd' | 'deno' | 'netlify' | 'node' | 'bun' | 'edge-light' | ''; - -declare type Schema = ReadonlyDeep_2<{ - rootQueryType?: string; - rootMutationType?: string; - inputObjectTypes: { - model?: InputType[]; - prisma: InputType[]; - }; - outputObjectTypes: { - model: OutputType[]; - prisma: OutputType[]; - }; - enumTypes: { - model?: SchemaEnum[]; - prisma: SchemaEnum[]; - }; - fieldRefTypes: { - prisma?: FieldRefType[]; - }; -}>; - -declare type SchemaArg = ReadonlyDeep_2<{ - name: string; - comment?: string; - isNullable: boolean; - isRequired: boolean; - inputTypes: InputTypeRef[]; - deprecation?: Deprecation; -}>; - -declare type SchemaEnum = ReadonlyDeep_2<{ - name: string; - values: string[]; -}>; - -declare type SchemaField = ReadonlyDeep_2<{ - name: string; - isNullable?: boolean; - outputType: OutputTypeRef; - args: SchemaArg[]; - deprecation?: Deprecation; - documentation?: string; -}>; - -export declare type Select = T extends U ? T : never; - -export declare type SelectablePayloadFields = { - objects: { - [k in K]: O; - }; -} | { - composites: { - [k in K]: O; - }; -}; - -export declare type SelectField

, K extends PropertyKey> = P extends { - objects: Record; -} ? P['objects'][K] : P extends { - composites: Record; -} ? P['composites'][K] : never; - -declare type Selection_2 = Record; -export { Selection_2 as Selection } - -export declare function serializeJsonQuery({ modelName, action, args, runtimeDataModel, extensions, callsite, clientMethod, errorFormat, clientVersion, previewFeatures, globalOmit, }: SerializeParams): JsonQuery; - -declare type SerializeParams = { - runtimeDataModel: RuntimeDataModel; - modelName?: string; - action: Action; - args?: JsArgs; - extensions?: MergedExtensionsList; - callsite?: CallSite; - clientMethod: string; - clientVersion: string; - errorFormat: ErrorFormat; - previewFeatures: string[]; - globalOmit?: GlobalOmitOptions; -}; - -declare class Skip { - constructor(param?: symbol); - ifUndefined(value: T | undefined): T | Skip; -} - -export declare const skip: Skip; - -declare type SortOrder = 'asc' | 'desc'; - -/** - * An interface that represents a span. A span represents a single operation - * within a trace. Examples of span might include remote procedure calls or a - * in-process function calls to sub-components. A Trace has a single, top-level - * "root" Span that in turn may have zero or more child Spans, which in turn - * may have children. - * - * Spans are created by the {@link Tracer.startSpan} method. - */ -declare interface Span { - /** - * Returns the {@link SpanContext} object associated with this Span. - * - * Get an immutable, serializable identifier for this span that can be used - * to create new child spans. Returned SpanContext is usable even after the - * span ends. - * - * @returns the SpanContext object associated with this Span. - */ - spanContext(): SpanContext; - /** - * Sets an attribute to the span. - * - * Sets a single Attribute with the key and value passed as arguments. - * - * @param key the key for this attribute. - * @param value the value for this attribute. Setting a value null or - * undefined is invalid and will result in undefined behavior. - */ - setAttribute(key: string, value: SpanAttributeValue): this; - /** - * Sets attributes to the span. - * - * @param attributes the attributes that will be added. - * null or undefined attribute values - * are invalid and will result in undefined behavior. - */ - setAttributes(attributes: SpanAttributes): this; - /** - * Adds an event to the Span. - * - * @param name the name of the event. - * @param [attributesOrStartTime] the attributes that will be added; these are - * associated with this event. Can be also a start time - * if type is {@type TimeInput} and 3rd param is undefined - * @param [startTime] start time of the event. - */ - addEvent(name: string, attributesOrStartTime?: SpanAttributes | TimeInput, startTime?: TimeInput): this; - /** - * Adds a single link to the span. - * - * Links added after the creation will not affect the sampling decision. - * It is preferred span links be added at span creation. - * - * @param link the link to add. - */ - addLink(link: Link): this; - /** - * Adds multiple links to the span. - * - * Links added after the creation will not affect the sampling decision. - * It is preferred span links be added at span creation. - * - * @param links the links to add. - */ - addLinks(links: Link[]): this; - /** - * Sets a status to the span. If used, this will override the default Span - * status. Default is {@link SpanStatusCode.UNSET}. SetStatus overrides the value - * of previous calls to SetStatus on the Span. - * - * @param status the SpanStatus to set. - */ - setStatus(status: SpanStatus): this; - /** - * Updates the Span name. - * - * This will override the name provided via {@link Tracer.startSpan}. - * - * Upon this update, any sampling behavior based on Span name will depend on - * the implementation. - * - * @param name the Span name. - */ - updateName(name: string): this; - /** - * Marks the end of Span execution. - * - * Call to End of a Span MUST not have any effects on child spans. Those may - * still be running and can be ended later. - * - * Do not return `this`. The Span generally should not be used after it - * is ended so chaining is not desired in this context. - * - * @param [endTime] the time to set as Span's end time. If not provided, - * use the current time as the span's end time. - */ - end(endTime?: TimeInput): void; - /** - * Returns the flag whether this span will be recorded. - * - * @returns true if this Span is active and recording information like events - * with the `AddEvent` operation and attributes using `setAttributes`. - */ - isRecording(): boolean; - /** - * Sets exception as a span event - * @param exception the exception the only accepted values are string or Error - * @param [time] the time to set as Span's event time. If not provided, - * use the current time. - */ - recordException(exception: Exception, time?: TimeInput): void; -} - -/** - * @deprecated please use {@link Attributes} - */ -declare type SpanAttributes = Attributes; - -/** - * @deprecated please use {@link AttributeValue} - */ -declare type SpanAttributeValue = AttributeValue; - -declare type SpanCallback = (span?: Span, context?: Context) => R; - -/** - * A SpanContext represents the portion of a {@link Span} which must be - * serialized and propagated along side of a {@link Baggage}. - */ -declare interface SpanContext { - /** - * The ID of the trace that this span belongs to. It is worldwide unique - * with practically sufficient probability by being made as 16 randomly - * generated bytes, encoded as a 32 lowercase hex characters corresponding to - * 128 bits. - */ - traceId: string; - /** - * The ID of the Span. It is globally unique with practically sufficient - * probability by being made as 8 randomly generated bytes, encoded as a 16 - * lowercase hex characters corresponding to 64 bits. - */ - spanId: string; - /** - * Only true if the SpanContext was propagated from a remote parent. - */ - isRemote?: boolean; - /** - * Trace flags to propagate. - * - * It is represented as 1 byte (bitmap). Bit to represent whether trace is - * sampled or not. When set, the least significant bit documents that the - * caller may have recorded trace data. A caller who does not record trace - * data out-of-band leaves this flag unset. - * - * see {@link TraceFlags} for valid flag values. - */ - traceFlags: number; - /** - * Tracing-system-specific info to propagate. - * - * The tracestate field value is a `list` as defined below. The `list` is a - * series of `list-members` separated by commas `,`, and a list-member is a - * key/value pair separated by an equals sign `=`. Spaces and horizontal tabs - * surrounding `list-members` are ignored. There can be a maximum of 32 - * `list-members` in a `list`. - * More Info: https://www.w3.org/TR/trace-context/#tracestate-field - * - * Examples: - * Single tracing system (generic format): - * tracestate: rojo=00f067aa0ba902b7 - * Multiple tracing systems (with different formatting): - * tracestate: rojo=00f067aa0ba902b7,congo=t61rcWkgMzE - */ - traceState?: TraceState; -} - -declare enum SpanKind { - /** Default value. Indicates that the span is used internally. */ - INTERNAL = 0, - /** - * Indicates that the span covers server-side handling of an RPC or other - * remote request. - */ - SERVER = 1, - /** - * Indicates that the span covers the client-side wrapper around an RPC or - * other remote request. - */ - CLIENT = 2, - /** - * Indicates that the span describes producer sending a message to a - * broker. Unlike client and server, there is no direct critical path latency - * relationship between producer and consumer spans. - */ - PRODUCER = 3, - /** - * Indicates that the span describes consumer receiving a message from a - * broker. Unlike client and server, there is no direct critical path latency - * relationship between producer and consumer spans. - */ - CONSUMER = 4 -} - -/** - * Options needed for span creation - */ -declare interface SpanOptions { - /** - * The SpanKind of a span - * @default {@link SpanKind.INTERNAL} - */ - kind?: SpanKind; - /** A span's attributes */ - attributes?: SpanAttributes; - /** {@link Link}s span to other spans */ - links?: Link[]; - /** A manually specified start time for the created `Span` object. */ - startTime?: TimeInput; - /** The new span should be a root span. (Ignore parent from context). */ - root?: boolean; -} - -declare interface SpanStatus { - /** The status code of this message. */ - code: SpanStatusCode; - /** A developer-facing error message. */ - message?: string; -} - -/** - * An enumeration of status codes. - */ -declare enum SpanStatusCode { - /** - * The default status. - */ - UNSET = 0, - /** - * The operation has been validated by an Application developer or - * Operator to have completed successfully. - */ - OK = 1, - /** - * The operation contains an error. - */ - ERROR = 2 -} - -/** - * A SQL instance can be nested within each other to build SQL strings. - */ -export declare class Sql { - readonly values: Value[]; - readonly strings: string[]; - constructor(rawStrings: readonly string[], rawValues: readonly RawValue[]); - get sql(): string; - get statement(): string; - get text(): string; - inspect(): { - sql: string; - statement: string; - text: string; - values: unknown[]; - }; -} - -declare interface SqlDriverAdapter extends SqlQueryable { - /** - * Execute multiple SQL statements separated by semicolon. - */ - executeScript(script: string): Promise; - /** - * Start new transaction. - */ - startTransaction(isolationLevel?: IsolationLevel): Promise; - /** - * Optional method that returns extra connection info - */ - getConnectionInfo?(): ConnectionInfo; - /** - * Dispose of the connection and release any resources. - */ - dispose(): Promise; -} - -export declare interface SqlDriverAdapterFactory extends DriverAdapterFactory { - connect(): Promise; -} - -declare type SqlQuery = { - sql: string; - args: Array; - argTypes: Array; -}; - -declare interface SqlQueryable extends Queryable { -} - -declare interface SqlResultSet { - /** - * List of column types appearing in a database query, in the same order as `columnNames`. - * They are used within the Query Engine to convert values from JS to Quaint values. - */ - columnTypes: Array; - /** - * List of column names appearing in a database query, in the same order as `columnTypes`. - */ - columnNames: Array; - /** - * List of rows retrieved from a database query. - * Each row is a list of values, whose length matches `columnNames` and `columnTypes`. - */ - rows: Array>; - /** - * The last ID of an `INSERT` statement, if any. - * This is required for `AUTO_INCREMENT` columns in databases based on MySQL and SQLite. - */ - lastInsertId?: string; -} - -/** - * Create a SQL object from a template string. - */ -export declare function sqltag(strings: readonly string[], ...values: readonly RawValue[]): Sql; - -/** - * Defines TimeInput. - * - * hrtime, epoch milliseconds, performance.now() or Date - */ -declare type TimeInput = HrTime_2 | number | Date; - -export declare type ToTuple = T extends any[] ? T : [T]; - -declare interface TraceState { - /** - * Create a new TraceState which inherits from this TraceState and has the - * given key set. - * The new entry will always be added in the front of the list of states. - * - * @param key key of the TraceState entry. - * @param value value of the TraceState entry. - */ - set(key: string, value: string): TraceState; - /** - * Return a new TraceState which inherits from this TraceState but does not - * contain the given key. - * - * @param key the key for the TraceState entry to be removed. - */ - unset(key: string): TraceState; - /** - * Returns the value to which the specified key is mapped, or `undefined` if - * this map contains no mapping for the key. - * - * @param key with which the specified value is to be associated. - * @returns the value to which the specified key is mapped, or `undefined` if - * this map contains no mapping for the key. - */ - get(key: string): string | undefined; - /** - * Serializes the TraceState to a `list` as defined below. The `list` is a - * series of `list-members` separated by commas `,`, and a list-member is a - * key/value pair separated by an equals sign `=`. Spaces and horizontal tabs - * surrounding `list-members` are ignored. There can be a maximum of 32 - * `list-members` in a `list`. - * - * @returns the serialized string. - */ - serialize(): string; -} - -declare interface TracingHelper { - isEnabled(): boolean; - getTraceParent(context?: Context): string; - dispatchEngineSpans(spans: EngineSpan[]): void; - getActiveContext(): Context | undefined; - runInChildSpan(nameOrOptions: string | ExtendedSpanOptions, callback: SpanCallback): R; -} - -declare interface Transaction extends AdapterInfo, SqlQueryable { - /** - * Transaction options. - */ - readonly options: TransactionOptions; - /** - * Commit the transaction. - */ - commit(): Promise; - /** - * Roll back the transaction. - */ - rollback(): Promise; -} - -declare namespace Transaction_2 { - export { - Options, - IsolationLevel_2 as IsolationLevel, - InteractiveTransactionInfo, - TransactionHeaders - } -} - -declare type TransactionHeaders = { - traceparent?: string; -}; - -declare type TransactionOptions = { - usePhantomQuery: boolean; -}; - -declare type TransactionOptions_2 = { - kind: 'itx'; - options: InteractiveTransactionOptions; -} | { - kind: 'batch'; - options: BatchTransactionOptions; -}; - -export declare class TypedSql { - [PrivateResultType]: Result; - constructor(sql: string, values: Values); - get sql(): string; - get values(): Values; -} - -export declare type TypeMapCbDef = Fn<{ - extArgs: InternalArgs; -}, TypeMapDef>; - -/** Shared */ -export declare type TypeMapDef = Record; - -declare type TypeRef = { - isList: boolean; - type: string; - location: AllowedLocations; - namespace?: FieldNamespace; -}; - -declare namespace Types { - export { - Result_3 as Result, - Extensions_2 as Extensions, - Utils, - Public_2 as Public, - isSkip, - Skip, - skip, - UnknownTypedSql, - OperationPayload as Payload - } -} -export { Types } - -declare type uniqueIndex = ReadonlyDeep_2<{ - name: string; - fields: string[]; -}>; - -declare type UnknownErrorParams = { - clientVersion: string; - batchRequestIdx?: number; -}; - -export declare type UnknownTypedSql = TypedSql; - -declare type Unpacker = (data: any) => any; - -export declare type UnwrapPayload

= {} extends P ? unknown : { - [K in keyof P]: P[K] extends { - scalars: infer S; - composites: infer C; - }[] ? Array> : P[K] extends { - scalars: infer S; - composites: infer C; - } | null ? S & UnwrapPayload | Select : never; -}; - -export declare type UnwrapPromise

= P extends Promise ? R : P; - -export declare type UnwrapTuple = { - [K in keyof Tuple]: K extends `${number}` ? Tuple[K] extends PrismaPromise ? X : UnwrapPromise : UnwrapPromise; -}; - -/** - * Input that flows from the user into the Client. - */ -declare type UserArgs_2 = any; - -declare namespace Utils { - export { - EmptyToUnknown, - NeverToUnknown, - PatchFlat, - Omit_2 as Omit, - Pick_2 as Pick, - ComputeDeep, - Compute, - OptionalFlat, - ReadonlyDeep, - Narrowable, - Narrow, - Exact, - Cast, - Record_2 as Record, - UnwrapPromise, - UnwrapTuple, - Path, - Fn, - Call, - RequiredKeys, - OptionalKeys, - Optional, - Return, - ToTuple, - RenameAndNestPayloadKeys, - PayloadToResult, - Select, - Equals, - Or, - JsPromise - } -} - -declare function validator(): (select: Exact) => S; - -declare function validator, O extends keyof C[M] & Operation>(client: C, model: M, operation: O): (select: Exact>) => S; - -declare function validator, O extends keyof C[M] & Operation, P extends keyof Args>(client: C, model: M, operation: O, prop: P): (select: Exact[P]>) => S; - -/** - * Values supported by SQL engine. - */ -export declare type Value = unknown; - -export declare function warnEnvConflicts(envPaths: any): void; - -export declare const warnOnce: (key: string, message: string, ...args: unknown[]) => void; - -export { } diff --git a/prisma/generated/client/runtime/library.js b/prisma/generated/client/runtime/library.js deleted file mode 100644 index f06ad3f..0000000 --- a/prisma/generated/client/runtime/library.js +++ /dev/null @@ -1,146 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! -/* eslint-disable */ -"use strict";var xu=Object.create;var Vt=Object.defineProperty;var vu=Object.getOwnPropertyDescriptor;var Pu=Object.getOwnPropertyNames;var Tu=Object.getPrototypeOf,Su=Object.prototype.hasOwnProperty;var Oo=(e,r)=>()=>(e&&(r=e(e=0)),r);var ne=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),tr=(e,r)=>{for(var t in r)Vt(e,t,{get:r[t],enumerable:!0})},_o=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Pu(r))!Su.call(e,i)&&i!==t&&Vt(e,i,{get:()=>r[i],enumerable:!(n=vu(r,i))||n.enumerable});return e};var A=(e,r,t)=>(t=e!=null?xu(Tu(e)):{},_o(r||!e||!e.__esModule?Vt(t,"default",{value:e,enumerable:!0}):t,e)),Ru=e=>_o(Vt({},"__esModule",{value:!0}),e);var yi=ne((Fg,ss)=>{"use strict";ss.exports=(e,r=process.argv)=>{let t=e.startsWith("-")?"":e.length===1?"-":"--",n=r.indexOf(t+e),i=r.indexOf("--");return n!==-1&&(i===-1||n{"use strict";var jc=require("node:os"),as=require("node:tty"),de=yi(),{env:G}=process,Qe;de("no-color")||de("no-colors")||de("color=false")||de("color=never")?Qe=0:(de("color")||de("colors")||de("color=true")||de("color=always"))&&(Qe=1);"FORCE_COLOR"in G&&(G.FORCE_COLOR==="true"?Qe=1:G.FORCE_COLOR==="false"?Qe=0:Qe=G.FORCE_COLOR.length===0?1:Math.min(parseInt(G.FORCE_COLOR,10),3));function bi(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Ei(e,r){if(Qe===0)return 0;if(de("color=16m")||de("color=full")||de("color=truecolor"))return 3;if(de("color=256"))return 2;if(e&&!r&&Qe===void 0)return 0;let t=Qe||0;if(G.TERM==="dumb")return t;if(process.platform==="win32"){let n=jc.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in G)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in G)||G.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in G)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(G.TEAMCITY_VERSION)?1:0;if(G.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in G){let n=parseInt((G.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(G.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(G.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(G.TERM)||"COLORTERM"in G?1:t}function Vc(e){let r=Ei(e,e&&e.isTTY);return bi(r)}ls.exports={supportsColor:Vc,stdout:bi(Ei(!0,as.isatty(1))),stderr:bi(Ei(!0,as.isatty(2)))}});var ds=ne(($g,ps)=>{"use strict";var Bc=us(),br=yi();function cs(e){if(/^\d{3,4}$/.test(e)){let t=/(\d{1,2})(\d{2})/.exec(e)||[];return{major:0,minor:parseInt(t[1],10),patch:parseInt(t[2],10)}}let r=(e||"").split(".").map(t=>parseInt(t,10));return{major:r[0],minor:r[1],patch:r[2]}}function wi(e){let{CI:r,FORCE_HYPERLINK:t,NETLIFY:n,TEAMCITY_VERSION:i,TERM_PROGRAM:o,TERM_PROGRAM_VERSION:s,VTE_VERSION:a,TERM:l}=process.env;if(t)return!(t.length>0&&parseInt(t,10)===0);if(br("no-hyperlink")||br("no-hyperlinks")||br("hyperlink=false")||br("hyperlink=never"))return!1;if(br("hyperlink=true")||br("hyperlink=always")||n)return!0;if(!Bc.supportsColor(e)||e&&!e.isTTY)return!1;if("WT_SESSION"in process.env)return!0;if(process.platform==="win32"||r||i)return!1;if(o){let u=cs(s||"");switch(o){case"iTerm.app":return u.major===3?u.minor>=1:u.major>3;case"WezTerm":return u.major>=20200620;case"vscode":return u.major>1||u.major===1&&u.minor>=72;case"ghostty":return!0}}if(a){if(a==="0.50.0")return!1;let u=cs(a);return u.major>0||u.minor>=50}switch(l){case"alacritty":return!0}return!1}ps.exports={supportsHyperlink:wi,stdout:wi(process.stdout),stderr:wi(process.stderr)}});var ms=ne((zg,Uc)=>{Uc.exports={name:"@prisma/internals",version:"6.12.0",description:"This package is intended for Prisma's internal use",main:"dist/index.js",types:"dist/index.d.ts",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/internals"},homepage:"https://www.prisma.io",author:"Tim Suchanek ",bugs:"https://github.com/prisma/prisma/issues",license:"Apache-2.0",scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",test:"dotenv -e ../../.db.env -- jest --silent",prepublishOnly:"pnpm run build"},files:["README.md","dist","!**/libquery_engine*","!dist/get-generators/engines/*","scripts"],devDependencies:{"@babel/helper-validator-identifier":"7.25.9","@opentelemetry/api":"1.9.0","@swc/core":"1.11.5","@swc/jest":"0.2.37","@types/babel__helper-validator-identifier":"7.15.2","@types/jest":"29.5.14","@types/node":"18.19.76","@types/resolve":"1.20.6",archiver:"6.0.2","checkpoint-client":"1.1.33","cli-truncate":"4.0.0",dotenv:"16.5.0",esbuild:"0.25.5","escape-string-regexp":"5.0.0",execa:"5.1.1","fast-glob":"3.3.3","find-up":"7.0.0","fp-ts":"2.16.9","fs-extra":"11.3.0","fs-jetpack":"5.1.0","global-dirs":"4.0.0",globby:"11.1.0","identifier-regex":"1.0.0","indent-string":"4.0.0","is-windows":"1.0.2","is-wsl":"3.1.0",jest:"29.7.0","jest-junit":"16.0.0",kleur:"4.1.5","mock-stdin":"1.0.0","new-github-issue-url":"0.2.1","node-fetch":"3.3.2","npm-packlist":"5.1.3",open:"7.4.2","p-map":"4.0.0","read-package-up":"11.0.0",resolve:"1.22.10","string-width":"7.2.0","strip-ansi":"6.0.1","strip-indent":"4.0.0","temp-dir":"2.0.0",tempy:"1.0.1","terminal-link":"4.0.0",tmp:"0.2.3","ts-node":"10.9.2","ts-pattern":"5.6.2","ts-toolbelt":"9.6.0",typescript:"5.4.5",yarn:"1.22.22"},dependencies:{"@prisma/config":"workspace:*","@prisma/debug":"workspace:*","@prisma/dmmf":"workspace:*","@prisma/driver-adapter-utils":"workspace:*","@prisma/engines":"workspace:*","@prisma/fetch-engine":"workspace:*","@prisma/generator":"workspace:*","@prisma/generator-helper":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/prisma-schema-wasm":"6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc","@prisma/schema-engine-wasm":"6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc","@prisma/schema-files-loader":"workspace:*",arg:"5.0.2",prompts:"2.4.2"},peerDependencies:{typescript:">=5.1.0"},peerDependenciesMeta:{typescript:{optional:!0}},sideEffects:!1}});var Pi=ne((ih,Jc)=>{Jc.exports={name:"@prisma/engines-version",version:"6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek ",prisma:{enginesVersion:"8047c96bbd92db98a2abc7c9323ce77c02c89dbc"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.76",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var tn=ne(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.enginesVersion=void 0;rn.enginesVersion=Pi().prisma.enginesVersion});var ys=ne((bh,hs)=>{"use strict";hs.exports=e=>{let r=e.match(/^[ \t]*(?=\S)/gm);return r?r.reduce((t,n)=>Math.min(t,n.length),1/0):0}});var Ii=ne((xh,ws)=>{"use strict";ws.exports=(e,r=1,t)=>{if(t={indent:" ",includeEmptyLines:!1,...t},typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof r!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof r}\``);if(typeof t.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof t.indent}\``);if(r===0)return e;let n=t.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,t.indent.repeat(r))}});var Ts=ne((Th,Ps)=>{"use strict";Ps.exports=({onlyFirst:e=!1}={})=>{let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(r,e?void 0:"g")}});var _i=ne((Sh,Ss)=>{"use strict";var np=Ts();Ss.exports=e=>typeof e=="string"?e.replace(np(),""):e});var Rs=ne((Ih,ip)=>{ip.exports={name:"dotenv",version:"16.5.0",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},homepage:"https://github.com/motdotla/dotenv#readme",funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var Ds=ne((kh,Ne)=>{"use strict";var Li=require("node:fs"),Fi=require("node:path"),op=require("node:os"),sp=require("node:crypto"),ap=Rs(),As=ap.version,lp=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function up(e){let r={},t=e.toString();t=t.replace(/\r\n?/mg,` -`);let n;for(;(n=lp.exec(t))!=null;){let i=n[1],o=n[2]||"";o=o.trim();let s=o[0];o=o.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),s==='"'&&(o=o.replace(/\\n/g,` -`),o=o.replace(/\\r/g,"\r")),r[i]=o}return r}function cp(e){let r=ks(e),t=B.configDotenv({path:r});if(!t.parsed){let s=new Error(`MISSING_DATA: Cannot parse ${r} for an unknown reason`);throw s.code="MISSING_DATA",s}let n=Is(e).split(","),i=n.length,o;for(let s=0;s=i)throw a}return B.parse(o)}function pp(e){console.log(`[dotenv@${As}][WARN] ${e}`)}function it(e){console.log(`[dotenv@${As}][DEBUG] ${e}`)}function Is(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function dp(e,r){let t;try{t=new URL(r)}catch(a){if(a.code==="ERR_INVALID_URL"){let l=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw l.code="INVALID_DOTENV_KEY",l}throw a}let n=t.password;if(!n){let a=new Error("INVALID_DOTENV_KEY: Missing key part");throw a.code="INVALID_DOTENV_KEY",a}let i=t.searchParams.get("environment");if(!i){let a=new Error("INVALID_DOTENV_KEY: Missing environment part");throw a.code="INVALID_DOTENV_KEY",a}let o=`DOTENV_VAULT_${i.toUpperCase()}`,s=e.parsed[o];if(!s){let a=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);throw a.code="NOT_FOUND_DOTENV_ENVIRONMENT",a}return{ciphertext:s,key:n}}function ks(e){let r=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let t of e.path)Li.existsSync(t)&&(r=t.endsWith(".vault")?t:`${t}.vault`);else r=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else r=Fi.resolve(process.cwd(),".env.vault");return Li.existsSync(r)?r:null}function Cs(e){return e[0]==="~"?Fi.join(op.homedir(),e.slice(1)):e}function mp(e){!!(e&&e.debug)&&it("Loading env from encrypted .env.vault");let t=B._parseVault(e),n=process.env;return e&&e.processEnv!=null&&(n=e.processEnv),B.populate(n,t,e),{parsed:t}}function fp(e){let r=Fi.resolve(process.cwd(),".env"),t="utf8",n=!!(e&&e.debug);e&&e.encoding?t=e.encoding:n&&it("No encoding is specified. UTF-8 is used by default");let i=[r];if(e&&e.path)if(!Array.isArray(e.path))i=[Cs(e.path)];else{i=[];for(let l of e.path)i.push(Cs(l))}let o,s={};for(let l of i)try{let u=B.parse(Li.readFileSync(l,{encoding:t}));B.populate(s,u,e)}catch(u){n&&it(`Failed to load ${l} ${u.message}`),o=u}let a=process.env;return e&&e.processEnv!=null&&(a=e.processEnv),B.populate(a,s,e),o?{parsed:s,error:o}:{parsed:s}}function gp(e){if(Is(e).length===0)return B.configDotenv(e);let r=ks(e);return r?B._configVault(e):(pp(`You set DOTENV_KEY but you are missing a .env.vault file at ${r}. Did you forget to build it?`),B.configDotenv(e))}function hp(e,r){let t=Buffer.from(r.slice(-64),"hex"),n=Buffer.from(e,"base64"),i=n.subarray(0,12),o=n.subarray(-16);n=n.subarray(12,-16);try{let s=sp.createDecipheriv("aes-256-gcm",t,i);return s.setAuthTag(o),`${s.update(n)}${s.final()}`}catch(s){let a=s instanceof RangeError,l=s.message==="Invalid key length",u=s.message==="Unsupported state or unable to authenticate data";if(a||l){let c=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw c.code="INVALID_DOTENV_KEY",c}else if(u){let c=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw c.code="DECRYPTION_FAILED",c}else throw s}}function yp(e,r,t={}){let n=!!(t&&t.debug),i=!!(t&&t.override);if(typeof r!="object"){let o=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw o.code="OBJECT_REQUIRED",o}for(let o of Object.keys(r))Object.prototype.hasOwnProperty.call(e,o)?(i===!0&&(e[o]=r[o]),n&&it(i===!0?`"${o}" is already defined and WAS overwritten`:`"${o}" is already defined and was NOT overwritten`)):e[o]=r[o]}var B={configDotenv:fp,_configVault:mp,_parseVault:cp,config:gp,decrypt:hp,parse:up,populate:yp};Ne.exports.configDotenv=B.configDotenv;Ne.exports._configVault=B._configVault;Ne.exports._parseVault=B._parseVault;Ne.exports.config=B.config;Ne.exports.decrypt=B.decrypt;Ne.exports.parse=B.parse;Ne.exports.populate=B.populate;Ne.exports=B});var Ls=ne((Fh,ln)=>{"use strict";ln.exports=(e={})=>{let r;if(e.repoUrl)r=e.repoUrl;else if(e.user&&e.repo)r=`https://github.com/${e.user}/${e.repo}`;else throw new Error("You need to specify either the `repoUrl` option or both the `user` and `repo` options");let t=new URL(`${r}/issues/new`),n=["body","title","labels","template","milestone","assignee","projects"];for(let i of n){let o=e[i];if(o!==void 0){if(i==="labels"||i==="projects"){if(!Array.isArray(o))throw new TypeError(`The \`${i}\` option should be an array`);o=o.join(",")}t.searchParams.set(i,o)}}return t.toString()};ln.exports.default=ln.exports});var Ji=ne((mb,ia)=>{"use strict";ia.exports=function(){function e(r,t,n,i,o){return rn?n+1:r+1:i===o?t:t+1}return function(r,t){if(r===t)return 0;if(r.length>t.length){var n=r;r=t,t=n}for(var i=r.length,o=t.length;i>0&&r.charCodeAt(i-1)===t.charCodeAt(o-1);)i--,o--;for(var s=0;s{"use strict"});var ca=Oo(()=>{"use strict"});var Gf={};tr(Gf,{DMMF:()=>ut,Debug:()=>N,Decimal:()=>ve,Extensions:()=>ii,MetricsClient:()=>Lr,PrismaClientInitializationError:()=>T,PrismaClientKnownRequestError:()=>z,PrismaClientRustPanicError:()=>le,PrismaClientUnknownRequestError:()=>j,PrismaClientValidationError:()=>Z,Public:()=>oi,Sql:()=>oe,createParam:()=>Ra,defineDmmfProperty:()=>Oa,deserializeJsonResponse:()=>Tr,deserializeRawResult:()=>ei,dmmfToRuntimeDataModel:()=>Zs,empty:()=>La,getPrismaClient:()=>bu,getRuntime:()=>Bn,join:()=>Na,makeStrictEnum:()=>Eu,makeTypedQueryFactory:()=>_a,objectEnumValues:()=>An,raw:()=>to,serializeJsonQuery:()=>Ln,skip:()=>Nn,sqltag:()=>no,warnEnvConflicts:()=>wu,warnOnce:()=>st});module.exports=Ru(Gf);var ii={};tr(ii,{defineExtension:()=>No,getExtensionContext:()=>Lo});function No(e){return typeof e=="function"?e:r=>r.$extends(e)}function Lo(e){return e}var oi={};tr(oi,{validator:()=>Fo});function Fo(...e){return r=>r}var Bt={};tr(Bt,{$:()=>Vo,bgBlack:()=>Fu,bgBlue:()=>ju,bgCyan:()=>Bu,bgGreen:()=>$u,bgMagenta:()=>Vu,bgRed:()=>Mu,bgWhite:()=>Uu,bgYellow:()=>qu,black:()=>Ou,blue:()=>nr,bold:()=>W,cyan:()=>De,dim:()=>Ie,gray:()=>Hr,green:()=>qe,grey:()=>Lu,hidden:()=>ku,inverse:()=>Iu,italic:()=>Au,magenta:()=>_u,red:()=>ce,reset:()=>Cu,strikethrough:()=>Du,underline:()=>Y,white:()=>Nu,yellow:()=>ke});var si,Mo,$o,qo,jo=!0;typeof process<"u"&&({FORCE_COLOR:si,NODE_DISABLE_COLORS:Mo,NO_COLOR:$o,TERM:qo}=process.env||{},jo=process.stdout&&process.stdout.isTTY);var Vo={enabled:!Mo&&$o==null&&qo!=="dumb"&&(si!=null&&si!=="0"||jo)};function F(e,r){let t=new RegExp(`\\x1b\\[${r}m`,"g"),n=`\x1B[${e}m`,i=`\x1B[${r}m`;return function(o){return!Vo.enabled||o==null?o:n+(~(""+o).indexOf(i)?o.replace(t,i+n):o)+i}}var Cu=F(0,0),W=F(1,22),Ie=F(2,22),Au=F(3,23),Y=F(4,24),Iu=F(7,27),ku=F(8,28),Du=F(9,29),Ou=F(30,39),ce=F(31,39),qe=F(32,39),ke=F(33,39),nr=F(34,39),_u=F(35,39),De=F(36,39),Nu=F(37,39),Hr=F(90,39),Lu=F(90,39),Fu=F(40,49),Mu=F(41,49),$u=F(42,49),qu=F(43,49),ju=F(44,49),Vu=F(45,49),Bu=F(46,49),Uu=F(47,49);var Gu=100,Bo=["green","yellow","blue","magenta","cyan","red"],Kr=[],Uo=Date.now(),Qu=0,ai=typeof process<"u"?process.env:{};globalThis.DEBUG??=ai.DEBUG??"";globalThis.DEBUG_COLORS??=ai.DEBUG_COLORS?ai.DEBUG_COLORS==="true":!0;var Yr={enable(e){typeof e=="string"&&(globalThis.DEBUG=e)},disable(){let e=globalThis.DEBUG;return globalThis.DEBUG="",e},enabled(e){let r=globalThis.DEBUG.split(",").map(i=>i.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),t=r.some(i=>i===""||i[0]==="-"?!1:e.match(RegExp(i.split("*").join(".*")+"$"))),n=r.some(i=>i===""||i[0]!=="-"?!1:e.match(RegExp(i.slice(1).split("*").join(".*")+"$")));return t&&!n},log:(...e)=>{let[r,t,...n]=e;(console.warn??console.log)(`${r} ${t}`,...n)},formatters:{}};function Wu(e){let r={color:Bo[Qu++%Bo.length],enabled:Yr.enabled(e),namespace:e,log:Yr.log,extend:()=>{}},t=(...n)=>{let{enabled:i,namespace:o,color:s,log:a}=r;if(n.length!==0&&Kr.push([o,...n]),Kr.length>Gu&&Kr.shift(),Yr.enabled(o)||i){let l=n.map(c=>typeof c=="string"?c:Ju(c)),u=`+${Date.now()-Uo}ms`;Uo=Date.now(),globalThis.DEBUG_COLORS?a(Bt[s](W(o)),...l,Bt[s](u)):a(o,...l,u)}};return new Proxy(t,{get:(n,i)=>r[i],set:(n,i,o)=>r[i]=o})}var N=new Proxy(Wu,{get:(e,r)=>Yr[r],set:(e,r,t)=>Yr[r]=t});function Ju(e,r=2){let t=new Set;return JSON.stringify(e,(n,i)=>{if(typeof i=="object"&&i!==null){if(t.has(i))return"[Circular *]";t.add(i)}else if(typeof i=="bigint")return i.toString();return i},r)}function Go(e=7500){let r=Kr.map(([t,...n])=>`${t} ${n.map(i=>typeof i=="string"?i:JSON.stringify(i)).join(" ")}`).join(` -`);return r.length!!(e&&typeof e=="object"),Qt=e=>e&&!!e[Oe],Ee=(e,r,t)=>{if(Qt(e)){let n=e[Oe](),{matched:i,selections:o}=n.match(r);return i&&o&&Object.keys(o).forEach(s=>t(s,o[s])),i}if(ci(e)){if(!ci(r))return!1;if(Array.isArray(e)){if(!Array.isArray(r))return!1;let n=[],i=[],o=[];for(let s of e.keys()){let a=e[s];Qt(a)&&a[Hu]?o.push(a):o.length?i.push(a):n.push(a)}if(o.length){if(o.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(r.lengthEe(u,s[c],t))&&i.every((u,c)=>Ee(u,a[c],t))&&(o.length===0||Ee(o[0],l,t))}return e.length===r.length&&e.every((s,a)=>Ee(s,r[a],t))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in r||Qt(o=i)&&o[Oe]().matcherType==="optional")&&Ee(i,r[n],t);var o})}return Object.is(r,e)},Ge=e=>{var r,t,n;return ci(e)?Qt(e)?(r=(t=(n=e[Oe]()).getSelectionKeys)==null?void 0:t.call(n))!=null?r:[]:Array.isArray(e)?zr(e,Ge):zr(Object.values(e),Ge):[]},zr=(e,r)=>e.reduce((t,n)=>t.concat(r(n)),[]);function pe(e){return Object.assign(e,{optional:()=>Ku(e),and:r=>q(e,r),or:r=>Yu(e,r),select:r=>r===void 0?Jo(e):Jo(r,e)})}function Ku(e){return pe({[Oe]:()=>({match:r=>{let t={},n=(i,o)=>{t[i]=o};return r===void 0?(Ge(e).forEach(i=>n(i,void 0)),{matched:!0,selections:t}):{matched:Ee(e,r,n),selections:t}},getSelectionKeys:()=>Ge(e),matcherType:"optional"})})}function q(...e){return pe({[Oe]:()=>({match:r=>{let t={},n=(i,o)=>{t[i]=o};return{matched:e.every(i=>Ee(i,r,n)),selections:t}},getSelectionKeys:()=>zr(e,Ge),matcherType:"and"})})}function Yu(...e){return pe({[Oe]:()=>({match:r=>{let t={},n=(i,o)=>{t[i]=o};return zr(e,Ge).forEach(i=>n(i,void 0)),{matched:e.some(i=>Ee(i,r,n)),selections:t}},getSelectionKeys:()=>zr(e,Ge),matcherType:"or"})})}function I(e){return{[Oe]:()=>({match:r=>({matched:!!e(r)})})}}function Jo(...e){let r=typeof e[0]=="string"?e[0]:void 0,t=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return pe({[Oe]:()=>({match:n=>{let i={[r??Wt]:n};return{matched:t===void 0||Ee(t,n,(o,s)=>{i[o]=s}),selections:i}},getSelectionKeys:()=>[r??Wt].concat(t===void 0?[]:Ge(t))})})}function ye(e){return typeof e=="number"}function je(e){return typeof e=="string"}function Ve(e){return typeof e=="bigint"}var ng=pe(I(function(e){return!0}));var Be=e=>Object.assign(pe(e),{startsWith:r=>{return Be(q(e,(t=r,I(n=>je(n)&&n.startsWith(t)))));var t},endsWith:r=>{return Be(q(e,(t=r,I(n=>je(n)&&n.endsWith(t)))));var t},minLength:r=>Be(q(e,(t=>I(n=>je(n)&&n.length>=t))(r))),length:r=>Be(q(e,(t=>I(n=>je(n)&&n.length===t))(r))),maxLength:r=>Be(q(e,(t=>I(n=>je(n)&&n.length<=t))(r))),includes:r=>{return Be(q(e,(t=r,I(n=>je(n)&&n.includes(t)))));var t},regex:r=>{return Be(q(e,(t=r,I(n=>je(n)&&!!n.match(t)))));var t}}),ig=Be(I(je)),be=e=>Object.assign(pe(e),{between:(r,t)=>be(q(e,((n,i)=>I(o=>ye(o)&&n<=o&&i>=o))(r,t))),lt:r=>be(q(e,(t=>I(n=>ye(n)&&nbe(q(e,(t=>I(n=>ye(n)&&n>t))(r))),lte:r=>be(q(e,(t=>I(n=>ye(n)&&n<=t))(r))),gte:r=>be(q(e,(t=>I(n=>ye(n)&&n>=t))(r))),int:()=>be(q(e,I(r=>ye(r)&&Number.isInteger(r)))),finite:()=>be(q(e,I(r=>ye(r)&&Number.isFinite(r)))),positive:()=>be(q(e,I(r=>ye(r)&&r>0))),negative:()=>be(q(e,I(r=>ye(r)&&r<0)))}),og=be(I(ye)),Ue=e=>Object.assign(pe(e),{between:(r,t)=>Ue(q(e,((n,i)=>I(o=>Ve(o)&&n<=o&&i>=o))(r,t))),lt:r=>Ue(q(e,(t=>I(n=>Ve(n)&&nUe(q(e,(t=>I(n=>Ve(n)&&n>t))(r))),lte:r=>Ue(q(e,(t=>I(n=>Ve(n)&&n<=t))(r))),gte:r=>Ue(q(e,(t=>I(n=>Ve(n)&&n>=t))(r))),positive:()=>Ue(q(e,I(r=>Ve(r)&&r>0))),negative:()=>Ue(q(e,I(r=>Ve(r)&&r<0)))}),sg=Ue(I(Ve)),ag=pe(I(function(e){return typeof e=="boolean"})),lg=pe(I(function(e){return typeof e=="symbol"})),ug=pe(I(function(e){return e==null})),cg=pe(I(function(e){return e!=null}));var pi=class extends Error{constructor(r){let t;try{t=JSON.stringify(r)}catch{t=r}super(`Pattern matching error: no pattern matches value ${t}`),this.input=void 0,this.input=r}},di={matched:!1,value:void 0};function hr(e){return new mi(e,di)}var mi=class e{constructor(r,t){this.input=void 0,this.state=void 0,this.input=r,this.state=t}with(...r){if(this.state.matched)return this;let t=r[r.length-1],n=[r[0]],i;r.length===3&&typeof r[1]=="function"?i=r[1]:r.length>2&&n.push(...r.slice(1,r.length-1));let o=!1,s={},a=(u,c)=>{o=!0,s[u]=c},l=!n.some(u=>Ee(u,this.input,a))||i&&!i(this.input)?di:{matched:!0,value:t(o?Wt in s?s[Wt]:s:this.input,this.input)};return new e(this.input,l)}when(r,t){if(this.state.matched)return this;let n=!!r(this.input);return new e(this.input,n?{matched:!0,value:t(this.input,this.input)}:di)}otherwise(r){return this.state.matched?this.state.value:r(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new pi(this.input)}run(){return this.exhaustive()}returnType(){return this}};var zo=require("node:util");var zu={warn:ke("prisma:warn")},Zu={warn:()=>!process.env.PRISMA_DISABLE_WARNINGS};function Jt(e,...r){Zu.warn()&&console.warn(`${zu.warn} ${e}`,...r)}var Xu=(0,zo.promisify)(Yo.default.exec),ee=gr("prisma:get-platform"),ec=["1.0.x","1.1.x","3.0.x"];async function Zo(){let e=Kt.default.platform(),r=process.arch;if(e==="freebsd"){let s=await Yt("freebsd-version");if(s&&s.trim().length>0){let l=/^(\d+)\.?/.exec(s);if(l)return{platform:"freebsd",targetDistro:`freebsd${l[1]}`,arch:r}}}if(e!=="linux")return{platform:e,arch:r};let t=await tc(),n=await cc(),i=ic({arch:r,archFromUname:n,familyDistro:t.familyDistro}),{libssl:o}=await oc(i);return{platform:"linux",libssl:o,arch:r,archFromUname:n,...t}}function rc(e){let r=/^ID="?([^"\n]*)"?$/im,t=/^ID_LIKE="?([^"\n]*)"?$/im,n=r.exec(e),i=n&&n[1]&&n[1].toLowerCase()||"",o=t.exec(e),s=o&&o[1]&&o[1].toLowerCase()||"",a=hr({id:i,idLike:s}).with({id:"alpine"},({id:l})=>({targetDistro:"musl",familyDistro:l,originalDistro:l})).with({id:"raspbian"},({id:l})=>({targetDistro:"arm",familyDistro:"debian",originalDistro:l})).with({id:"nixos"},({id:l})=>({targetDistro:"nixos",originalDistro:l,familyDistro:"nixos"})).with({id:"debian"},{id:"ubuntu"},({id:l})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:l})).with({id:"rhel"},{id:"centos"},{id:"fedora"},({id:l})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:l})).when(({idLike:l})=>l.includes("debian")||l.includes("ubuntu"),({id:l})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:l})).when(({idLike:l})=>i==="arch"||l.includes("arch"),({id:l})=>({targetDistro:"debian",familyDistro:"arch",originalDistro:l})).when(({idLike:l})=>l.includes("centos")||l.includes("fedora")||l.includes("rhel")||l.includes("suse"),({id:l})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:l})).otherwise(({id:l})=>({targetDistro:void 0,familyDistro:void 0,originalDistro:l}));return ee(`Found distro info: -${JSON.stringify(a,null,2)}`),a}async function tc(){let e="/etc/os-release";try{let r=await fi.default.readFile(e,{encoding:"utf-8"});return rc(r)}catch{return{targetDistro:void 0,familyDistro:void 0,originalDistro:void 0}}}function nc(e){let r=/^OpenSSL\s(\d+\.\d+)\.\d+/.exec(e);if(r){let t=`${r[1]}.x`;return Xo(t)}}function Ho(e){let r=/libssl\.so\.(\d)(\.\d)?/.exec(e);if(r){let t=`${r[1]}${r[2]??".0"}.x`;return Xo(t)}}function Xo(e){let r=(()=>{if(rs(e))return e;let t=e.split(".");return t[1]="0",t.join(".")})();if(ec.includes(r))return r}function ic(e){return hr(e).with({familyDistro:"musl"},()=>(ee('Trying platform-specific paths for "alpine"'),["/lib","/usr/lib"])).with({familyDistro:"debian"},({archFromUname:r})=>(ee('Trying platform-specific paths for "debian" (and "ubuntu")'),[`/usr/lib/${r}-linux-gnu`,`/lib/${r}-linux-gnu`])).with({familyDistro:"rhel"},()=>(ee('Trying platform-specific paths for "rhel"'),["/lib64","/usr/lib64"])).otherwise(({familyDistro:r,arch:t,archFromUname:n})=>(ee(`Don't know any platform-specific paths for "${r}" on ${t} (${n})`),[]))}async function oc(e){let r='grep -v "libssl.so.0"',t=await Ko(e);if(t){ee(`Found libssl.so file using platform-specific paths: ${t}`);let o=Ho(t);if(ee(`The parsed libssl version is: ${o}`),o)return{libssl:o,strategy:"libssl-specific-path"}}ee('Falling back to "ldconfig" and other generic paths');let n=await Yt(`ldconfig -p | sed "s/.*=>s*//" | sed "s|.*/||" | grep libssl | sort | ${r}`);if(n||(n=await Ko(["/lib64","/usr/lib64","/lib","/usr/lib"])),n){ee(`Found libssl.so file using "ldconfig" or other generic paths: ${n}`);let o=Ho(n);if(ee(`The parsed libssl version is: ${o}`),o)return{libssl:o,strategy:"ldconfig"}}let i=await Yt("openssl version -v");if(i){ee(`Found openssl binary with version: ${i}`);let o=nc(i);if(ee(`The parsed openssl version is: ${o}`),o)return{libssl:o,strategy:"openssl-binary"}}return ee("Couldn't find any version of libssl or OpenSSL in the system"),{}}async function Ko(e){for(let r of e){let t=await sc(r);if(t)return t}}async function sc(e){try{return(await fi.default.readdir(e)).find(t=>t.startsWith("libssl.so.")&&!t.startsWith("libssl.so.0"))}catch(r){if(r.code==="ENOENT")return;throw r}}async function ir(){let{binaryTarget:e}=await es();return e}function ac(e){return e.binaryTarget!==void 0}async function gi(){let{memoized:e,...r}=await es();return r}var Ht={};async function es(){if(ac(Ht))return Promise.resolve({...Ht,memoized:!0});let e=await Zo(),r=lc(e);return Ht={...e,binaryTarget:r},{...Ht,memoized:!1}}function lc(e){let{platform:r,arch:t,archFromUname:n,libssl:i,targetDistro:o,familyDistro:s,originalDistro:a}=e;r==="linux"&&!["x64","arm64"].includes(t)&&Jt(`Prisma only officially supports Linux on amd64 (x86_64) and arm64 (aarch64) system architectures (detected "${t}" instead). If you are using your own custom Prisma engines, you can ignore this warning, as long as you've compiled the engines for your system architecture "${n}".`);let l="1.1.x";if(r==="linux"&&i===void 0){let c=hr({familyDistro:s}).with({familyDistro:"debian"},()=>"Please manually install OpenSSL via `apt-get update -y && apt-get install -y openssl` and try installing Prisma again. If you're running Prisma on Docker, add this command to your Dockerfile, or switch to an image that already has OpenSSL installed.").otherwise(()=>"Please manually install OpenSSL and try installing Prisma again.");Jt(`Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-${l}". -${c}`)}let u="debian";if(r==="linux"&&o===void 0&&ee(`Distro is "${a}". Falling back to Prisma engines built for "${u}".`),r==="darwin"&&t==="arm64")return"darwin-arm64";if(r==="darwin")return"darwin";if(r==="win32")return"windows";if(r==="freebsd")return o;if(r==="openbsd")return"openbsd";if(r==="netbsd")return"netbsd";if(r==="linux"&&o==="nixos")return"linux-nixos";if(r==="linux"&&t==="arm64")return`${o==="musl"?"linux-musl-arm64":"linux-arm64"}-openssl-${i||l}`;if(r==="linux"&&t==="arm")return`linux-arm-openssl-${i||l}`;if(r==="linux"&&o==="musl"){let c="linux-musl";return!i||rs(i)?c:`${c}-openssl-${i}`}return r==="linux"&&o&&i?`${o}-openssl-${i}`:(r!=="linux"&&Jt(`Prisma detected unknown OS "${r}" and may not work as expected. Defaulting to "linux".`),i?`${u}-openssl-${i}`:o?`${o}-openssl-${l}`:`${u}-openssl-${l}`)}async function uc(e){try{return await e()}catch{return}}function Yt(e){return uc(async()=>{let r=await Xu(e);return ee(`Command "${e}" successfully returned "${r.stdout}"`),r.stdout})}async function cc(){return typeof Kt.default.machine=="function"?Kt.default.machine():(await Yt("uname -m"))?.trim()}function rs(e){return e.startsWith("1.")}var Xt={};tr(Xt,{beep:()=>Fc,clearScreen:()=>Oc,clearTerminal:()=>_c,cursorBackward:()=>yc,cursorDown:()=>gc,cursorForward:()=>hc,cursorGetPosition:()=>wc,cursorHide:()=>Pc,cursorLeft:()=>is,cursorMove:()=>fc,cursorNextLine:()=>xc,cursorPrevLine:()=>vc,cursorRestorePosition:()=>Ec,cursorSavePosition:()=>bc,cursorShow:()=>Tc,cursorTo:()=>mc,cursorUp:()=>ns,enterAlternativeScreen:()=>Nc,eraseDown:()=>Ac,eraseEndLine:()=>Rc,eraseLine:()=>os,eraseLines:()=>Sc,eraseScreen:()=>hi,eraseStartLine:()=>Cc,eraseUp:()=>Ic,exitAlternativeScreen:()=>Lc,iTerm:()=>qc,image:()=>$c,link:()=>Mc,scrollDown:()=>Dc,scrollUp:()=>kc});var Zt=A(require("node:process"),1);var zt=globalThis.window?.document!==void 0,bg=globalThis.process?.versions?.node!==void 0,Eg=globalThis.process?.versions?.bun!==void 0,wg=globalThis.Deno?.version?.deno!==void 0,xg=globalThis.process?.versions?.electron!==void 0,vg=globalThis.navigator?.userAgent?.includes("jsdom")===!0,Pg=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,Tg=typeof DedicatedWorkerGlobalScope<"u"&&globalThis instanceof DedicatedWorkerGlobalScope,Sg=typeof SharedWorkerGlobalScope<"u"&&globalThis instanceof SharedWorkerGlobalScope,Rg=typeof ServiceWorkerGlobalScope<"u"&&globalThis instanceof ServiceWorkerGlobalScope,Zr=globalThis.navigator?.userAgentData?.platform,Cg=Zr==="macOS"||globalThis.navigator?.platform==="MacIntel"||globalThis.navigator?.userAgent?.includes(" Mac ")===!0||globalThis.process?.platform==="darwin",Ag=Zr==="Windows"||globalThis.navigator?.platform==="Win32"||globalThis.process?.platform==="win32",Ig=Zr==="Linux"||globalThis.navigator?.platform?.startsWith("Linux")===!0||globalThis.navigator?.userAgent?.includes(" Linux ")===!0||globalThis.process?.platform==="linux",kg=Zr==="iOS"||globalThis.navigator?.platform==="MacIntel"&&globalThis.navigator?.maxTouchPoints>1||/iPad|iPhone|iPod/.test(globalThis.navigator?.platform),Dg=Zr==="Android"||globalThis.navigator?.platform==="Android"||globalThis.navigator?.userAgent?.includes(" Android ")===!0||globalThis.process?.platform==="android";var k="\x1B[",et="\x1B]",yr="\x07",Xr=";",ts=!zt&&Zt.default.env.TERM_PROGRAM==="Apple_Terminal",pc=!zt&&Zt.default.platform==="win32",dc=zt?()=>{throw new Error("`process.cwd()` only works in Node.js, not the browser.")}:Zt.default.cwd,mc=(e,r)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof r!="number"?k+(e+1)+"G":k+(r+1)+Xr+(e+1)+"H"},fc=(e,r)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let t="";return e<0?t+=k+-e+"D":e>0&&(t+=k+e+"C"),r<0?t+=k+-r+"A":r>0&&(t+=k+r+"B"),t},ns=(e=1)=>k+e+"A",gc=(e=1)=>k+e+"B",hc=(e=1)=>k+e+"C",yc=(e=1)=>k+e+"D",is=k+"G",bc=ts?"\x1B7":k+"s",Ec=ts?"\x1B8":k+"u",wc=k+"6n",xc=k+"E",vc=k+"F",Pc=k+"?25l",Tc=k+"?25h",Sc=e=>{let r="";for(let t=0;t[et,"8",Xr,Xr,r,yr,e,et,"8",Xr,Xr,yr].join(""),$c=(e,r={})=>{let t=`${et}1337;File=inline=1`;return r.width&&(t+=`;width=${r.width}`),r.height&&(t+=`;height=${r.height}`),r.preserveAspectRatio===!1&&(t+=";preserveAspectRatio=0"),t+":"+Buffer.from(e).toString("base64")+yr},qc={setCwd:(e=dc())=>`${et}50;CurrentDir=${e}${yr}`,annotation(e,r={}){let t=`${et}1337;`,n=r.x!==void 0,i=r.y!==void 0;if((n||i)&&!(n&&i&&r.length!==void 0))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replaceAll("|",""),t+=r.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",r.length>0?t+=(n?[e,r.length,r.x,r.y]:[r.length,e]).join("|"):t+=e,t+yr}};var en=A(ds(),1);function or(e,r,{target:t="stdout",...n}={}){return en.default[t]?Xt.link(e,r):n.fallback===!1?e:typeof n.fallback=="function"?n.fallback(e,r):`${e} (\u200B${r}\u200B)`}or.isSupported=en.default.stdout;or.stderr=(e,r,t={})=>or(e,r,{target:"stderr",...t});or.stderr.isSupported=en.default.stderr;function xi(e){return or(e,e,{fallback:Y})}var Gc=ms(),vi=Gc.version;function Er(e){let r=Qc();return r||(e?.config.engineType==="library"?"library":e?.config.engineType==="binary"?"binary":e?.config.engineType==="client"?"client":Wc(e))}function Qc(){let e=process.env.PRISMA_CLIENT_ENGINE_TYPE;return e==="library"?"library":e==="binary"?"binary":e==="client"?"client":void 0}function Wc(e){return e?.previewFeatures.includes("queryCompiler")?"client":"library"}var Hc=A(tn());var M=A(require("node:path")),Kc=A(tn()),uh=N("prisma:engines");function fs(){return M.default.join(__dirname,"../")}var ch="libquery-engine";M.default.join(__dirname,"../query-engine-darwin");M.default.join(__dirname,"../query-engine-darwin-arm64");M.default.join(__dirname,"../query-engine-debian-openssl-1.0.x");M.default.join(__dirname,"../query-engine-debian-openssl-1.1.x");M.default.join(__dirname,"../query-engine-debian-openssl-3.0.x");M.default.join(__dirname,"../query-engine-linux-static-x64");M.default.join(__dirname,"../query-engine-linux-static-arm64");M.default.join(__dirname,"../query-engine-rhel-openssl-1.0.x");M.default.join(__dirname,"../query-engine-rhel-openssl-1.1.x");M.default.join(__dirname,"../query-engine-rhel-openssl-3.0.x");M.default.join(__dirname,"../libquery_engine-darwin.dylib.node");M.default.join(__dirname,"../libquery_engine-darwin-arm64.dylib.node");M.default.join(__dirname,"../libquery_engine-debian-openssl-1.0.x.so.node");M.default.join(__dirname,"../libquery_engine-debian-openssl-1.1.x.so.node");M.default.join(__dirname,"../libquery_engine-debian-openssl-3.0.x.so.node");M.default.join(__dirname,"../libquery_engine-linux-arm64-openssl-1.0.x.so.node");M.default.join(__dirname,"../libquery_engine-linux-arm64-openssl-1.1.x.so.node");M.default.join(__dirname,"../libquery_engine-linux-arm64-openssl-3.0.x.so.node");M.default.join(__dirname,"../libquery_engine-linux-musl.so.node");M.default.join(__dirname,"../libquery_engine-linux-musl-openssl-3.0.x.so.node");M.default.join(__dirname,"../libquery_engine-rhel-openssl-1.0.x.so.node");M.default.join(__dirname,"../libquery_engine-rhel-openssl-1.1.x.so.node");M.default.join(__dirname,"../libquery_engine-rhel-openssl-3.0.x.so.node");M.default.join(__dirname,"../query_engine-windows.dll.node");var Ti=A(require("node:fs")),gs=gr("chmodPlusX");function Si(e){if(process.platform==="win32")return;let r=Ti.default.statSync(e),t=r.mode|64|8|1;if(r.mode===t){gs(`Execution permissions of ${e} are fine`);return}let n=t.toString(8).slice(-3);gs(`Have to call chmodPlusX on ${e}`),Ti.default.chmodSync(e,n)}function Ri(e){let r=e.e,t=a=>`Prisma cannot find the required \`${a}\` system library in your system`,n=r.message.includes("cannot open shared object file"),i=`Please refer to the documentation about Prisma's system requirements: ${xi("https://pris.ly/d/system-requirements")}`,o=`Unable to require(\`${Ie(e.id)}\`).`,s=hr({message:r.message,code:r.code}).with({code:"ENOENT"},()=>"File does not exist.").when(({message:a})=>n&&a.includes("libz"),()=>`${t("libz")}. Please install it and try again.`).when(({message:a})=>n&&a.includes("libgcc_s"),()=>`${t("libgcc_s")}. Please install it and try again.`).when(({message:a})=>n&&a.includes("libssl"),()=>{let a=e.platformInfo.libssl?`openssl-${e.platformInfo.libssl}`:"openssl";return`${t("libssl")}. Please install ${a} and try again.`}).when(({message:a})=>a.includes("GLIBC"),()=>`Prisma has detected an incompatible version of the \`glibc\` C standard library installed in your system. This probably means your system may be too old to run Prisma. ${i}`).when(({message:a})=>e.platformInfo.platform==="linux"&&a.includes("symbol not found"),()=>`The Prisma engines are not compatible with your system ${e.platformInfo.originalDistro} on (${e.platformInfo.archFromUname}) which uses the \`${e.platformInfo.binaryTarget}\` binaryTarget by default. ${i}`).otherwise(()=>`The Prisma engines do not seem to be compatible with your system. ${i}`);return`${o} -${s} - -Details: ${r.message}`}var bs=A(ys(),1);function Ci(e){let r=(0,bs.default)(e);if(r===0)return e;let t=new RegExp(`^[ \\t]{${r}}`,"gm");return e.replace(t,"")}var Es="prisma+postgres",nn=`${Es}:`;function on(e){return e?.toString().startsWith(`${nn}//`)??!1}function Ai(e){if(!on(e))return!1;let{host:r}=new URL(e);return r.includes("localhost")||r.includes("127.0.0.1")||r.includes("[::1]")}var xs=A(Ii());function Di(e){return String(new ki(e))}var ki=class{constructor(r){this.config=r}toString(){let{config:r}=this,t=r.provider.fromEnvVar?`env("${r.provider.fromEnvVar}")`:r.provider.value,n=JSON.parse(JSON.stringify({provider:t,binaryTargets:Yc(r.binaryTargets)}));return`generator ${r.name} { -${(0,xs.default)(zc(n),2)} -}`}};function Yc(e){let r;if(e.length>0){let t=e.find(n=>n.fromEnvVar!==null);t?r=`env("${t.fromEnvVar}")`:r=e.map(n=>n.native?"native":n.value)}else r=void 0;return r}function zc(e){let r=Object.keys(e).reduce((t,n)=>Math.max(t,n.length),0);return Object.entries(e).map(([t,n])=>`${t.padEnd(r)} = ${Zc(n)}`).join(` -`)}function Zc(e){return JSON.parse(JSON.stringify(e,(r,t)=>Array.isArray(t)?`[${t.map(n=>JSON.stringify(n)).join(", ")}]`:JSON.stringify(t)))}var tt={};tr(tt,{error:()=>rp,info:()=>ep,log:()=>Xc,query:()=>tp,should:()=>vs,tags:()=>rt,warn:()=>Oi});var rt={error:ce("prisma:error"),warn:ke("prisma:warn"),info:De("prisma:info"),query:nr("prisma:query")},vs={warn:()=>!process.env.PRISMA_DISABLE_WARNINGS};function Xc(...e){console.log(...e)}function Oi(e,...r){vs.warn()&&console.warn(`${rt.warn} ${e}`,...r)}function ep(e,...r){console.info(`${rt.info} ${e}`,...r)}function rp(e,...r){console.error(`${rt.error} ${e}`,...r)}function tp(e,...r){console.log(`${rt.query} ${e}`,...r)}function sn(e,r){if(!e)throw new Error(`${r}. This should never happen. If you see this error, please, open an issue at https://pris.ly/prisma-prisma-bug-report`)}function _e(e,r){throw new Error(r)}var nt=A(require("node:path"));function Ni(e){return nt.default.sep===nt.default.posix.sep?e:e.split(nt.default.sep).join(nt.default.posix.sep)}var $i=A(Ds()),an=A(require("node:fs"));var wr=A(require("node:path"));function Os(e){let r=e.ignoreProcessEnv?{}:process.env,t=n=>n.match(/(.?\${(?:[a-zA-Z0-9_]+)?})/g)?.reduce(function(o,s){let a=/(.?)\${([a-zA-Z0-9_]+)?}/g.exec(s);if(!a)return o;let l=a[1],u,c;if(l==="\\")c=a[0],u=c.replace("\\$","$");else{let p=a[2];c=a[0].substring(l.length),u=Object.hasOwnProperty.call(r,p)?r[p]:e.parsed[p]||"",u=t(u)}return o.replace(c,u)},n)??n;for(let n in e.parsed){let i=Object.hasOwnProperty.call(r,n)?r[n]:e.parsed[n];e.parsed[n]=t(i)}for(let n in e.parsed)r[n]=e.parsed[n];return e}var Mi=gr("prisma:tryLoadEnv");function ot({rootEnvPath:e,schemaEnvPath:r},t={conflictCheck:"none"}){let n=_s(e);t.conflictCheck!=="none"&&bp(n,r,t.conflictCheck);let i=null;return Ns(n?.path,r)||(i=_s(r)),!n&&!i&&Mi("No Environment variables loaded"),i?.dotenvResult.error?console.error(ce(W("Schema Env Error: "))+i.dotenvResult.error):{message:[n?.message,i?.message].filter(Boolean).join(` -`),parsed:{...n?.dotenvResult?.parsed,...i?.dotenvResult?.parsed}}}function bp(e,r,t){let n=e?.dotenvResult.parsed,i=!Ns(e?.path,r);if(n&&r&&i&&an.default.existsSync(r)){let o=$i.default.parse(an.default.readFileSync(r)),s=[];for(let a in o)n[a]===o[a]&&s.push(a);if(s.length>0){let a=wr.default.relative(process.cwd(),e.path),l=wr.default.relative(process.cwd(),r);if(t==="error"){let u=`There is a conflict between env var${s.length>1?"s":""} in ${Y(a)} and ${Y(l)} -Conflicting env vars: -${s.map(c=>` ${W(c)}`).join(` -`)} - -We suggest to move the contents of ${Y(l)} to ${Y(a)} to consolidate your env vars. -`;throw new Error(u)}else if(t==="warn"){let u=`Conflict for env var${s.length>1?"s":""} ${s.map(c=>W(c)).join(", ")} in ${Y(a)} and ${Y(l)} -Env vars from ${Y(l)} overwrite the ones from ${Y(a)} - `;console.warn(`${ke("warn(prisma)")} ${u}`)}}}}function _s(e){if(Ep(e)){Mi(`Environment variables loaded from ${e}`);let r=$i.default.config({path:e,debug:process.env.DOTENV_CONFIG_DEBUG?!0:void 0});return{dotenvResult:Os(r),message:Ie(`Environment variables loaded from ${wr.default.relative(process.cwd(),e)}`),path:e}}else Mi(`Environment variables not found at ${e}`);return null}function Ns(e,r){return e&&r&&wr.default.resolve(e)===wr.default.resolve(r)}function Ep(e){return!!(e&&an.default.existsSync(e))}function qi(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function xr(e,r){let t={};for(let n of Object.keys(e))t[n]=r(e[n],n);return t}function ji(e,r){if(e.length===0)return;let t=e[0];for(let n=1;n{Fs.has(e)||(Fs.add(e),Oi(r,...t))};var T=class e extends Error{clientVersion;errorCode;retryable;constructor(r,t,n){super(r),this.name="PrismaClientInitializationError",this.clientVersion=t,this.errorCode=n,Error.captureStackTrace(e)}get[Symbol.toStringTag](){return"PrismaClientInitializationError"}};x(T,"PrismaClientInitializationError");var z=class extends Error{code;meta;clientVersion;batchRequestIdx;constructor(r,{code:t,clientVersion:n,meta:i,batchRequestIdx:o}){super(r),this.name="PrismaClientKnownRequestError",this.code=t,this.clientVersion=n,this.meta=i,Object.defineProperty(this,"batchRequestIdx",{value:o,enumerable:!1,writable:!0})}get[Symbol.toStringTag](){return"PrismaClientKnownRequestError"}};x(z,"PrismaClientKnownRequestError");var le=class extends Error{clientVersion;constructor(r,t){super(r),this.name="PrismaClientRustPanicError",this.clientVersion=t}get[Symbol.toStringTag](){return"PrismaClientRustPanicError"}};x(le,"PrismaClientRustPanicError");var j=class extends Error{clientVersion;batchRequestIdx;constructor(r,{clientVersion:t,batchRequestIdx:n}){super(r),this.name="PrismaClientUnknownRequestError",this.clientVersion=t,Object.defineProperty(this,"batchRequestIdx",{value:n,writable:!0,enumerable:!1})}get[Symbol.toStringTag](){return"PrismaClientUnknownRequestError"}};x(j,"PrismaClientUnknownRequestError");var Z=class extends Error{name="PrismaClientValidationError";clientVersion;constructor(r,{clientVersion:t}){super(r),this.clientVersion=t}get[Symbol.toStringTag](){return"PrismaClientValidationError"}};x(Z,"PrismaClientValidationError");var vr=9e15,Ke=1e9,Vi="0123456789abcdef",dn="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",mn="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Bi={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-vr,maxE:vr,crypto:!1},js,Le,w=!0,gn="[DecimalError] ",He=gn+"Invalid argument: ",Vs=gn+"Precision limit exceeded",Bs=gn+"crypto unavailable",Us="[object Decimal]",X=Math.floor,U=Math.pow,wp=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,xp=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,vp=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Gs=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,fe=1e7,E=7,Pp=9007199254740991,Tp=dn.length-1,Ui=mn.length-1,m={toStringTag:Us};m.absoluteValue=m.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),y(e)};m.ceil=function(){return y(new this.constructor(this),this.e+1,2)};m.clampedTo=m.clamp=function(e,r){var t,n=this,i=n.constructor;if(e=new i(e),r=new i(r),!e.s||!r.s)return new i(NaN);if(e.gt(r))throw Error(He+r);return t=n.cmp(e),t<0?e:n.cmp(r)>0?r:new i(n)};m.comparedTo=m.cmp=function(e){var r,t,n,i,o=this,s=o.d,a=(e=new o.constructor(e)).d,l=o.s,u=e.s;if(!s||!a)return!l||!u?NaN:l!==u?l:s===a?0:!s^l<0?1:-1;if(!s[0]||!a[0])return s[0]?l:a[0]?-u:0;if(l!==u)return l;if(o.e!==e.e)return o.e>e.e^l<0?1:-1;for(n=s.length,i=a.length,r=0,t=na[r]^l<0?1:-1;return n===i?0:n>i^l<0?1:-1};m.cosine=m.cos=function(){var e,r,t=this,n=t.constructor;return t.d?t.d[0]?(e=n.precision,r=n.rounding,n.precision=e+Math.max(t.e,t.sd())+E,n.rounding=1,t=Sp(n,Ks(n,t)),n.precision=e,n.rounding=r,y(Le==2||Le==3?t.neg():t,e,r,!0)):new n(1):new n(NaN)};m.cubeRoot=m.cbrt=function(){var e,r,t,n,i,o,s,a,l,u,c=this,p=c.constructor;if(!c.isFinite()||c.isZero())return new p(c);for(w=!1,o=c.s*U(c.s*c,1/3),!o||Math.abs(o)==1/0?(t=J(c.d),e=c.e,(o=(e-t.length+1)%3)&&(t+=o==1||o==-2?"0":"00"),o=U(t,1/3),e=X((e+1)/3)-(e%3==(e<0?-1:2)),o==1/0?t="5e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new p(t),n.s=c.s):n=new p(o.toString()),s=(e=p.precision)+3;;)if(a=n,l=a.times(a).times(a),u=l.plus(c),n=L(u.plus(c).times(a),u.plus(l),s+2,1),J(a.d).slice(0,s)===(t=J(n.d)).slice(0,s))if(t=t.slice(s-3,s+1),t=="9999"||!i&&t=="4999"){if(!i&&(y(a,e+1,0),a.times(a).times(a).eq(c))){n=a;break}s+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(y(n,e+1,1),r=!n.times(n).times(n).eq(c));break}return w=!0,y(n,e,p.rounding,r)};m.decimalPlaces=m.dp=function(){var e,r=this.d,t=NaN;if(r){if(e=r.length-1,t=(e-X(this.e/E))*E,e=r[e],e)for(;e%10==0;e/=10)t--;t<0&&(t=0)}return t};m.dividedBy=m.div=function(e){return L(this,new this.constructor(e))};m.dividedToIntegerBy=m.divToInt=function(e){var r=this,t=r.constructor;return y(L(r,new t(e),0,1,1),t.precision,t.rounding)};m.equals=m.eq=function(e){return this.cmp(e)===0};m.floor=function(){return y(new this.constructor(this),this.e+1,3)};m.greaterThan=m.gt=function(e){return this.cmp(e)>0};m.greaterThanOrEqualTo=m.gte=function(e){var r=this.cmp(e);return r==1||r===0};m.hyperbolicCosine=m.cosh=function(){var e,r,t,n,i,o=this,s=o.constructor,a=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return a;t=s.precision,n=s.rounding,s.precision=t+Math.max(o.e,o.sd())+4,s.rounding=1,i=o.d.length,i<32?(e=Math.ceil(i/3),r=(1/yn(4,e)).toString()):(e=16,r="2.3283064365386962890625e-10"),o=Pr(s,1,o.times(r),new s(1),!0);for(var l,u=e,c=new s(8);u--;)l=o.times(o),o=a.minus(l.times(c.minus(l.times(c))));return y(o,s.precision=t,s.rounding=n,!0)};m.hyperbolicSine=m.sinh=function(){var e,r,t,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(r=o.precision,t=o.rounding,o.precision=r+Math.max(i.e,i.sd())+4,o.rounding=1,n=i.d.length,n<3)i=Pr(o,2,i,i,!0);else{e=1.4*Math.sqrt(n),e=e>16?16:e|0,i=i.times(1/yn(5,e)),i=Pr(o,2,i,i,!0);for(var s,a=new o(5),l=new o(16),u=new o(20);e--;)s=i.times(i),i=i.times(a.plus(s.times(l.times(s).plus(u))))}return o.precision=r,o.rounding=t,y(i,r,t,!0)};m.hyperbolicTangent=m.tanh=function(){var e,r,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(e=n.precision,r=n.rounding,n.precision=e+7,n.rounding=1,L(t.sinh(),t.cosh(),n.precision=e,n.rounding=r)):new n(t.s)};m.inverseCosine=m.acos=function(){var e=this,r=e.constructor,t=e.abs().cmp(1),n=r.precision,i=r.rounding;return t!==-1?t===0?e.isNeg()?we(r,n,i):new r(0):new r(NaN):e.isZero()?we(r,n+4,i).times(.5):(r.precision=n+6,r.rounding=1,e=new r(1).minus(e).div(e.plus(1)).sqrt().atan(),r.precision=n,r.rounding=i,e.times(2))};m.inverseHyperbolicCosine=m.acosh=function(){var e,r,t=this,n=t.constructor;return t.lte(1)?new n(t.eq(1)?0:NaN):t.isFinite()?(e=n.precision,r=n.rounding,n.precision=e+Math.max(Math.abs(t.e),t.sd())+4,n.rounding=1,w=!1,t=t.times(t).minus(1).sqrt().plus(t),w=!0,n.precision=e,n.rounding=r,t.ln()):new n(t)};m.inverseHyperbolicSine=m.asinh=function(){var e,r,t=this,n=t.constructor;return!t.isFinite()||t.isZero()?new n(t):(e=n.precision,r=n.rounding,n.precision=e+2*Math.max(Math.abs(t.e),t.sd())+6,n.rounding=1,w=!1,t=t.times(t).plus(1).sqrt().plus(t),w=!0,n.precision=e,n.rounding=r,t.ln())};m.inverseHyperbolicTangent=m.atanh=function(){var e,r,t,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,r=o.rounding,n=i.sd(),Math.max(n,e)<2*-i.e-1?y(new o(i),e,r,!0):(o.precision=t=n-i.e,i=L(i.plus(1),new o(1).minus(i),t+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=r,i.times(.5))):new o(NaN)};m.inverseSine=m.asin=function(){var e,r,t,n,i=this,o=i.constructor;return i.isZero()?new o(i):(r=i.abs().cmp(1),t=o.precision,n=o.rounding,r!==-1?r===0?(e=we(o,t+4,n).times(.5),e.s=i.s,e):new o(NaN):(o.precision=t+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=t,o.rounding=n,i.times(2)))};m.inverseTangent=m.atan=function(){var e,r,t,n,i,o,s,a,l,u=this,c=u.constructor,p=c.precision,d=c.rounding;if(u.isFinite()){if(u.isZero())return new c(u);if(u.abs().eq(1)&&p+4<=Ui)return s=we(c,p+4,d).times(.25),s.s=u.s,s}else{if(!u.s)return new c(NaN);if(p+4<=Ui)return s=we(c,p+4,d).times(.5),s.s=u.s,s}for(c.precision=a=p+10,c.rounding=1,t=Math.min(28,a/E+2|0),e=t;e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(w=!1,r=Math.ceil(a/E),n=1,l=u.times(u),s=new c(u),i=u;e!==-1;)if(i=i.times(l),o=s.minus(i.div(n+=2)),i=i.times(l),s=o.plus(i.div(n+=2)),s.d[r]!==void 0)for(e=r;s.d[e]===o.d[e]&&e--;);return t&&(s=s.times(2<this.d.length-2};m.isNaN=function(){return!this.s};m.isNegative=m.isNeg=function(){return this.s<0};m.isPositive=m.isPos=function(){return this.s>0};m.isZero=function(){return!!this.d&&this.d[0]===0};m.lessThan=m.lt=function(e){return this.cmp(e)<0};m.lessThanOrEqualTo=m.lte=function(e){return this.cmp(e)<1};m.logarithm=m.log=function(e){var r,t,n,i,o,s,a,l,u=this,c=u.constructor,p=c.precision,d=c.rounding,f=5;if(e==null)e=new c(10),r=!0;else{if(e=new c(e),t=e.d,e.s<0||!t||!t[0]||e.eq(1))return new c(NaN);r=e.eq(10)}if(t=u.d,u.s<0||!t||!t[0]||u.eq(1))return new c(t&&!t[0]?-1/0:u.s!=1?NaN:t?0:1/0);if(r)if(t.length>1)o=!0;else{for(i=t[0];i%10===0;)i/=10;o=i!==1}if(w=!1,a=p+f,s=Je(u,a),n=r?fn(c,a+10):Je(e,a),l=L(s,n,a,1),at(l.d,i=p,d))do if(a+=10,s=Je(u,a),n=r?fn(c,a+10):Je(e,a),l=L(s,n,a,1),!o){+J(l.d).slice(i+1,i+15)+1==1e14&&(l=y(l,p+1,0));break}while(at(l.d,i+=10,d));return w=!0,y(l,p,d)};m.minus=m.sub=function(e){var r,t,n,i,o,s,a,l,u,c,p,d,f=this,h=f.constructor;if(e=new h(e),!f.d||!e.d)return!f.s||!e.s?e=new h(NaN):f.d?e.s=-e.s:e=new h(e.d||f.s!==e.s?f:NaN),e;if(f.s!=e.s)return e.s=-e.s,f.plus(e);if(u=f.d,d=e.d,a=h.precision,l=h.rounding,!u[0]||!d[0]){if(d[0])e.s=-e.s;else if(u[0])e=new h(f);else return new h(l===3?-0:0);return w?y(e,a,l):e}if(t=X(e.e/E),c=X(f.e/E),u=u.slice(),o=c-t,o){for(p=o<0,p?(r=u,o=-o,s=d.length):(r=d,t=c,s=u.length),n=Math.max(Math.ceil(a/E),s)+2,o>n&&(o=n,r.length=1),r.reverse(),n=o;n--;)r.push(0);r.reverse()}else{for(n=u.length,s=d.length,p=n0;--n)u[s++]=0;for(n=d.length;n>o;){if(u[--n]s?o+1:s+1,i>s&&(i=s,t.length=1),t.reverse();i--;)t.push(0);t.reverse()}for(s=u.length,i=c.length,s-i<0&&(i=s,t=c,c=u,u=t),r=0;i;)r=(u[--i]=u[i]+c[i]+r)/fe|0,u[i]%=fe;for(r&&(u.unshift(r),++n),s=u.length;u[--s]==0;)u.pop();return e.d=u,e.e=hn(u,n),w?y(e,a,l):e};m.precision=m.sd=function(e){var r,t=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(He+e);return t.d?(r=Qs(t.d),e&&t.e+1>r&&(r=t.e+1)):r=NaN,r};m.round=function(){var e=this,r=e.constructor;return y(new r(e),e.e+1,r.rounding)};m.sine=m.sin=function(){var e,r,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(e=n.precision,r=n.rounding,n.precision=e+Math.max(t.e,t.sd())+E,n.rounding=1,t=Cp(n,Ks(n,t)),n.precision=e,n.rounding=r,y(Le>2?t.neg():t,e,r,!0)):new n(NaN)};m.squareRoot=m.sqrt=function(){var e,r,t,n,i,o,s=this,a=s.d,l=s.e,u=s.s,c=s.constructor;if(u!==1||!a||!a[0])return new c(!u||u<0&&(!a||a[0])?NaN:a?s:1/0);for(w=!1,u=Math.sqrt(+s),u==0||u==1/0?(r=J(a),(r.length+l)%2==0&&(r+="0"),u=Math.sqrt(r),l=X((l+1)/2)-(l<0||l%2),u==1/0?r="5e"+l:(r=u.toExponential(),r=r.slice(0,r.indexOf("e")+1)+l),n=new c(r)):n=new c(u.toString()),t=(l=c.precision)+3;;)if(o=n,n=o.plus(L(s,o,t+2,1)).times(.5),J(o.d).slice(0,t)===(r=J(n.d)).slice(0,t))if(r=r.slice(t-3,t+1),r=="9999"||!i&&r=="4999"){if(!i&&(y(o,l+1,0),o.times(o).eq(s))){n=o;break}t+=4,i=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&(y(n,l+1,1),e=!n.times(n).eq(s));break}return w=!0,y(n,l,c.rounding,e)};m.tangent=m.tan=function(){var e,r,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(e=n.precision,r=n.rounding,n.precision=e+10,n.rounding=1,t=t.sin(),t.s=1,t=L(t,new n(1).minus(t.times(t)).sqrt(),e+10,0),n.precision=e,n.rounding=r,y(Le==2||Le==4?t.neg():t,e,r,!0)):new n(NaN)};m.times=m.mul=function(e){var r,t,n,i,o,s,a,l,u,c=this,p=c.constructor,d=c.d,f=(e=new p(e)).d;if(e.s*=c.s,!d||!d[0]||!f||!f[0])return new p(!e.s||d&&!d[0]&&!f||f&&!f[0]&&!d?NaN:!d||!f?e.s/0:e.s*0);for(t=X(c.e/E)+X(e.e/E),l=d.length,u=f.length,l=0;){for(r=0,i=l+n;i>n;)a=o[i]+f[n]*d[i-n-1]+r,o[i--]=a%fe|0,r=a/fe|0;o[i]=(o[i]+r)%fe|0}for(;!o[--s];)o.pop();return r?++t:o.shift(),e.d=o,e.e=hn(o,t),w?y(e,p.precision,p.rounding):e};m.toBinary=function(e,r){return Qi(this,2,e,r)};m.toDecimalPlaces=m.toDP=function(e,r){var t=this,n=t.constructor;return t=new n(t),e===void 0?t:(ie(e,0,Ke),r===void 0?r=n.rounding:ie(r,0,8),y(t,e+t.e+1,r))};m.toExponential=function(e,r){var t,n=this,i=n.constructor;return e===void 0?t=xe(n,!0):(ie(e,0,Ke),r===void 0?r=i.rounding:ie(r,0,8),n=y(new i(n),e+1,r),t=xe(n,!0,e+1)),n.isNeg()&&!n.isZero()?"-"+t:t};m.toFixed=function(e,r){var t,n,i=this,o=i.constructor;return e===void 0?t=xe(i):(ie(e,0,Ke),r===void 0?r=o.rounding:ie(r,0,8),n=y(new o(i),e+i.e+1,r),t=xe(n,!1,e+n.e+1)),i.isNeg()&&!i.isZero()?"-"+t:t};m.toFraction=function(e){var r,t,n,i,o,s,a,l,u,c,p,d,f=this,h=f.d,g=f.constructor;if(!h)return new g(f);if(u=t=new g(1),n=l=new g(0),r=new g(n),o=r.e=Qs(h)-f.e-1,s=o%E,r.d[0]=U(10,s<0?E+s:s),e==null)e=o>0?r:u;else{if(a=new g(e),!a.isInt()||a.lt(u))throw Error(He+a);e=a.gt(r)?o>0?r:u:a}for(w=!1,a=new g(J(h)),c=g.precision,g.precision=o=h.length*E*2;p=L(a,r,0,1,1),i=t.plus(p.times(n)),i.cmp(e)!=1;)t=n,n=i,i=u,u=l.plus(p.times(i)),l=i,i=r,r=a.minus(p.times(i)),a=i;return i=L(e.minus(t),n,0,1,1),l=l.plus(i.times(u)),t=t.plus(i.times(n)),l.s=u.s=f.s,d=L(u,n,o,1).minus(f).abs().cmp(L(l,t,o,1).minus(f).abs())<1?[u,n]:[l,t],g.precision=c,w=!0,d};m.toHexadecimal=m.toHex=function(e,r){return Qi(this,16,e,r)};m.toNearest=function(e,r){var t=this,n=t.constructor;if(t=new n(t),e==null){if(!t.d)return t;e=new n(1),r=n.rounding}else{if(e=new n(e),r===void 0?r=n.rounding:ie(r,0,8),!t.d)return e.s?t:e;if(!e.d)return e.s&&(e.s=t.s),e}return e.d[0]?(w=!1,t=L(t,e,0,r,1).times(e),w=!0,y(t)):(e.s=t.s,t=e),t};m.toNumber=function(){return+this};m.toOctal=function(e,r){return Qi(this,8,e,r)};m.toPower=m.pow=function(e){var r,t,n,i,o,s,a=this,l=a.constructor,u=+(e=new l(e));if(!a.d||!e.d||!a.d[0]||!e.d[0])return new l(U(+a,u));if(a=new l(a),a.eq(1))return a;if(n=l.precision,o=l.rounding,e.eq(1))return y(a,n,o);if(r=X(e.e/E),r>=e.d.length-1&&(t=u<0?-u:u)<=Pp)return i=Ws(l,a,t,n),e.s<0?new l(1).div(i):y(i,n,o);if(s=a.s,s<0){if(rl.maxE+1||r0?s/0:0):(w=!1,l.rounding=a.s=1,t=Math.min(12,(r+"").length),i=Gi(e.times(Je(a,n+t)),n),i.d&&(i=y(i,n+5,1),at(i.d,n,o)&&(r=n+10,i=y(Gi(e.times(Je(a,r+t)),r),r+5,1),+J(i.d).slice(n+1,n+15)+1==1e14&&(i=y(i,n+1,0)))),i.s=s,w=!0,l.rounding=o,y(i,n,o))};m.toPrecision=function(e,r){var t,n=this,i=n.constructor;return e===void 0?t=xe(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(ie(e,1,Ke),r===void 0?r=i.rounding:ie(r,0,8),n=y(new i(n),e,r),t=xe(n,e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+t:t};m.toSignificantDigits=m.toSD=function(e,r){var t=this,n=t.constructor;return e===void 0?(e=n.precision,r=n.rounding):(ie(e,1,Ke),r===void 0?r=n.rounding:ie(r,0,8)),y(new n(t),e,r)};m.toString=function(){var e=this,r=e.constructor,t=xe(e,e.e<=r.toExpNeg||e.e>=r.toExpPos);return e.isNeg()&&!e.isZero()?"-"+t:t};m.truncated=m.trunc=function(){return y(new this.constructor(this),this.e+1,1)};m.valueOf=m.toJSON=function(){var e=this,r=e.constructor,t=xe(e,e.e<=r.toExpNeg||e.e>=r.toExpPos);return e.isNeg()?"-"+t:t};function J(e){var r,t,n,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,r=1;rt)throw Error(He+e)}function at(e,r,t,n){var i,o,s,a;for(o=e[0];o>=10;o/=10)--r;return--r<0?(r+=E,i=0):(i=Math.ceil((r+1)/E),r%=E),o=U(10,E-r),a=e[i]%o|0,n==null?r<3?(r==0?a=a/100|0:r==1&&(a=a/10|0),s=t<4&&a==99999||t>3&&a==49999||a==5e4||a==0):s=(t<4&&a+1==o||t>3&&a+1==o/2)&&(e[i+1]/o/100|0)==U(10,r-2)-1||(a==o/2||a==0)&&(e[i+1]/o/100|0)==0:r<4?(r==0?a=a/1e3|0:r==1?a=a/100|0:r==2&&(a=a/10|0),s=(n||t<4)&&a==9999||!n&&t>3&&a==4999):s=((n||t<4)&&a+1==o||!n&&t>3&&a+1==o/2)&&(e[i+1]/o/1e3|0)==U(10,r-3)-1,s}function cn(e,r,t){for(var n,i=[0],o,s=0,a=e.length;st-1&&(i[n+1]===void 0&&(i[n+1]=0),i[n+1]+=i[n]/t|0,i[n]%=t)}return i.reverse()}function Sp(e,r){var t,n,i;if(r.isZero())return r;n=r.d.length,n<32?(t=Math.ceil(n/3),i=(1/yn(4,t)).toString()):(t=16,i="2.3283064365386962890625e-10"),e.precision+=t,r=Pr(e,1,r.times(i),new e(1));for(var o=t;o--;){var s=r.times(r);r=s.times(s).minus(s).times(8).plus(1)}return e.precision-=t,r}var L=function(){function e(n,i,o){var s,a=0,l=n.length;for(n=n.slice();l--;)s=n[l]*i+a,n[l]=s%o|0,a=s/o|0;return a&&n.unshift(a),n}function r(n,i,o,s){var a,l;if(o!=s)l=o>s?1:-1;else for(a=l=0;ai[a]?1:-1;break}return l}function t(n,i,o,s){for(var a=0;o--;)n[o]-=a,a=n[o]1;)n.shift()}return function(n,i,o,s,a,l){var u,c,p,d,f,h,g,S,P,R,b,D,me,ae,Jr,V,te,Ae,H,fr,jt=n.constructor,ni=n.s==i.s?1:-1,K=n.d,_=i.d;if(!K||!K[0]||!_||!_[0])return new jt(!n.s||!i.s||(K?_&&K[0]==_[0]:!_)?NaN:K&&K[0]==0||!_?ni*0:ni/0);for(l?(f=1,c=n.e-i.e):(l=fe,f=E,c=X(n.e/f)-X(i.e/f)),H=_.length,te=K.length,P=new jt(ni),R=P.d=[],p=0;_[p]==(K[p]||0);p++);if(_[p]>(K[p]||0)&&c--,o==null?(ae=o=jt.precision,s=jt.rounding):a?ae=o+(n.e-i.e)+1:ae=o,ae<0)R.push(1),h=!0;else{if(ae=ae/f+2|0,p=0,H==1){for(d=0,_=_[0],ae++;(p1&&(_=e(_,d,l),K=e(K,d,l),H=_.length,te=K.length),V=H,b=K.slice(0,H),D=b.length;D=l/2&&++Ae;do d=0,u=r(_,b,H,D),u<0?(me=b[0],H!=D&&(me=me*l+(b[1]||0)),d=me/Ae|0,d>1?(d>=l&&(d=l-1),g=e(_,d,l),S=g.length,D=b.length,u=r(g,b,S,D),u==1&&(d--,t(g,H=10;d/=10)p++;P.e=p+c*f-1,y(P,a?o+P.e+1:o,s,h)}return P}}();function y(e,r,t,n){var i,o,s,a,l,u,c,p,d,f=e.constructor;e:if(r!=null){if(p=e.d,!p)return e;for(i=1,a=p[0];a>=10;a/=10)i++;if(o=r-i,o<0)o+=E,s=r,c=p[d=0],l=c/U(10,i-s-1)%10|0;else if(d=Math.ceil((o+1)/E),a=p.length,d>=a)if(n){for(;a++<=d;)p.push(0);c=l=0,i=1,o%=E,s=o-E+1}else break e;else{for(c=a=p[d],i=1;a>=10;a/=10)i++;o%=E,s=o-E+i,l=s<0?0:c/U(10,i-s-1)%10|0}if(n=n||r<0||p[d+1]!==void 0||(s<0?c:c%U(10,i-s-1)),u=t<4?(l||n)&&(t==0||t==(e.s<0?3:2)):l>5||l==5&&(t==4||n||t==6&&(o>0?s>0?c/U(10,i-s):0:p[d-1])%10&1||t==(e.s<0?8:7)),r<1||!p[0])return p.length=0,u?(r-=e.e+1,p[0]=U(10,(E-r%E)%E),e.e=-r||0):p[0]=e.e=0,e;if(o==0?(p.length=d,a=1,d--):(p.length=d+1,a=U(10,E-o),p[d]=s>0?(c/U(10,i-s)%U(10,s)|0)*a:0),u)for(;;)if(d==0){for(o=1,s=p[0];s>=10;s/=10)o++;for(s=p[0]+=a,a=1;s>=10;s/=10)a++;o!=a&&(e.e++,p[0]==fe&&(p[0]=1));break}else{if(p[d]+=a,p[d]!=fe)break;p[d--]=0,a=1}for(o=p.length;p[--o]===0;)p.pop()}return w&&(e.e>f.maxE?(e.d=null,e.e=NaN):e.e0?o=o.charAt(0)+"."+o.slice(1)+We(n):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+We(-i-1)+o,t&&(n=t-s)>0&&(o+=We(n))):i>=s?(o+=We(i+1-s),t&&(n=t-i-1)>0&&(o=o+"."+We(n))):((n=i+1)0&&(i+1===s&&(o+="."),o+=We(n))),o}function hn(e,r){var t=e[0];for(r*=E;t>=10;t/=10)r++;return r}function fn(e,r,t){if(r>Tp)throw w=!0,t&&(e.precision=t),Error(Vs);return y(new e(dn),r,1,!0)}function we(e,r,t){if(r>Ui)throw Error(Vs);return y(new e(mn),r,t,!0)}function Qs(e){var r=e.length-1,t=r*E+1;if(r=e[r],r){for(;r%10==0;r/=10)t--;for(r=e[0];r>=10;r/=10)t++}return t}function We(e){for(var r="";e--;)r+="0";return r}function Ws(e,r,t,n){var i,o=new e(1),s=Math.ceil(n/E+4);for(w=!1;;){if(t%2&&(o=o.times(r),$s(o.d,s)&&(i=!0)),t=X(t/2),t===0){t=o.d.length-1,i&&o.d[t]===0&&++o.d[t];break}r=r.times(r),$s(r.d,s)}return w=!0,o}function Ms(e){return e.d[e.d.length-1]&1}function Js(e,r,t){for(var n,i,o=new e(r[0]),s=0;++s17)return new d(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(r==null?(w=!1,l=h):l=r,a=new d(.03125);e.e>-2;)e=e.times(a),p+=5;for(n=Math.log(U(2,p))/Math.LN10*2+5|0,l+=n,t=o=s=new d(1),d.precision=l;;){if(o=y(o.times(e),l,1),t=t.times(++c),a=s.plus(L(o,t,l,1)),J(a.d).slice(0,l)===J(s.d).slice(0,l)){for(i=p;i--;)s=y(s.times(s),l,1);if(r==null)if(u<3&&at(s.d,l-n,f,u))d.precision=l+=10,t=o=a=new d(1),c=0,u++;else return y(s,d.precision=h,f,w=!0);else return d.precision=h,s}s=a}}function Je(e,r){var t,n,i,o,s,a,l,u,c,p,d,f=1,h=10,g=e,S=g.d,P=g.constructor,R=P.rounding,b=P.precision;if(g.s<0||!S||!S[0]||!g.e&&S[0]==1&&S.length==1)return new P(S&&!S[0]?-1/0:g.s!=1?NaN:S?0:g);if(r==null?(w=!1,c=b):c=r,P.precision=c+=h,t=J(S),n=t.charAt(0),Math.abs(o=g.e)<15e14){for(;n<7&&n!=1||n==1&&t.charAt(1)>3;)g=g.times(e),t=J(g.d),n=t.charAt(0),f++;o=g.e,n>1?(g=new P("0."+t),o++):g=new P(n+"."+t.slice(1))}else return u=fn(P,c+2,b).times(o+""),g=Je(new P(n+"."+t.slice(1)),c-h).plus(u),P.precision=b,r==null?y(g,b,R,w=!0):g;for(p=g,l=s=g=L(g.minus(1),g.plus(1),c,1),d=y(g.times(g),c,1),i=3;;){if(s=y(s.times(d),c,1),u=l.plus(L(s,new P(i),c,1)),J(u.d).slice(0,c)===J(l.d).slice(0,c))if(l=l.times(2),o!==0&&(l=l.plus(fn(P,c+2,b).times(o+""))),l=L(l,new P(f),c,1),r==null)if(at(l.d,c-h,R,a))P.precision=c+=h,u=s=g=L(p.minus(1),p.plus(1),c,1),d=y(g.times(g),c,1),i=a=1;else return y(l,P.precision=b,R,w=!0);else return P.precision=b,l;l=u,i+=2}}function Hs(e){return String(e.s*e.s/0)}function pn(e,r){var t,n,i;for((t=r.indexOf("."))>-1&&(r=r.replace(".","")),(n=r.search(/e/i))>0?(t<0&&(t=n),t+=+r.slice(n+1),r=r.substring(0,n)):t<0&&(t=r.length),n=0;r.charCodeAt(n)===48;n++);for(i=r.length;r.charCodeAt(i-1)===48;--i);if(r=r.slice(n,i),r){if(i-=n,e.e=t=t-n-1,e.d=[],n=(t+1)%E,t<0&&(n+=E),ne.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(r=r.replace(/(\d)_(?=\d)/g,"$1"),Gs.test(r))return pn(e,r)}else if(r==="Infinity"||r==="NaN")return+r||(e.s=NaN),e.e=NaN,e.d=null,e;if(xp.test(r))t=16,r=r.toLowerCase();else if(wp.test(r))t=2;else if(vp.test(r))t=8;else throw Error(He+r);for(o=r.search(/p/i),o>0?(l=+r.slice(o+1),r=r.substring(2,o)):r=r.slice(2),o=r.indexOf("."),s=o>=0,n=e.constructor,s&&(r=r.replace(".",""),a=r.length,o=a-o,i=Ws(n,new n(t),o,o*2)),u=cn(r,t,fe),c=u.length-1,o=c;u[o]===0;--o)u.pop();return o<0?new n(e.s*0):(e.e=hn(u,c),e.d=u,w=!1,s&&(e=L(e,i,a*4)),l&&(e=e.times(Math.abs(l)<54?U(2,l):sr.pow(2,l))),w=!0,e)}function Cp(e,r){var t,n=r.d.length;if(n<3)return r.isZero()?r:Pr(e,2,r,r);t=1.4*Math.sqrt(n),t=t>16?16:t|0,r=r.times(1/yn(5,t)),r=Pr(e,2,r,r);for(var i,o=new e(5),s=new e(16),a=new e(20);t--;)i=r.times(r),r=r.times(o.plus(i.times(s.times(i).minus(a))));return r}function Pr(e,r,t,n,i){var o,s,a,l,u=1,c=e.precision,p=Math.ceil(c/E);for(w=!1,l=t.times(t),a=new e(n);;){if(s=L(a.times(l),new e(r++*r++),c,1),a=i?n.plus(s):n.minus(s),n=L(s.times(l),new e(r++*r++),c,1),s=a.plus(n),s.d[p]!==void 0){for(o=p;s.d[o]===a.d[o]&&o--;);if(o==-1)break}o=a,a=n,n=s,s=o,u++}return w=!0,s.d.length=p+1,s}function yn(e,r){for(var t=e;--r;)t*=e;return t}function Ks(e,r){var t,n=r.s<0,i=we(e,e.precision,1),o=i.times(.5);if(r=r.abs(),r.lte(o))return Le=n?4:1,r;if(t=r.divToInt(i),t.isZero())Le=n?3:2;else{if(r=r.minus(t.times(i)),r.lte(o))return Le=Ms(t)?n?2:3:n?4:1,r;Le=Ms(t)?n?1:4:n?3:2}return r.minus(i).abs()}function Qi(e,r,t,n){var i,o,s,a,l,u,c,p,d,f=e.constructor,h=t!==void 0;if(h?(ie(t,1,Ke),n===void 0?n=f.rounding:ie(n,0,8)):(t=f.precision,n=f.rounding),!e.isFinite())c=Hs(e);else{for(c=xe(e),s=c.indexOf("."),h?(i=2,r==16?t=t*4-3:r==8&&(t=t*3-2)):i=r,s>=0&&(c=c.replace(".",""),d=new f(1),d.e=c.length-s,d.d=cn(xe(d),10,i),d.e=d.d.length),p=cn(c,10,i),o=l=p.length;p[--l]==0;)p.pop();if(!p[0])c=h?"0p+0":"0";else{if(s<0?o--:(e=new f(e),e.d=p,e.e=o,e=L(e,d,t,n,0,i),p=e.d,o=e.e,u=js),s=p[t],a=i/2,u=u||p[t+1]!==void 0,u=n<4?(s!==void 0||u)&&(n===0||n===(e.s<0?3:2)):s>a||s===a&&(n===4||u||n===6&&p[t-1]&1||n===(e.s<0?8:7)),p.length=t,u)for(;++p[--t]>i-1;)p[t]=0,t||(++o,p.unshift(1));for(l=p.length;!p[l-1];--l);for(s=0,c="";s1)if(r==16||r==8){for(s=r==16?4:3,--l;l%s;l++)c+="0";for(p=cn(c,i,r),l=p.length;!p[l-1];--l);for(s=1,c="1.";sl)for(o-=l;o--;)c+="0";else or)return e.length=r,!0}function Ap(e){return new this(e).abs()}function Ip(e){return new this(e).acos()}function kp(e){return new this(e).acosh()}function Dp(e,r){return new this(e).plus(r)}function Op(e){return new this(e).asin()}function _p(e){return new this(e).asinh()}function Np(e){return new this(e).atan()}function Lp(e){return new this(e).atanh()}function Fp(e,r){e=new this(e),r=new this(r);var t,n=this.precision,i=this.rounding,o=n+4;return!e.s||!r.s?t=new this(NaN):!e.d&&!r.d?(t=we(this,o,1).times(r.s>0?.25:.75),t.s=e.s):!r.d||e.isZero()?(t=r.s<0?we(this,n,i):new this(0),t.s=e.s):!e.d||r.isZero()?(t=we(this,o,1).times(.5),t.s=e.s):r.s<0?(this.precision=o,this.rounding=1,t=this.atan(L(e,r,o,1)),r=we(this,o,1),this.precision=n,this.rounding=i,t=e.s<0?t.minus(r):t.plus(r)):t=this.atan(L(e,r,o,1)),t}function Mp(e){return new this(e).cbrt()}function $p(e){return y(e=new this(e),e.e+1,2)}function qp(e,r,t){return new this(e).clamp(r,t)}function jp(e){if(!e||typeof e!="object")throw Error(gn+"Object expected");var r,t,n,i=e.defaults===!0,o=["precision",1,Ke,"rounding",0,8,"toExpNeg",-vr,0,"toExpPos",0,vr,"maxE",0,vr,"minE",-vr,0,"modulo",0,9];for(r=0;r=o[r+1]&&n<=o[r+2])this[t]=n;else throw Error(He+t+": "+n);if(t="crypto",i&&(this[t]=Bi[t]),(n=e[t])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[t]=!0;else throw Error(Bs);else this[t]=!1;else throw Error(He+t+": "+n);return this}function Vp(e){return new this(e).cos()}function Bp(e){return new this(e).cosh()}function Ys(e){var r,t,n;function i(o){var s,a,l,u=this;if(!(u instanceof i))return new i(o);if(u.constructor=i,qs(o)){u.s=o.s,w?!o.d||o.e>i.maxE?(u.e=NaN,u.d=null):o.e=10;a/=10)s++;w?s>i.maxE?(u.e=NaN,u.d=null):s=429e7?r[o]=crypto.getRandomValues(new Uint32Array(1))[0]:a[o++]=i%1e7;else if(crypto.randomBytes){for(r=crypto.randomBytes(n*=4);o=214e7?crypto.randomBytes(4).copy(r,o):(a.push(i%1e7),o+=4);o=n/4}else throw Error(Bs);else for(;o=10;i/=10)n++;nCr,datamodelEnumToSchemaEnum:()=>gd});function gd(e){return{name:e.name,values:e.values.map(r=>r.name)}}var Cr=(b=>(b.findUnique="findUnique",b.findUniqueOrThrow="findUniqueOrThrow",b.findFirst="findFirst",b.findFirstOrThrow="findFirstOrThrow",b.findMany="findMany",b.create="create",b.createMany="createMany",b.createManyAndReturn="createManyAndReturn",b.update="update",b.updateMany="updateMany",b.updateManyAndReturn="updateManyAndReturn",b.upsert="upsert",b.delete="delete",b.deleteMany="deleteMany",b.groupBy="groupBy",b.count="count",b.aggregate="aggregate",b.findRaw="findRaw",b.aggregateRaw="aggregateRaw",b))(Cr||{});var na=A(Ii());var ta=A(require("node:fs"));var Xs={keyword:De,entity:De,value:e=>W(nr(e)),punctuation:nr,directive:De,function:De,variable:e=>W(nr(e)),string:e=>W(qe(e)),boolean:ke,number:De,comment:Hr};var hd=e=>e,En={},yd=0,v={manual:En.Prism&&En.Prism.manual,disableWorkerMessageHandler:En.Prism&&En.Prism.disableWorkerMessageHandler,util:{encode:function(e){if(e instanceof ge){let r=e;return new ge(r.type,v.util.encode(r.content),r.alias)}else return Array.isArray(e)?e.map(v.util.encode):e.replace(/&/g,"&").replace(/e.length)return;if(Ae instanceof ge)continue;if(me&&V!=r.length-1){R.lastIndex=te;var p=R.exec(e);if(!p)break;var c=p.index+(D?p[1].length:0),d=p.index+p[0].length,a=V,l=te;for(let _=r.length;a<_&&(l=l&&(++V,te=l);if(r[V]instanceof ge)continue;u=a-V,Ae=e.slice(te,l),p.index-=te}else{R.lastIndex=0;var p=R.exec(Ae),u=1}if(!p){if(o)break;continue}D&&(ae=p[1]?p[1].length:0);var c=p.index+ae,p=p[0].slice(ae),d=c+p.length,f=Ae.slice(0,c),h=Ae.slice(d);let H=[V,u];f&&(++V,te+=f.length,H.push(f));let fr=new ge(g,b?v.tokenize(p,b):p,Jr,p,me);if(H.push(fr),h&&H.push(h),Array.prototype.splice.apply(r,H),u!=1&&v.matchGrammar(e,r,t,V,te,!0,g),o)break}}}},tokenize:function(e,r){let t=[e],n=r.rest;if(n){for(let i in n)r[i]=n[i];delete r.rest}return v.matchGrammar(e,t,r,0,0,!1),t},hooks:{all:{},add:function(e,r){let t=v.hooks.all;t[e]=t[e]||[],t[e].push(r)},run:function(e,r){let t=v.hooks.all[e];if(!(!t||!t.length))for(var n=0,i;i=t[n++];)i(r)}},Token:ge};v.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/};v.languages.javascript=v.languages.extend("clike",{"class-name":[v.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.])\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/-[-=]?|\+[+=]?|!=?=?|<>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/});v.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/;v.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:v.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:v.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:v.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:v.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});v.languages.markup&&v.languages.markup.tag.addInlined("script","javascript");v.languages.js=v.languages.javascript;v.languages.typescript=v.languages.extend("javascript",{keyword:/\b(?:abstract|as|async|await|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|is|keyof|let|module|namespace|new|null|of|package|private|protected|public|readonly|return|require|set|static|super|switch|this|throw|try|type|typeof|var|void|while|with|yield)\b/,builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/});v.languages.ts=v.languages.typescript;function ge(e,r,t,n,i){this.type=e,this.content=r,this.alias=t,this.length=(n||"").length|0,this.greedy=!!i}ge.stringify=function(e,r){return typeof e=="string"?e:Array.isArray(e)?e.map(function(t){return ge.stringify(t,r)}).join(""):bd(e.type)(e.content)};function bd(e){return Xs[e]||hd}function ea(e){return Ed(e,v.languages.javascript)}function Ed(e,r){return v.tokenize(e,r).map(n=>ge.stringify(n)).join("")}function ra(e){return Ci(e)}var wn=class e{firstLineNumber;lines;static read(r){let t;try{t=ta.default.readFileSync(r,"utf-8")}catch{return null}return e.fromContent(t)}static fromContent(r){let t=r.split(/\r?\n/);return new e(1,t)}constructor(r,t){this.firstLineNumber=r,this.lines=t}get lastLineNumber(){return this.firstLineNumber+this.lines.length-1}mapLineAt(r,t){if(rthis.lines.length+this.firstLineNumber)return this;let n=r-this.firstLineNumber,i=[...this.lines];return i[n]=t(i[n]),new e(this.firstLineNumber,i)}mapLines(r){return new e(this.firstLineNumber,this.lines.map((t,n)=>r(t,this.firstLineNumber+n)))}lineAt(r){return this.lines[r-this.firstLineNumber]}prependSymbolAt(r,t){return this.mapLines((n,i)=>i===r?`${t} ${n}`:` ${n}`)}slice(r,t){let n=this.lines.slice(r-1,t).join(` -`);return new e(r,ra(n).split(` -`))}highlight(){let r=ea(this.toString());return new e(this.firstLineNumber,r.split(` -`))}toString(){return this.lines.join(` -`)}};var wd={red:ce,gray:Hr,dim:Ie,bold:W,underline:Y,highlightSource:e=>e.highlight()},xd={red:e=>e,gray:e=>e,dim:e=>e,bold:e=>e,underline:e=>e,highlightSource:e=>e};function vd({message:e,originalMethod:r,isPanic:t,callArguments:n}){return{functionName:`prisma.${r}()`,message:e,isPanic:t??!1,callArguments:n}}function Pd({callsite:e,message:r,originalMethod:t,isPanic:n,callArguments:i},o){let s=vd({message:r,originalMethod:t,isPanic:n,callArguments:i});if(!e||typeof window<"u"||process.env.NODE_ENV==="production")return s;let a=e.getLocation();if(!a||!a.lineNumber||!a.columnNumber)return s;let l=Math.max(1,a.lineNumber-3),u=wn.read(a.fileName)?.slice(l,a.lineNumber),c=u?.lineAt(a.lineNumber);if(u&&c){let p=Sd(c),d=Td(c);if(!d)return s;s.functionName=`${d.code})`,s.location=a,n||(u=u.mapLineAt(a.lineNumber,h=>h.slice(0,d.openingBraceIndex))),u=o.highlightSource(u);let f=String(u.lastLineNumber).length;if(s.contextLines=u.mapLines((h,g)=>o.gray(String(g).padStart(f))+" "+h).mapLines(h=>o.dim(h)).prependSymbolAt(a.lineNumber,o.bold(o.red("\u2192"))),i){let h=p+f+1;h+=2,s.callArguments=(0,na.default)(i,h).slice(h)}}return s}function Td(e){let r=Object.keys(Cr).join("|"),n=new RegExp(String.raw`\.(${r})\(`).exec(e);if(n){let i=n.index+n[0].length,o=e.lastIndexOf(" ",n.index)+1;return{code:e.slice(o,i),openingBraceIndex:i}}return null}function Sd(e){let r=0;for(let t=0;t"Unknown error")}function la(e){return e.errors.flatMap(r=>r.kind==="Union"?la(r):[r])}function Ad(e){let r=new Map,t=[];for(let n of e){if(n.kind!=="InvalidArgumentType"){t.push(n);continue}let i=`${n.selectionPath.join(".")}:${n.argumentPath.join(".")}`,o=r.get(i);o?r.set(i,{...n,argument:{...n.argument,typeNames:Id(o.argument.typeNames,n.argument.typeNames)}}):r.set(i,n)}return t.push(...r.values()),t}function Id(e,r){return[...new Set(e.concat(r))]}function kd(e){return ji(e,(r,t)=>{let n=oa(r),i=oa(t);return n!==i?n-i:sa(r)-sa(t)})}function oa(e){let r=0;return Array.isArray(e.selectionPath)&&(r+=e.selectionPath.length),Array.isArray(e.argumentPath)&&(r+=e.argumentPath.length),r}function sa(e){switch(e.kind){case"InvalidArgumentValue":case"ValueTooLarge":return 20;case"InvalidArgumentType":return 10;case"RequiredArgumentMissing":return-10;default:return 0}}var ue=class{constructor(r,t){this.name=r;this.value=t}isRequired=!1;makeRequired(){return this.isRequired=!0,this}write(r){let{colors:{green:t}}=r.context;r.addMarginSymbol(t(this.isRequired?"+":"?")),r.write(t(this.name)),this.isRequired||r.write(t("?")),r.write(t(": ")),typeof this.value=="string"?r.write(t(this.value)):r.write(this.value)}};ca();var Ar=class{constructor(r=0,t){this.context=t;this.currentIndent=r}lines=[];currentLine="";currentIndent=0;marginSymbol;afterNextNewLineCallback;write(r){return typeof r=="string"?this.currentLine+=r:r.write(this),this}writeJoined(r,t,n=(i,o)=>o.write(i)){let i=t.length-1;for(let o=0;o0&&this.currentIndent--,this}addMarginSymbol(r){return this.marginSymbol=r,this}toString(){return this.lines.concat(this.indentedCurrentLine()).join(` -`)}getCurrentLineLength(){return this.currentLine.length}indentedCurrentLine(){let r=this.currentLine.padStart(this.currentLine.length+2*this.currentIndent);return this.marginSymbol?this.marginSymbol+r.slice(1):r}};ua();var Pn=class{constructor(r){this.value=r}write(r){r.write(this.value)}markAsError(){this.value.markAsError()}};var Tn=e=>e,Sn={bold:Tn,red:Tn,green:Tn,dim:Tn,enabled:!1},pa={bold:W,red:ce,green:qe,dim:Ie,enabled:!0},Ir={write(e){e.writeLine(",")}};var Te=class{constructor(r){this.contents=r}isUnderlined=!1;color=r=>r;underline(){return this.isUnderlined=!0,this}setColor(r){return this.color=r,this}write(r){let t=r.getCurrentLineLength();r.write(this.color(this.contents)),this.isUnderlined&&r.afterNextNewline(()=>{r.write(" ".repeat(t)).writeLine(this.color("~".repeat(this.contents.length)))})}};var ze=class{hasError=!1;markAsError(){return this.hasError=!0,this}};var kr=class extends ze{items=[];addItem(r){return this.items.push(new Pn(r)),this}getField(r){return this.items[r]}getPrintWidth(){return this.items.length===0?2:Math.max(...this.items.map(t=>t.value.getPrintWidth()))+2}write(r){if(this.items.length===0){this.writeEmpty(r);return}this.writeWithItems(r)}writeEmpty(r){let t=new Te("[]");this.hasError&&t.setColor(r.context.colors.red).underline(),r.write(t)}writeWithItems(r){let{colors:t}=r.context;r.writeLine("[").withIndent(()=>r.writeJoined(Ir,this.items).newLine()).write("]"),this.hasError&&r.afterNextNewline(()=>{r.writeLine(t.red("~".repeat(this.getPrintWidth())))})}asObject(){}};var Dr=class e extends ze{fields={};suggestions=[];addField(r){this.fields[r.name]=r}addSuggestion(r){this.suggestions.push(r)}getField(r){return this.fields[r]}getDeepField(r){let[t,...n]=r,i=this.getField(t);if(!i)return;let o=i;for(let s of n){let a;if(o.value instanceof e?a=o.value.getField(s):o.value instanceof kr&&(a=o.value.getField(Number(s))),!a)return;o=a}return o}getDeepFieldValue(r){return r.length===0?this:this.getDeepField(r)?.value}hasField(r){return!!this.getField(r)}removeAllFields(){this.fields={}}removeField(r){delete this.fields[r]}getFields(){return this.fields}isEmpty(){return Object.keys(this.fields).length===0}getFieldValue(r){return this.getField(r)?.value}getDeepSubSelectionValue(r){let t=this;for(let n of r){if(!(t instanceof e))return;let i=t.getSubSelectionValue(n);if(!i)return;t=i}return t}getDeepSelectionParent(r){let t=this.getSelectionParent();if(!t)return;let n=t;for(let i of r){let o=n.value.getFieldValue(i);if(!o||!(o instanceof e))return;let s=o.getSelectionParent();if(!s)return;n=s}return n}getSelectionParent(){let r=this.getField("select")?.value.asObject();if(r)return{kind:"select",value:r};let t=this.getField("include")?.value.asObject();if(t)return{kind:"include",value:t}}getSubSelectionValue(r){return this.getSelectionParent()?.value.fields[r].value}getPrintWidth(){let r=Object.values(this.fields);return r.length==0?2:Math.max(...r.map(n=>n.getPrintWidth()))+2}write(r){let t=Object.values(this.fields);if(t.length===0&&this.suggestions.length===0){this.writeEmpty(r);return}this.writeWithContents(r,t)}asObject(){return this}writeEmpty(r){let t=new Te("{}");this.hasError&&t.setColor(r.context.colors.red).underline(),r.write(t)}writeWithContents(r,t){r.writeLine("{").withIndent(()=>{r.writeJoined(Ir,[...t,...this.suggestions]).newLine()}),r.write("}"),this.hasError&&r.afterNextNewline(()=>{r.writeLine(r.context.colors.red("~".repeat(this.getPrintWidth())))})}};var Q=class extends ze{constructor(t){super();this.text=t}getPrintWidth(){return this.text.length}write(t){let n=new Te(this.text);this.hasError&&n.underline().setColor(t.context.colors.red),t.write(n)}asObject(){}};var ct=class{fields=[];addField(r,t){return this.fields.push({write(n){let{green:i,dim:o}=n.context.colors;n.write(i(o(`${r}: ${t}`))).addMarginSymbol(i(o("+")))}}),this}write(r){let{colors:{green:t}}=r.context;r.writeLine(t("{")).withIndent(()=>{r.writeJoined(Ir,this.fields).newLine()}).write(t("}")).addMarginSymbol(t("+"))}};function vn(e,r,t){switch(e.kind){case"MutuallyExclusiveFields":Dd(e,r);break;case"IncludeOnScalar":Od(e,r);break;case"EmptySelection":_d(e,r,t);break;case"UnknownSelectionField":Md(e,r);break;case"InvalidSelectionValue":$d(e,r);break;case"UnknownArgument":qd(e,r);break;case"UnknownInputField":jd(e,r);break;case"RequiredArgumentMissing":Vd(e,r);break;case"InvalidArgumentType":Bd(e,r);break;case"InvalidArgumentValue":Ud(e,r);break;case"ValueTooLarge":Gd(e,r);break;case"SomeFieldsMissing":Qd(e,r);break;case"TooManyFieldsGiven":Wd(e,r);break;case"Union":aa(e,r,t);break;default:throw new Error("not implemented: "+e.kind)}}function Dd(e,r){let t=r.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();t&&(t.getField(e.firstField)?.markAsError(),t.getField(e.secondField)?.markAsError()),r.addErrorMessage(n=>`Please ${n.bold("either")} use ${n.green(`\`${e.firstField}\``)} or ${n.green(`\`${e.secondField}\``)}, but ${n.red("not both")} at the same time.`)}function Od(e,r){let[t,n]=pt(e.selectionPath),i=e.outputType,o=r.arguments.getDeepSelectionParent(t)?.value;if(o&&(o.getField(n)?.markAsError(),i))for(let s of i.fields)s.isRelation&&o.addSuggestion(new ue(s.name,"true"));r.addErrorMessage(s=>{let a=`Invalid scalar field ${s.red(`\`${n}\``)} for ${s.bold("include")} statement`;return i?a+=` on model ${s.bold(i.name)}. ${dt(s)}`:a+=".",a+=` -Note that ${s.bold("include")} statements only accept relation fields.`,a})}function _d(e,r,t){let n=r.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getField("omit")?.value.asObject();if(i){Nd(e,r,i);return}if(n.hasField("select")){Ld(e,r);return}}if(t?.[Ye(e.outputType.name)]){Fd(e,r);return}r.addErrorMessage(()=>`Unknown field at "${e.selectionPath.join(".")} selection"`)}function Nd(e,r,t){t.removeAllFields();for(let n of e.outputType.fields)t.addSuggestion(new ue(n.name,"false"));r.addErrorMessage(n=>`The ${n.red("omit")} statement includes every field of the model ${n.bold(e.outputType.name)}. At least one field must be included in the result`)}function Ld(e,r){let t=e.outputType,n=r.arguments.getDeepSelectionParent(e.selectionPath)?.value,i=n?.isEmpty()??!1;n&&(n.removeAllFields(),ga(n,t)),r.addErrorMessage(o=>i?`The ${o.red("`select`")} statement for type ${o.bold(t.name)} must not be empty. ${dt(o)}`:`The ${o.red("`select`")} statement for type ${o.bold(t.name)} needs ${o.bold("at least one truthy value")}.`)}function Fd(e,r){let t=new ct;for(let i of e.outputType.fields)i.isRelation||t.addField(i.name,"false");let n=new ue("omit",t).makeRequired();if(e.selectionPath.length===0)r.arguments.addSuggestion(n);else{let[i,o]=pt(e.selectionPath),a=r.arguments.getDeepSelectionParent(i)?.value.asObject()?.getField(o);if(a){let l=a?.value.asObject()??new Dr;l.addSuggestion(n),a.value=l}}r.addErrorMessage(i=>`The global ${i.red("omit")} configuration excludes every field of the model ${i.bold(e.outputType.name)}. At least one field must be included in the result`)}function Md(e,r){let t=ha(e.selectionPath,r);if(t.parentKind!=="unknown"){t.field.markAsError();let n=t.parent;switch(t.parentKind){case"select":ga(n,e.outputType);break;case"include":Jd(n,e.outputType);break;case"omit":Hd(n,e.outputType);break}}r.addErrorMessage(n=>{let i=[`Unknown field ${n.red(`\`${t.fieldName}\``)}`];return t.parentKind!=="unknown"&&i.push(`for ${n.bold(t.parentKind)} statement`),i.push(`on model ${n.bold(`\`${e.outputType.name}\``)}.`),i.push(dt(n)),i.join(" ")})}function $d(e,r){let t=ha(e.selectionPath,r);t.parentKind!=="unknown"&&t.field.value.markAsError(),r.addErrorMessage(n=>`Invalid value for selection field \`${n.red(t.fieldName)}\`: ${e.underlyingError}`)}function qd(e,r){let t=e.argumentPath[0],n=r.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&(n.getField(t)?.markAsError(),Kd(n,e.arguments)),r.addErrorMessage(i=>ma(i,t,e.arguments.map(o=>o.name)))}function jd(e,r){let[t,n]=pt(e.argumentPath),i=r.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(i){i.getDeepField(e.argumentPath)?.markAsError();let o=i.getDeepFieldValue(t)?.asObject();o&&ya(o,e.inputType)}r.addErrorMessage(o=>ma(o,n,e.inputType.fields.map(s=>s.name)))}function ma(e,r,t){let n=[`Unknown argument \`${e.red(r)}\`.`],i=zd(r,t);return i&&n.push(`Did you mean \`${e.green(i)}\`?`),t.length>0&&n.push(dt(e)),n.join(" ")}function Vd(e,r){let t;r.addErrorMessage(l=>t?.value instanceof Q&&t.value.text==="null"?`Argument \`${l.green(o)}\` must not be ${l.red("null")}.`:`Argument \`${l.green(o)}\` is missing.`);let n=r.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(!n)return;let[i,o]=pt(e.argumentPath),s=new ct,a=n.getDeepFieldValue(i)?.asObject();if(a)if(t=a.getField(o),t&&a.removeField(o),e.inputTypes.length===1&&e.inputTypes[0].kind==="object"){for(let l of e.inputTypes[0].fields)s.addField(l.name,l.typeNames.join(" | "));a.addSuggestion(new ue(o,s).makeRequired())}else{let l=e.inputTypes.map(fa).join(" | ");a.addSuggestion(new ue(o,l).makeRequired())}}function fa(e){return e.kind==="list"?`${fa(e.elementType)}[]`:e.name}function Bd(e,r){let t=e.argument.name,n=r.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),r.addErrorMessage(i=>{let o=Rn("or",e.argument.typeNames.map(s=>i.green(s)));return`Argument \`${i.bold(t)}\`: Invalid value provided. Expected ${o}, provided ${i.red(e.inferredType)}.`})}function Ud(e,r){let t=e.argument.name,n=r.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),r.addErrorMessage(i=>{let o=[`Invalid value for argument \`${i.bold(t)}\``];if(e.underlyingError&&o.push(`: ${e.underlyingError}`),o.push("."),e.argument.typeNames.length>0){let s=Rn("or",e.argument.typeNames.map(a=>i.green(a)));o.push(` Expected ${s}.`)}return o.join("")})}function Gd(e,r){let t=e.argument.name,n=r.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i;if(n){let s=n.getDeepField(e.argumentPath)?.value;s?.markAsError(),s instanceof Q&&(i=s.text)}r.addErrorMessage(o=>{let s=["Unable to fit value"];return i&&s.push(o.red(i)),s.push(`into a 64-bit signed integer for field \`${o.bold(t)}\``),s.join(" ")})}function Qd(e,r){let t=e.argumentPath[e.argumentPath.length-1],n=r.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getDeepFieldValue(e.argumentPath)?.asObject();i&&ya(i,e.inputType)}r.addErrorMessage(i=>{let o=[`Argument \`${i.bold(t)}\` of type ${i.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1?e.constraints.requiredFields?o.push(`${i.green("at least one of")} ${Rn("or",e.constraints.requiredFields.map(s=>`\`${i.bold(s)}\``))} arguments.`):o.push(`${i.green("at least one")} argument.`):o.push(`${i.green(`at least ${e.constraints.minFieldCount}`)} arguments.`),o.push(dt(i)),o.join(" ")})}function Wd(e,r){let t=e.argumentPath[e.argumentPath.length-1],n=r.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i=[];if(n){let o=n.getDeepFieldValue(e.argumentPath)?.asObject();o&&(o.markAsError(),i=Object.keys(o.getFields()))}r.addErrorMessage(o=>{let s=[`Argument \`${o.bold(t)}\` of type ${o.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1&&e.constraints.maxFieldCount==1?s.push(`${o.green("exactly one")} argument,`):e.constraints.maxFieldCount==1?s.push(`${o.green("at most one")} argument,`):s.push(`${o.green(`at most ${e.constraints.maxFieldCount}`)} arguments,`),s.push(`but you provided ${Rn("and",i.map(a=>o.red(a)))}. Please choose`),e.constraints.maxFieldCount===1?s.push("one."):s.push(`${e.constraints.maxFieldCount}.`),s.join(" ")})}function ga(e,r){for(let t of r.fields)e.hasField(t.name)||e.addSuggestion(new ue(t.name,"true"))}function Jd(e,r){for(let t of r.fields)t.isRelation&&!e.hasField(t.name)&&e.addSuggestion(new ue(t.name,"true"))}function Hd(e,r){for(let t of r.fields)!e.hasField(t.name)&&!t.isRelation&&e.addSuggestion(new ue(t.name,"true"))}function Kd(e,r){for(let t of r)e.hasField(t.name)||e.addSuggestion(new ue(t.name,t.typeNames.join(" | ")))}function ha(e,r){let[t,n]=pt(e),i=r.arguments.getDeepSubSelectionValue(t)?.asObject();if(!i)return{parentKind:"unknown",fieldName:n};let o=i.getFieldValue("select")?.asObject(),s=i.getFieldValue("include")?.asObject(),a=i.getFieldValue("omit")?.asObject(),l=o?.getField(n);return o&&l?{parentKind:"select",parent:o,field:l,fieldName:n}:(l=s?.getField(n),s&&l?{parentKind:"include",field:l,parent:s,fieldName:n}:(l=a?.getField(n),a&&l?{parentKind:"omit",field:l,parent:a,fieldName:n}:{parentKind:"unknown",fieldName:n}))}function ya(e,r){if(r.kind==="object")for(let t of r.fields)e.hasField(t.name)||e.addSuggestion(new ue(t.name,t.typeNames.join(" | ")))}function pt(e){let r=[...e],t=r.pop();if(!t)throw new Error("unexpected empty path");return[r,t]}function dt({green:e,enabled:r}){return"Available options are "+(r?`listed in ${e("green")}`:"marked with ?")+"."}function Rn(e,r){if(r.length===1)return r[0];let t=[...r],n=t.pop();return`${t.join(", ")} ${e} ${n}`}var Yd=3;function zd(e,r){let t=1/0,n;for(let i of r){let o=(0,da.default)(e,i);o>Yd||o`}};function Or(e){return e instanceof mt}var Cn=Symbol(),Ki=new WeakMap,Fe=class{constructor(r){r===Cn?Ki.set(this,`Prisma.${this._getName()}`):Ki.set(this,`new Prisma.${this._getNamespace()}.${this._getName()}()`)}_getName(){return this.constructor.name}toString(){return Ki.get(this)}},ft=class extends Fe{_getNamespace(){return"NullTypes"}},gt=class extends ft{#e};Yi(gt,"DbNull");var ht=class extends ft{#e};Yi(ht,"JsonNull");var yt=class extends ft{#e};Yi(yt,"AnyNull");var An={classes:{DbNull:gt,JsonNull:ht,AnyNull:yt},instances:{DbNull:new gt(Cn),JsonNull:new ht(Cn),AnyNull:new yt(Cn)}};function Yi(e,r){Object.defineProperty(e,"name",{value:r,configurable:!0})}var ba=": ",In=class{constructor(r,t){this.name=r;this.value=t}hasError=!1;markAsError(){this.hasError=!0}getPrintWidth(){return this.name.length+this.value.getPrintWidth()+ba.length}write(r){let t=new Te(this.name);this.hasError&&t.underline().setColor(r.context.colors.red),r.write(t).write(ba).write(this.value)}};var zi=class{arguments;errorMessages=[];constructor(r){this.arguments=r}write(r){r.write(this.arguments)}addErrorMessage(r){this.errorMessages.push(r)}renderAllMessages(r){return this.errorMessages.map(t=>t(r)).join(` -`)}};function _r(e){return new zi(Ea(e))}function Ea(e){let r=new Dr;for(let[t,n]of Object.entries(e)){let i=new In(t,wa(n));r.addField(i)}return r}function wa(e){if(typeof e=="string")return new Q(JSON.stringify(e));if(typeof e=="number"||typeof e=="boolean")return new Q(String(e));if(typeof e=="bigint")return new Q(`${e}n`);if(e===null)return new Q("null");if(e===void 0)return new Q("undefined");if(Rr(e))return new Q(`new Prisma.Decimal("${e.toFixed()}")`);if(e instanceof Uint8Array)return Buffer.isBuffer(e)?new Q(`Buffer.alloc(${e.byteLength})`):new Q(`new Uint8Array(${e.byteLength})`);if(e instanceof Date){let r=bn(e)?e.toISOString():"Invalid Date";return new Q(`new Date("${r}")`)}return e instanceof Fe?new Q(`Prisma.${e._getName()}`):Or(e)?new Q(`prisma.${Ye(e.modelName)}.$fields.${e.name}`):Array.isArray(e)?Zd(e):typeof e=="object"?Ea(e):new Q(Object.prototype.toString.call(e))}function Zd(e){let r=new kr;for(let t of e)r.addItem(wa(t));return r}function kn(e,r){let t=r==="pretty"?pa:Sn,n=e.renderAllMessages(t),i=new Ar(0,{colors:t}).write(e).toString();return{message:n,args:i}}function Dn({args:e,errors:r,errorFormat:t,callsite:n,originalMethod:i,clientVersion:o,globalOmit:s}){let a=_r(e);for(let p of r)vn(p,a,s);let{message:l,args:u}=kn(a,t),c=xn({message:l,callsite:n,originalMethod:i,showColors:t==="pretty",callArguments:u});throw new Z(c,{clientVersion:o})}function Se(e){return e.replace(/^./,r=>r.toLowerCase())}function va(e,r,t){let n=Se(t);return!r.result||!(r.result.$allModels||r.result[n])?e:Xd({...e,...xa(r.name,e,r.result.$allModels),...xa(r.name,e,r.result[n])})}function Xd(e){let r=new Pe,t=(n,i)=>r.getOrCreate(n,()=>i.has(n)?[n]:(i.add(n),e[n]?e[n].needs.flatMap(o=>t(o,i)):[n]));return xr(e,n=>({...n,needs:t(n.name,new Set)}))}function xa(e,r,t){return t?xr(t,({needs:n,compute:i},o)=>({name:o,needs:n?Object.keys(n).filter(s=>n[s]):[],compute:em(r,o,i)})):{}}function em(e,r,t){let n=e?.[r]?.compute;return n?i=>t({...i,[r]:n(i)}):t}function Pa(e,r){if(!r)return e;let t={...e};for(let n of Object.values(r))if(e[n.name])for(let i of n.needs)t[i]=!0;return t}function Ta(e,r){if(!r)return e;let t={...e};for(let n of Object.values(r))if(!e[n.name])for(let i of n.needs)delete t[i];return t}var On=class{constructor(r,t){this.extension=r;this.previous=t}computedFieldsCache=new Pe;modelExtensionsCache=new Pe;queryCallbacksCache=new Pe;clientExtensions=lt(()=>this.extension.client?{...this.previous?.getAllClientExtensions(),...this.extension.client}:this.previous?.getAllClientExtensions());batchCallbacks=lt(()=>{let r=this.previous?.getAllBatchQueryCallbacks()??[],t=this.extension.query?.$__internalBatch;return t?r.concat(t):r});getAllComputedFields(r){return this.computedFieldsCache.getOrCreate(r,()=>va(this.previous?.getAllComputedFields(r),this.extension,r))}getAllClientExtensions(){return this.clientExtensions.get()}getAllModelExtensions(r){return this.modelExtensionsCache.getOrCreate(r,()=>{let t=Se(r);return!this.extension.model||!(this.extension.model[t]||this.extension.model.$allModels)?this.previous?.getAllModelExtensions(r):{...this.previous?.getAllModelExtensions(r),...this.extension.model.$allModels,...this.extension.model[t]}})}getAllQueryCallbacks(r,t){return this.queryCallbacksCache.getOrCreate(`${r}:${t}`,()=>{let n=this.previous?.getAllQueryCallbacks(r,t)??[],i=[],o=this.extension.query;return!o||!(o[r]||o.$allModels||o[t]||o.$allOperations)?n:(o[r]!==void 0&&(o[r][t]!==void 0&&i.push(o[r][t]),o[r].$allOperations!==void 0&&i.push(o[r].$allOperations)),r!=="$none"&&o.$allModels!==void 0&&(o.$allModels[t]!==void 0&&i.push(o.$allModels[t]),o.$allModels.$allOperations!==void 0&&i.push(o.$allModels.$allOperations)),o[t]!==void 0&&i.push(o[t]),o.$allOperations!==void 0&&i.push(o.$allOperations),n.concat(i))})}getAllBatchQueryCallbacks(){return this.batchCallbacks.get()}},Nr=class e{constructor(r){this.head=r}static empty(){return new e}static single(r){return new e(new On(r))}isEmpty(){return this.head===void 0}append(r){return new e(new On(r,this.head))}getAllComputedFields(r){return this.head?.getAllComputedFields(r)}getAllClientExtensions(){return this.head?.getAllClientExtensions()}getAllModelExtensions(r){return this.head?.getAllModelExtensions(r)}getAllQueryCallbacks(r,t){return this.head?.getAllQueryCallbacks(r,t)??[]}getAllBatchQueryCallbacks(){return this.head?.getAllBatchQueryCallbacks()??[]}};var _n=class{constructor(r){this.name=r}};function Sa(e){return e instanceof _n}function Ra(e){return new _n(e)}var Ca=Symbol(),bt=class{constructor(r){if(r!==Ca)throw new Error("Skip instance can not be constructed directly")}ifUndefined(r){return r===void 0?Nn:r}},Nn=new bt(Ca);function Re(e){return e instanceof bt}var rm={findUnique:"findUnique",findUniqueOrThrow:"findUniqueOrThrow",findFirst:"findFirst",findFirstOrThrow:"findFirstOrThrow",findMany:"findMany",count:"aggregate",create:"createOne",createMany:"createMany",createManyAndReturn:"createManyAndReturn",update:"updateOne",updateMany:"updateMany",updateManyAndReturn:"updateManyAndReturn",upsert:"upsertOne",delete:"deleteOne",deleteMany:"deleteMany",executeRaw:"executeRaw",queryRaw:"queryRaw",aggregate:"aggregate",groupBy:"groupBy",runCommandRaw:"runCommandRaw",findRaw:"findRaw",aggregateRaw:"aggregateRaw"},Aa="explicitly `undefined` values are not allowed";function Ln({modelName:e,action:r,args:t,runtimeDataModel:n,extensions:i=Nr.empty(),callsite:o,clientMethod:s,errorFormat:a,clientVersion:l,previewFeatures:u,globalOmit:c}){let p=new Zi({runtimeDataModel:n,modelName:e,action:r,rootArgs:t,callsite:o,extensions:i,selectionPath:[],argumentPath:[],originalMethod:s,errorFormat:a,clientVersion:l,previewFeatures:u,globalOmit:c});return{modelName:e,action:rm[r],query:Et(t,p)}}function Et({select:e,include:r,...t}={},n){let i=t.omit;return delete t.omit,{arguments:ka(t,n),selection:tm(e,r,i,n)}}function tm(e,r,t,n){return e?(r?n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"include",secondField:"select",selectionPath:n.getSelectionPath()}):t&&n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"omit",secondField:"select",selectionPath:n.getSelectionPath()}),sm(e,n)):nm(n,r,t)}function nm(e,r,t){let n={};return e.modelOrType&&!e.isRawAction()&&(n.$composites=!0,n.$scalars=!0),r&&im(n,r,e),om(n,t,e),n}function im(e,r,t){for(let[n,i]of Object.entries(r)){if(Re(i))continue;let o=t.nestSelection(n);if(Xi(i,o),i===!1||i===void 0){e[n]=!1;continue}let s=t.findField(n);if(s&&s.kind!=="object"&&t.throwValidationError({kind:"IncludeOnScalar",selectionPath:t.getSelectionPath().concat(n),outputType:t.getOutputTypeDescription()}),s){e[n]=Et(i===!0?{}:i,o);continue}if(i===!0){e[n]=!0;continue}e[n]=Et(i,o)}}function om(e,r,t){let n=t.getComputedFields(),i={...t.getGlobalOmit(),...r},o=Ta(i,n);for(let[s,a]of Object.entries(o)){if(Re(a))continue;Xi(a,t.nestSelection(s));let l=t.findField(s);n?.[s]&&!l||(e[s]=!a)}}function sm(e,r){let t={},n=r.getComputedFields(),i=Pa(e,n);for(let[o,s]of Object.entries(i)){if(Re(s))continue;let a=r.nestSelection(o);Xi(s,a);let l=r.findField(o);if(!(n?.[o]&&!l)){if(s===!1||s===void 0||Re(s)){t[o]=!1;continue}if(s===!0){l?.kind==="object"?t[o]=Et({},a):t[o]=!0;continue}t[o]=Et(s,a)}}return t}function Ia(e,r){if(e===null)return null;if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="bigint")return{$type:"BigInt",value:String(e)};if(Sr(e)){if(bn(e))return{$type:"DateTime",value:e.toISOString()};r.throwValidationError({kind:"InvalidArgumentValue",selectionPath:r.getSelectionPath(),argumentPath:r.getArgumentPath(),argument:{name:r.getArgumentName(),typeNames:["Date"]},underlyingError:"Provided Date object is invalid"})}if(Sa(e))return{$type:"Param",value:e.name};if(Or(e))return{$type:"FieldRef",value:{_ref:e.name,_container:e.modelName}};if(Array.isArray(e))return am(e,r);if(ArrayBuffer.isView(e)){let{buffer:t,byteOffset:n,byteLength:i}=e;return{$type:"Bytes",value:Buffer.from(t,n,i).toString("base64")}}if(lm(e))return e.values;if(Rr(e))return{$type:"Decimal",value:e.toFixed()};if(e instanceof Fe){if(e!==An.instances[e._getName()])throw new Error("Invalid ObjectEnumValue");return{$type:"Enum",value:e._getName()}}if(um(e))return e.toJSON();if(typeof e=="object")return ka(e,r);r.throwValidationError({kind:"InvalidArgumentValue",selectionPath:r.getSelectionPath(),argumentPath:r.getArgumentPath(),argument:{name:r.getArgumentName(),typeNames:[]},underlyingError:`We could not serialize ${Object.prototype.toString.call(e)} value. Serialize the object to JSON or implement a ".toJSON()" method on it`})}function ka(e,r){if(e.$type)return{$type:"Raw",value:e};let t={};for(let n in e){let i=e[n],o=r.nestArgument(n);Re(i)||(i!==void 0?t[n]=Ia(i,o):r.isPreviewFeatureOn("strictUndefinedChecks")&&r.throwValidationError({kind:"InvalidArgumentValue",argumentPath:o.getArgumentPath(),selectionPath:r.getSelectionPath(),argument:{name:r.getArgumentName(),typeNames:[]},underlyingError:Aa}))}return t}function am(e,r){let t=[];for(let n=0;n({name:r.name,typeName:"boolean",isRelation:r.kind==="object"}))}}isRawAction(){return["executeRaw","queryRaw","runCommandRaw","findRaw","aggregateRaw"].includes(this.params.action)}isPreviewFeatureOn(r){return this.params.previewFeatures.includes(r)}getComputedFields(){if(this.params.modelName)return this.params.extensions.getAllComputedFields(this.params.modelName)}findField(r){return this.modelOrType?.fields.find(t=>t.name===r)}nestSelection(r){let t=this.findField(r),n=t?.kind==="object"?t.type:void 0;return new e({...this.params,modelName:n,selectionPath:this.params.selectionPath.concat(r)})}getGlobalOmit(){return this.params.modelName&&this.shouldApplyGlobalOmit()?this.params.globalOmit?.[Ye(this.params.modelName)]??{}:{}}shouldApplyGlobalOmit(){switch(this.params.action){case"findFirst":case"findFirstOrThrow":case"findUniqueOrThrow":case"findMany":case"upsert":case"findUnique":case"createManyAndReturn":case"create":case"update":case"updateManyAndReturn":case"delete":return!0;case"executeRaw":case"aggregateRaw":case"runCommandRaw":case"findRaw":case"createMany":case"deleteMany":case"groupBy":case"updateMany":case"count":case"aggregate":case"queryRaw":return!1;default:_e(this.params.action,"Unknown action")}}nestArgument(r){return new e({...this.params,argumentPath:this.params.argumentPath.concat(r)})}};function Da(e){if(!e._hasPreviewFlag("metrics"))throw new Z("`metrics` preview feature must be enabled in order to access metrics API",{clientVersion:e._clientVersion})}var Lr=class{_client;constructor(r){this._client=r}prometheus(r){return Da(this._client),this._client._engine.metrics({format:"prometheus",...r})}json(r){return Da(this._client),this._client._engine.metrics({format:"json",...r})}};function Oa(e,r){let t=lt(()=>cm(r));Object.defineProperty(e,"dmmf",{get:()=>t.get()})}function cm(e){return{datamodel:{models:eo(e.models),enums:eo(e.enums),types:eo(e.types)}}}function eo(e){return Object.entries(e).map(([r,t])=>({name:r,...t}))}var ro=new WeakMap,Fn="$$PrismaTypedSql",wt=class{constructor(r,t){ro.set(this,{sql:r,values:t}),Object.defineProperty(this,Fn,{value:Fn})}get sql(){return ro.get(this).sql}get values(){return ro.get(this).values}};function _a(e){return(...r)=>new wt(e,r)}function Mn(e){return e!=null&&e[Fn]===Fn}var fu=A(Pi());var gu=require("node:async_hooks"),hu=require("node:events"),yu=A(require("node:fs")),ti=A(require("node:path"));var oe=class e{constructor(r,t){if(r.length-1!==t.length)throw r.length===0?new TypeError("Expected at least 1 string"):new TypeError(`Expected ${r.length} strings to have ${r.length-1} values`);let n=t.reduce((s,a)=>s+(a instanceof e?a.values.length:1),0);this.values=new Array(n),this.strings=new Array(n+1),this.strings[0]=r[0];let i=0,o=0;for(;ie.getPropertyValue(t))},getPropertyDescriptor(t){return e.getPropertyDescriptor?.(t)}}}var $n={enumerable:!0,configurable:!0,writable:!0};function qn(e){let r=new Set(e);return{getPrototypeOf:()=>Object.prototype,getOwnPropertyDescriptor:()=>$n,has:(t,n)=>r.has(n),set:(t,n,i)=>r.add(n)&&Reflect.set(t,n,i),ownKeys:()=>[...r]}}var Fa=Symbol.for("nodejs.util.inspect.custom");function he(e,r){let t=pm(r),n=new Set,i=new Proxy(e,{get(o,s){if(n.has(s))return o[s];let a=t.get(s);return a?a.getPropertyValue(s):o[s]},has(o,s){if(n.has(s))return!0;let a=t.get(s);return a?a.has?.(s)??!0:Reflect.has(o,s)},ownKeys(o){let s=Ma(Reflect.ownKeys(o),t),a=Ma(Array.from(t.keys()),t);return[...new Set([...s,...a,...n])]},set(o,s,a){return t.get(s)?.getPropertyDescriptor?.(s)?.writable===!1?!1:(n.add(s),Reflect.set(o,s,a))},getOwnPropertyDescriptor(o,s){let a=Reflect.getOwnPropertyDescriptor(o,s);if(a&&!a.configurable)return a;let l=t.get(s);return l?l.getPropertyDescriptor?{...$n,...l?.getPropertyDescriptor(s)}:$n:a},defineProperty(o,s,a){return n.add(s),Reflect.defineProperty(o,s,a)},getPrototypeOf:()=>Object.prototype});return i[Fa]=function(){let o={...this};return delete o[Fa],o},i}function pm(e){let r=new Map;for(let t of e){let n=t.getKeys();for(let i of n)r.set(i,t)}return r}function Ma(e,r){return e.filter(t=>r.get(t)?.has?.(t)??!0)}function Fr(e){return{getKeys(){return e},has(){return!1},getPropertyValue(){}}}function Mr(e,r){return{batch:e,transaction:r?.kind==="batch"?{isolationLevel:r.options.isolationLevel}:void 0}}function $a(e){if(e===void 0)return"";let r=_r(e);return new Ar(0,{colors:Sn}).write(r).toString()}var dm="P2037";function $r({error:e,user_facing_error:r},t,n){return r.error_code?new z(mm(r,n),{code:r.error_code,clientVersion:t,meta:r.meta,batchRequestIdx:r.batch_request_idx}):new j(e,{clientVersion:t,batchRequestIdx:r.batch_request_idx})}function mm(e,r){let t=e.message;return(r==="postgresql"||r==="postgres"||r==="mysql")&&e.error_code===dm&&(t+=` -Prisma Accelerate has built-in connection pooling to prevent such errors: https://pris.ly/client/error-accelerate`),t}var vt="";function qa(e){var r=e.split(` -`);return r.reduce(function(t,n){var i=hm(n)||bm(n)||xm(n)||Sm(n)||Pm(n);return i&&t.push(i),t},[])}var fm=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|rsc||\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,gm=/\((\S*)(?::(\d+))(?::(\d+))\)/;function hm(e){var r=fm.exec(e);if(!r)return null;var t=r[2]&&r[2].indexOf("native")===0,n=r[2]&&r[2].indexOf("eval")===0,i=gm.exec(r[2]);return n&&i!=null&&(r[2]=i[1],r[3]=i[2],r[4]=i[3]),{file:t?null:r[2],methodName:r[1]||vt,arguments:t?[r[2]]:[],lineNumber:r[3]?+r[3]:null,column:r[4]?+r[4]:null}}var ym=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|rsc|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function bm(e){var r=ym.exec(e);return r?{file:r[2],methodName:r[1]||vt,arguments:[],lineNumber:+r[3],column:r[4]?+r[4]:null}:null}var Em=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|rsc|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,wm=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function xm(e){var r=Em.exec(e);if(!r)return null;var t=r[3]&&r[3].indexOf(" > eval")>-1,n=wm.exec(r[3]);return t&&n!=null&&(r[3]=n[1],r[4]=n[2],r[5]=null),{file:r[3],methodName:r[1]||vt,arguments:r[2]?r[2].split(","):[],lineNumber:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}var vm=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;function Pm(e){var r=vm.exec(e);return r?{file:r[3],methodName:r[1]||vt,arguments:[],lineNumber:+r[4],column:r[5]?+r[5]:null}:null}var Tm=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;function Sm(e){var r=Tm.exec(e);return r?{file:r[2],methodName:r[1]||vt,arguments:[],lineNumber:+r[3],column:r[4]?+r[4]:null}:null}var io=class{getLocation(){return null}},oo=class{_error;constructor(){this._error=new Error}getLocation(){let r=this._error.stack;if(!r)return null;let n=qa(r).find(i=>{if(!i.file)return!1;let o=Ni(i.file);return o!==""&&!o.includes("@prisma")&&!o.includes("/packages/client/src/runtime/")&&!o.endsWith("/runtime/binary.js")&&!o.endsWith("/runtime/library.js")&&!o.endsWith("/runtime/edge.js")&&!o.endsWith("/runtime/edge-esm.js")&&!o.startsWith("internal/")&&!i.methodName.includes("new ")&&!i.methodName.includes("getCallSite")&&!i.methodName.includes("Proxy.")&&i.methodName.split(".").length<4});return!n||!n.file?null:{fileName:n.file,lineNumber:n.lineNumber,columnNumber:n.column}}};function Ze(e){return e==="minimal"?typeof $EnabledCallSite=="function"&&e!=="minimal"?new $EnabledCallSite:new io:new oo}var ja={_avg:!0,_count:!0,_sum:!0,_min:!0,_max:!0};function qr(e={}){let r=Cm(e);return Object.entries(r).reduce((n,[i,o])=>(ja[i]!==void 0?n.select[i]={select:o}:n[i]=o,n),{select:{}})}function Cm(e={}){return typeof e._count=="boolean"?{...e,_count:{_all:e._count}}:e}function jn(e={}){return r=>(typeof e._count=="boolean"&&(r._count=r._count._all),r)}function Va(e,r){let t=jn(e);return r({action:"aggregate",unpacker:t,argsMapper:qr})(e)}function Am(e={}){let{select:r,...t}=e;return typeof r=="object"?qr({...t,_count:r}):qr({...t,_count:{_all:!0}})}function Im(e={}){return typeof e.select=="object"?r=>jn(e)(r)._count:r=>jn(e)(r)._count._all}function Ba(e,r){return r({action:"count",unpacker:Im(e),argsMapper:Am})(e)}function km(e={}){let r=qr(e);if(Array.isArray(r.by))for(let t of r.by)typeof t=="string"&&(r.select[t]=!0);else typeof r.by=="string"&&(r.select[r.by]=!0);return r}function Dm(e={}){return r=>(typeof e?._count=="boolean"&&r.forEach(t=>{t._count=t._count._all}),r)}function Ua(e,r){return r({action:"groupBy",unpacker:Dm(e),argsMapper:km})(e)}function Ga(e,r,t){if(r==="aggregate")return n=>Va(n,t);if(r==="count")return n=>Ba(n,t);if(r==="groupBy")return n=>Ua(n,t)}function Qa(e,r){let t=r.fields.filter(i=>!i.relationName),n=zs(t,"name");return new Proxy({},{get(i,o){if(o in i||typeof o=="symbol")return i[o];let s=n[o];if(s)return new mt(e,o,s.type,s.isList,s.kind==="enum")},...qn(Object.keys(n))})}var Wa=e=>Array.isArray(e)?e:e.split("."),so=(e,r)=>Wa(r).reduce((t,n)=>t&&t[n],e),Ja=(e,r,t)=>Wa(r).reduceRight((n,i,o,s)=>Object.assign({},so(e,s.slice(0,o)),{[i]:n}),t);function Om(e,r){return e===void 0||r===void 0?[]:[...r,"select",e]}function _m(e,r,t){return r===void 0?e??{}:Ja(r,t,e||!0)}function ao(e,r,t,n,i,o){let a=e._runtimeDataModel.models[r].fields.reduce((l,u)=>({...l,[u.name]:u}),{});return l=>{let u=Ze(e._errorFormat),c=Om(n,i),p=_m(l,o,c),d=t({dataPath:c,callsite:u})(p),f=Nm(e,r);return new Proxy(d,{get(h,g){if(!f.includes(g))return h[g];let P=[a[g].type,t,g],R=[c,p];return ao(e,...P,...R)},...qn([...f,...Object.getOwnPropertyNames(d)])})}}function Nm(e,r){return e._runtimeDataModel.models[r].fields.filter(t=>t.kind==="object").map(t=>t.name)}var Lm=["findUnique","findUniqueOrThrow","findFirst","findFirstOrThrow","create","update","upsert","delete"],Fm=["aggregate","count","groupBy"];function lo(e,r){let t=e._extensions.getAllModelExtensions(r)??{},n=[Mm(e,r),qm(e,r),xt(t),re("name",()=>r),re("$name",()=>r),re("$parent",()=>e._appliedParent)];return he({},n)}function Mm(e,r){let t=Se(r),n=Object.keys(Cr).concat("count");return{getKeys(){return n},getPropertyValue(i){let o=i,s=a=>l=>{let u=Ze(e._errorFormat);return e._createPrismaPromise(c=>{let p={args:l,dataPath:[],action:o,model:r,clientMethod:`${t}.${i}`,jsModelName:t,transaction:c,callsite:u};return e._request({...p,...a})},{action:o,args:l,model:r})};return Lm.includes(o)?ao(e,r,s):$m(i)?Ga(e,i,s):s({})}}}function $m(e){return Fm.includes(e)}function qm(e,r){return ar(re("fields",()=>{let t=e._runtimeDataModel.models[r];return Qa(r,t)}))}function Ha(e){return e.replace(/^./,r=>r.toUpperCase())}var uo=Symbol();function Pt(e){let r=[jm(e),Vm(e),re(uo,()=>e),re("$parent",()=>e._appliedParent)],t=e._extensions.getAllClientExtensions();return t&&r.push(xt(t)),he(e,r)}function jm(e){let r=Object.getPrototypeOf(e._originalClient),t=[...new Set(Object.getOwnPropertyNames(r))];return{getKeys(){return t},getPropertyValue(n){return e[n]}}}function Vm(e){let r=Object.keys(e._runtimeDataModel.models),t=r.map(Se),n=[...new Set(r.concat(t))];return ar({getKeys(){return n},getPropertyValue(i){let o=Ha(i);if(e._runtimeDataModel.models[o]!==void 0)return lo(e,o);if(e._runtimeDataModel.models[i]!==void 0)return lo(e,i)},getPropertyDescriptor(i){if(!t.includes(i))return{enumerable:!1}}})}function Ka(e){return e[uo]?e[uo]:e}function Ya(e){if(typeof e=="function")return e(this);if(e.client?.__AccelerateEngine){let t=e.client.__AccelerateEngine;this._originalClient._engine=new t(this._originalClient._accelerateEngineConfig)}let r=Object.create(this._originalClient,{_extensions:{value:this._extensions.append(e)},_appliedParent:{value:this,configurable:!0},$use:{value:void 0},$on:{value:void 0}});return Pt(r)}function za({result:e,modelName:r,select:t,omit:n,extensions:i}){let o=i.getAllComputedFields(r);if(!o)return e;let s=[],a=[];for(let l of Object.values(o)){if(n){if(n[l.name])continue;let u=l.needs.filter(c=>n[c]);u.length>0&&a.push(Fr(u))}else if(t){if(!t[l.name])continue;let u=l.needs.filter(c=>!t[c]);u.length>0&&a.push(Fr(u))}Bm(e,l.needs)&&s.push(Um(l,he(e,s)))}return s.length>0||a.length>0?he(e,[...s,...a]):e}function Bm(e,r){return r.every(t=>qi(e,t))}function Um(e,r){return ar(re(e.name,()=>e.compute(r)))}function Vn({visitor:e,result:r,args:t,runtimeDataModel:n,modelName:i}){if(Array.isArray(r)){for(let s=0;sc.name===o);if(!l||l.kind!=="object"||!l.relationName)continue;let u=typeof s=="object"?s:{};r[o]=Vn({visitor:i,result:r[o],args:u,modelName:l.type,runtimeDataModel:n})}}function Xa({result:e,modelName:r,args:t,extensions:n,runtimeDataModel:i,globalOmit:o}){return n.isEmpty()||e==null||typeof e!="object"||!i.models[r]?e:Vn({result:e,args:t??{},modelName:r,runtimeDataModel:i,visitor:(a,l,u)=>{let c=Se(l);return za({result:a,modelName:c,select:u.select,omit:u.select?void 0:{...o?.[c],...u.omit},extensions:n})}})}var Gm=["$connect","$disconnect","$on","$transaction","$use","$extends"],el=Gm;function rl(e){if(e instanceof oe)return Qm(e);if(Mn(e))return Wm(e);if(Array.isArray(e)){let t=[e[0]];for(let n=1;n{let o=r.customDataProxyFetch;return"transaction"in r&&i!==void 0&&(r.transaction?.kind==="batch"&&r.transaction.lock.then(),r.transaction=i),n===t.length?e._executeRequest(r):t[n]({model:r.model,operation:r.model?r.action:r.clientMethod,args:rl(r.args??{}),__internalParams:r,query:(s,a=r)=>{let l=a.customDataProxyFetch;return a.customDataProxyFetch=al(o,l),a.args=s,nl(e,a,t,n+1)}})})}function il(e,r){let{jsModelName:t,action:n,clientMethod:i}=r,o=t?n:i;if(e._extensions.isEmpty())return e._executeRequest(r);let s=e._extensions.getAllQueryCallbacks(t??"$none",o);return nl(e,r,s)}function ol(e){return r=>{let t={requests:r},n=r[0].extensions.getAllBatchQueryCallbacks();return n.length?sl(t,n,0,e):e(t)}}function sl(e,r,t,n){if(t===r.length)return n(e);let i=e.customDataProxyFetch,o=e.requests[0].transaction;return r[t]({args:{queries:e.requests.map(s=>({model:s.modelName,operation:s.action,args:s.args})),transaction:o?{isolationLevel:o.kind==="batch"?o.isolationLevel:void 0}:void 0},__internalParams:e,query(s,a=e){let l=a.customDataProxyFetch;return a.customDataProxyFetch=al(i,l),sl(a,r,t+1,n)}})}var tl=e=>e;function al(e=tl,r=tl){return t=>e(r(t))}var ll=N("prisma:client"),ul={Vercel:"vercel","Netlify CI":"netlify"};function cl({postinstall:e,ciName:r,clientVersion:t}){if(ll("checkPlatformCaching:postinstall",e),ll("checkPlatformCaching:ciName",r),e===!0&&r&&r in ul){let n=`Prisma has detected that this project was built on ${r}, which caches dependencies. This leads to an outdated Prisma Client because Prisma's auto-generation isn't triggered. To fix this, make sure to run the \`prisma generate\` command during the build process. - -Learn how: https://pris.ly/d/${ul[r]}-build`;throw console.error(n),new T(n,t)}}function pl(e,r){return e?e.datasources?e.datasources:e.datasourceUrl?{[r[0]]:{url:e.datasourceUrl}}:{}:{}}var Jm=()=>globalThis.process?.release?.name==="node",Hm=()=>!!globalThis.Bun||!!globalThis.process?.versions?.bun,Km=()=>!!globalThis.Deno,Ym=()=>typeof globalThis.Netlify=="object",zm=()=>typeof globalThis.EdgeRuntime=="object",Zm=()=>globalThis.navigator?.userAgent==="Cloudflare-Workers";function Xm(){return[[Ym,"netlify"],[zm,"edge-light"],[Zm,"workerd"],[Km,"deno"],[Hm,"bun"],[Jm,"node"]].flatMap(t=>t[0]()?[t[1]]:[]).at(0)??""}var ef={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function Bn(){let e=Xm();return{id:e,prettyName:ef[e]||e,isEdge:["workerd","deno","netlify","edge-light"].includes(e)}}var hl=A(require("node:fs")),St=A(require("node:path"));function Un(e){let{runtimeBinaryTarget:r}=e;return`Add "${r}" to \`binaryTargets\` in the "schema.prisma" file and run \`prisma generate\` after saving it: - -${rf(e)}`}function rf(e){let{generator:r,generatorBinaryTargets:t,runtimeBinaryTarget:n}=e,i={fromEnvVar:null,value:n},o=[...t,i];return Di({...r,binaryTargets:o})}function Xe(e){let{runtimeBinaryTarget:r}=e;return`Prisma Client could not locate the Query Engine for runtime "${r}".`}function er(e){let{searchedLocations:r}=e;return`The following locations have been searched: -${[...new Set(r)].map(i=>` ${i}`).join(` -`)}`}function dl(e){let{runtimeBinaryTarget:r}=e;return`${Xe(e)} - -This happened because \`binaryTargets\` have been pinned, but the actual deployment also required "${r}". -${Un(e)} - -${er(e)}`}function Gn(e){return`We would appreciate if you could take the time to share some information with us. -Please help us by answering a few questions: https://pris.ly/${e}`}function Qn(e){let{errorStack:r}=e;return r?.match(/\/\.next|\/next@|\/next\//)?` - -We detected that you are using Next.js, learn how to fix this: https://pris.ly/d/engine-not-found-nextjs.`:""}function ml(e){let{queryEngineName:r}=e;return`${Xe(e)}${Qn(e)} - -This is likely caused by a bundler that has not copied "${r}" next to the resulting bundle. -Ensure that "${r}" has been copied next to the bundle or in "${e.expectedLocation}". - -${Gn("engine-not-found-bundler-investigation")} - -${er(e)}`}function fl(e){let{runtimeBinaryTarget:r,generatorBinaryTargets:t}=e,n=t.find(i=>i.native);return`${Xe(e)} - -This happened because Prisma Client was generated for "${n?.value??"unknown"}", but the actual deployment required "${r}". -${Un(e)} - -${er(e)}`}function gl(e){let{queryEngineName:r}=e;return`${Xe(e)}${Qn(e)} - -This is likely caused by tooling that has not copied "${r}" to the deployment folder. -Ensure that you ran \`prisma generate\` and that "${r}" has been copied to "${e.expectedLocation}". - -${Gn("engine-not-found-tooling-investigation")} - -${er(e)}`}var tf=N("prisma:client:engines:resolveEnginePath"),nf=()=>new RegExp("runtime[\\\\/]library\\.m?js$");async function yl(e,r){let t={binary:process.env.PRISMA_QUERY_ENGINE_BINARY,library:process.env.PRISMA_QUERY_ENGINE_LIBRARY}[e]??r.prismaPath;if(t!==void 0)return t;let{enginePath:n,searchedLocations:i}=await of(e,r);if(tf("enginePath",n),n!==void 0&&e==="binary"&&Si(n),n!==void 0)return r.prismaPath=n;let o=await ir(),s=r.generator?.binaryTargets??[],a=s.some(d=>d.native),l=!s.some(d=>d.value===o),u=__filename.match(nf())===null,c={searchedLocations:i,generatorBinaryTargets:s,generator:r.generator,runtimeBinaryTarget:o,queryEngineName:bl(e,o),expectedLocation:St.default.relative(process.cwd(),r.dirname),errorStack:new Error().stack},p;throw a&&l?p=fl(c):l?p=dl(c):u?p=ml(c):p=gl(c),new T(p,r.clientVersion)}async function of(e,r){let t=await ir(),n=[],i=[r.dirname,St.default.resolve(__dirname,".."),r.generator?.output?.value??__dirname,St.default.resolve(__dirname,"../../../.prisma/client"),"/tmp/prisma-engines",r.cwd];__filename.includes("resolveEnginePath")&&i.push(fs());for(let o of i){let s=bl(e,t),a=St.default.join(o,s);if(n.push(o),hl.default.existsSync(a))return{enginePath:a,searchedLocations:n}}return{enginePath:void 0,searchedLocations:n}}function bl(e,r){return e==="library"?Gt(r,"fs"):`query-engine-${r}${r==="windows"?".exe":""}`}var co=A(_i());function El(e){return e?e.replace(/".*"/g,'"X"').replace(/[\s:\[]([+-]?([0-9]*[.])?[0-9]+)/g,r=>`${r[0]}5`):""}function wl(e){return e.split(` -`).map(r=>r.replace(/^\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)\s*/,"").replace(/\+\d+\s*ms$/,"")).join(` -`)}var xl=A(Ls());function vl({title:e,user:r="prisma",repo:t="prisma",template:n="bug_report.yml",body:i}){return(0,xl.default)({user:r,repo:t,template:n,title:e,body:i})}function Pl({version:e,binaryTarget:r,title:t,description:n,engineVersion:i,database:o,query:s}){let a=Go(6e3-(s?.length??0)),l=wl((0,co.default)(a)),u=n?`# Description -\`\`\` -${n} -\`\`\``:"",c=(0,co.default)(`Hi Prisma Team! My Prisma Client just crashed. This is the report: -## Versions - -| Name | Version | -|-----------------|--------------------| -| Node | ${process.version?.padEnd(19)}| -| OS | ${r?.padEnd(19)}| -| Prisma Client | ${e?.padEnd(19)}| -| Query Engine | ${i?.padEnd(19)}| -| Database | ${o?.padEnd(19)}| - -${u} - -## Logs -\`\`\` -${l} -\`\`\` - -## Client Snippet -\`\`\`ts -// PLEASE FILL YOUR CODE SNIPPET HERE -\`\`\` - -## Schema -\`\`\`prisma -// PLEASE ADD YOUR SCHEMA HERE IF POSSIBLE -\`\`\` - -## Prisma Engine Query -\`\`\` -${s?El(s):""} -\`\`\` -`),p=vl({title:t,body:c});return`${t} - -This is a non-recoverable error which probably happens when the Prisma Query Engine has a panic. - -${Y(p)} - -If you want the Prisma team to look into it, please open the link above \u{1F64F} -To increase the chance of success, please post your schema and a snippet of -how you used Prisma Client in the issue. -`}function po(e){return e.name==="DriverAdapterError"&&typeof e.cause=="object"}function Wn(e){return{ok:!0,value:e,map(r){return Wn(r(e))},flatMap(r){return r(e)}}}function lr(e){return{ok:!1,error:e,map(){return lr(e)},flatMap(){return lr(e)}}}var Tl=N("driver-adapter-utils"),mo=class{registeredErrors=[];consumeError(r){return this.registeredErrors[r]}registerNewError(r){let t=0;for(;this.registeredErrors[t]!==void 0;)t++;return this.registeredErrors[t]={error:r},t}};var Jn=(e,r=new mo)=>{let t={adapterName:e.adapterName,errorRegistry:r,queryRaw:Me(r,e.queryRaw.bind(e)),executeRaw:Me(r,e.executeRaw.bind(e)),executeScript:Me(r,e.executeScript.bind(e)),dispose:Me(r,e.dispose.bind(e)),provider:e.provider,startTransaction:async(...n)=>(await Me(r,e.startTransaction.bind(e))(...n)).map(o=>sf(r,o))};return e.getConnectionInfo&&(t.getConnectionInfo=af(r,e.getConnectionInfo.bind(e))),t},sf=(e,r)=>({adapterName:r.adapterName,provider:r.provider,options:r.options,queryRaw:Me(e,r.queryRaw.bind(r)),executeRaw:Me(e,r.executeRaw.bind(r)),commit:Me(e,r.commit.bind(r)),rollback:Me(e,r.rollback.bind(r))});function Me(e,r){return async(...t)=>{try{return Wn(await r(...t))}catch(n){if(Tl("[error@wrapAsync]",n),po(n))return lr(n.cause);let i=e.registerNewError(n);return lr({kind:"GenericJs",id:i})}}}function af(e,r){return(...t)=>{try{return Wn(r(...t))}catch(n){if(Tl("[error@wrapSync]",n),po(n))return lr(n.cause);let i=e.registerNewError(n);return lr({kind:"GenericJs",id:i})}}}var Sl="6.12.0";function jr({inlineDatasources:e,overrideDatasources:r,env:t,clientVersion:n}){let i,o=Object.keys(e)[0],s=e[o]?.url,a=r[o]?.url;if(o===void 0?i=void 0:a?i=a:s?.value?i=s.value:s?.fromEnvVar&&(i=t[s.fromEnvVar]),s?.fromEnvVar!==void 0&&i===void 0)throw new T(`error: Environment variable not found: ${s.fromEnvVar}.`,n);if(i===void 0)throw new T("error: Missing URL environment variable, value, or override.",n);return i}var Hn=class extends Error{clientVersion;cause;constructor(r,t){super(r),this.clientVersion=t.clientVersion,this.cause=t.cause}get[Symbol.toStringTag](){return this.name}};var se=class extends Hn{isRetryable;constructor(r,t){super(r,t),this.isRetryable=t.isRetryable??!0}};function C(e,r){return{...e,isRetryable:r}}var ur=class extends se{name="InvalidDatasourceError";code="P6001";constructor(r,t){super(r,C(t,!1))}};x(ur,"InvalidDatasourceError");function Rl(e){let r={clientVersion:e.clientVersion},t=Object.keys(e.inlineDatasources)[0],n=jr({inlineDatasources:e.inlineDatasources,overrideDatasources:e.overrideDatasources,clientVersion:e.clientVersion,env:{...e.env,...typeof process<"u"?process.env:{}}}),i;try{i=new URL(n)}catch{throw new ur(`Error validating datasource \`${t}\`: the URL must start with the protocol \`prisma://\``,r)}let{protocol:o,searchParams:s}=i;if(o!=="prisma:"&&o!==nn)throw new ur(`Error validating datasource \`${t}\`: the URL must start with the protocol \`prisma://\` or \`prisma+postgres://\``,r);let a=s.get("api_key");if(a===null||a.length<1)throw new ur(`Error validating datasource \`${t}\`: the URL must contain a valid API key`,r);let l=Ai(i)?"http:":"https:",u=new URL(i.href.replace(o,l));return{apiKey:a,url:u}}var Cl=A(tn()),Kn=class{apiKey;tracingHelper;logLevel;logQueries;engineHash;constructor({apiKey:r,tracingHelper:t,logLevel:n,logQueries:i,engineHash:o}){this.apiKey=r,this.tracingHelper=t,this.logLevel=n,this.logQueries=i,this.engineHash=o}build({traceparent:r,transactionId:t}={}){let n={Accept:"application/json",Authorization:`Bearer ${this.apiKey}`,"Content-Type":"application/json","Prisma-Engine-Hash":this.engineHash,"Prisma-Engine-Version":Cl.enginesVersion};this.tracingHelper.isEnabled()&&(n.traceparent=r??this.tracingHelper.getTraceParent()),t&&(n["X-Transaction-Id"]=t);let i=this.#e();return i.length>0&&(n["X-Capture-Telemetry"]=i.join(", ")),n}#e(){let r=[];return this.tracingHelper.isEnabled()&&r.push("tracing"),this.logLevel&&r.push(this.logLevel),this.logQueries&&r.push("query"),r}};function uf(e){return e[0]*1e3+e[1]/1e6}function fo(e){return new Date(uf(e))}var Vr=class extends se{name="ForcedRetryError";code="P5001";constructor(r){super("This request must be retried",C(r,!0))}};x(Vr,"ForcedRetryError");var cr=class extends se{name="NotImplementedYetError";code="P5004";constructor(r,t){super(r,C(t,!1))}};x(cr,"NotImplementedYetError");var $=class extends se{response;constructor(r,t){super(r,t),this.response=t.response;let n=this.response.headers.get("prisma-request-id");if(n){let i=`(The request id was: ${n})`;this.message=this.message+" "+i}}};var pr=class extends ${name="SchemaMissingError";code="P5005";constructor(r){super("Schema needs to be uploaded",C(r,!0))}};x(pr,"SchemaMissingError");var go="This request could not be understood by the server",Rt=class extends ${name="BadRequestError";code="P5000";constructor(r,t,n){super(t||go,C(r,!1)),n&&(this.code=n)}};x(Rt,"BadRequestError");var Ct=class extends ${name="HealthcheckTimeoutError";code="P5013";logs;constructor(r,t){super("Engine not started: healthcheck timeout",C(r,!0)),this.logs=t}};x(Ct,"HealthcheckTimeoutError");var At=class extends ${name="EngineStartupError";code="P5014";logs;constructor(r,t,n){super(t,C(r,!0)),this.logs=n}};x(At,"EngineStartupError");var It=class extends ${name="EngineVersionNotSupportedError";code="P5012";constructor(r){super("Engine version is not supported",C(r,!1))}};x(It,"EngineVersionNotSupportedError");var ho="Request timed out",kt=class extends ${name="GatewayTimeoutError";code="P5009";constructor(r,t=ho){super(t,C(r,!1))}};x(kt,"GatewayTimeoutError");var cf="Interactive transaction error",Dt=class extends ${name="InteractiveTransactionError";code="P5015";constructor(r,t=cf){super(t,C(r,!1))}};x(Dt,"InteractiveTransactionError");var pf="Request parameters are invalid",Ot=class extends ${name="InvalidRequestError";code="P5011";constructor(r,t=pf){super(t,C(r,!1))}};x(Ot,"InvalidRequestError");var yo="Requested resource does not exist",_t=class extends ${name="NotFoundError";code="P5003";constructor(r,t=yo){super(t,C(r,!1))}};x(_t,"NotFoundError");var bo="Unknown server error",Br=class extends ${name="ServerError";code="P5006";logs;constructor(r,t,n){super(t||bo,C(r,!0)),this.logs=n}};x(Br,"ServerError");var Eo="Unauthorized, check your connection string",Nt=class extends ${name="UnauthorizedError";code="P5007";constructor(r,t=Eo){super(t,C(r,!1))}};x(Nt,"UnauthorizedError");var wo="Usage exceeded, retry again later",Lt=class extends ${name="UsageExceededError";code="P5008";constructor(r,t=wo){super(t,C(r,!0))}};x(Lt,"UsageExceededError");async function df(e){let r;try{r=await e.text()}catch{return{type:"EmptyError"}}try{let t=JSON.parse(r);if(typeof t=="string")switch(t){case"InternalDataProxyError":return{type:"DataProxyError",body:t};default:return{type:"UnknownTextError",body:t}}if(typeof t=="object"&&t!==null){if("is_panic"in t&&"message"in t&&"error_code"in t)return{type:"QueryEngineError",body:t};if("EngineNotStarted"in t||"InteractiveTransactionMisrouted"in t||"InvalidRequestError"in t){let n=Object.values(t)[0].reason;return typeof n=="string"&&!["SchemaMissing","EngineVersionNotSupported"].includes(n)?{type:"UnknownJsonError",body:t}:{type:"DataProxyError",body:t}}}return{type:"UnknownJsonError",body:t}}catch{return r===""?{type:"EmptyError"}:{type:"UnknownTextError",body:r}}}async function Ft(e,r){if(e.ok)return;let t={clientVersion:r,response:e},n=await df(e);if(n.type==="QueryEngineError")throw new z(n.body.message,{code:n.body.error_code,clientVersion:r});if(n.type==="DataProxyError"){if(n.body==="InternalDataProxyError")throw new Br(t,"Internal Data Proxy error");if("EngineNotStarted"in n.body){if(n.body.EngineNotStarted.reason==="SchemaMissing")return new pr(t);if(n.body.EngineNotStarted.reason==="EngineVersionNotSupported")throw new It(t);if("EngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,logs:o}=n.body.EngineNotStarted.reason.EngineStartupError;throw new At(t,i,o)}if("KnownEngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,error_code:o}=n.body.EngineNotStarted.reason.KnownEngineStartupError;throw new T(i,r,o)}if("HealthcheckTimeout"in n.body.EngineNotStarted.reason){let{logs:i}=n.body.EngineNotStarted.reason.HealthcheckTimeout;throw new Ct(t,i)}}if("InteractiveTransactionMisrouted"in n.body){let i={IDParseError:"Could not parse interactive transaction ID",NoQueryEngineFoundError:"Could not find Query Engine for the specified host and transaction ID",TransactionStartError:"Could not start interactive transaction"};throw new Dt(t,i[n.body.InteractiveTransactionMisrouted.reason])}if("InvalidRequestError"in n.body)throw new Ot(t,n.body.InvalidRequestError.reason)}if(e.status===401||e.status===403)throw new Nt(t,Ur(Eo,n));if(e.status===404)return new _t(t,Ur(yo,n));if(e.status===429)throw new Lt(t,Ur(wo,n));if(e.status===504)throw new kt(t,Ur(ho,n));if(e.status>=500)throw new Br(t,Ur(bo,n));if(e.status>=400)throw new Rt(t,Ur(go,n))}function Ur(e,r){return r.type==="EmptyError"?e:`${e}: ${JSON.stringify(r)}`}function Al(e){let r=Math.pow(2,e)*50,t=Math.ceil(Math.random()*r)-Math.ceil(r/2),n=r+t;return new Promise(i=>setTimeout(()=>i(n),n))}var $e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Il(e){let r=new TextEncoder().encode(e),t="",n=r.byteLength,i=n%3,o=n-i,s,a,l,u,c;for(let p=0;p>18,a=(c&258048)>>12,l=(c&4032)>>6,u=c&63,t+=$e[s]+$e[a]+$e[l]+$e[u];return i==1?(c=r[o],s=(c&252)>>2,a=(c&3)<<4,t+=$e[s]+$e[a]+"=="):i==2&&(c=r[o]<<8|r[o+1],s=(c&64512)>>10,a=(c&1008)>>4,l=(c&15)<<2,t+=$e[s]+$e[a]+$e[l]+"="),t}function kl(e){if(!!e.generator?.previewFeatures.some(t=>t.toLowerCase().includes("metrics")))throw new T("The `metrics` preview feature is not yet available with Accelerate.\nPlease remove `metrics` from the `previewFeatures` in your schema.\n\nMore information about Accelerate: https://pris.ly/d/accelerate",e.clientVersion)}var Dl={"@prisma/debug":"workspace:*","@prisma/engines-version":"6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc","@prisma/fetch-engine":"workspace:*","@prisma/get-platform":"workspace:*"};var Mt=class extends se{name="RequestError";code="P5010";constructor(r,t){super(`Cannot fetch data from service: -${r}`,C(t,!0))}};x(Mt,"RequestError");async function dr(e,r,t=n=>n){let{clientVersion:n,...i}=r,o=t(fetch);try{return await o(e,i)}catch(s){let a=s.message??"Unknown error";throw new Mt(a,{clientVersion:n,cause:s})}}var ff=/^[1-9][0-9]*\.[0-9]+\.[0-9]+$/,Ol=N("prisma:client:dataproxyEngine");async function gf(e,r){let t=Dl["@prisma/engines-version"],n=r.clientVersion??"unknown";if(process.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION||globalThis.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION)return process.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION||globalThis.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION;if(e.includes("accelerate")&&n!=="0.0.0"&&n!=="in-memory")return n;let[i,o]=n?.split("-")??[];if(o===void 0&&ff.test(i))return i;if(o!==void 0||n==="0.0.0"||n==="in-memory"){let[s]=t.split("-")??[],[a,l,u]=s.split("."),c=hf(`<=${a}.${l}.${u}`),p=await dr(c,{clientVersion:n});if(!p.ok)throw new Error(`Failed to fetch stable Prisma version, unpkg.com status ${p.status} ${p.statusText}, response body: ${await p.text()||""}`);let d=await p.text();Ol("length of body fetched from unpkg.com",d.length);let f;try{f=JSON.parse(d)}catch(h){throw console.error("JSON.parse error: body fetched from unpkg.com: ",d),h}return f.version}throw new cr("Only `major.minor.patch` versions are supported by Accelerate.",{clientVersion:n})}async function _l(e,r){let t=await gf(e,r);return Ol("version",t),t}function hf(e){return encodeURI(`https://unpkg.com/prisma@${e}/package.json`)}var Nl=3,$t=N("prisma:client:dataproxyEngine"),qt=class{name="DataProxyEngine";inlineSchema;inlineSchemaHash;inlineDatasources;config;logEmitter;env;clientVersion;engineHash;tracingHelper;remoteClientVersion;host;headerBuilder;startPromise;protocol;constructor(r){kl(r),this.config=r,this.env=r.env,this.inlineSchema=Il(r.inlineSchema),this.inlineDatasources=r.inlineDatasources,this.inlineSchemaHash=r.inlineSchemaHash,this.clientVersion=r.clientVersion,this.engineHash=r.engineVersion,this.logEmitter=r.logEmitter,this.tracingHelper=r.tracingHelper}apiKey(){return this.headerBuilder.apiKey}version(){return this.engineHash}async start(){this.startPromise!==void 0&&await this.startPromise,this.startPromise=(async()=>{let{apiKey:r,url:t}=this.getURLAndAPIKey();this.host=t.host,this.protocol=t.protocol,this.headerBuilder=new Kn({apiKey:r,tracingHelper:this.tracingHelper,logLevel:this.config.logLevel??"error",logQueries:this.config.logQueries,engineHash:this.engineHash}),this.remoteClientVersion=await _l(this.host,this.config),$t("host",this.host),$t("protocol",this.protocol)})(),await this.startPromise}async stop(){}propagateResponseExtensions(r){r?.logs?.length&&r.logs.forEach(t=>{switch(t.level){case"debug":case"trace":$t(t);break;case"error":case"warn":case"info":{this.logEmitter.emit(t.level,{timestamp:fo(t.timestamp),message:t.attributes.message??"",target:t.target});break}case"query":{this.logEmitter.emit("query",{query:t.attributes.query??"",timestamp:fo(t.timestamp),duration:t.attributes.duration_ms??0,params:t.attributes.params??"",target:t.target});break}default:t.level}}),r?.traces?.length&&this.tracingHelper.dispatchEngineSpans(r.traces)}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the remote query engine')}async url(r){return await this.start(),`${this.protocol}//${this.host}/${this.remoteClientVersion}/${this.inlineSchemaHash}/${r}`}async uploadSchema(){let r={name:"schemaUpload",internal:!0};return this.tracingHelper.runInChildSpan(r,async()=>{let t=await dr(await this.url("schema"),{method:"PUT",headers:this.headerBuilder.build(),body:this.inlineSchema,clientVersion:this.clientVersion});t.ok||$t("schema response status",t.status);let n=await Ft(t,this.clientVersion);if(n)throw this.logEmitter.emit("warn",{message:`Error while uploading schema: ${n.message}`,timestamp:new Date,target:""}),n;this.logEmitter.emit("info",{message:`Schema (re)uploaded (hash: ${this.inlineSchemaHash})`,timestamp:new Date,target:""})})}request(r,{traceparent:t,interactiveTransaction:n,customDataProxyFetch:i}){return this.requestInternal({body:r,traceparent:t,interactiveTransaction:n,customDataProxyFetch:i})}async requestBatch(r,{traceparent:t,transaction:n,customDataProxyFetch:i}){let o=n?.kind==="itx"?n.options:void 0,s=Mr(r,n);return(await this.requestInternal({body:s,customDataProxyFetch:i,interactiveTransaction:o,traceparent:t})).map(l=>(l.extensions&&this.propagateResponseExtensions(l.extensions),"errors"in l?this.convertProtocolErrorsToClientError(l.errors):l))}requestInternal({body:r,traceparent:t,customDataProxyFetch:n,interactiveTransaction:i}){return this.withRetry({actionGerund:"querying",callback:async({logHttpCall:o})=>{let s=i?`${i.payload.endpoint}/graphql`:await this.url("graphql");o(s);let a=await dr(s,{method:"POST",headers:this.headerBuilder.build({traceparent:t,transactionId:i?.id}),body:JSON.stringify(r),clientVersion:this.clientVersion},n);a.ok||$t("graphql response status",a.status),await this.handleError(await Ft(a,this.clientVersion));let l=await a.json();if(l.extensions&&this.propagateResponseExtensions(l.extensions),"errors"in l)throw this.convertProtocolErrorsToClientError(l.errors);return"batchResult"in l?l.batchResult:l}})}async transaction(r,t,n){let i={start:"starting",commit:"committing",rollback:"rolling back"};return this.withRetry({actionGerund:`${i[r]} transaction`,callback:async({logHttpCall:o})=>{if(r==="start"){let s=JSON.stringify({max_wait:n.maxWait,timeout:n.timeout,isolation_level:n.isolationLevel}),a=await this.url("transaction/start");o(a);let l=await dr(a,{method:"POST",headers:this.headerBuilder.build({traceparent:t.traceparent}),body:s,clientVersion:this.clientVersion});await this.handleError(await Ft(l,this.clientVersion));let u=await l.json(),{extensions:c}=u;c&&this.propagateResponseExtensions(c);let p=u.id,d=u["data-proxy"].endpoint;return{id:p,payload:{endpoint:d}}}else{let s=`${n.payload.endpoint}/${r}`;o(s);let a=await dr(s,{method:"POST",headers:this.headerBuilder.build({traceparent:t.traceparent}),clientVersion:this.clientVersion});await this.handleError(await Ft(a,this.clientVersion));let l=await a.json(),{extensions:u}=l;u&&this.propagateResponseExtensions(u);return}}})}getURLAndAPIKey(){return Rl({clientVersion:this.clientVersion,env:this.env,inlineDatasources:this.inlineDatasources,overrideDatasources:this.config.overrideDatasources})}metrics(){throw new cr("Metrics are not yet supported for Accelerate",{clientVersion:this.clientVersion})}async withRetry(r){for(let t=0;;t++){let n=i=>{this.logEmitter.emit("info",{message:`Calling ${i} (n=${t})`,timestamp:new Date,target:""})};try{return await r.callback({logHttpCall:n})}catch(i){if(!(i instanceof se)||!i.isRetryable)throw i;if(t>=Nl)throw i instanceof Vr?i.cause:i;this.logEmitter.emit("warn",{message:`Attempt ${t+1}/${Nl} failed for ${r.actionGerund}: ${i.message??"(unknown)"}`,timestamp:new Date,target:""});let o=await Al(t);this.logEmitter.emit("warn",{message:`Retrying after ${o}ms`,timestamp:new Date,target:""})}}}async handleError(r){if(r instanceof pr)throw await this.uploadSchema(),new Vr({clientVersion:this.clientVersion,cause:r});if(r)throw r}convertProtocolErrorsToClientError(r){return r.length===1?$r(r[0],this.config.clientVersion,this.config.activeProvider):new j(JSON.stringify(r),{clientVersion:this.config.clientVersion})}applyPendingMigrations(){throw new Error("Method not implemented.")}};function Ll(e){if(e?.kind==="itx")return e.options.id}var vo=A(require("node:os")),Fl=A(require("node:path"));var xo=Symbol("PrismaLibraryEngineCache");function yf(){let e=globalThis;return e[xo]===void 0&&(e[xo]={}),e[xo]}function bf(e){let r=yf();if(r[e]!==void 0)return r[e];let t=Fl.default.toNamespacedPath(e),n={exports:{}},i=0;return process.platform!=="win32"&&(i=vo.default.constants.dlopen.RTLD_LAZY|vo.default.constants.dlopen.RTLD_DEEPBIND),process.dlopen(n,t,i),r[e]=n.exports,n.exports}var Ml={async loadLibrary(e){let r=await gi(),t=await yl("library",e);try{return e.tracingHelper.runInChildSpan({name:"loadLibrary",internal:!0},()=>bf(t))}catch(n){let i=Ri({e:n,platformInfo:r,id:t});throw new T(i,e.clientVersion)}}};var Po,$l={async loadLibrary(e){let{clientVersion:r,adapter:t,engineWasm:n}=e;if(t===void 0)throw new T(`The \`adapter\` option for \`PrismaClient\` is required in this context (${Bn().prettyName})`,r);if(n===void 0)throw new T("WASM engine was unexpectedly `undefined`",r);Po===void 0&&(Po=(async()=>{let o=await n.getRuntime(),s=await n.getQueryEngineWasmModule();if(s==null)throw new T("The loaded wasm module was unexpectedly `undefined` or `null` once loaded",r);let a={"./query_engine_bg.js":o},l=new WebAssembly.Instance(s,a),u=l.exports.__wbindgen_start;return o.__wbg_set_wasm(l.exports),u(),o.QueryEngine})());let i=await Po;return{debugPanic(){return Promise.reject("{}")},dmmf(){return Promise.resolve("{}")},version(){return{commit:"unknown",version:"unknown"}},QueryEngine:i}}};var Ef="P2036",Ce=N("prisma:client:libraryEngine");function wf(e){return e.item_type==="query"&&"query"in e}function xf(e){return"level"in e?e.level==="error"&&e.message==="PANIC":!1}var ql=[...ui,"native"],vf=0xffffffffffffffffn,To=1n;function Pf(){let e=To++;return To>vf&&(To=1n),e}var Gr=class{name="LibraryEngine";engine;libraryInstantiationPromise;libraryStartingPromise;libraryStoppingPromise;libraryStarted;executingQueryPromise;config;QueryEngineConstructor;libraryLoader;library;logEmitter;libQueryEnginePath;binaryTarget;datasourceOverrides;datamodel;logQueries;logLevel;lastQuery;loggerRustPanic;tracingHelper;adapterPromise;versionInfo;constructor(r,t){this.libraryLoader=t??Ml,r.engineWasm!==void 0&&(this.libraryLoader=t??$l),this.config=r,this.libraryStarted=!1,this.logQueries=r.logQueries??!1,this.logLevel=r.logLevel??"error",this.logEmitter=r.logEmitter,this.datamodel=r.inlineSchema,this.tracingHelper=r.tracingHelper,r.enableDebugLogs&&(this.logLevel="debug");let n=Object.keys(r.overrideDatasources)[0],i=r.overrideDatasources[n]?.url;n!==void 0&&i!==void 0&&(this.datasourceOverrides={[n]:i}),this.libraryInstantiationPromise=this.instantiateLibrary()}wrapEngine(r){return{applyPendingMigrations:r.applyPendingMigrations?.bind(r),commitTransaction:this.withRequestId(r.commitTransaction.bind(r)),connect:this.withRequestId(r.connect.bind(r)),disconnect:this.withRequestId(r.disconnect.bind(r)),metrics:r.metrics?.bind(r),query:this.withRequestId(r.query.bind(r)),rollbackTransaction:this.withRequestId(r.rollbackTransaction.bind(r)),sdlSchema:r.sdlSchema?.bind(r),startTransaction:this.withRequestId(r.startTransaction.bind(r)),trace:r.trace.bind(r),free:r.free?.bind(r)}}withRequestId(r){return async(...t)=>{let n=Pf().toString();try{return await r(...t,n)}finally{if(this.tracingHelper.isEnabled()){let i=await this.engine?.trace(n);if(i){let o=JSON.parse(i);this.tracingHelper.dispatchEngineSpans(o.spans)}}}}}async applyPendingMigrations(){throw new Error("Cannot call this method from this type of engine instance")}async transaction(r,t,n){await this.start();let i=await this.adapterPromise,o=JSON.stringify(t),s;if(r==="start"){let l=JSON.stringify({max_wait:n.maxWait,timeout:n.timeout,isolation_level:n.isolationLevel});s=await this.engine?.startTransaction(l,o)}else r==="commit"?s=await this.engine?.commitTransaction(n.id,o):r==="rollback"&&(s=await this.engine?.rollbackTransaction(n.id,o));let a=this.parseEngineResponse(s);if(Tf(a)){let l=this.getExternalAdapterError(a,i?.errorRegistry);throw l?l.error:new z(a.message,{code:a.error_code,clientVersion:this.config.clientVersion,meta:a.meta})}else if(typeof a.message=="string")throw new j(a.message,{clientVersion:this.config.clientVersion});return a}async instantiateLibrary(){if(Ce("internalSetup"),this.libraryInstantiationPromise)return this.libraryInstantiationPromise;li(),this.binaryTarget=await this.getCurrentBinaryTarget(),await this.tracingHelper.runInChildSpan("load_engine",()=>this.loadEngine()),this.version()}async getCurrentBinaryTarget(){{if(this.binaryTarget)return this.binaryTarget;let r=await this.tracingHelper.runInChildSpan("detect_platform",()=>ir());if(!ql.includes(r))throw new T(`Unknown ${ce("PRISMA_QUERY_ENGINE_LIBRARY")} ${ce(W(r))}. Possible binaryTargets: ${qe(ql.join(", "))} or a path to the query engine library. -You may have to run ${qe("prisma generate")} for your changes to take effect.`,this.config.clientVersion);return r}}parseEngineResponse(r){if(!r)throw new j("Response from the Engine was empty",{clientVersion:this.config.clientVersion});try{return JSON.parse(r)}catch{throw new j("Unable to JSON.parse response from engine",{clientVersion:this.config.clientVersion})}}async loadEngine(){if(!this.engine){this.QueryEngineConstructor||(this.library=await this.libraryLoader.loadLibrary(this.config),this.QueryEngineConstructor=this.library.QueryEngine);try{let r=new WeakRef(this);this.adapterPromise||(this.adapterPromise=this.config.adapter?.connect()?.then(Jn));let t=await this.adapterPromise;t&&Ce("Using driver adapter: %O",t),this.engine=this.wrapEngine(new this.QueryEngineConstructor({datamodel:this.datamodel,env:process.env,logQueries:this.config.logQueries??!1,ignoreEnvVarErrors:!0,datasourceOverrides:this.datasourceOverrides??{},logLevel:this.logLevel,configDir:this.config.cwd,engineProtocol:"json",enableTracing:this.tracingHelper.isEnabled()},n=>{r.deref()?.logger(n)},t))}catch(r){let t=r,n=this.parseInitError(t.message);throw typeof n=="string"?t:new T(n.message,this.config.clientVersion,n.error_code)}}}logger(r){let t=this.parseEngineResponse(r);t&&(t.level=t?.level.toLowerCase()??"unknown",wf(t)?this.logEmitter.emit("query",{timestamp:new Date,query:t.query,params:t.params,duration:Number(t.duration_ms),target:t.module_path}):xf(t)?this.loggerRustPanic=new le(So(this,`${t.message}: ${t.reason} in ${t.file}:${t.line}:${t.column}`),this.config.clientVersion):this.logEmitter.emit(t.level,{timestamp:new Date,message:t.message,target:t.module_path}))}parseInitError(r){try{return JSON.parse(r)}catch{}return r}parseRequestError(r){try{return JSON.parse(r)}catch{}return r}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the library engine since Prisma 5.0.0, it is only relevant and implemented for the binary engine. Please add your event listener to the `process` object directly instead.')}async start(){if(this.libraryInstantiationPromise||(this.libraryInstantiationPromise=this.instantiateLibrary()),await this.libraryInstantiationPromise,await this.libraryStoppingPromise,this.libraryStartingPromise)return Ce(`library already starting, this.libraryStarted: ${this.libraryStarted}`),this.libraryStartingPromise;if(this.libraryStarted)return;let r=async()=>{Ce("library starting");try{let t={traceparent:this.tracingHelper.getTraceParent()};await this.engine?.connect(JSON.stringify(t)),this.libraryStarted=!0,this.adapterPromise||(this.adapterPromise=this.config.adapter?.connect()?.then(Jn)),await this.adapterPromise,Ce("library started")}catch(t){let n=this.parseInitError(t.message);throw typeof n=="string"?t:new T(n.message,this.config.clientVersion,n.error_code)}finally{this.libraryStartingPromise=void 0}};return this.libraryStartingPromise=this.tracingHelper.runInChildSpan("connect",r),this.libraryStartingPromise}async stop(){if(await this.libraryInstantiationPromise,await this.libraryStartingPromise,await this.executingQueryPromise,this.libraryStoppingPromise)return Ce("library is already stopping"),this.libraryStoppingPromise;if(!this.libraryStarted){await(await this.adapterPromise)?.dispose(),this.adapterPromise=void 0;return}let r=async()=>{await new Promise(n=>setImmediate(n)),Ce("library stopping");let t={traceparent:this.tracingHelper.getTraceParent()};await this.engine?.disconnect(JSON.stringify(t)),this.engine?.free&&this.engine.free(),this.engine=void 0,this.libraryStarted=!1,this.libraryStoppingPromise=void 0,this.libraryInstantiationPromise=void 0,await(await this.adapterPromise)?.dispose(),this.adapterPromise=void 0,Ce("library stopped")};return this.libraryStoppingPromise=this.tracingHelper.runInChildSpan("disconnect",r),this.libraryStoppingPromise}version(){return this.versionInfo=this.library?.version(),this.versionInfo?.version??"unknown"}debugPanic(r){return this.library?.debugPanic(r)}async request(r,{traceparent:t,interactiveTransaction:n}){Ce(`sending request, this.libraryStarted: ${this.libraryStarted}`);let i=JSON.stringify({traceparent:t}),o=JSON.stringify(r);try{await this.start();let s=await this.adapterPromise;this.executingQueryPromise=this.engine?.query(o,i,n?.id),this.lastQuery=o;let a=this.parseEngineResponse(await this.executingQueryPromise);if(a.errors)throw a.errors.length===1?this.buildQueryError(a.errors[0],s?.errorRegistry):new j(JSON.stringify(a.errors),{clientVersion:this.config.clientVersion});if(this.loggerRustPanic)throw this.loggerRustPanic;return{data:a}}catch(s){if(s instanceof T)throw s;if(s.code==="GenericFailure"&&s.message?.startsWith("PANIC:"))throw new le(So(this,s.message),this.config.clientVersion);let a=this.parseRequestError(s.message);throw typeof a=="string"?s:new j(`${a.message} -${a.backtrace}`,{clientVersion:this.config.clientVersion})}}async requestBatch(r,{transaction:t,traceparent:n}){Ce("requestBatch");let i=Mr(r,t);await this.start();let o=await this.adapterPromise;this.lastQuery=JSON.stringify(i),this.executingQueryPromise=this.engine?.query(this.lastQuery,JSON.stringify({traceparent:n}),Ll(t));let s=await this.executingQueryPromise,a=this.parseEngineResponse(s);if(a.errors)throw a.errors.length===1?this.buildQueryError(a.errors[0],o?.errorRegistry):new j(JSON.stringify(a.errors),{clientVersion:this.config.clientVersion});let{batchResult:l,errors:u}=a;if(Array.isArray(l))return l.map(c=>c.errors&&c.errors.length>0?this.loggerRustPanic??this.buildQueryError(c.errors[0],o?.errorRegistry):{data:c});throw u&&u.length===1?new Error(u[0].error):new Error(JSON.stringify(a))}buildQueryError(r,t){if(r.user_facing_error.is_panic)return new le(So(this,r.user_facing_error.message),this.config.clientVersion);let n=this.getExternalAdapterError(r.user_facing_error,t);return n?n.error:$r(r,this.config.clientVersion,this.config.activeProvider)}getExternalAdapterError(r,t){if(r.error_code===Ef&&t){let n=r.meta?.id;sn(typeof n=="number","Malformed external JS error received from the engine");let i=t.consumeError(n);return sn(i,"External error with reported id was not registered"),i}}async metrics(r){await this.start();let t=await this.engine.metrics(JSON.stringify(r));return r.format==="prometheus"?t:this.parseEngineResponse(t)}};function Tf(e){return typeof e=="object"&&e!==null&&e.error_code!==void 0}function So(e,r){return Pl({binaryTarget:e.binaryTarget,title:r,version:e.config.clientVersion,engineVersion:e.versionInfo?.commit,database:e.config.activeProvider,query:e.lastQuery})}function jl({url:e,adapter:r,copyEngine:t,targetBuildType:n}){let i=[],o=[],s=g=>{i.push({_tag:"warning",value:g})},a=g=>{let S=g.join(` -`);o.push({_tag:"error",value:S})},l=!!e?.startsWith("prisma://"),u=on(e),c=!!r,p=l||u;!c&&t&&p&&s(["recommend--no-engine","In production, we recommend using `prisma generate --no-engine` (See: `prisma generate --help`)"]);let d=p||!t;c&&(d||n==="edge")&&(n==="edge"?a(["Prisma Client was configured to use the `adapter` option but it was imported via its `/edge` endpoint.","Please either remove the `/edge` endpoint or remove the `adapter` from the Prisma Client constructor."]):t?l&&a(["Prisma Client was configured to use the `adapter` option but the URL was a `prisma://` URL.","Please either use the `prisma://` URL or remove the `adapter` from the Prisma Client constructor."]):a(["Prisma Client was configured to use the `adapter` option but `prisma generate` was run with `--no-engine`.","Please run `prisma generate` without `--no-engine` to be able to use Prisma Client with the adapter."]));let f={accelerate:d,ppg:u,driverAdapters:c};function h(g){return g.length>0}return h(o)?{ok:!1,diagnostics:{warnings:i,errors:o},isUsing:f}:{ok:!0,diagnostics:{warnings:i},isUsing:f}}function Vl({copyEngine:e=!0},r){let t;try{t=jr({inlineDatasources:r.inlineDatasources,overrideDatasources:r.overrideDatasources,env:{...r.env,...process.env},clientVersion:r.clientVersion})}catch{}let{ok:n,isUsing:i,diagnostics:o}=jl({url:t,adapter:r.adapter,copyEngine:e,targetBuildType:"library"});for(let p of o.warnings)st(...p.value);if(!n){let p=o.errors[0];throw new Z(p.value,{clientVersion:r.clientVersion})}let s=Er(r.generator),a=s==="library",l=s==="binary",u=s==="client",c=(i.accelerate||i.ppg)&&!i.driverAdapters;return i.accelerate?new qt(r):(i.driverAdapters,a?new Gr(r):(i.accelerate,new Gr(r)))}function Yn({generator:e}){return e?.previewFeatures??[]}var Bl=e=>({command:e});var Ul=e=>e.strings.reduce((r,t,n)=>`${r}@P${n}${t}`);function Qr(e){try{return Gl(e,"fast")}catch{return Gl(e,"slow")}}function Gl(e,r){return JSON.stringify(e.map(t=>Wl(t,r)))}function Wl(e,r){if(Array.isArray(e))return e.map(t=>Wl(t,r));if(typeof e=="bigint")return{prisma__type:"bigint",prisma__value:e.toString()};if(Sr(e))return{prisma__type:"date",prisma__value:e.toJSON()};if(ve.isDecimal(e))return{prisma__type:"decimal",prisma__value:e.toJSON()};if(Buffer.isBuffer(e))return{prisma__type:"bytes",prisma__value:e.toString("base64")};if(Sf(e))return{prisma__type:"bytes",prisma__value:Buffer.from(e).toString("base64")};if(ArrayBuffer.isView(e)){let{buffer:t,byteOffset:n,byteLength:i}=e;return{prisma__type:"bytes",prisma__value:Buffer.from(t,n,i).toString("base64")}}return typeof e=="object"&&r==="slow"?Jl(e):e}function Sf(e){return e instanceof ArrayBuffer||e instanceof SharedArrayBuffer?!0:typeof e=="object"&&e!==null?e[Symbol.toStringTag]==="ArrayBuffer"||e[Symbol.toStringTag]==="SharedArrayBuffer":!1}function Jl(e){if(typeof e!="object"||e===null)return e;if(typeof e.toJSON=="function")return e.toJSON();if(Array.isArray(e))return e.map(Ql);let r={};for(let t of Object.keys(e))r[t]=Ql(e[t]);return r}function Ql(e){return typeof e=="bigint"?e.toString():Jl(e)}var Rf=/^(\s*alter\s)/i,Hl=N("prisma:client");function Ro(e,r,t,n){if(!(e!=="postgresql"&&e!=="cockroachdb")&&t.length>0&&Rf.exec(r))throw new Error(`Running ALTER using ${n} is not supported -Using the example below you can still execute your query with Prisma, but please note that it is vulnerable to SQL injection attacks and requires you to take care of input sanitization. - -Example: - await prisma.$executeRawUnsafe(\`ALTER USER prisma WITH PASSWORD '\${password}'\`) - -More Information: https://pris.ly/d/execute-raw -`)}var Co=({clientMethod:e,activeProvider:r})=>t=>{let n="",i;if(Mn(t))n=t.sql,i={values:Qr(t.values),__prismaRawParameters__:!0};else if(Array.isArray(t)){let[o,...s]=t;n=o,i={values:Qr(s||[]),__prismaRawParameters__:!0}}else switch(r){case"sqlite":case"mysql":{n=t.sql,i={values:Qr(t.values),__prismaRawParameters__:!0};break}case"cockroachdb":case"postgresql":case"postgres":{n=t.text,i={values:Qr(t.values),__prismaRawParameters__:!0};break}case"sqlserver":{n=Ul(t),i={values:Qr(t.values),__prismaRawParameters__:!0};break}default:throw new Error(`The ${r} provider does not support ${e}`)}return i?.values?Hl(`prisma.${e}(${n}, ${i.values})`):Hl(`prisma.${e}(${n})`),{query:n,parameters:i}},Kl={requestArgsToMiddlewareArgs(e){return[e.strings,...e.values]},middlewareArgsToRequestArgs(e){let[r,...t]=e;return new oe(r,t)}},Yl={requestArgsToMiddlewareArgs(e){return[e]},middlewareArgsToRequestArgs(e){return e[0]}};function Ao(e){return function(t,n){let i,o=(s=e)=>{try{return s===void 0||s?.kind==="itx"?i??=zl(t(s)):zl(t(s))}catch(a){return Promise.reject(a)}};return{get spec(){return n},then(s,a){return o().then(s,a)},catch(s){return o().catch(s)},finally(s){return o().finally(s)},requestTransaction(s){let a=o(s);return a.requestTransaction?a.requestTransaction(s):a},[Symbol.toStringTag]:"PrismaPromise"}}}function zl(e){return typeof e.then=="function"?e:Promise.resolve(e)}var Cf=vi.split(".")[0],Af={isEnabled(){return!1},getTraceParent(){return"00-10-10-00"},dispatchEngineSpans(){},getActiveContext(){},runInChildSpan(e,r){return r()}},Io=class{isEnabled(){return this.getGlobalTracingHelper().isEnabled()}getTraceParent(r){return this.getGlobalTracingHelper().getTraceParent(r)}dispatchEngineSpans(r){return this.getGlobalTracingHelper().dispatchEngineSpans(r)}getActiveContext(){return this.getGlobalTracingHelper().getActiveContext()}runInChildSpan(r,t){return this.getGlobalTracingHelper().runInChildSpan(r,t)}getGlobalTracingHelper(){let r=globalThis[`V${Cf}_PRISMA_INSTRUMENTATION`],t=globalThis.PRISMA_INSTRUMENTATION;return r?.helper??t?.helper??Af}};function Zl(){return new Io}function Xl(e,r=()=>{}){let t,n=new Promise(i=>t=i);return{then(i){return--e===0&&t(r()),i?.(n)}}}function eu(e){return typeof e=="string"?e:e.reduce((r,t)=>{let n=typeof t=="string"?t:t.level;return n==="query"?r:r&&(t==="info"||r==="info")?"info":n},void 0)}var zn=class{_middlewares=[];use(r){this._middlewares.push(r)}get(r){return this._middlewares[r]}has(r){return!!this._middlewares[r]}length(){return this._middlewares.length}};var tu=A(_i());function Zn(e){return typeof e.batchRequestIdx=="number"}function ru(e){if(e.action!=="findUnique"&&e.action!=="findUniqueOrThrow")return;let r=[];return e.modelName&&r.push(e.modelName),e.query.arguments&&r.push(ko(e.query.arguments)),r.push(ko(e.query.selection)),r.join("")}function ko(e){return`(${Object.keys(e).sort().map(t=>{let n=e[t];return typeof n=="object"&&n!==null?`(${t} ${ko(n)})`:t}).join(" ")})`}var If={aggregate:!1,aggregateRaw:!1,createMany:!0,createManyAndReturn:!0,createOne:!0,deleteMany:!0,deleteOne:!0,executeRaw:!0,findFirst:!1,findFirstOrThrow:!1,findMany:!1,findRaw:!1,findUnique:!1,findUniqueOrThrow:!1,groupBy:!1,queryRaw:!1,runCommandRaw:!0,updateMany:!0,updateManyAndReturn:!0,updateOne:!0,upsertOne:!0};function Do(e){return If[e]}var Xn=class{constructor(r){this.options=r;this.batches={}}batches;tickActive=!1;request(r){let t=this.options.batchBy(r);return t?(this.batches[t]||(this.batches[t]=[],this.tickActive||(this.tickActive=!0,process.nextTick(()=>{this.dispatchBatches(),this.tickActive=!1}))),new Promise((n,i)=>{this.batches[t].push({request:r,resolve:n,reject:i})})):this.options.singleLoader(r)}dispatchBatches(){for(let r in this.batches){let t=this.batches[r];delete this.batches[r],t.length===1?this.options.singleLoader(t[0].request).then(n=>{n instanceof Error?t[0].reject(n):t[0].resolve(n)}).catch(n=>{t[0].reject(n)}):(t.sort((n,i)=>this.options.batchOrder(n.request,i.request)),this.options.batchLoader(t.map(n=>n.request)).then(n=>{if(n instanceof Error)for(let i=0;i{for(let i=0;imr("bigint",t));case"bytes-array":return r.map(t=>mr("bytes",t));case"decimal-array":return r.map(t=>mr("decimal",t));case"datetime-array":return r.map(t=>mr("datetime",t));case"date-array":return r.map(t=>mr("date",t));case"time-array":return r.map(t=>mr("time",t));default:return r}}function ei(e){let r=[],t=kf(e);for(let n=0;n{let{transaction:o,otelParentCtx:s}=n[0],a=n.map(p=>p.protocolQuery),l=this.client._tracingHelper.getTraceParent(s),u=n.some(p=>Do(p.protocolQuery.action));return(await this.client._engine.requestBatch(a,{traceparent:l,transaction:Of(o),containsWrite:u,customDataProxyFetch:i})).map((p,d)=>{if(p instanceof Error)return p;try{return this.mapQueryEngineResult(n[d],p)}catch(f){return f}})}),singleLoader:async n=>{let i=n.transaction?.kind==="itx"?nu(n.transaction):void 0,o=await this.client._engine.request(n.protocolQuery,{traceparent:this.client._tracingHelper.getTraceParent(),interactiveTransaction:i,isWrite:Do(n.protocolQuery.action),customDataProxyFetch:n.customDataProxyFetch});return this.mapQueryEngineResult(n,o)},batchBy:n=>n.transaction?.id?`transaction-${n.transaction.id}`:ru(n.protocolQuery),batchOrder(n,i){return n.transaction?.kind==="batch"&&i.transaction?.kind==="batch"?n.transaction.index-i.transaction.index:0}})}async request(r){try{return await this.dataloader.request(r)}catch(t){let{clientMethod:n,callsite:i,transaction:o,args:s,modelName:a}=r;this.handleAndLogRequestError({error:t,clientMethod:n,callsite:i,transaction:o,args:s,modelName:a,globalOmit:r.globalOmit})}}mapQueryEngineResult({dataPath:r,unpacker:t},n){let i=n?.data,o=this.unpack(i,r,t);return process.env.PRISMA_CLIENT_GET_TIME?{data:o}:o}handleAndLogRequestError(r){try{this.handleRequestError(r)}catch(t){throw this.logEmitter&&this.logEmitter.emit("error",{message:t.message,target:r.clientMethod,timestamp:new Date}),t}}handleRequestError({error:r,clientMethod:t,callsite:n,transaction:i,args:o,modelName:s,globalOmit:a}){if(Df(r),_f(r,i))throw r;if(r instanceof z&&Nf(r)){let u=iu(r.meta);Dn({args:o,errors:[u],callsite:n,errorFormat:this.client._errorFormat,originalMethod:t,clientVersion:this.client._clientVersion,globalOmit:a})}let l=r.message;if(n&&(l=xn({callsite:n,originalMethod:t,isPanic:r.isPanic,showColors:this.client._errorFormat==="pretty",message:l})),l=this.sanitizeMessage(l),r.code){let u=s?{modelName:s,...r.meta}:r.meta;throw new z(l,{code:r.code,clientVersion:this.client._clientVersion,meta:u,batchRequestIdx:r.batchRequestIdx})}else{if(r.isPanic)throw new le(l,this.client._clientVersion);if(r instanceof j)throw new j(l,{clientVersion:this.client._clientVersion,batchRequestIdx:r.batchRequestIdx});if(r instanceof T)throw new T(l,this.client._clientVersion);if(r instanceof le)throw new le(l,this.client._clientVersion)}throw r.clientVersion=this.client._clientVersion,r}sanitizeMessage(r){return this.client._errorFormat&&this.client._errorFormat!=="pretty"?(0,tu.default)(r):r}unpack(r,t,n){if(!r||(r.data&&(r=r.data),!r))return r;let i=Object.keys(r)[0],o=Object.values(r)[0],s=t.filter(u=>u!=="select"&&u!=="include"),a=so(o,s),l=i==="queryRaw"?ei(a):Tr(a);return n?n(l):l}get[Symbol.toStringTag](){return"RequestHandler"}};function Of(e){if(e){if(e.kind==="batch")return{kind:"batch",options:{isolationLevel:e.isolationLevel}};if(e.kind==="itx")return{kind:"itx",options:nu(e)};_e(e,"Unknown transaction kind")}}function nu(e){return{id:e.id,payload:e.payload}}function _f(e,r){return Zn(e)&&r?.kind==="batch"&&e.batchRequestIdx!==r.index}function Nf(e){return e.code==="P2009"||e.code==="P2012"}function iu(e){if(e.kind==="Union")return{kind:"Union",errors:e.errors.map(iu)};if(Array.isArray(e.selectionPath)){let[,...r]=e.selectionPath;return{...e,selectionPath:r}}return e}var ou=Sl;var cu=A(Ji());var O=class extends Error{constructor(r){super(r+` -Read more at https://pris.ly/d/client-constructor`),this.name="PrismaClientConstructorValidationError"}get[Symbol.toStringTag](){return"PrismaClientConstructorValidationError"}};x(O,"PrismaClientConstructorValidationError");var su=["datasources","datasourceUrl","errorFormat","adapter","log","transactionOptions","omit","__internal"],au=["pretty","colorless","minimal"],lu=["info","query","warn","error"],Lf={datasources:(e,{datasourceNames:r})=>{if(e){if(typeof e!="object"||Array.isArray(e))throw new O(`Invalid value ${JSON.stringify(e)} for "datasources" provided to PrismaClient constructor`);for(let[t,n]of Object.entries(e)){if(!r.includes(t)){let i=Wr(t,r)||` Available datasources: ${r.join(", ")}`;throw new O(`Unknown datasource ${t} provided to PrismaClient constructor.${i}`)}if(typeof n!="object"||Array.isArray(n))throw new O(`Invalid value ${JSON.stringify(e)} for datasource "${t}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(n&&typeof n=="object")for(let[i,o]of Object.entries(n)){if(i!=="url")throw new O(`Invalid value ${JSON.stringify(e)} for datasource "${t}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(typeof o!="string")throw new O(`Invalid value ${JSON.stringify(o)} for datasource "${t}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`)}}}},adapter:(e,r)=>{if(!e&&Er(r.generator)==="client")throw new O('Using engine type "client" requires a driver adapter to be provided to PrismaClient constructor.');if(e===null)return;if(e===void 0)throw new O('"adapter" property must not be undefined, use null to conditionally disable driver adapters.');if(!Yn(r).includes("driverAdapters"))throw new O('"adapter" property can only be provided to PrismaClient constructor when "driverAdapters" preview feature is enabled.');if(Er(r.generator)==="binary")throw new O('Cannot use a driver adapter with the "binary" Query Engine. Please use the "library" Query Engine.')},datasourceUrl:e=>{if(typeof e<"u"&&typeof e!="string")throw new O(`Invalid value ${JSON.stringify(e)} for "datasourceUrl" provided to PrismaClient constructor. -Expected string or undefined.`)},errorFormat:e=>{if(e){if(typeof e!="string")throw new O(`Invalid value ${JSON.stringify(e)} for "errorFormat" provided to PrismaClient constructor.`);if(!au.includes(e)){let r=Wr(e,au);throw new O(`Invalid errorFormat ${e} provided to PrismaClient constructor.${r}`)}}},log:e=>{if(!e)return;if(!Array.isArray(e))throw new O(`Invalid value ${JSON.stringify(e)} for "log" provided to PrismaClient constructor.`);function r(t){if(typeof t=="string"&&!lu.includes(t)){let n=Wr(t,lu);throw new O(`Invalid log level "${t}" provided to PrismaClient constructor.${n}`)}}for(let t of e){r(t);let n={level:r,emit:i=>{let o=["stdout","event"];if(!o.includes(i)){let s=Wr(i,o);throw new O(`Invalid value ${JSON.stringify(i)} for "emit" in logLevel provided to PrismaClient constructor.${s}`)}}};if(t&&typeof t=="object")for(let[i,o]of Object.entries(t))if(n[i])n[i](o);else throw new O(`Invalid property ${i} for "log" provided to PrismaClient constructor`)}},transactionOptions:e=>{if(!e)return;let r=e.maxWait;if(r!=null&&r<=0)throw new O(`Invalid value ${r} for maxWait in "transactionOptions" provided to PrismaClient constructor. maxWait needs to be greater than 0`);let t=e.timeout;if(t!=null&&t<=0)throw new O(`Invalid value ${t} for timeout in "transactionOptions" provided to PrismaClient constructor. timeout needs to be greater than 0`)},omit:(e,r)=>{if(typeof e!="object")throw new O('"omit" option is expected to be an object.');if(e===null)throw new O('"omit" option can not be `null`');let t=[];for(let[n,i]of Object.entries(e)){let o=Mf(n,r.runtimeDataModel);if(!o){t.push({kind:"UnknownModel",modelKey:n});continue}for(let[s,a]of Object.entries(i)){let l=o.fields.find(u=>u.name===s);if(!l){t.push({kind:"UnknownField",modelKey:n,fieldName:s});continue}if(l.relationName){t.push({kind:"RelationInOmit",modelKey:n,fieldName:s});continue}typeof a!="boolean"&&t.push({kind:"InvalidFieldValue",modelKey:n,fieldName:s})}}if(t.length>0)throw new O($f(e,t))},__internal:e=>{if(!e)return;let r=["debug","engine","configOverride"];if(typeof e!="object")throw new O(`Invalid value ${JSON.stringify(e)} for "__internal" to PrismaClient constructor`);for(let[t]of Object.entries(e))if(!r.includes(t)){let n=Wr(t,r);throw new O(`Invalid property ${JSON.stringify(t)} for "__internal" provided to PrismaClient constructor.${n}`)}}};function pu(e,r){for(let[t,n]of Object.entries(e)){if(!su.includes(t)){let i=Wr(t,su);throw new O(`Unknown property ${t} provided to PrismaClient constructor.${i}`)}Lf[t](n,r)}if(e.datasourceUrl&&e.datasources)throw new O('Can not use "datasourceUrl" and "datasources" options at the same time. Pick one of them')}function Wr(e,r){if(r.length===0||typeof e!="string")return"";let t=Ff(e,r);return t?` Did you mean "${t}"?`:""}function Ff(e,r){if(r.length===0)return null;let t=r.map(i=>({value:i,distance:(0,cu.default)(e,i)}));t.sort((i,o)=>i.distanceYe(n)===r);if(t)return e[t]}function $f(e,r){let t=_r(e);for(let o of r)switch(o.kind){case"UnknownModel":t.arguments.getField(o.modelKey)?.markAsError(),t.addErrorMessage(()=>`Unknown model name: ${o.modelKey}.`);break;case"UnknownField":t.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),t.addErrorMessage(()=>`Model "${o.modelKey}" does not have a field named "${o.fieldName}".`);break;case"RelationInOmit":t.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),t.addErrorMessage(()=>'Relations are already excluded by default and can not be specified in "omit".');break;case"InvalidFieldValue":t.arguments.getDeepFieldValue([o.modelKey,o.fieldName])?.markAsError(),t.addErrorMessage(()=>"Omit field option value must be a boolean.");break}let{message:n,args:i}=kn(t,"colorless");return`Error validating "omit" option: - -${i} - -${n}`}function du(e){return e.length===0?Promise.resolve([]):new Promise((r,t)=>{let n=new Array(e.length),i=null,o=!1,s=0,a=()=>{o||(s++,s===e.length&&(o=!0,i?t(i):r(n)))},l=u=>{o||(o=!0,t(u))};for(let u=0;u{n[u]=c,a()},c=>{if(!Zn(c)){l(c);return}c.batchRequestIdx===u?l(c):(i||(i=c),a())})})}var rr=N("prisma:client");typeof globalThis=="object"&&(globalThis.NODE_CLIENT=!0);var qf={requestArgsToMiddlewareArgs:e=>e,middlewareArgsToRequestArgs:e=>e},jf=Symbol.for("prisma.client.transaction.id"),Vf={id:0,nextId(){return++this.id}};function bu(e){class r{_originalClient=this;_runtimeDataModel;_requestHandler;_connectionPromise;_disconnectionPromise;_engineConfig;_accelerateEngineConfig;_clientVersion;_errorFormat;_tracingHelper;_middlewares=new zn;_previewFeatures;_activeProvider;_globalOmit;_extensions;_engine;_appliedParent;_createPrismaPromise=Ao();constructor(n){e=n?.__internal?.configOverride?.(e)??e,cl(e),n&&pu(n,e);let i=new hu.EventEmitter().on("error",()=>{});this._extensions=Nr.empty(),this._previewFeatures=Yn(e),this._clientVersion=e.clientVersion??ou,this._activeProvider=e.activeProvider,this._globalOmit=n?.omit,this._tracingHelper=Zl();let o=e.relativeEnvPaths&&{rootEnvPath:e.relativeEnvPaths.rootEnvPath&&ti.default.resolve(e.dirname,e.relativeEnvPaths.rootEnvPath),schemaEnvPath:e.relativeEnvPaths.schemaEnvPath&&ti.default.resolve(e.dirname,e.relativeEnvPaths.schemaEnvPath)},s;if(n?.adapter){s=n.adapter;let l=e.activeProvider==="postgresql"||e.activeProvider==="cockroachdb"?"postgres":e.activeProvider;if(s.provider!==l)throw new T(`The Driver Adapter \`${s.adapterName}\`, based on \`${s.provider}\`, is not compatible with the provider \`${l}\` specified in the Prisma schema.`,this._clientVersion);if(n.datasources||n.datasourceUrl!==void 0)throw new T("Custom datasource configuration is not compatible with Prisma Driver Adapters. Please define the database connection string directly in the Driver Adapter configuration.",this._clientVersion)}let a=!s&&o&&ot(o,{conflictCheck:"none"})||e.injectableEdgeEnv?.();try{let l=n??{},u=l.__internal??{},c=u.debug===!0;c&&N.enable("prisma:client");let p=ti.default.resolve(e.dirname,e.relativePath);yu.default.existsSync(p)||(p=e.dirname),rr("dirname",e.dirname),rr("relativePath",e.relativePath),rr("cwd",p);let d=u.engine||{};if(l.errorFormat?this._errorFormat=l.errorFormat:process.env.NODE_ENV==="production"?this._errorFormat="minimal":process.env.NO_COLOR?this._errorFormat="colorless":this._errorFormat="colorless",this._runtimeDataModel=e.runtimeDataModel,this._engineConfig={cwd:p,dirname:e.dirname,enableDebugLogs:c,allowTriggerPanic:d.allowTriggerPanic,prismaPath:d.binaryPath??void 0,engineEndpoint:d.endpoint,generator:e.generator,showColors:this._errorFormat==="pretty",logLevel:l.log&&eu(l.log),logQueries:l.log&&!!(typeof l.log=="string"?l.log==="query":l.log.find(f=>typeof f=="string"?f==="query":f.level==="query")),env:a?.parsed??{},flags:[],engineWasm:e.engineWasm,compilerWasm:e.compilerWasm,clientVersion:e.clientVersion,engineVersion:e.engineVersion,previewFeatures:this._previewFeatures,activeProvider:e.activeProvider,inlineSchema:e.inlineSchema,overrideDatasources:pl(l,e.datasourceNames),inlineDatasources:e.inlineDatasources,inlineSchemaHash:e.inlineSchemaHash,tracingHelper:this._tracingHelper,transactionOptions:{maxWait:l.transactionOptions?.maxWait??2e3,timeout:l.transactionOptions?.timeout??5e3,isolationLevel:l.transactionOptions?.isolationLevel},logEmitter:i,isBundled:e.isBundled,adapter:s},this._accelerateEngineConfig={...this._engineConfig,accelerateUtils:{resolveDatasourceUrl:jr,getBatchRequestPayload:Mr,prismaGraphQLToJSError:$r,PrismaClientUnknownRequestError:j,PrismaClientInitializationError:T,PrismaClientKnownRequestError:z,debug:N("prisma:client:accelerateEngine"),engineVersion:fu.version,clientVersion:e.clientVersion}},rr("clientVersion",e.clientVersion),this._engine=Vl(e,this._engineConfig),this._requestHandler=new ri(this,i),l.log)for(let f of l.log){let h=typeof f=="string"?f:f.emit==="stdout"?f.level:null;h&&this.$on(h,g=>{tt.log(`${tt.tags[h]??""}`,g.message||g.query)})}}catch(l){throw l.clientVersion=this._clientVersion,l}return this._appliedParent=Pt(this)}get[Symbol.toStringTag](){return"PrismaClient"}$use(n){this._middlewares.use(n)}$on(n,i){return n==="beforeExit"?this._engine.onBeforeExit(i):n&&this._engineConfig.logEmitter.on(n,i),this}$connect(){try{return this._engine.start()}catch(n){throw n.clientVersion=this._clientVersion,n}}async $disconnect(){try{await this._engine.stop()}catch(n){throw n.clientVersion=this._clientVersion,n}finally{Qo()}}$executeRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"executeRaw",args:o,transaction:n,clientMethod:i,argsMapper:Co({clientMethod:i,activeProvider:a}),callsite:Ze(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$executeRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0){let[s,a]=mu(n,i);return Ro(this._activeProvider,s.text,s.values,Array.isArray(n)?"prisma.$executeRaw``":"prisma.$executeRaw(sql``)"),this.$executeRawInternal(o,"$executeRaw",s,a)}throw new Z("`$executeRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#executeraw\n",{clientVersion:this._clientVersion})})}$executeRawUnsafe(n,...i){return this._createPrismaPromise(o=>(Ro(this._activeProvider,n,i,"prisma.$executeRawUnsafe(, [...values])"),this.$executeRawInternal(o,"$executeRawUnsafe",[n,...i])))}$runCommandRaw(n){if(e.activeProvider!=="mongodb")throw new Z(`The ${e.activeProvider} provider does not support $runCommandRaw. Use the mongodb provider.`,{clientVersion:this._clientVersion});return this._createPrismaPromise(i=>this._request({args:n,clientMethod:"$runCommandRaw",dataPath:[],action:"runCommandRaw",argsMapper:Bl,callsite:Ze(this._errorFormat),transaction:i}))}async $queryRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"queryRaw",args:o,transaction:n,clientMethod:i,argsMapper:Co({clientMethod:i,activeProvider:a}),callsite:Ze(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$queryRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0)return this.$queryRawInternal(o,"$queryRaw",...mu(n,i));throw new Z("`$queryRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#queryraw\n",{clientVersion:this._clientVersion})})}$queryRawTyped(n){return this._createPrismaPromise(i=>{if(!this._hasPreviewFlag("typedSql"))throw new Z("`typedSql` preview feature must be enabled in order to access $queryRawTyped API",{clientVersion:this._clientVersion});return this.$queryRawInternal(i,"$queryRawTyped",n)})}$queryRawUnsafe(n,...i){return this._createPrismaPromise(o=>this.$queryRawInternal(o,"$queryRawUnsafe",[n,...i]))}_transactionWithArray({promises:n,options:i}){let o=Vf.nextId(),s=Xl(n.length),a=n.map((l,u)=>{if(l?.[Symbol.toStringTag]!=="PrismaPromise")throw new Error("All elements of the array need to be Prisma Client promises. Hint: Please make sure you are not awaiting the Prisma client calls you intended to pass in the $transaction function.");let c=i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel,p={kind:"batch",id:o,index:u,isolationLevel:c,lock:s};return l.requestTransaction?.(p)??l});return du(a)}async _transactionWithCallback({callback:n,options:i}){let o={traceparent:this._tracingHelper.getTraceParent()},s={maxWait:i?.maxWait??this._engineConfig.transactionOptions.maxWait,timeout:i?.timeout??this._engineConfig.transactionOptions.timeout,isolationLevel:i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel},a=await this._engine.transaction("start",o,s),l;try{let u={kind:"itx",...a};l=await n(this._createItxClient(u)),await this._engine.transaction("commit",o,a)}catch(u){throw await this._engine.transaction("rollback",o,a).catch(()=>{}),u}return l}_createItxClient(n){return he(Pt(he(Ka(this),[re("_appliedParent",()=>this._appliedParent._createItxClient(n)),re("_createPrismaPromise",()=>Ao(n)),re(jf,()=>n.id)])),[Fr(el)])}$transaction(n,i){let o;typeof n=="function"?this._engineConfig.adapter?.adapterName==="@prisma/adapter-d1"?o=()=>{throw new Error("Cloudflare D1 does not support interactive transactions. We recommend you to refactor your queries with that limitation in mind, and use batch transactions with `prisma.$transactions([])` where applicable.")}:o=()=>this._transactionWithCallback({callback:n,options:i}):o=()=>this._transactionWithArray({promises:n,options:i});let s={name:"transaction",attributes:{method:"$transaction"}};return this._tracingHelper.runInChildSpan(s,o)}_request(n){n.otelParentCtx=this._tracingHelper.getActiveContext();let i=n.middlewareArgsMapper??qf,o={args:i.requestArgsToMiddlewareArgs(n.args),dataPath:n.dataPath,runInTransaction:!!n.transaction,action:n.action,model:n.model},s={middleware:{name:"middleware",middleware:!0,attributes:{method:"$use"},active:!1},operation:{name:"operation",attributes:{method:o.action,model:o.model,name:o.model?`${o.model}.${o.action}`:o.action}}},a=-1,l=async u=>{let c=this._middlewares.get(++a);if(c)return this._tracingHelper.runInChildSpan(s.middleware,S=>c(u,P=>(S?.end(),l(P))));let{runInTransaction:p,args:d,...f}=u,h={...n,...f};d&&(h.args=i.middlewareArgsToRequestArgs(d)),n.transaction!==void 0&&p===!1&&delete h.transaction;let g=await il(this,h);return h.model?Xa({result:g,modelName:h.model,args:h.args,extensions:this._extensions,runtimeDataModel:this._runtimeDataModel,globalOmit:this._globalOmit}):g};return this._tracingHelper.runInChildSpan(s.operation,()=>new gu.AsyncResource("prisma-client-request").runInAsyncScope(()=>l(o)))}async _executeRequest({args:n,clientMethod:i,dataPath:o,callsite:s,action:a,model:l,argsMapper:u,transaction:c,unpacker:p,otelParentCtx:d,customDataProxyFetch:f}){try{n=u?u(n):n;let h={name:"serialize"},g=this._tracingHelper.runInChildSpan(h,()=>Ln({modelName:l,runtimeDataModel:this._runtimeDataModel,action:a,args:n,clientMethod:i,callsite:s,extensions:this._extensions,errorFormat:this._errorFormat,clientVersion:this._clientVersion,previewFeatures:this._previewFeatures,globalOmit:this._globalOmit}));return N.enabled("prisma:client")&&(rr("Prisma Client call:"),rr(`prisma.${i}(${$a(n)})`),rr("Generated request:"),rr(JSON.stringify(g,null,2)+` -`)),c?.kind==="batch"&&await c.lock,this._requestHandler.request({protocolQuery:g,modelName:l,action:a,clientMethod:i,dataPath:o,callsite:s,args:n,extensions:this._extensions,transaction:c,unpacker:p,otelParentCtx:d,otelChildCtx:this._tracingHelper.getActiveContext(),globalOmit:this._globalOmit,customDataProxyFetch:f})}catch(h){throw h.clientVersion=this._clientVersion,h}}$metrics=new Lr(this);_hasPreviewFlag(n){return!!this._engineConfig.previewFeatures?.includes(n)}$applyPendingMigrations(){return this._engine.applyPendingMigrations()}$extends=Ya}return r}function mu(e,r){return Bf(e)?[new oe(e,r),Kl]:[e,Yl]}function Bf(e){return Array.isArray(e)&&Array.isArray(e.raw)}var Uf=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function Eu(e){return new Proxy(e,{get(r,t){if(t in r)return r[t];if(!Uf.has(t))throw new TypeError(`Invalid enum value: ${String(t)}`)}})}function wu(e){ot(e,{conflictCheck:"warn"})}0&&(module.exports={DMMF,Debug,Decimal,Extensions,MetricsClient,PrismaClientInitializationError,PrismaClientKnownRequestError,PrismaClientRustPanicError,PrismaClientUnknownRequestError,PrismaClientValidationError,Public,Sql,createParam,defineDmmfProperty,deserializeJsonResponse,deserializeRawResult,dmmfToRuntimeDataModel,empty,getPrismaClient,getRuntime,join,makeStrictEnum,makeTypedQueryFactory,objectEnumValues,raw,serializeJsonQuery,skip,sqltag,warnEnvConflicts,warnOnce}); -/*! Bundled license information: - -decimal.js/decimal.mjs: - (*! - * decimal.js v10.5.0 - * An arbitrary-precision Decimal type for JavaScript. - * https://github.com/MikeMcl/decimal.js - * Copyright (c) 2025 Michael Mclaughlin - * MIT Licence - *) -*/ -//# sourceMappingURL=library.js.map diff --git a/prisma/generated/client/runtime/react-native.js b/prisma/generated/client/runtime/react-native.js deleted file mode 100644 index e0d8974..0000000 --- a/prisma/generated/client/runtime/react-native.js +++ /dev/null @@ -1,83 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! -/* eslint-disable */ -"use strict";var ba=Object.create;var tr=Object.defineProperty;var Ea=Object.getOwnPropertyDescriptor;var xa=Object.getOwnPropertyNames;var Pa=Object.getPrototypeOf,va=Object.prototype.hasOwnProperty;var ge=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ae=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ze=(e,t)=>{for(var r in t)tr(e,r,{get:t[r],enumerable:!0})},ni=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of xa(t))!va.call(e,i)&&i!==r&&tr(e,i,{get:()=>t[i],enumerable:!(n=Ea(t,i))||n.enumerable});return e};var Se=(e,t,r)=>(r=e!=null?ba(Pa(e)):{},ni(t||!e||!e.__esModule?tr(r,"default",{value:e,enumerable:!0}):r,e)),Ta=e=>ni(tr({},"__esModule",{value:!0}),e);var y,c=ge(()=>{"use strict";y={nextTick:(e,...t)=>{setTimeout(()=>{e(...t)},0)},env:{},version:"",cwd:()=>"/",stderr:{},argv:["/bin/node"],pid:1e4}});var x,p=ge(()=>{"use strict";x=globalThis.performance??(()=>{let e=Date.now();return{now:()=>Date.now()-e}})()});var E,d=ge(()=>{"use strict";E=()=>{};E.prototype=E});var b,m=ge(()=>{"use strict";b=class{value;constructor(t){this.value=t}deref(){return this.value}}});var Pi=Ae(rt=>{"use strict";f();c();p();d();m();var li=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ca=li(e=>{"use strict";e.byteLength=l,e.toByteArray=g,e.fromByteArray=R;var t=[],r=[],n=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(o=0,s=i.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var O=C.indexOf("=");O===-1&&(O=A);var M=O===A?0:4-O%4;return[O,M]}function l(C){var A=a(C),O=A[0],M=A[1];return(O+M)*3/4-M}function u(C,A,O){return(A+O)*3/4-O}function g(C){var A,O=a(C),M=O[0],L=O[1],k=new n(u(C,M,L)),N=0,z=L>0?M-4:M,j;for(j=0;j>16&255,k[N++]=A>>8&255,k[N++]=A&255;return L===2&&(A=r[C.charCodeAt(j)]<<2|r[C.charCodeAt(j+1)]>>4,k[N++]=A&255),L===1&&(A=r[C.charCodeAt(j)]<<10|r[C.charCodeAt(j+1)]<<4|r[C.charCodeAt(j+2)]>>2,k[N++]=A>>8&255,k[N++]=A&255),k}function h(C){return t[C>>18&63]+t[C>>12&63]+t[C>>6&63]+t[C&63]}function v(C,A,O){for(var M,L=[],k=A;kz?z:N+k));return M===1?(A=C[O-1],L.push(t[A>>2]+t[A<<4&63]+"==")):M===2&&(A=(C[O-2]<<8)+C[O-1],L.push(t[A>>10]+t[A>>4&63]+t[A<<2&63]+"=")),L.join("")}}),Aa=li(e=>{e.read=function(t,r,n,i,o){var s,a,l=o*8-i-1,u=(1<>1,h=-7,v=n?o-1:0,R=n?-1:1,C=t[r+v];for(v+=R,s=C&(1<<-h)-1,C>>=-h,h+=l;h>0;s=s*256+t[r+v],v+=R,h-=8);for(a=s&(1<<-h)-1,s>>=-h,h+=i;h>0;a=a*256+t[r+v],v+=R,h-=8);if(s===0)s=1-g;else{if(s===u)return a?NaN:(C?-1:1)*(1/0);a=a+Math.pow(2,i),s=s-g}return(C?-1:1)*a*Math.pow(2,s-i)},e.write=function(t,r,n,i,o,s){var a,l,u,g=s*8-o-1,h=(1<>1,R=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=i?0:s-1,A=i?1:-1,O=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,a=h):(a=Math.floor(Math.log(r)/Math.LN2),r*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+v>=1?r+=R/u:r+=R*Math.pow(2,1-v),r*u>=2&&(a++,u/=2),a+v>=h?(l=0,a=h):a+v>=1?(l=(r*u-1)*Math.pow(2,o),a=a+v):(l=r*Math.pow(2,v-1)*Math.pow(2,o),a=0));o>=8;t[n+C]=l&255,C+=A,l/=256,o-=8);for(a=a<0;t[n+C]=a&255,C+=A,a/=256,g-=8);t[n+C-A]|=O*128}}),Xr=Ca(),et=Aa(),ii=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;rt.Buffer=T;rt.SlowBuffer=Fa;rt.INSPECT_MAX_BYTES=50;var rr=2147483647;rt.kMaxLength=rr;T.TYPED_ARRAY_SUPPORT=Sa();!T.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Sa(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(T.prototype,"parent",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.buffer}});Object.defineProperty(T.prototype,"offset",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.byteOffset}});function Re(e){if(e>rr)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,T.prototype),t}function T(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return rn(e)}return ui(e,t,r)}T.poolSize=8192;function ui(e,t,r){if(typeof e=="string")return ka(e,t);if(ArrayBuffer.isView(e))return Oa(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(he(e,ArrayBuffer)||e&&he(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(he(e,SharedArrayBuffer)||e&&he(e.buffer,SharedArrayBuffer)))return pi(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return T.from(n,t,r);let i=Ia(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return T.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}T.from=function(e,t,r){return ui(e,t,r)};Object.setPrototypeOf(T.prototype,Uint8Array.prototype);Object.setPrototypeOf(T,Uint8Array);function ci(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Ra(e,t,r){return ci(e),e<=0?Re(e):t!==void 0?typeof r=="string"?Re(e).fill(t,r):Re(e).fill(t):Re(e)}T.alloc=function(e,t,r){return Ra(e,t,r)};function rn(e){return ci(e),Re(e<0?0:nn(e)|0)}T.allocUnsafe=function(e){return rn(e)};T.allocUnsafeSlow=function(e){return rn(e)};function ka(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!T.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=di(e,t)|0,n=Re(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function en(e){let t=e.length<0?0:nn(e.length)|0,r=Re(t);for(let n=0;n=rr)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+rr.toString(16)+" bytes");return e|0}function Fa(e){return+e!=e&&(e=0),T.alloc(+e)}T.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==T.prototype};T.compare=function(e,t){if(he(e,Uint8Array)&&(e=T.from(e,e.offset,e.byteLength)),he(t,Uint8Array)&&(t=T.from(t,t.offset,t.byteLength)),!T.isBuffer(e)||!T.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);in.length?(T.isBuffer(o)||(o=T.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(T.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function di(e,t){if(T.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||he(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return tn(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return xi(e).length;default:if(i)return n?-1:tn(e).length;t=(""+t).toLowerCase(),i=!0}}T.byteLength=di;function Ma(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Va(this,t,r);case"utf8":case"utf-8":return fi(this,t,r);case"ascii":return ja(this,t,r);case"latin1":case"binary":return Ua(this,t,r);case"base64":return Ba(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qa(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}T.prototype._isBuffer=!0;function Qe(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}T.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(e+=" ... "),""};ii&&(T.prototype[ii]=T.prototype.inspect);T.prototype.compare=function(e,t,r,n,i){if(he(e,Uint8Array)&&(e=T.from(e,e.offset,e.byteLength)),!T.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),r===void 0&&(r=e?e.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,s=r-t,a=Math.min(o,s),l=this.slice(n,i),u=e.slice(t,r);for(let g=0;g2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,sn(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=T.from(t,n)),T.isBuffer(t))return t.length===0?-1:oi(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):oi(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function oi(e,t,r,n,i){let o=1,s=e.length,a=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,s/=2,a/=2,r/=2}function l(g,h){return o===1?g[h]:g.readUInt16BE(h*o)}let u;if(i){let g=-1;for(u=r;us&&(r=s-a),u=r;u>=0;u--){let g=!0;for(let h=0;hi&&(n=i)):n=i;let o=t.length;n>o/2&&(n=o/2);let s;for(s=0;s>>0,isFinite(r)?(r=r>>>0,n===void 0&&(n="utf8")):(n=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((r===void 0||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return _a(this,e,t,r);case"utf8":case"utf-8":return La(this,e,t,r);case"ascii":case"latin1":case"binary":return Da(this,e,t,r);case"base64":return Na(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qa(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ba(e,t,r){return t===0&&r===e.length?Xr.fromByteArray(e):Xr.fromByteArray(e.slice(t,r))}function fi(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i239?4:o>223?3:o>191?2:1;if(i+a<=r){let l,u,g,h;switch(a){case 1:o<128&&(s=o);break;case 2:l=e[i+1],(l&192)===128&&(h=(o&31)<<6|l&63,h>127&&(s=h));break;case 3:l=e[i+1],u=e[i+2],(l&192)===128&&(u&192)===128&&(h=(o&15)<<12|(l&63)<<6|u&63,h>2047&&(h<55296||h>57343)&&(s=h));break;case 4:l=e[i+1],u=e[i+2],g=e[i+3],(l&192)===128&&(u&192)===128&&(g&192)===128&&(h=(o&15)<<18|(l&63)<<12|(u&63)<<6|g&63,h>65535&&h<1114112&&(s=h))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=a}return $a(n)}var si=4096;function $a(e){let t=e.length;if(t<=si)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let o=t;or&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),tr)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function(e,t,r){e=e>>>0,t=t>>>0,r||W(e,t,this.length);let n=this[e],i=1,o=0;for(;++o>>0,t=t>>>0,r||W(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n};T.prototype.readUint8=T.prototype.readUInt8=function(e,t){return e=e>>>0,t||W(e,1,this.length),this[e]};T.prototype.readUint16LE=T.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||W(e,2,this.length),this[e]|this[e+1]<<8};T.prototype.readUint16BE=T.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||W(e,2,this.length),this[e]<<8|this[e+1]};T.prototype.readUint32LE=T.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||W(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};T.prototype.readUint32BE=T.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||W(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};T.prototype.readBigUInt64LE=Le(function(e){e=e>>>0,tt(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Tt(e,this.length-8);let n=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+r*2**24;return BigInt(n)+(BigInt(i)<>>0,tt(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Tt(e,this.length-8);let n=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+r;return(BigInt(n)<>>0,t=t>>>0,r||W(e,t,this.length);let n=this[e],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};T.prototype.readIntBE=function(e,t,r){e=e>>>0,t=t>>>0,r||W(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};T.prototype.readInt8=function(e,t){return e=e>>>0,t||W(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};T.prototype.readInt16LE=function(e,t){e=e>>>0,t||W(e,2,this.length);let r=this[e]|this[e+1]<<8;return r&32768?r|4294901760:r};T.prototype.readInt16BE=function(e,t){e=e>>>0,t||W(e,2,this.length);let r=this[e+1]|this[e]<<8;return r&32768?r|4294901760:r};T.prototype.readInt32LE=function(e,t){return e=e>>>0,t||W(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};T.prototype.readInt32BE=function(e,t){return e=e>>>0,t||W(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};T.prototype.readBigInt64LE=Le(function(e){e=e>>>0,tt(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Tt(e,this.length-8);let n=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(r<<24);return(BigInt(n)<>>0,tt(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Tt(e,this.length-8);let n=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(n)<>>0,t||W(e,4,this.length),et.read(this,e,!0,23,4)};T.prototype.readFloatBE=function(e,t){return e=e>>>0,t||W(e,4,this.length),et.read(this,e,!1,23,4)};T.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||W(e,8,this.length),et.read(this,e,!0,52,8)};T.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||W(e,8,this.length),et.read(this,e,!1,52,8)};function ie(e,t,r,n,i,o){if(!T.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t=t>>>0,r=r>>>0,!n){let s=Math.pow(2,8*r)-1;ie(this,e,t,r,s,0)}let i=1,o=0;for(this[t]=e&255;++o>>0,r=r>>>0,!n){let s=Math.pow(2,8*r)-1;ie(this,e,t,r,s,0)}let i=r-1,o=1;for(this[t+i]=e&255;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r};T.prototype.writeUint8=T.prototype.writeUInt8=function(e,t,r){return e=+e,t=t>>>0,r||ie(this,e,t,1,255,0),this[t]=e&255,t+1};T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||ie(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||ie(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||ie(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||ie(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function gi(e,t,r,n,i){Ei(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,r}function hi(e,t,r,n,i){Ei(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o=o>>8,e[r+6]=o,o=o>>8,e[r+5]=o,o=o>>8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s=s>>8,e[r+2]=s,s=s>>8,e[r+1]=s,s=s>>8,e[r]=s,r+8}T.prototype.writeBigUInt64LE=Le(function(e,t=0){return gi(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});T.prototype.writeBigUInt64BE=Le(function(e,t=0){return hi(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});T.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t=t>>>0,!n){let a=Math.pow(2,8*r-1);ie(this,e,t,r,a-1,-a)}let i=0,o=1,s=0;for(this[t]=e&255;++i>0)-s&255;return t+r};T.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t=t>>>0,!n){let a=Math.pow(2,8*r-1);ie(this,e,t,r,a-1,-a)}let i=r-1,o=1,s=0;for(this[t+i]=e&255;--i>=0&&(o*=256);)e<0&&s===0&&this[t+i+1]!==0&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r};T.prototype.writeInt8=function(e,t,r){return e=+e,t=t>>>0,r||ie(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};T.prototype.writeInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||ie(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};T.prototype.writeInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||ie(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};T.prototype.writeInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||ie(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};T.prototype.writeInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||ie(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};T.prototype.writeBigInt64LE=Le(function(e,t=0){return gi(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});T.prototype.writeBigInt64BE=Le(function(e,t=0){return hi(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function yi(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function wi(e,t,r,n,i){return t=+t,r=r>>>0,i||yi(e,t,r,4,34028234663852886e22,-34028234663852886e22),et.write(e,t,r,n,23,4),r+4}T.prototype.writeFloatLE=function(e,t,r){return wi(this,e,t,!0,r)};T.prototype.writeFloatBE=function(e,t,r){return wi(this,e,t,!1,r)};function bi(e,t,r,n,i){return t=+t,r=r>>>0,i||yi(e,t,r,8,17976931348623157e292,-17976931348623157e292),et.write(e,t,r,n,52,8),r+8}T.prototype.writeDoubleLE=function(e,t,r){return bi(this,e,t,!0,r)};T.prototype.writeDoubleBE=function(e,t,r){return bi(this,e,t,!1,r)};T.prototype.copy=function(e,t,r,n){if(!T.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),!n&&n!==0&&(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>0,r=r===void 0?this.length:r>>>0,e||(e=0);let i;if(typeof e=="number")for(i=t;i2**32?i=ai(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=ai(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function ai(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Ga(e,t,r){tt(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&Tt(t,e.length-(r+1))}function Ei(e,t,r,n,i,o){if(e>r||e3?t===0||t===BigInt(0)?a=`>= 0${s} and < 2${s} ** ${(o+1)*8}${s}`:a=`>= -(2${s} ** ${(o+1)*8-1}${s}) and < 2 ** ${(o+1)*8-1}${s}`:a=`>= ${t}${s} and <= ${r}${s}`,new Xe.ERR_OUT_OF_RANGE("value",a,e)}Ga(n,i,o)}function tt(e,t){if(typeof e!="number")throw new Xe.ERR_INVALID_ARG_TYPE(t,"number",e)}function Tt(e,t,r){throw Math.floor(e)!==e?(tt(e,r),new Xe.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new Xe.ERR_BUFFER_OUT_OF_BOUNDS:new Xe.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var Ja=/[^+/0-9A-Za-z-_]/g;function Wa(e){if(e=e.split("=")[0],e=e.trim().replace(Ja,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function tn(e,t){t=t||1/0;let r,n=e.length,i=null,o=[];for(let s=0;s55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function Ka(e){let t=[];for(let r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function xi(e){return Xr.toByteArray(Wa(e))}function nr(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function he(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function sn(e){return e!==e}var za=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function Le(e){return typeof BigInt>"u"?Ya:e}function Ya(){throw new Error("BigInt not supported")}});var w,f=ge(()=>{"use strict";w=Se(Pi())});function bl(){return!1}function Li(){return{dev:0,ino:0,mode:0,nlink:0,uid:0,gid:0,rdev:0,size:0,blksize:0,blocks:0,atimeMs:0,mtimeMs:0,ctimeMs:0,birthtimeMs:0,atime:new Date,mtime:new Date,ctime:new Date,birthtime:new Date}}function El(){return Li()}function xl(){return[]}function Pl(e){e(null,[])}function vl(){return""}function Tl(){return""}function Cl(){}function Al(){}function Sl(){}function Rl(){}function kl(){}function Ol(){}var Il,Fl,or,pn=ge(()=>{"use strict";f();c();p();d();m();Il={},Fl={existsSync:bl,lstatSync:Li,statSync:El,readdirSync:xl,readdir:Pl,readlinkSync:vl,realpathSync:Tl,chmodSync:Cl,renameSync:Al,mkdirSync:Sl,rmdirSync:Rl,rmSync:kl,unlinkSync:Ol,promises:Il},or=Fl});function Ml(...e){return e.join("/")}function _l(...e){return e.join("/")}function Ll(e){let t=Di(e),r=Ni(e),[n,i]=t.split(".");return{root:"/",dir:r,base:t,ext:i,name:n}}function Di(e){let t=e.split("/");return t[t.length-1]}function Ni(e){return e.split("/").slice(0,-1).join("/")}var qi,Dl,Nl,Oe,mn=ge(()=>{"use strict";f();c();p();d();m();qi="/",Dl={sep:qi},Nl={basename:Di,dirname:Ni,join:_l,parse:Ll,posix:Dl,resolve:Ml,sep:qi},Oe=Nl});var Bi=Ae((Fm,ql)=>{ql.exports={name:"@prisma/internals",version:"6.12.0",description:"This package is intended for Prisma's internal use",main:"dist/index.js",types:"dist/index.d.ts",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/internals"},homepage:"https://www.prisma.io",author:"Tim Suchanek ",bugs:"https://github.com/prisma/prisma/issues",license:"Apache-2.0",scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",test:"dotenv -e ../../.db.env -- jest --silent",prepublishOnly:"pnpm run build"},files:["README.md","dist","!**/libquery_engine*","!dist/get-generators/engines/*","scripts"],devDependencies:{"@babel/helper-validator-identifier":"7.25.9","@opentelemetry/api":"1.9.0","@swc/core":"1.11.5","@swc/jest":"0.2.37","@types/babel__helper-validator-identifier":"7.15.2","@types/jest":"29.5.14","@types/node":"18.19.76","@types/resolve":"1.20.6",archiver:"6.0.2","checkpoint-client":"1.1.33","cli-truncate":"4.0.0",dotenv:"16.5.0",esbuild:"0.25.5","escape-string-regexp":"5.0.0",execa:"5.1.1","fast-glob":"3.3.3","find-up":"7.0.0","fp-ts":"2.16.9","fs-extra":"11.3.0","fs-jetpack":"5.1.0","global-dirs":"4.0.0",globby:"11.1.0","identifier-regex":"1.0.0","indent-string":"4.0.0","is-windows":"1.0.2","is-wsl":"3.1.0",jest:"29.7.0","jest-junit":"16.0.0",kleur:"4.1.5","mock-stdin":"1.0.0","new-github-issue-url":"0.2.1","node-fetch":"3.3.2","npm-packlist":"5.1.3",open:"7.4.2","p-map":"4.0.0","read-package-up":"11.0.0",resolve:"1.22.10","string-width":"7.2.0","strip-ansi":"6.0.1","strip-indent":"4.0.0","temp-dir":"2.0.0",tempy:"1.0.1","terminal-link":"4.0.0",tmp:"0.2.3","ts-node":"10.9.2","ts-pattern":"5.6.2","ts-toolbelt":"9.6.0",typescript:"5.4.5",yarn:"1.22.22"},dependencies:{"@prisma/config":"workspace:*","@prisma/debug":"workspace:*","@prisma/dmmf":"workspace:*","@prisma/driver-adapter-utils":"workspace:*","@prisma/engines":"workspace:*","@prisma/fetch-engine":"workspace:*","@prisma/generator":"workspace:*","@prisma/generator-helper":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/prisma-schema-wasm":"6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc","@prisma/schema-engine-wasm":"6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc","@prisma/schema-files-loader":"workspace:*",arg:"5.0.2",prompts:"2.4.2"},peerDependencies:{typescript:">=5.1.0"},peerDependenciesMeta:{typescript:{optional:!0}},sideEffects:!1}});var ji=Ae((Gm,$i)=>{"use strict";f();c();p();d();m();$i.exports=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var Ji=Ae((cf,Gi)=>{"use strict";f();c();p();d();m();Gi.exports=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof r.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(t===0)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}});var Hi=Ae((Pf,Ki)=>{"use strict";f();c();p();d();m();Ki.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var wn=Ae((Rf,zi)=>{"use strict";f();c();p();d();m();var Jl=Hi();zi.exports=e=>typeof e=="string"?e.replace(Jl(),""):e});var Yi=Ae((Xf,ar)=>{"use strict";f();c();p();d();m();ar.exports=(e={})=>{let t;if(e.repoUrl)t=e.repoUrl;else if(e.user&&e.repo)t=`https://github.com/${e.user}/${e.repo}`;else throw new Error("You need to specify either the `repoUrl` option or both the `user` and `repo` options");let r=new URL(`${t}/issues/new`),n=["body","title","labels","template","milestone","assignee","projects"];for(let i of n){let o=e[i];if(o!==void 0){if(i==="labels"||i==="projects"){if(!Array.isArray(o))throw new TypeError(`The \`${i}\` option should be an array`);o=o.join(",")}r.searchParams.set(i,o)}}return r.toString()};ar.exports.default=ar.exports});var Rn=Ae((vb,xo)=>{"use strict";f();c();p();d();m();xo.exports=function(){function e(t,r,n,i,o){return tn?n+1:t+1:i===o?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;s{"use strict";f();c();p();d();m()});var So=ge(()=>{"use strict";f();c();p();d();m()});var Yo=Ae((GP,qc)=>{qc.exports={name:"@prisma/engines-version",version:"6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek ",prisma:{enginesVersion:"8047c96bbd92db98a2abc7c9323ce77c02c89dbc"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.76",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var Dr,Zo=ge(()=>{"use strict";f();c();p();d();m();Dr=class{events={};on(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),this}emit(t,...r){return this.events[t]?(this.events[t].forEach(n=>{n(...r)}),!0):!1}}});var nd={};Ze(nd,{DMMF:()=>Nt,Debug:()=>K,Decimal:()=>be,Extensions:()=>an,MetricsClient:()=>wt,PrismaClientInitializationError:()=>V,PrismaClientKnownRequestError:()=>oe,PrismaClientRustPanicError:()=>ue,PrismaClientUnknownRequestError:()=>G,PrismaClientValidationError:()=>ee,Public:()=>ln,Sql:()=>ae,createParam:()=>Vo,defineDmmfProperty:()=>Ho,deserializeJsonResponse:()=>at,deserializeRawResult:()=>zr,dmmfToRuntimeDataModel:()=>ho,empty:()=>es,getPrismaClient:()=>ha,getRuntime:()=>Is,join:()=>Xo,makeStrictEnum:()=>ya,makeTypedQueryFactory:()=>zo,objectEnumValues:()=>Ar,raw:()=>Nn,serializeJsonQuery:()=>Mr,skip:()=>Fr,sqltag:()=>qn,warnEnvConflicts:()=>void 0,warnOnce:()=>_t});module.exports=Ta(nd);f();c();p();d();m();var an={};Ze(an,{defineExtension:()=>vi,getExtensionContext:()=>Ti});f();c();p();d();m();f();c();p();d();m();function vi(e){return typeof e=="function"?e:t=>t.$extends(e)}f();c();p();d();m();function Ti(e){return e}var ln={};Ze(ln,{validator:()=>Ci});f();c();p();d();m();f();c();p();d();m();function Ci(...e){return t=>t}f();c();p();d();m();f();c();p();d();m();var ir={};Ze(ir,{$:()=>Oi,bgBlack:()=>al,bgBlue:()=>pl,bgCyan:()=>ml,bgGreen:()=>ul,bgMagenta:()=>dl,bgRed:()=>ll,bgWhite:()=>fl,bgYellow:()=>cl,black:()=>nl,blue:()=>Je,bold:()=>pe,cyan:()=>ke,dim:()=>Ct,gray:()=>kt,green:()=>St,grey:()=>sl,hidden:()=>tl,inverse:()=>el,italic:()=>Xa,magenta:()=>il,red:()=>Ge,reset:()=>Za,strikethrough:()=>rl,underline:()=>At,white:()=>ol,yellow:()=>Rt});f();c();p();d();m();var un,Ai,Si,Ri,ki=!0;typeof y<"u"&&({FORCE_COLOR:un,NODE_DISABLE_COLORS:Ai,NO_COLOR:Si,TERM:Ri}=y.env||{},ki=y.stdout&&y.stdout.isTTY);var Oi={enabled:!Ai&&Si==null&&Ri!=="dumb"&&(un!=null&&un!=="0"||ki)};function U(e,t){let r=new RegExp(`\\x1b\\[${t}m`,"g"),n=`\x1B[${e}m`,i=`\x1B[${t}m`;return function(o){return!Oi.enabled||o==null?o:n+(~(""+o).indexOf(i)?o.replace(r,i+n):o)+i}}var Za=U(0,0),pe=U(1,22),Ct=U(2,22),Xa=U(3,23),At=U(4,24),el=U(7,27),tl=U(8,28),rl=U(9,29),nl=U(30,39),Ge=U(31,39),St=U(32,39),Rt=U(33,39),Je=U(34,39),il=U(35,39),ke=U(36,39),ol=U(37,39),kt=U(90,39),sl=U(90,39),al=U(40,49),ll=U(41,49),ul=U(42,49),cl=U(43,49),pl=U(44,49),dl=U(45,49),ml=U(46,49),fl=U(47,49);f();c();p();d();m();var gl=100,Ii=["green","yellow","blue","magenta","cyan","red"],Ot=[],Fi=Date.now(),hl=0,cn=typeof y<"u"?y.env:{};globalThis.DEBUG??=cn.DEBUG??"";globalThis.DEBUG_COLORS??=cn.DEBUG_COLORS?cn.DEBUG_COLORS==="true":!0;var It={enable(e){typeof e=="string"&&(globalThis.DEBUG=e)},disable(){let e=globalThis.DEBUG;return globalThis.DEBUG="",e},enabled(e){let t=globalThis.DEBUG.split(",").map(i=>i.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),r=t.some(i=>i===""||i[0]==="-"?!1:e.match(RegExp(i.split("*").join(".*")+"$"))),n=t.some(i=>i===""||i[0]!=="-"?!1:e.match(RegExp(i.slice(1).split("*").join(".*")+"$")));return r&&!n},log:(...e)=>{let[t,r,...n]=e;(console.warn??console.log)(`${t} ${r}`,...n)},formatters:{}};function yl(e){let t={color:Ii[hl++%Ii.length],enabled:It.enabled(e),namespace:e,log:It.log,extend:()=>{}},r=(...n)=>{let{enabled:i,namespace:o,color:s,log:a}=t;if(n.length!==0&&Ot.push([o,...n]),Ot.length>gl&&Ot.shift(),It.enabled(o)||i){let l=n.map(g=>typeof g=="string"?g:wl(g)),u=`+${Date.now()-Fi}ms`;Fi=Date.now(),globalThis.DEBUG_COLORS?a(ir[s](pe(o)),...l,ir[s](u)):a(o,...l,u)}};return new Proxy(r,{get:(n,i)=>t[i],set:(n,i,o)=>t[i]=o})}var K=new Proxy(yl,{get:(e,t)=>It[t],set:(e,t,r)=>It[t]=r});function wl(e,t=2){let r=new Set;return JSON.stringify(e,(n,i)=>{if(typeof i=="object"&&i!==null){if(r.has(i))return"[Circular *]";r.add(i)}else if(typeof i=="bigint")return i.toString();return i},t)}function Mi(e=7500){let t=Ot.map(([r,...n])=>`${r} ${n.map(i=>typeof i=="string"?i:JSON.stringify(i)).join(" ")}`).join(` -`);return t.lengthQl,info:()=>Vl,log:()=>Ul,query:()=>Gl,should:()=>Wi,tags:()=>Ft,warn:()=>yn});f();c();p();d();m();var Ft={error:Ge("prisma:error"),warn:Rt("prisma:warn"),info:ke("prisma:info"),query:Je("prisma:query")},Wi={warn:()=>!y.env.PRISMA_DISABLE_WARNINGS};function Ul(...e){console.log(...e)}function yn(e,...t){Wi.warn()&&console.warn(`${Ft.warn} ${e}`,...t)}function Vl(e,...t){console.info(`${Ft.info} ${e}`,...t)}function Ql(e,...t){console.error(`${Ft.error} ${e}`,...t)}function Gl(e,...t){console.log(`${Ft.query} ${e}`,...t)}f();c();p();d();m();function sr(e,t){if(!e)throw new Error(`${t}. This should never happen. If you see this error, please, open an issue at https://pris.ly/prisma-prisma-bug-report`)}f();c();p();d();m();function Ie(e,t){throw new Error(t)}f();c();p();d();m();mn();function bn(e){return Oe.sep===Oe.posix.sep?e:e.split(Oe.sep).join(Oe.posix.sep)}f();c();p();d();m();function En(e,t){return Object.prototype.hasOwnProperty.call(e,t)}f();c();p();d();m();function it(e,t){let r={};for(let n of Object.keys(e))r[n]=t(e[n],n);return r}f();c();p();d();m();function xn(e,t){if(e.length===0)return;let r=e[0];for(let n=1;n{Zi.has(e)||(Zi.add(e),yn(t,...r))};var V=class e extends Error{clientVersion;errorCode;retryable;constructor(t,r,n){super(t),this.name="PrismaClientInitializationError",this.clientVersion=r,this.errorCode=n,Error.captureStackTrace(e)}get[Symbol.toStringTag](){return"PrismaClientInitializationError"}};le(V,"PrismaClientInitializationError");f();c();p();d();m();var oe=class extends Error{code;meta;clientVersion;batchRequestIdx;constructor(t,{code:r,clientVersion:n,meta:i,batchRequestIdx:o}){super(t),this.name="PrismaClientKnownRequestError",this.code=r,this.clientVersion=n,this.meta=i,Object.defineProperty(this,"batchRequestIdx",{value:o,enumerable:!1,writable:!0})}get[Symbol.toStringTag](){return"PrismaClientKnownRequestError"}};le(oe,"PrismaClientKnownRequestError");f();c();p();d();m();var ue=class extends Error{clientVersion;constructor(t,r){super(t),this.name="PrismaClientRustPanicError",this.clientVersion=r}get[Symbol.toStringTag](){return"PrismaClientRustPanicError"}};le(ue,"PrismaClientRustPanicError");f();c();p();d();m();var G=class extends Error{clientVersion;batchRequestIdx;constructor(t,{clientVersion:r,batchRequestIdx:n}){super(t),this.name="PrismaClientUnknownRequestError",this.clientVersion=r,Object.defineProperty(this,"batchRequestIdx",{value:n,writable:!0,enumerable:!1})}get[Symbol.toStringTag](){return"PrismaClientUnknownRequestError"}};le(G,"PrismaClientUnknownRequestError");f();c();p();d();m();var ee=class extends Error{name="PrismaClientValidationError";clientVersion;constructor(t,{clientVersion:r}){super(t),this.clientVersion=r}get[Symbol.toStringTag](){return"PrismaClientValidationError"}};le(ee,"PrismaClientValidationError");f();c();p();d();m();f();c();p();d();m();var ot=9e15,Be=1e9,Pn="0123456789abcdef",cr="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",pr="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",vn={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-ot,maxE:ot,crypto:!1},no,Fe,_=!0,mr="[DecimalError] ",qe=mr+"Invalid argument: ",io=mr+"Precision limit exceeded",oo=mr+"crypto unavailable",so="[object Decimal]",te=Math.floor,J=Math.pow,Wl=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Kl=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,Hl=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,ao=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,de=1e7,F=7,zl=9007199254740991,Yl=cr.length-1,Tn=pr.length-1,S={toStringTag:so};S.absoluteValue=S.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),I(e)};S.ceil=function(){return I(new this.constructor(this),this.e+1,2)};S.clampedTo=S.clamp=function(e,t){var r,n=this,i=n.constructor;if(e=new i(e),t=new i(t),!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(qe+t);return r=n.cmp(e),r<0?e:n.cmp(t)>0?t:new i(n)};S.comparedTo=S.cmp=function(e){var t,r,n,i,o=this,s=o.d,a=(e=new o.constructor(e)).d,l=o.s,u=e.s;if(!s||!a)return!l||!u?NaN:l!==u?l:s===a?0:!s^l<0?1:-1;if(!s[0]||!a[0])return s[0]?l:a[0]?-u:0;if(l!==u)return l;if(o.e!==e.e)return o.e>e.e^l<0?1:-1;for(n=s.length,i=a.length,t=0,r=na[t]^l<0?1:-1;return n===i?0:n>i^l<0?1:-1};S.cosine=S.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+F,n.rounding=1,r=Zl(n,mo(n,r)),n.precision=e,n.rounding=t,I(Fe==2||Fe==3?r.neg():r,e,t,!0)):new n(1):new n(NaN)};S.cubeRoot=S.cbrt=function(){var e,t,r,n,i,o,s,a,l,u,g=this,h=g.constructor;if(!g.isFinite()||g.isZero())return new h(g);for(_=!1,o=g.s*J(g.s*g,1/3),!o||Math.abs(o)==1/0?(r=Y(g.d),e=g.e,(o=(e-r.length+1)%3)&&(r+=o==1||o==-2?"0":"00"),o=J(r,1/3),e=te((e+1)/3)-(e%3==(e<0?-1:2)),o==1/0?r="5e"+e:(r=o.toExponential(),r=r.slice(0,r.indexOf("e")+1)+e),n=new h(r),n.s=g.s):n=new h(o.toString()),s=(e=h.precision)+3;;)if(a=n,l=a.times(a).times(a),u=l.plus(g),n=$(u.plus(g).times(a),u.plus(l),s+2,1),Y(a.d).slice(0,s)===(r=Y(n.d)).slice(0,s))if(r=r.slice(s-3,s+1),r=="9999"||!i&&r=="4999"){if(!i&&(I(a,e+1,0),a.times(a).times(a).eq(g))){n=a;break}s+=4,i=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&(I(n,e+1,1),t=!n.times(n).times(n).eq(g));break}return _=!0,I(n,e,h.rounding,t)};S.decimalPlaces=S.dp=function(){var e,t=this.d,r=NaN;if(t){if(e=t.length-1,r=(e-te(this.e/F))*F,e=t[e],e)for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r};S.dividedBy=S.div=function(e){return $(this,new this.constructor(e))};S.dividedToIntegerBy=S.divToInt=function(e){var t=this,r=t.constructor;return I($(t,new r(e),0,1,1),r.precision,r.rounding)};S.equals=S.eq=function(e){return this.cmp(e)===0};S.floor=function(){return I(new this.constructor(this),this.e+1,3)};S.greaterThan=S.gt=function(e){return this.cmp(e)>0};S.greaterThanOrEqualTo=S.gte=function(e){var t=this.cmp(e);return t==1||t===0};S.hyperbolicCosine=S.cosh=function(){var e,t,r,n,i,o=this,s=o.constructor,a=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return a;r=s.precision,n=s.rounding,s.precision=r+Math.max(o.e,o.sd())+4,s.rounding=1,i=o.d.length,i<32?(e=Math.ceil(i/3),t=(1/gr(4,e)).toString()):(e=16,t="2.3283064365386962890625e-10"),o=st(s,1,o.times(t),new s(1),!0);for(var l,u=e,g=new s(8);u--;)l=o.times(o),o=a.minus(l.times(g.minus(l.times(g))));return I(o,s.precision=r,s.rounding=n,!0)};S.hyperbolicSine=S.sinh=function(){var e,t,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,r=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,n=i.d.length,n<3)i=st(o,2,i,i,!0);else{e=1.4*Math.sqrt(n),e=e>16?16:e|0,i=i.times(1/gr(5,e)),i=st(o,2,i,i,!0);for(var s,a=new o(5),l=new o(16),u=new o(20);e--;)s=i.times(i),i=i.times(a.plus(s.times(l.times(s).plus(u))))}return o.precision=t,o.rounding=r,I(i,t,r,!0)};S.hyperbolicTangent=S.tanh=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,$(r.sinh(),r.cosh(),n.precision=e,n.rounding=t)):new n(r.s)};S.inverseCosine=S.acos=function(){var e=this,t=e.constructor,r=e.abs().cmp(1),n=t.precision,i=t.rounding;return r!==-1?r===0?e.isNeg()?ye(t,n,i):new t(0):new t(NaN):e.isZero()?ye(t,n+4,i).times(.5):(t.precision=n+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=n,t.rounding=i,e.times(2))};S.inverseHyperbolicCosine=S.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,_=!1,r=r.times(r).minus(1).sqrt().plus(r),_=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)};S.inverseHyperbolicSine=S.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,_=!1,r=r.times(r).plus(1).sqrt().plus(r),_=!0,n.precision=e,n.rounding=t,r.ln())};S.inverseHyperbolicTangent=S.atanh=function(){var e,t,r,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,n=i.sd(),Math.max(n,e)<2*-i.e-1?I(new o(i),e,t,!0):(o.precision=r=n-i.e,i=$(i.plus(1),new o(1).minus(i),r+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5))):new o(NaN)};S.inverseSine=S.asin=function(){var e,t,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),r=o.precision,n=o.rounding,t!==-1?t===0?(e=ye(o,r+4,n).times(.5),e.s=i.s,e):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2)))};S.inverseTangent=S.atan=function(){var e,t,r,n,i,o,s,a,l,u=this,g=u.constructor,h=g.precision,v=g.rounding;if(u.isFinite()){if(u.isZero())return new g(u);if(u.abs().eq(1)&&h+4<=Tn)return s=ye(g,h+4,v).times(.25),s.s=u.s,s}else{if(!u.s)return new g(NaN);if(h+4<=Tn)return s=ye(g,h+4,v).times(.5),s.s=u.s,s}for(g.precision=a=h+10,g.rounding=1,r=Math.min(28,a/F+2|0),e=r;e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(_=!1,t=Math.ceil(a/F),n=1,l=u.times(u),s=new g(u),i=u;e!==-1;)if(i=i.times(l),o=s.minus(i.div(n+=2)),i=i.times(l),s=o.plus(i.div(n+=2)),s.d[t]!==void 0)for(e=t;s.d[e]===o.d[e]&&e--;);return r&&(s=s.times(2<this.d.length-2};S.isNaN=function(){return!this.s};S.isNegative=S.isNeg=function(){return this.s<0};S.isPositive=S.isPos=function(){return this.s>0};S.isZero=function(){return!!this.d&&this.d[0]===0};S.lessThan=S.lt=function(e){return this.cmp(e)<0};S.lessThanOrEqualTo=S.lte=function(e){return this.cmp(e)<1};S.logarithm=S.log=function(e){var t,r,n,i,o,s,a,l,u=this,g=u.constructor,h=g.precision,v=g.rounding,R=5;if(e==null)e=new g(10),t=!0;else{if(e=new g(e),r=e.d,e.s<0||!r||!r[0]||e.eq(1))return new g(NaN);t=e.eq(10)}if(r=u.d,u.s<0||!r||!r[0]||u.eq(1))return new g(r&&!r[0]?-1/0:u.s!=1?NaN:r?0:1/0);if(t)if(r.length>1)o=!0;else{for(i=r[0];i%10===0;)i/=10;o=i!==1}if(_=!1,a=h+R,s=Ne(u,a),n=t?dr(g,a+10):Ne(e,a),l=$(s,n,a,1),Lt(l.d,i=h,v))do if(a+=10,s=Ne(u,a),n=t?dr(g,a+10):Ne(e,a),l=$(s,n,a,1),!o){+Y(l.d).slice(i+1,i+15)+1==1e14&&(l=I(l,h+1,0));break}while(Lt(l.d,i+=10,v));return _=!0,I(l,h,v)};S.minus=S.sub=function(e){var t,r,n,i,o,s,a,l,u,g,h,v,R=this,C=R.constructor;if(e=new C(e),!R.d||!e.d)return!R.s||!e.s?e=new C(NaN):R.d?e.s=-e.s:e=new C(e.d||R.s!==e.s?R:NaN),e;if(R.s!=e.s)return e.s=-e.s,R.plus(e);if(u=R.d,v=e.d,a=C.precision,l=C.rounding,!u[0]||!v[0]){if(v[0])e.s=-e.s;else if(u[0])e=new C(R);else return new C(l===3?-0:0);return _?I(e,a,l):e}if(r=te(e.e/F),g=te(R.e/F),u=u.slice(),o=g-r,o){for(h=o<0,h?(t=u,o=-o,s=v.length):(t=v,r=g,s=u.length),n=Math.max(Math.ceil(a/F),s)+2,o>n&&(o=n,t.length=1),t.reverse(),n=o;n--;)t.push(0);t.reverse()}else{for(n=u.length,s=v.length,h=n0;--n)u[s++]=0;for(n=v.length;n>o;){if(u[--n]s?o+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=u.length,i=g.length,s-i<0&&(i=s,r=g,g=u,u=r),t=0;i;)t=(u[--i]=u[i]+g[i]+t)/de|0,u[i]%=de;for(t&&(u.unshift(t),++n),s=u.length;u[--s]==0;)u.pop();return e.d=u,e.e=fr(u,n),_?I(e,a,l):e};S.precision=S.sd=function(e){var t,r=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(qe+e);return r.d?(t=lo(r.d),e&&r.e+1>t&&(t=r.e+1)):t=NaN,t};S.round=function(){var e=this,t=e.constructor;return I(new t(e),e.e+1,t.rounding)};S.sine=S.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+F,n.rounding=1,r=eu(n,mo(n,r)),n.precision=e,n.rounding=t,I(Fe>2?r.neg():r,e,t,!0)):new n(NaN)};S.squareRoot=S.sqrt=function(){var e,t,r,n,i,o,s=this,a=s.d,l=s.e,u=s.s,g=s.constructor;if(u!==1||!a||!a[0])return new g(!u||u<0&&(!a||a[0])?NaN:a?s:1/0);for(_=!1,u=Math.sqrt(+s),u==0||u==1/0?(t=Y(a),(t.length+l)%2==0&&(t+="0"),u=Math.sqrt(t),l=te((l+1)/2)-(l<0||l%2),u==1/0?t="5e"+l:(t=u.toExponential(),t=t.slice(0,t.indexOf("e")+1)+l),n=new g(t)):n=new g(u.toString()),r=(l=g.precision)+3;;)if(o=n,n=o.plus($(s,o,r+2,1)).times(.5),Y(o.d).slice(0,r)===(t=Y(n.d)).slice(0,r))if(t=t.slice(r-3,r+1),t=="9999"||!i&&t=="4999"){if(!i&&(I(o,l+1,0),o.times(o).eq(s))){n=o;break}r+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(I(n,l+1,1),e=!n.times(n).eq(s));break}return _=!0,I(n,l,g.rounding,e)};S.tangent=S.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,r=r.sin(),r.s=1,r=$(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,I(Fe==2||Fe==4?r.neg():r,e,t,!0)):new n(NaN)};S.times=S.mul=function(e){var t,r,n,i,o,s,a,l,u,g=this,h=g.constructor,v=g.d,R=(e=new h(e)).d;if(e.s*=g.s,!v||!v[0]||!R||!R[0])return new h(!e.s||v&&!v[0]&&!R||R&&!R[0]&&!v?NaN:!v||!R?e.s/0:e.s*0);for(r=te(g.e/F)+te(e.e/F),l=v.length,u=R.length,l=0;){for(t=0,i=l+n;i>n;)a=o[i]+R[n]*v[i-n-1]+t,o[i--]=a%de|0,t=a/de|0;o[i]=(o[i]+t)%de|0}for(;!o[--s];)o.pop();return t?++r:o.shift(),e.d=o,e.e=fr(o,r),_?I(e,h.precision,h.rounding):e};S.toBinary=function(e,t){return An(this,2,e,t)};S.toDecimalPlaces=S.toDP=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(se(e,0,Be),t===void 0?t=n.rounding:se(t,0,8),I(r,e+r.e+1,t))};S.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=we(n,!0):(se(e,0,Be),t===void 0?t=i.rounding:se(t,0,8),n=I(new i(n),e+1,t),r=we(n,!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r};S.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?r=we(i):(se(e,0,Be),t===void 0?t=o.rounding:se(t,0,8),n=I(new o(i),e+i.e+1,t),r=we(n,!1,e+n.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r};S.toFraction=function(e){var t,r,n,i,o,s,a,l,u,g,h,v,R=this,C=R.d,A=R.constructor;if(!C)return new A(R);if(u=r=new A(1),n=l=new A(0),t=new A(n),o=t.e=lo(C)-R.e-1,s=o%F,t.d[0]=J(10,s<0?F+s:s),e==null)e=o>0?t:u;else{if(a=new A(e),!a.isInt()||a.lt(u))throw Error(qe+a);e=a.gt(t)?o>0?t:u:a}for(_=!1,a=new A(Y(C)),g=A.precision,A.precision=o=C.length*F*2;h=$(a,t,0,1,1),i=r.plus(h.times(n)),i.cmp(e)!=1;)r=n,n=i,i=u,u=l.plus(h.times(i)),l=i,i=t,t=a.minus(h.times(i)),a=i;return i=$(e.minus(r),n,0,1,1),l=l.plus(i.times(u)),r=r.plus(i.times(n)),l.s=u.s=R.s,v=$(u,n,o,1).minus(R).abs().cmp($(l,r,o,1).minus(R).abs())<1?[u,n]:[l,r],A.precision=g,_=!0,v};S.toHexadecimal=S.toHex=function(e,t){return An(this,16,e,t)};S.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),e==null){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),t===void 0?t=n.rounding:se(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(_=!1,r=$(r,e,0,t,1).times(e),_=!0,I(r)):(e.s=r.s,r=e),r};S.toNumber=function(){return+this};S.toOctal=function(e,t){return An(this,8,e,t)};S.toPower=S.pow=function(e){var t,r,n,i,o,s,a=this,l=a.constructor,u=+(e=new l(e));if(!a.d||!e.d||!a.d[0]||!e.d[0])return new l(J(+a,u));if(a=new l(a),a.eq(1))return a;if(n=l.precision,o=l.rounding,e.eq(1))return I(a,n,o);if(t=te(e.e/F),t>=e.d.length-1&&(r=u<0?-u:u)<=zl)return i=uo(l,a,r,n),e.s<0?new l(1).div(i):I(i,n,o);if(s=a.s,s<0){if(tl.maxE+1||t0?s/0:0):(_=!1,l.rounding=a.s=1,r=Math.min(12,(t+"").length),i=Cn(e.times(Ne(a,n+r)),n),i.d&&(i=I(i,n+5,1),Lt(i.d,n,o)&&(t=n+10,i=I(Cn(e.times(Ne(a,t+r)),t),t+5,1),+Y(i.d).slice(n+1,n+15)+1==1e14&&(i=I(i,n+1,0)))),i.s=s,_=!0,l.rounding=o,I(i,n,o))};S.toPrecision=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=we(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(se(e,1,Be),t===void 0?t=i.rounding:se(t,0,8),n=I(new i(n),e,t),r=we(n,e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r};S.toSignificantDigits=S.toSD=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(se(e,1,Be),t===void 0?t=n.rounding:se(t,0,8)),I(new n(r),e,t)};S.toString=function(){var e=this,t=e.constructor,r=we(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r};S.truncated=S.trunc=function(){return I(new this.constructor(this),this.e+1,1)};S.valueOf=S.toJSON=function(){var e=this,t=e.constructor,r=we(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};function Y(e){var t,r,n,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;tr)throw Error(qe+e)}function Lt(e,t,r,n){var i,o,s,a;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=F,i=0):(i=Math.ceil((t+1)/F),t%=F),o=J(10,F-t),a=e[i]%o|0,n==null?t<3?(t==0?a=a/100|0:t==1&&(a=a/10|0),s=r<4&&a==99999||r>3&&a==49999||a==5e4||a==0):s=(r<4&&a+1==o||r>3&&a+1==o/2)&&(e[i+1]/o/100|0)==J(10,t-2)-1||(a==o/2||a==0)&&(e[i+1]/o/100|0)==0:t<4?(t==0?a=a/1e3|0:t==1?a=a/100|0:t==2&&(a=a/10|0),s=(n||r<4)&&a==9999||!n&&r>3&&a==4999):s=((n||r<4)&&a+1==o||!n&&r>3&&a+1==o/2)&&(e[i+1]/o/1e3|0)==J(10,t-3)-1,s}function lr(e,t,r){for(var n,i=[0],o,s=0,a=e.length;sr-1&&(i[n+1]===void 0&&(i[n+1]=0),i[n+1]+=i[n]/r|0,i[n]%=r)}return i.reverse()}function Zl(e,t){var r,n,i;if(t.isZero())return t;n=t.d.length,n<32?(r=Math.ceil(n/3),i=(1/gr(4,r)).toString()):(r=16,i="2.3283064365386962890625e-10"),e.precision+=r,t=st(e,1,t.times(i),new e(1));for(var o=r;o--;){var s=t.times(t);t=s.times(s).minus(s).times(8).plus(1)}return e.precision-=r,t}var $=function(){function e(n,i,o){var s,a=0,l=n.length;for(n=n.slice();l--;)s=n[l]*i+a,n[l]=s%o|0,a=s/o|0;return a&&n.unshift(a),n}function t(n,i,o,s){var a,l;if(o!=s)l=o>s?1:-1;else for(a=l=0;ai[a]?1:-1;break}return l}function r(n,i,o,s){for(var a=0;o--;)n[o]-=a,a=n[o]1;)n.shift()}return function(n,i,o,s,a,l){var u,g,h,v,R,C,A,O,M,L,k,N,z,j,vt,Q,ne,Ce,Z,Ye,er=n.constructor,Zr=n.s==i.s?1:-1,X=n.d,B=i.d;if(!X||!X[0]||!B||!B[0])return new er(!n.s||!i.s||(X?B&&X[0]==B[0]:!B)?NaN:X&&X[0]==0||!B?Zr*0:Zr/0);for(l?(R=1,g=n.e-i.e):(l=de,R=F,g=te(n.e/R)-te(i.e/R)),Z=B.length,ne=X.length,M=new er(Zr),L=M.d=[],h=0;B[h]==(X[h]||0);h++);if(B[h]>(X[h]||0)&&g--,o==null?(j=o=er.precision,s=er.rounding):a?j=o+(n.e-i.e)+1:j=o,j<0)L.push(1),C=!0;else{if(j=j/R+2|0,h=0,Z==1){for(v=0,B=B[0],j++;(h1&&(B=e(B,v,l),X=e(X,v,l),Z=B.length,ne=X.length),Q=Z,k=X.slice(0,Z),N=k.length;N=l/2&&++Ce;do v=0,u=t(B,k,Z,N),u<0?(z=k[0],Z!=N&&(z=z*l+(k[1]||0)),v=z/Ce|0,v>1?(v>=l&&(v=l-1),A=e(B,v,l),O=A.length,N=k.length,u=t(A,k,O,N),u==1&&(v--,r(A,Z=10;v/=10)h++;M.e=h+g*R-1,I(M,a?o+M.e+1:o,s,C)}return M}}();function I(e,t,r,n){var i,o,s,a,l,u,g,h,v,R=e.constructor;e:if(t!=null){if(h=e.d,!h)return e;for(i=1,a=h[0];a>=10;a/=10)i++;if(o=t-i,o<0)o+=F,s=t,g=h[v=0],l=g/J(10,i-s-1)%10|0;else if(v=Math.ceil((o+1)/F),a=h.length,v>=a)if(n){for(;a++<=v;)h.push(0);g=l=0,i=1,o%=F,s=o-F+1}else break e;else{for(g=a=h[v],i=1;a>=10;a/=10)i++;o%=F,s=o-F+i,l=s<0?0:g/J(10,i-s-1)%10|0}if(n=n||t<0||h[v+1]!==void 0||(s<0?g:g%J(10,i-s-1)),u=r<4?(l||n)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||n||r==6&&(o>0?s>0?g/J(10,i-s):0:h[v-1])%10&1||r==(e.s<0?8:7)),t<1||!h[0])return h.length=0,u?(t-=e.e+1,h[0]=J(10,(F-t%F)%F),e.e=-t||0):h[0]=e.e=0,e;if(o==0?(h.length=v,a=1,v--):(h.length=v+1,a=J(10,F-o),h[v]=s>0?(g/J(10,i-s)%J(10,s)|0)*a:0),u)for(;;)if(v==0){for(o=1,s=h[0];s>=10;s/=10)o++;for(s=h[0]+=a,a=1;s>=10;s/=10)a++;o!=a&&(e.e++,h[0]==de&&(h[0]=1));break}else{if(h[v]+=a,h[v]!=de)break;h[v--]=0,a=1}for(o=h.length;h[--o]===0;)h.pop()}return _&&(e.e>R.maxE?(e.d=null,e.e=NaN):e.e0?o=o.charAt(0)+"."+o.slice(1)+De(n):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+De(-i-1)+o,r&&(n=r-s)>0&&(o+=De(n))):i>=s?(o+=De(i+1-s),r&&(n=r-i-1)>0&&(o=o+"."+De(n))):((n=i+1)0&&(i+1===s&&(o+="."),o+=De(n))),o}function fr(e,t){var r=e[0];for(t*=F;r>=10;r/=10)t++;return t}function dr(e,t,r){if(t>Yl)throw _=!0,r&&(e.precision=r),Error(io);return I(new e(cr),t,1,!0)}function ye(e,t,r){if(t>Tn)throw Error(io);return I(new e(pr),t,r,!0)}function lo(e){var t=e.length-1,r=t*F+1;if(t=e[t],t){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function De(e){for(var t="";e--;)t+="0";return t}function uo(e,t,r,n){var i,o=new e(1),s=Math.ceil(n/F+4);for(_=!1;;){if(r%2&&(o=o.times(t),to(o.d,s)&&(i=!0)),r=te(r/2),r===0){r=o.d.length-1,i&&o.d[r]===0&&++o.d[r];break}t=t.times(t),to(t.d,s)}return _=!0,o}function eo(e){return e.d[e.d.length-1]&1}function co(e,t,r){for(var n,i,o=new e(t[0]),s=0;++s17)return new v(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(t==null?(_=!1,l=C):l=t,a=new v(.03125);e.e>-2;)e=e.times(a),h+=5;for(n=Math.log(J(2,h))/Math.LN10*2+5|0,l+=n,r=o=s=new v(1),v.precision=l;;){if(o=I(o.times(e),l,1),r=r.times(++g),a=s.plus($(o,r,l,1)),Y(a.d).slice(0,l)===Y(s.d).slice(0,l)){for(i=h;i--;)s=I(s.times(s),l,1);if(t==null)if(u<3&&Lt(s.d,l-n,R,u))v.precision=l+=10,r=o=a=new v(1),g=0,u++;else return I(s,v.precision=C,R,_=!0);else return v.precision=C,s}s=a}}function Ne(e,t){var r,n,i,o,s,a,l,u,g,h,v,R=1,C=10,A=e,O=A.d,M=A.constructor,L=M.rounding,k=M.precision;if(A.s<0||!O||!O[0]||!A.e&&O[0]==1&&O.length==1)return new M(O&&!O[0]?-1/0:A.s!=1?NaN:O?0:A);if(t==null?(_=!1,g=k):g=t,M.precision=g+=C,r=Y(O),n=r.charAt(0),Math.abs(o=A.e)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)A=A.times(e),r=Y(A.d),n=r.charAt(0),R++;o=A.e,n>1?(A=new M("0."+r),o++):A=new M(n+"."+r.slice(1))}else return u=dr(M,g+2,k).times(o+""),A=Ne(new M(n+"."+r.slice(1)),g-C).plus(u),M.precision=k,t==null?I(A,k,L,_=!0):A;for(h=A,l=s=A=$(A.minus(1),A.plus(1),g,1),v=I(A.times(A),g,1),i=3;;){if(s=I(s.times(v),g,1),u=l.plus($(s,new M(i),g,1)),Y(u.d).slice(0,g)===Y(l.d).slice(0,g))if(l=l.times(2),o!==0&&(l=l.plus(dr(M,g+2,k).times(o+""))),l=$(l,new M(R),g,1),t==null)if(Lt(l.d,g-C,L,a))M.precision=g+=C,u=s=A=$(h.minus(1),h.plus(1),g,1),v=I(A.times(A),g,1),i=a=1;else return I(l,M.precision=k,L,_=!0);else return M.precision=k,l;l=u,i+=2}}function po(e){return String(e.s*e.s/0)}function ur(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;n++);for(i=t.length;t.charCodeAt(i-1)===48;--i);if(t=t.slice(n,i),t){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%F,r<0&&(n+=F),ne.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),ao.test(t))return ur(e,t)}else if(t==="Infinity"||t==="NaN")return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(Kl.test(t))r=16,t=t.toLowerCase();else if(Wl.test(t))r=2;else if(Hl.test(t))r=8;else throw Error(qe+t);for(o=t.search(/p/i),o>0?(l=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),o=t.indexOf("."),s=o>=0,n=e.constructor,s&&(t=t.replace(".",""),a=t.length,o=a-o,i=uo(n,new n(r),o,o*2)),u=lr(t,r,de),g=u.length-1,o=g;u[o]===0;--o)u.pop();return o<0?new n(e.s*0):(e.e=fr(u,g),e.d=u,_=!1,s&&(e=$(e,i,a*4)),l&&(e=e.times(Math.abs(l)<54?J(2,l):We.pow(2,l))),_=!0,e)}function eu(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:st(e,2,t,t);r=1.4*Math.sqrt(n),r=r>16?16:r|0,t=t.times(1/gr(5,r)),t=st(e,2,t,t);for(var i,o=new e(5),s=new e(16),a=new e(20);r--;)i=t.times(t),t=t.times(o.plus(i.times(s.times(i).minus(a))));return t}function st(e,t,r,n,i){var o,s,a,l,u=1,g=e.precision,h=Math.ceil(g/F);for(_=!1,l=r.times(r),a=new e(n);;){if(s=$(a.times(l),new e(t++*t++),g,1),a=i?n.plus(s):n.minus(s),n=$(s.times(l),new e(t++*t++),g,1),s=a.plus(n),s.d[h]!==void 0){for(o=h;s.d[o]===a.d[o]&&o--;);if(o==-1)break}o=a,a=n,n=s,s=o,u++}return _=!0,s.d.length=h+1,s}function gr(e,t){for(var r=e;--t;)r*=e;return r}function mo(e,t){var r,n=t.s<0,i=ye(e,e.precision,1),o=i.times(.5);if(t=t.abs(),t.lte(o))return Fe=n?4:1,t;if(r=t.divToInt(i),r.isZero())Fe=n?3:2;else{if(t=t.minus(r.times(i)),t.lte(o))return Fe=eo(r)?n?2:3:n?4:1,t;Fe=eo(r)?n?1:4:n?3:2}return t.minus(i).abs()}function An(e,t,r,n){var i,o,s,a,l,u,g,h,v,R=e.constructor,C=r!==void 0;if(C?(se(r,1,Be),n===void 0?n=R.rounding:se(n,0,8)):(r=R.precision,n=R.rounding),!e.isFinite())g=po(e);else{for(g=we(e),s=g.indexOf("."),C?(i=2,t==16?r=r*4-3:t==8&&(r=r*3-2)):i=t,s>=0&&(g=g.replace(".",""),v=new R(1),v.e=g.length-s,v.d=lr(we(v),10,i),v.e=v.d.length),h=lr(g,10,i),o=l=h.length;h[--l]==0;)h.pop();if(!h[0])g=C?"0p+0":"0";else{if(s<0?o--:(e=new R(e),e.d=h,e.e=o,e=$(e,v,r,n,0,i),h=e.d,o=e.e,u=no),s=h[r],a=i/2,u=u||h[r+1]!==void 0,u=n<4?(s!==void 0||u)&&(n===0||n===(e.s<0?3:2)):s>a||s===a&&(n===4||u||n===6&&h[r-1]&1||n===(e.s<0?8:7)),h.length=r,u)for(;++h[--r]>i-1;)h[r]=0,r||(++o,h.unshift(1));for(l=h.length;!h[l-1];--l);for(s=0,g="";s1)if(t==16||t==8){for(s=t==16?4:3,--l;l%s;l++)g+="0";for(h=lr(g,i,t),l=h.length;!h[l-1];--l);for(s=1,g="1.";sl)for(o-=l;o--;)g+="0";else ot)return e.length=t,!0}function tu(e){return new this(e).abs()}function ru(e){return new this(e).acos()}function nu(e){return new this(e).acosh()}function iu(e,t){return new this(e).plus(t)}function ou(e){return new this(e).asin()}function su(e){return new this(e).asinh()}function au(e){return new this(e).atan()}function lu(e){return new this(e).atanh()}function uu(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,o=n+4;return!e.s||!t.s?r=new this(NaN):!e.d&&!t.d?(r=ye(this,o,1).times(t.s>0?.25:.75),r.s=e.s):!t.d||e.isZero()?(r=t.s<0?ye(this,n,i):new this(0),r.s=e.s):!e.d||t.isZero()?(r=ye(this,o,1).times(.5),r.s=e.s):t.s<0?(this.precision=o,this.rounding=1,r=this.atan($(e,t,o,1)),t=ye(this,o,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan($(e,t,o,1)),r}function cu(e){return new this(e).cbrt()}function pu(e){return I(e=new this(e),e.e+1,2)}function du(e,t,r){return new this(e).clamp(t,r)}function mu(e){if(!e||typeof e!="object")throw Error(mr+"Object expected");var t,r,n,i=e.defaults===!0,o=["precision",1,Be,"rounding",0,8,"toExpNeg",-ot,0,"toExpPos",0,ot,"maxE",0,ot,"minE",-ot,0,"modulo",0,9];for(t=0;t=o[t+1]&&n<=o[t+2])this[r]=n;else throw Error(qe+r+": "+n);if(r="crypto",i&&(this[r]=vn[r]),(n=e[r])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(oo);else this[r]=!1;else throw Error(qe+r+": "+n);return this}function fu(e){return new this(e).cos()}function gu(e){return new this(e).cosh()}function fo(e){var t,r,n;function i(o){var s,a,l,u=this;if(!(u instanceof i))return new i(o);if(u.constructor=i,ro(o)){u.s=o.s,_?!o.d||o.e>i.maxE?(u.e=NaN,u.d=null):o.e=10;a/=10)s++;_?s>i.maxE?(u.e=NaN,u.d=null):s=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:a[o++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(n*=4);o=214e7?crypto.randomBytes(4).copy(t,o):(a.push(i%1e7),o+=4);o=n/4}else throw Error(oo);else for(;o=10;i/=10)n++;nct,datamodelEnumToSchemaEnum:()=>Uu});f();c();p();d();m();f();c();p();d();m();function Uu(e){return{name:e.name,values:e.values.map(t=>t.name)}}f();c();p();d();m();var ct=(k=>(k.findUnique="findUnique",k.findUniqueOrThrow="findUniqueOrThrow",k.findFirst="findFirst",k.findFirstOrThrow="findFirstOrThrow",k.findMany="findMany",k.create="create",k.createMany="createMany",k.createManyAndReturn="createManyAndReturn",k.update="update",k.updateMany="updateMany",k.updateManyAndReturn="updateManyAndReturn",k.upsert="upsert",k.delete="delete",k.deleteMany="deleteMany",k.groupBy="groupBy",k.count="count",k.aggregate="aggregate",k.findRaw="findRaw",k.aggregateRaw="aggregateRaw",k))(ct||{});var Eo=Se(Ji());f();c();p();d();m();pn();f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();var yo={keyword:ke,entity:ke,value:e=>pe(Je(e)),punctuation:Je,directive:ke,function:ke,variable:e=>pe(Je(e)),string:e=>pe(St(e)),boolean:Rt,number:ke,comment:kt};var Vu=e=>e,yr={},Qu=0,D={manual:yr.Prism&&yr.Prism.manual,disableWorkerMessageHandler:yr.Prism&&yr.Prism.disableWorkerMessageHandler,util:{encode:function(e){if(e instanceof me){let t=e;return new me(t.type,D.util.encode(t.content),t.alias)}else return Array.isArray(e)?e.map(D.util.encode):e.replace(/&/g,"&").replace(/e.length)return;if(Ce instanceof me)continue;if(z&&Q!=t.length-1){L.lastIndex=ne;var h=L.exec(e);if(!h)break;var g=h.index+(N?h[1].length:0),v=h.index+h[0].length,a=Q,l=ne;for(let B=t.length;a=l&&(++Q,ne=l);if(t[Q]instanceof me)continue;u=a-Q,Ce=e.slice(ne,l),h.index-=ne}else{L.lastIndex=0;var h=L.exec(Ce),u=1}if(!h){if(o)break;continue}N&&(j=h[1]?h[1].length:0);var g=h.index+j,h=h[0].slice(j),v=g+h.length,R=Ce.slice(0,g),C=Ce.slice(v);let Z=[Q,u];R&&(++Q,ne+=R.length,Z.push(R));let Ye=new me(A,k?D.tokenize(h,k):h,vt,h,z);if(Z.push(Ye),C&&Z.push(C),Array.prototype.splice.apply(t,Z),u!=1&&D.matchGrammar(e,t,r,Q,ne,!0,A),o)break}}}},tokenize:function(e,t){let r=[e],n=t.rest;if(n){for(let i in n)t[i]=n[i];delete t.rest}return D.matchGrammar(e,r,t,0,0,!1),r},hooks:{all:{},add:function(e,t){let r=D.hooks.all;r[e]=r[e]||[],r[e].push(t)},run:function(e,t){let r=D.hooks.all[e];if(!(!r||!r.length))for(var n=0,i;i=r[n++];)i(t)}},Token:me};D.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/};D.languages.javascript=D.languages.extend("clike",{"class-name":[D.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.])\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/-[-=]?|\+[+=]?|!=?=?|<>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/});D.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/;D.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:D.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:D.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:D.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:D.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});D.languages.markup&&D.languages.markup.tag.addInlined("script","javascript");D.languages.js=D.languages.javascript;D.languages.typescript=D.languages.extend("javascript",{keyword:/\b(?:abstract|as|async|await|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|is|keyof|let|module|namespace|new|null|of|package|private|protected|public|readonly|return|require|set|static|super|switch|this|throw|try|type|typeof|var|void|while|with|yield)\b/,builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/});D.languages.ts=D.languages.typescript;function me(e,t,r,n,i){this.type=e,this.content=t,this.alias=r,this.length=(n||"").length|0,this.greedy=!!i}me.stringify=function(e,t){return typeof e=="string"?e:Array.isArray(e)?e.map(function(r){return me.stringify(r,t)}).join(""):Gu(e.type)(e.content)};function Gu(e){return yo[e]||Vu}function wo(e){return Ju(e,D.languages.javascript)}function Ju(e,t){return D.tokenize(e,t).map(n=>me.stringify(n)).join("")}f();c();p();d();m();function bo(e){return gn(e)}var wr=class e{firstLineNumber;lines;static read(t){let r;try{r=or.readFileSync(t,"utf-8")}catch{return null}return e.fromContent(r)}static fromContent(t){let r=t.split(/\r?\n/);return new e(1,r)}constructor(t,r){this.firstLineNumber=t,this.lines=r}get lastLineNumber(){return this.firstLineNumber+this.lines.length-1}mapLineAt(t,r){if(tthis.lines.length+this.firstLineNumber)return this;let n=t-this.firstLineNumber,i=[...this.lines];return i[n]=r(i[n]),new e(this.firstLineNumber,i)}mapLines(t){return new e(this.firstLineNumber,this.lines.map((r,n)=>t(r,this.firstLineNumber+n)))}lineAt(t){return this.lines[t-this.firstLineNumber]}prependSymbolAt(t,r){return this.mapLines((n,i)=>i===t?`${r} ${n}`:` ${n}`)}slice(t,r){let n=this.lines.slice(t-1,r).join(` -`);return new e(t,bo(n).split(` -`))}highlight(){let t=wo(this.toString());return new e(this.firstLineNumber,t.split(` -`))}toString(){return this.lines.join(` -`)}};var Wu={red:Ge,gray:kt,dim:Ct,bold:pe,underline:At,highlightSource:e=>e.highlight()},Ku={red:e=>e,gray:e=>e,dim:e=>e,bold:e=>e,underline:e=>e,highlightSource:e=>e};function Hu({message:e,originalMethod:t,isPanic:r,callArguments:n}){return{functionName:`prisma.${t}()`,message:e,isPanic:r??!1,callArguments:n}}function zu({callsite:e,message:t,originalMethod:r,isPanic:n,callArguments:i},o){let s=Hu({message:t,originalMethod:r,isPanic:n,callArguments:i});if(!e||typeof window<"u"||y.env.NODE_ENV==="production")return s;let a=e.getLocation();if(!a||!a.lineNumber||!a.columnNumber)return s;let l=Math.max(1,a.lineNumber-3),u=wr.read(a.fileName)?.slice(l,a.lineNumber),g=u?.lineAt(a.lineNumber);if(u&&g){let h=Zu(g),v=Yu(g);if(!v)return s;s.functionName=`${v.code})`,s.location=a,n||(u=u.mapLineAt(a.lineNumber,C=>C.slice(0,v.openingBraceIndex))),u=o.highlightSource(u);let R=String(u.lastLineNumber).length;if(s.contextLines=u.mapLines((C,A)=>o.gray(String(A).padStart(R))+" "+C).mapLines(C=>o.dim(C)).prependSymbolAt(a.lineNumber,o.bold(o.red("\u2192"))),i){let C=h+R+1;C+=2,s.callArguments=(0,Eo.default)(i,C).slice(C)}}return s}function Yu(e){let t=Object.keys(ct).join("|"),n=new RegExp(String.raw`\.(${t})\(`).exec(e);if(n){let i=n.index+n[0].length,o=e.lastIndexOf(" ",n.index)+1;return{code:e.slice(o,i),openingBraceIndex:i}}return null}function Zu(e){let t=0;for(let r=0;r"Unknown error")}function Co(e){return e.errors.flatMap(t=>t.kind==="Union"?Co(t):[t])}function tc(e){let t=new Map,r=[];for(let n of e){if(n.kind!=="InvalidArgumentType"){r.push(n);continue}let i=`${n.selectionPath.join(".")}:${n.argumentPath.join(".")}`,o=t.get(i);o?t.set(i,{...n,argument:{...n.argument,typeNames:rc(o.argument.typeNames,n.argument.typeNames)}}):t.set(i,n)}return r.push(...t.values()),r}function rc(e,t){return[...new Set(e.concat(t))]}function nc(e){return xn(e,(t,r)=>{let n=Po(t),i=Po(r);return n!==i?n-i:vo(t)-vo(r)})}function Po(e){let t=0;return Array.isArray(e.selectionPath)&&(t+=e.selectionPath.length),Array.isArray(e.argumentPath)&&(t+=e.argumentPath.length),t}function vo(e){switch(e.kind){case"InvalidArgumentValue":case"ValueTooLarge":return 20;case"InvalidArgumentType":return 10;case"RequiredArgumentMissing":return-10;default:return 0}}f();c();p();d();m();var ce=class{constructor(t,r){this.name=t;this.value=r}isRequired=!1;makeRequired(){return this.isRequired=!0,this}write(t){let{colors:{green:r}}=t.context;t.addMarginSymbol(r(this.isRequired?"+":"?")),t.write(r(this.name)),this.isRequired||t.write(r("?")),t.write(r(": ")),typeof this.value=="string"?t.write(r(this.value)):t.write(this.value)}};f();c();p();d();m();f();c();p();d();m();So();f();c();p();d();m();var pt=class{constructor(t=0,r){this.context=r;this.currentIndent=t}lines=[];currentLine="";currentIndent=0;marginSymbol;afterNextNewLineCallback;write(t){return typeof t=="string"?this.currentLine+=t:t.write(this),this}writeJoined(t,r,n=(i,o)=>o.write(i)){let i=r.length-1;for(let o=0;o0&&this.currentIndent--,this}addMarginSymbol(t){return this.marginSymbol=t,this}toString(){return this.lines.concat(this.indentedCurrentLine()).join(` -`)}getCurrentLineLength(){return this.currentLine.length}indentedCurrentLine(){let t=this.currentLine.padStart(this.currentLine.length+2*this.currentIndent);return this.marginSymbol?this.marginSymbol+t.slice(1):t}};Ao();f();c();p();d();m();f();c();p();d();m();var xr=class{constructor(t){this.value=t}write(t){t.write(this.value)}markAsError(){this.value.markAsError()}};f();c();p();d();m();var Pr=e=>e,vr={bold:Pr,red:Pr,green:Pr,dim:Pr,enabled:!1},Ro={bold:pe,red:Ge,green:St,dim:Ct,enabled:!0},dt={write(e){e.writeLine(",")}};f();c();p();d();m();var xe=class{constructor(t){this.contents=t}isUnderlined=!1;color=t=>t;underline(){return this.isUnderlined=!0,this}setColor(t){return this.color=t,this}write(t){let r=t.getCurrentLineLength();t.write(this.color(this.contents)),this.isUnderlined&&t.afterNextNewline(()=>{t.write(" ".repeat(r)).writeLine(this.color("~".repeat(this.contents.length)))})}};f();c();p();d();m();var je=class{hasError=!1;markAsError(){return this.hasError=!0,this}};var mt=class extends je{items=[];addItem(t){return this.items.push(new xr(t)),this}getField(t){return this.items[t]}getPrintWidth(){return this.items.length===0?2:Math.max(...this.items.map(r=>r.value.getPrintWidth()))+2}write(t){if(this.items.length===0){this.writeEmpty(t);return}this.writeWithItems(t)}writeEmpty(t){let r=new xe("[]");this.hasError&&r.setColor(t.context.colors.red).underline(),t.write(r)}writeWithItems(t){let{colors:r}=t.context;t.writeLine("[").withIndent(()=>t.writeJoined(dt,this.items).newLine()).write("]"),this.hasError&&t.afterNextNewline(()=>{t.writeLine(r.red("~".repeat(this.getPrintWidth())))})}asObject(){}};var ft=class e extends je{fields={};suggestions=[];addField(t){this.fields[t.name]=t}addSuggestion(t){this.suggestions.push(t)}getField(t){return this.fields[t]}getDeepField(t){let[r,...n]=t,i=this.getField(r);if(!i)return;let o=i;for(let s of n){let a;if(o.value instanceof e?a=o.value.getField(s):o.value instanceof mt&&(a=o.value.getField(Number(s))),!a)return;o=a}return o}getDeepFieldValue(t){return t.length===0?this:this.getDeepField(t)?.value}hasField(t){return!!this.getField(t)}removeAllFields(){this.fields={}}removeField(t){delete this.fields[t]}getFields(){return this.fields}isEmpty(){return Object.keys(this.fields).length===0}getFieldValue(t){return this.getField(t)?.value}getDeepSubSelectionValue(t){let r=this;for(let n of t){if(!(r instanceof e))return;let i=r.getSubSelectionValue(n);if(!i)return;r=i}return r}getDeepSelectionParent(t){let r=this.getSelectionParent();if(!r)return;let n=r;for(let i of t){let o=n.value.getFieldValue(i);if(!o||!(o instanceof e))return;let s=o.getSelectionParent();if(!s)return;n=s}return n}getSelectionParent(){let t=this.getField("select")?.value.asObject();if(t)return{kind:"select",value:t};let r=this.getField("include")?.value.asObject();if(r)return{kind:"include",value:r}}getSubSelectionValue(t){return this.getSelectionParent()?.value.fields[t].value}getPrintWidth(){let t=Object.values(this.fields);return t.length==0?2:Math.max(...t.map(n=>n.getPrintWidth()))+2}write(t){let r=Object.values(this.fields);if(r.length===0&&this.suggestions.length===0){this.writeEmpty(t);return}this.writeWithContents(t,r)}asObject(){return this}writeEmpty(t){let r=new xe("{}");this.hasError&&r.setColor(t.context.colors.red).underline(),t.write(r)}writeWithContents(t,r){t.writeLine("{").withIndent(()=>{t.writeJoined(dt,[...r,...this.suggestions]).newLine()}),t.write("}"),this.hasError&&t.afterNextNewline(()=>{t.writeLine(t.context.colors.red("~".repeat(this.getPrintWidth())))})}};f();c();p();d();m();var H=class extends je{constructor(r){super();this.text=r}getPrintWidth(){return this.text.length}write(r){let n=new xe(this.text);this.hasError&&n.underline().setColor(r.context.colors.red),r.write(n)}asObject(){}};f();c();p();d();m();var qt=class{fields=[];addField(t,r){return this.fields.push({write(n){let{green:i,dim:o}=n.context.colors;n.write(i(o(`${t}: ${r}`))).addMarginSymbol(i(o("+")))}}),this}write(t){let{colors:{green:r}}=t.context;t.writeLine(r("{")).withIndent(()=>{t.writeJoined(dt,this.fields).newLine()}).write(r("}")).addMarginSymbol(r("+"))}};function Er(e,t,r){switch(e.kind){case"MutuallyExclusiveFields":ic(e,t);break;case"IncludeOnScalar":oc(e,t);break;case"EmptySelection":sc(e,t,r);break;case"UnknownSelectionField":cc(e,t);break;case"InvalidSelectionValue":pc(e,t);break;case"UnknownArgument":dc(e,t);break;case"UnknownInputField":mc(e,t);break;case"RequiredArgumentMissing":fc(e,t);break;case"InvalidArgumentType":gc(e,t);break;case"InvalidArgumentValue":hc(e,t);break;case"ValueTooLarge":yc(e,t);break;case"SomeFieldsMissing":wc(e,t);break;case"TooManyFieldsGiven":bc(e,t);break;case"Union":To(e,t,r);break;default:throw new Error("not implemented: "+e.kind)}}function ic(e,t){let r=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();r&&(r.getField(e.firstField)?.markAsError(),r.getField(e.secondField)?.markAsError()),t.addErrorMessage(n=>`Please ${n.bold("either")} use ${n.green(`\`${e.firstField}\``)} or ${n.green(`\`${e.secondField}\``)}, but ${n.red("not both")} at the same time.`)}function oc(e,t){let[r,n]=Bt(e.selectionPath),i=e.outputType,o=t.arguments.getDeepSelectionParent(r)?.value;if(o&&(o.getField(n)?.markAsError(),i))for(let s of i.fields)s.isRelation&&o.addSuggestion(new ce(s.name,"true"));t.addErrorMessage(s=>{let a=`Invalid scalar field ${s.red(`\`${n}\``)} for ${s.bold("include")} statement`;return i?a+=` on model ${s.bold(i.name)}. ${$t(s)}`:a+=".",a+=` -Note that ${s.bold("include")} statements only accept relation fields.`,a})}function sc(e,t,r){let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getField("omit")?.value.asObject();if(i){ac(e,t,i);return}if(n.hasField("select")){lc(e,t);return}}if(r?.[$e(e.outputType.name)]){uc(e,t);return}t.addErrorMessage(()=>`Unknown field at "${e.selectionPath.join(".")} selection"`)}function ac(e,t,r){r.removeAllFields();for(let n of e.outputType.fields)r.addSuggestion(new ce(n.name,"false"));t.addErrorMessage(n=>`The ${n.red("omit")} statement includes every field of the model ${n.bold(e.outputType.name)}. At least one field must be included in the result`)}function lc(e,t){let r=e.outputType,n=t.arguments.getDeepSelectionParent(e.selectionPath)?.value,i=n?.isEmpty()??!1;n&&(n.removeAllFields(),Fo(n,r)),t.addErrorMessage(o=>i?`The ${o.red("`select`")} statement for type ${o.bold(r.name)} must not be empty. ${$t(o)}`:`The ${o.red("`select`")} statement for type ${o.bold(r.name)} needs ${o.bold("at least one truthy value")}.`)}function uc(e,t){let r=new qt;for(let i of e.outputType.fields)i.isRelation||r.addField(i.name,"false");let n=new ce("omit",r).makeRequired();if(e.selectionPath.length===0)t.arguments.addSuggestion(n);else{let[i,o]=Bt(e.selectionPath),a=t.arguments.getDeepSelectionParent(i)?.value.asObject()?.getField(o);if(a){let l=a?.value.asObject()??new ft;l.addSuggestion(n),a.value=l}}t.addErrorMessage(i=>`The global ${i.red("omit")} configuration excludes every field of the model ${i.bold(e.outputType.name)}. At least one field must be included in the result`)}function cc(e,t){let r=Mo(e.selectionPath,t);if(r.parentKind!=="unknown"){r.field.markAsError();let n=r.parent;switch(r.parentKind){case"select":Fo(n,e.outputType);break;case"include":Ec(n,e.outputType);break;case"omit":xc(n,e.outputType);break}}t.addErrorMessage(n=>{let i=[`Unknown field ${n.red(`\`${r.fieldName}\``)}`];return r.parentKind!=="unknown"&&i.push(`for ${n.bold(r.parentKind)} statement`),i.push(`on model ${n.bold(`\`${e.outputType.name}\``)}.`),i.push($t(n)),i.join(" ")})}function pc(e,t){let r=Mo(e.selectionPath,t);r.parentKind!=="unknown"&&r.field.value.markAsError(),t.addErrorMessage(n=>`Invalid value for selection field \`${n.red(r.fieldName)}\`: ${e.underlyingError}`)}function dc(e,t){let r=e.argumentPath[0],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&(n.getField(r)?.markAsError(),Pc(n,e.arguments)),t.addErrorMessage(i=>Oo(i,r,e.arguments.map(o=>o.name)))}function mc(e,t){let[r,n]=Bt(e.argumentPath),i=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(i){i.getDeepField(e.argumentPath)?.markAsError();let o=i.getDeepFieldValue(r)?.asObject();o&&_o(o,e.inputType)}t.addErrorMessage(o=>Oo(o,n,e.inputType.fields.map(s=>s.name)))}function Oo(e,t,r){let n=[`Unknown argument \`${e.red(t)}\`.`],i=Tc(t,r);return i&&n.push(`Did you mean \`${e.green(i)}\`?`),r.length>0&&n.push($t(e)),n.join(" ")}function fc(e,t){let r;t.addErrorMessage(l=>r?.value instanceof H&&r.value.text==="null"?`Argument \`${l.green(o)}\` must not be ${l.red("null")}.`:`Argument \`${l.green(o)}\` is missing.`);let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(!n)return;let[i,o]=Bt(e.argumentPath),s=new qt,a=n.getDeepFieldValue(i)?.asObject();if(a)if(r=a.getField(o),r&&a.removeField(o),e.inputTypes.length===1&&e.inputTypes[0].kind==="object"){for(let l of e.inputTypes[0].fields)s.addField(l.name,l.typeNames.join(" | "));a.addSuggestion(new ce(o,s).makeRequired())}else{let l=e.inputTypes.map(Io).join(" | ");a.addSuggestion(new ce(o,l).makeRequired())}}function Io(e){return e.kind==="list"?`${Io(e.elementType)}[]`:e.name}function gc(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=Tr("or",e.argument.typeNames.map(s=>i.green(s)));return`Argument \`${i.bold(r)}\`: Invalid value provided. Expected ${o}, provided ${i.red(e.inferredType)}.`})}function hc(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=[`Invalid value for argument \`${i.bold(r)}\``];if(e.underlyingError&&o.push(`: ${e.underlyingError}`),o.push("."),e.argument.typeNames.length>0){let s=Tr("or",e.argument.typeNames.map(a=>i.green(a)));o.push(` Expected ${s}.`)}return o.join("")})}function yc(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i;if(n){let s=n.getDeepField(e.argumentPath)?.value;s?.markAsError(),s instanceof H&&(i=s.text)}t.addErrorMessage(o=>{let s=["Unable to fit value"];return i&&s.push(o.red(i)),s.push(`into a 64-bit signed integer for field \`${o.bold(r)}\``),s.join(" ")})}function wc(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getDeepFieldValue(e.argumentPath)?.asObject();i&&_o(i,e.inputType)}t.addErrorMessage(i=>{let o=[`Argument \`${i.bold(r)}\` of type ${i.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1?e.constraints.requiredFields?o.push(`${i.green("at least one of")} ${Tr("or",e.constraints.requiredFields.map(s=>`\`${i.bold(s)}\``))} arguments.`):o.push(`${i.green("at least one")} argument.`):o.push(`${i.green(`at least ${e.constraints.minFieldCount}`)} arguments.`),o.push($t(i)),o.join(" ")})}function bc(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i=[];if(n){let o=n.getDeepFieldValue(e.argumentPath)?.asObject();o&&(o.markAsError(),i=Object.keys(o.getFields()))}t.addErrorMessage(o=>{let s=[`Argument \`${o.bold(r)}\` of type ${o.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1&&e.constraints.maxFieldCount==1?s.push(`${o.green("exactly one")} argument,`):e.constraints.maxFieldCount==1?s.push(`${o.green("at most one")} argument,`):s.push(`${o.green(`at most ${e.constraints.maxFieldCount}`)} arguments,`),s.push(`but you provided ${Tr("and",i.map(a=>o.red(a)))}. Please choose`),e.constraints.maxFieldCount===1?s.push("one."):s.push(`${e.constraints.maxFieldCount}.`),s.join(" ")})}function Fo(e,t){for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new ce(r.name,"true"))}function Ec(e,t){for(let r of t.fields)r.isRelation&&!e.hasField(r.name)&&e.addSuggestion(new ce(r.name,"true"))}function xc(e,t){for(let r of t.fields)!e.hasField(r.name)&&!r.isRelation&&e.addSuggestion(new ce(r.name,"true"))}function Pc(e,t){for(let r of t)e.hasField(r.name)||e.addSuggestion(new ce(r.name,r.typeNames.join(" | ")))}function Mo(e,t){let[r,n]=Bt(e),i=t.arguments.getDeepSubSelectionValue(r)?.asObject();if(!i)return{parentKind:"unknown",fieldName:n};let o=i.getFieldValue("select")?.asObject(),s=i.getFieldValue("include")?.asObject(),a=i.getFieldValue("omit")?.asObject(),l=o?.getField(n);return o&&l?{parentKind:"select",parent:o,field:l,fieldName:n}:(l=s?.getField(n),s&&l?{parentKind:"include",field:l,parent:s,fieldName:n}:(l=a?.getField(n),a&&l?{parentKind:"omit",field:l,parent:a,fieldName:n}:{parentKind:"unknown",fieldName:n}))}function _o(e,t){if(t.kind==="object")for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new ce(r.name,r.typeNames.join(" | ")))}function Bt(e){let t=[...e],r=t.pop();if(!r)throw new Error("unexpected empty path");return[t,r]}function $t({green:e,enabled:t}){return"Available options are "+(t?`listed in ${e("green")}`:"marked with ?")+"."}function Tr(e,t){if(t.length===1)return t[0];let r=[...t],n=r.pop();return`${r.join(", ")} ${e} ${n}`}var vc=3;function Tc(e,t){let r=1/0,n;for(let i of t){let o=(0,ko.default)(e,i);o>vc||o`}};function gt(e){return e instanceof jt}f();c();p();d();m();var Cr=Symbol(),On=new WeakMap,Me=class{constructor(t){t===Cr?On.set(this,`Prisma.${this._getName()}`):On.set(this,`new Prisma.${this._getNamespace()}.${this._getName()}()`)}_getName(){return this.constructor.name}toString(){return On.get(this)}},Ut=class extends Me{_getNamespace(){return"NullTypes"}},Vt=class extends Ut{#e};In(Vt,"DbNull");var Qt=class extends Ut{#e};In(Qt,"JsonNull");var Gt=class extends Ut{#e};In(Gt,"AnyNull");var Ar={classes:{DbNull:Vt,JsonNull:Qt,AnyNull:Gt},instances:{DbNull:new Vt(Cr),JsonNull:new Qt(Cr),AnyNull:new Gt(Cr)}};function In(e,t){Object.defineProperty(e,"name",{value:t,configurable:!0})}f();c();p();d();m();var Lo=": ",Sr=class{constructor(t,r){this.name=t;this.value=r}hasError=!1;markAsError(){this.hasError=!0}getPrintWidth(){return this.name.length+this.value.getPrintWidth()+Lo.length}write(t){let r=new xe(this.name);this.hasError&&r.underline().setColor(t.context.colors.red),t.write(r).write(Lo).write(this.value)}};var Fn=class{arguments;errorMessages=[];constructor(t){this.arguments=t}write(t){t.write(this.arguments)}addErrorMessage(t){this.errorMessages.push(t)}renderAllMessages(t){return this.errorMessages.map(r=>r(t)).join(` -`)}};function ht(e){return new Fn(Do(e))}function Do(e){let t=new ft;for(let[r,n]of Object.entries(e)){let i=new Sr(r,No(n));t.addField(i)}return t}function No(e){if(typeof e=="string")return new H(JSON.stringify(e));if(typeof e=="number"||typeof e=="boolean")return new H(String(e));if(typeof e=="bigint")return new H(`${e}n`);if(e===null)return new H("null");if(e===void 0)return new H("undefined");if(ut(e))return new H(`new Prisma.Decimal("${e.toFixed()}")`);if(e instanceof Uint8Array)return w.Buffer.isBuffer(e)?new H(`Buffer.alloc(${e.byteLength})`):new H(`new Uint8Array(${e.byteLength})`);if(e instanceof Date){let t=hr(e)?e.toISOString():"Invalid Date";return new H(`new Date("${t}")`)}return e instanceof Me?new H(`Prisma.${e._getName()}`):gt(e)?new H(`prisma.${$e(e.modelName)}.$fields.${e.name}`):Array.isArray(e)?Cc(e):typeof e=="object"?Do(e):new H(Object.prototype.toString.call(e))}function Cc(e){let t=new mt;for(let r of e)t.addItem(No(r));return t}function Rr(e,t){let r=t==="pretty"?Ro:vr,n=e.renderAllMessages(r),i=new pt(0,{colors:r}).write(e).toString();return{message:n,args:i}}function kr({args:e,errors:t,errorFormat:r,callsite:n,originalMethod:i,clientVersion:o,globalOmit:s}){let a=ht(e);for(let h of t)Er(h,a,s);let{message:l,args:u}=Rr(a,r),g=br({message:l,callsite:n,originalMethod:i,showColors:r==="pretty",callArguments:u});throw new ee(g,{clientVersion:o})}f();c();p();d();m();f();c();p();d();m();function Pe(e){return e.replace(/^./,t=>t.toLowerCase())}f();c();p();d();m();function Bo(e,t,r){let n=Pe(r);return!t.result||!(t.result.$allModels||t.result[n])?e:Ac({...e,...qo(t.name,e,t.result.$allModels),...qo(t.name,e,t.result[n])})}function Ac(e){let t=new Ee,r=(n,i)=>t.getOrCreate(n,()=>i.has(n)?[n]:(i.add(n),e[n]?e[n].needs.flatMap(o=>r(o,i)):[n]));return it(e,n=>({...n,needs:r(n.name,new Set)}))}function qo(e,t,r){return r?it(r,({needs:n,compute:i},o)=>({name:o,needs:n?Object.keys(n).filter(s=>n[s]):[],compute:Sc(t,o,i)})):{}}function Sc(e,t,r){let n=e?.[t]?.compute;return n?i=>r({...i,[t]:n(i)}):r}function $o(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(e[n.name])for(let i of n.needs)r[i]=!0;return r}function jo(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(!e[n.name])for(let i of n.needs)delete r[i];return r}var Or=class{constructor(t,r){this.extension=t;this.previous=r}computedFieldsCache=new Ee;modelExtensionsCache=new Ee;queryCallbacksCache=new Ee;clientExtensions=Dt(()=>this.extension.client?{...this.previous?.getAllClientExtensions(),...this.extension.client}:this.previous?.getAllClientExtensions());batchCallbacks=Dt(()=>{let t=this.previous?.getAllBatchQueryCallbacks()??[],r=this.extension.query?.$__internalBatch;return r?t.concat(r):t});getAllComputedFields(t){return this.computedFieldsCache.getOrCreate(t,()=>Bo(this.previous?.getAllComputedFields(t),this.extension,t))}getAllClientExtensions(){return this.clientExtensions.get()}getAllModelExtensions(t){return this.modelExtensionsCache.getOrCreate(t,()=>{let r=Pe(t);return!this.extension.model||!(this.extension.model[r]||this.extension.model.$allModels)?this.previous?.getAllModelExtensions(t):{...this.previous?.getAllModelExtensions(t),...this.extension.model.$allModels,...this.extension.model[r]}})}getAllQueryCallbacks(t,r){return this.queryCallbacksCache.getOrCreate(`${t}:${r}`,()=>{let n=this.previous?.getAllQueryCallbacks(t,r)??[],i=[],o=this.extension.query;return!o||!(o[t]||o.$allModels||o[r]||o.$allOperations)?n:(o[t]!==void 0&&(o[t][r]!==void 0&&i.push(o[t][r]),o[t].$allOperations!==void 0&&i.push(o[t].$allOperations)),t!=="$none"&&o.$allModels!==void 0&&(o.$allModels[r]!==void 0&&i.push(o.$allModels[r]),o.$allModels.$allOperations!==void 0&&i.push(o.$allModels.$allOperations)),o[r]!==void 0&&i.push(o[r]),o.$allOperations!==void 0&&i.push(o.$allOperations),n.concat(i))})}getAllBatchQueryCallbacks(){return this.batchCallbacks.get()}},yt=class e{constructor(t){this.head=t}static empty(){return new e}static single(t){return new e(new Or(t))}isEmpty(){return this.head===void 0}append(t){return new e(new Or(t,this.head))}getAllComputedFields(t){return this.head?.getAllComputedFields(t)}getAllClientExtensions(){return this.head?.getAllClientExtensions()}getAllModelExtensions(t){return this.head?.getAllModelExtensions(t)}getAllQueryCallbacks(t,r){return this.head?.getAllQueryCallbacks(t,r)??[]}getAllBatchQueryCallbacks(){return this.head?.getAllBatchQueryCallbacks()??[]}};f();c();p();d();m();var Ir=class{constructor(t){this.name=t}};function Uo(e){return e instanceof Ir}function Vo(e){return new Ir(e)}f();c();p();d();m();f();c();p();d();m();var Qo=Symbol(),Jt=class{constructor(t){if(t!==Qo)throw new Error("Skip instance can not be constructed directly")}ifUndefined(t){return t===void 0?Fr:t}},Fr=new Jt(Qo);function ve(e){return e instanceof Jt}var Rc={findUnique:"findUnique",findUniqueOrThrow:"findUniqueOrThrow",findFirst:"findFirst",findFirstOrThrow:"findFirstOrThrow",findMany:"findMany",count:"aggregate",create:"createOne",createMany:"createMany",createManyAndReturn:"createManyAndReturn",update:"updateOne",updateMany:"updateMany",updateManyAndReturn:"updateManyAndReturn",upsert:"upsertOne",delete:"deleteOne",deleteMany:"deleteMany",executeRaw:"executeRaw",queryRaw:"queryRaw",aggregate:"aggregate",groupBy:"groupBy",runCommandRaw:"runCommandRaw",findRaw:"findRaw",aggregateRaw:"aggregateRaw"},Go="explicitly `undefined` values are not allowed";function Mr({modelName:e,action:t,args:r,runtimeDataModel:n,extensions:i=yt.empty(),callsite:o,clientMethod:s,errorFormat:a,clientVersion:l,previewFeatures:u,globalOmit:g}){let h=new Mn({runtimeDataModel:n,modelName:e,action:t,rootArgs:r,callsite:o,extensions:i,selectionPath:[],argumentPath:[],originalMethod:s,errorFormat:a,clientVersion:l,previewFeatures:u,globalOmit:g});return{modelName:e,action:Rc[t],query:Wt(r,h)}}function Wt({select:e,include:t,...r}={},n){let i=r.omit;return delete r.omit,{arguments:Wo(r,n),selection:kc(e,t,i,n)}}function kc(e,t,r,n){return e?(t?n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"include",secondField:"select",selectionPath:n.getSelectionPath()}):r&&n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"omit",secondField:"select",selectionPath:n.getSelectionPath()}),Mc(e,n)):Oc(n,t,r)}function Oc(e,t,r){let n={};return e.modelOrType&&!e.isRawAction()&&(n.$composites=!0,n.$scalars=!0),t&&Ic(n,t,e),Fc(n,r,e),n}function Ic(e,t,r){for(let[n,i]of Object.entries(t)){if(ve(i))continue;let o=r.nestSelection(n);if(_n(i,o),i===!1||i===void 0){e[n]=!1;continue}let s=r.findField(n);if(s&&s.kind!=="object"&&r.throwValidationError({kind:"IncludeOnScalar",selectionPath:r.getSelectionPath().concat(n),outputType:r.getOutputTypeDescription()}),s){e[n]=Wt(i===!0?{}:i,o);continue}if(i===!0){e[n]=!0;continue}e[n]=Wt(i,o)}}function Fc(e,t,r){let n=r.getComputedFields(),i={...r.getGlobalOmit(),...t},o=jo(i,n);for(let[s,a]of Object.entries(o)){if(ve(a))continue;_n(a,r.nestSelection(s));let l=r.findField(s);n?.[s]&&!l||(e[s]=!a)}}function Mc(e,t){let r={},n=t.getComputedFields(),i=$o(e,n);for(let[o,s]of Object.entries(i)){if(ve(s))continue;let a=t.nestSelection(o);_n(s,a);let l=t.findField(o);if(!(n?.[o]&&!l)){if(s===!1||s===void 0||ve(s)){r[o]=!1;continue}if(s===!0){l?.kind==="object"?r[o]=Wt({},a):r[o]=!0;continue}r[o]=Wt(s,a)}}return r}function Jo(e,t){if(e===null)return null;if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="bigint")return{$type:"BigInt",value:String(e)};if(lt(e)){if(hr(e))return{$type:"DateTime",value:e.toISOString()};t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:["Date"]},underlyingError:"Provided Date object is invalid"})}if(Uo(e))return{$type:"Param",value:e.name};if(gt(e))return{$type:"FieldRef",value:{_ref:e.name,_container:e.modelName}};if(Array.isArray(e))return _c(e,t);if(ArrayBuffer.isView(e)){let{buffer:r,byteOffset:n,byteLength:i}=e;return{$type:"Bytes",value:w.Buffer.from(r,n,i).toString("base64")}}if(Lc(e))return e.values;if(ut(e))return{$type:"Decimal",value:e.toFixed()};if(e instanceof Me){if(e!==Ar.instances[e._getName()])throw new Error("Invalid ObjectEnumValue");return{$type:"Enum",value:e._getName()}}if(Dc(e))return e.toJSON();if(typeof e=="object")return Wo(e,t);t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:`We could not serialize ${Object.prototype.toString.call(e)} value. Serialize the object to JSON or implement a ".toJSON()" method on it`})}function Wo(e,t){if(e.$type)return{$type:"Raw",value:e};let r={};for(let n in e){let i=e[n],o=t.nestArgument(n);ve(i)||(i!==void 0?r[n]=Jo(i,o):t.isPreviewFeatureOn("strictUndefinedChecks")&&t.throwValidationError({kind:"InvalidArgumentValue",argumentPath:o.getArgumentPath(),selectionPath:t.getSelectionPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:Go}))}return r}function _c(e,t){let r=[];for(let n=0;n({name:t.name,typeName:"boolean",isRelation:t.kind==="object"}))}}isRawAction(){return["executeRaw","queryRaw","runCommandRaw","findRaw","aggregateRaw"].includes(this.params.action)}isPreviewFeatureOn(t){return this.params.previewFeatures.includes(t)}getComputedFields(){if(this.params.modelName)return this.params.extensions.getAllComputedFields(this.params.modelName)}findField(t){return this.modelOrType?.fields.find(r=>r.name===t)}nestSelection(t){let r=this.findField(t),n=r?.kind==="object"?r.type:void 0;return new e({...this.params,modelName:n,selectionPath:this.params.selectionPath.concat(t)})}getGlobalOmit(){return this.params.modelName&&this.shouldApplyGlobalOmit()?this.params.globalOmit?.[$e(this.params.modelName)]??{}:{}}shouldApplyGlobalOmit(){switch(this.params.action){case"findFirst":case"findFirstOrThrow":case"findUniqueOrThrow":case"findMany":case"upsert":case"findUnique":case"createManyAndReturn":case"create":case"update":case"updateManyAndReturn":case"delete":return!0;case"executeRaw":case"aggregateRaw":case"runCommandRaw":case"findRaw":case"createMany":case"deleteMany":case"groupBy":case"updateMany":case"count":case"aggregate":case"queryRaw":return!1;default:Ie(this.params.action,"Unknown action")}}nestArgument(t){return new e({...this.params,argumentPath:this.params.argumentPath.concat(t)})}};f();c();p();d();m();function Ko(e){if(!e._hasPreviewFlag("metrics"))throw new ee("`metrics` preview feature must be enabled in order to access metrics API",{clientVersion:e._clientVersion})}var wt=class{_client;constructor(t){this._client=t}prometheus(t){return Ko(this._client),this._client._engine.metrics({format:"prometheus",...t})}json(t){return Ko(this._client),this._client._engine.metrics({format:"json",...t})}};f();c();p();d();m();function Ho(e,t){let r=Dt(()=>Nc(t));Object.defineProperty(e,"dmmf",{get:()=>r.get()})}function Nc(e){return{datamodel:{models:Ln(e.models),enums:Ln(e.enums),types:Ln(e.types)}}}function Ln(e){return Object.entries(e).map(([t,r])=>({name:t,...r}))}f();c();p();d();m();var Dn=new WeakMap,_r="$$PrismaTypedSql",Kt=class{constructor(t,r){Dn.set(this,{sql:t,values:r}),Object.defineProperty(this,_r,{value:_r})}get sql(){return Dn.get(this).sql}get values(){return Dn.get(this).values}};function zo(e){return(...t)=>new Kt(e,t)}function Lr(e){return e!=null&&e[_r]===_r}f();c();p();d();m();var ga=Se(Yo());f();c();p();d();m();Zo();pn();mn();f();c();p();d();m();var ae=class e{constructor(t,r){if(t.length-1!==r.length)throw t.length===0?new TypeError("Expected at least 1 string"):new TypeError(`Expected ${t.length} strings to have ${t.length-1} values`);let n=r.reduce((s,a)=>s+(a instanceof e?a.values.length:1),0);this.values=new Array(n),this.strings=new Array(n+1),this.strings[0]=t[0];let i=0,o=0;for(;ie.getPropertyValue(r))},getPropertyDescriptor(r){return e.getPropertyDescriptor?.(r)}}}f();c();p();d();m();f();c();p();d();m();var Nr={enumerable:!0,configurable:!0,writable:!0};function qr(e){let t=new Set(e);return{getPrototypeOf:()=>Object.prototype,getOwnPropertyDescriptor:()=>Nr,has:(r,n)=>t.has(n),set:(r,n,i)=>t.add(n)&&Reflect.set(r,n,i),ownKeys:()=>[...t]}}var ts=Symbol.for("nodejs.util.inspect.custom");function fe(e,t){let r=Bc(t),n=new Set,i=new Proxy(e,{get(o,s){if(n.has(s))return o[s];let a=r.get(s);return a?a.getPropertyValue(s):o[s]},has(o,s){if(n.has(s))return!0;let a=r.get(s);return a?a.has?.(s)??!0:Reflect.has(o,s)},ownKeys(o){let s=rs(Reflect.ownKeys(o),r),a=rs(Array.from(r.keys()),r);return[...new Set([...s,...a,...n])]},set(o,s,a){return r.get(s)?.getPropertyDescriptor?.(s)?.writable===!1?!1:(n.add(s),Reflect.set(o,s,a))},getOwnPropertyDescriptor(o,s){let a=Reflect.getOwnPropertyDescriptor(o,s);if(a&&!a.configurable)return a;let l=r.get(s);return l?l.getPropertyDescriptor?{...Nr,...l?.getPropertyDescriptor(s)}:Nr:a},defineProperty(o,s,a){return n.add(s),Reflect.defineProperty(o,s,a)},getPrototypeOf:()=>Object.prototype});return i[ts]=function(){let o={...this};return delete o[ts],o},i}function Bc(e){let t=new Map;for(let r of e){let n=r.getKeys();for(let i of n)t.set(i,r)}return t}function rs(e,t){return e.filter(r=>t.get(r)?.has?.(r)??!0)}f();c();p();d();m();function bt(e){return{getKeys(){return e},has(){return!1},getPropertyValue(){}}}f();c();p();d();m();function Br(e,t){return{batch:e,transaction:t?.kind==="batch"?{isolationLevel:t.options.isolationLevel}:void 0}}f();c();p();d();m();function ns(e){if(e===void 0)return"";let t=ht(e);return new pt(0,{colors:vr}).write(t).toString()}f();c();p();d();m();var $c="P2037";function $r({error:e,user_facing_error:t},r,n){return t.error_code?new oe(jc(t,n),{code:t.error_code,clientVersion:r,meta:t.meta,batchRequestIdx:t.batch_request_idx}):new G(e,{clientVersion:r,batchRequestIdx:t.batch_request_idx})}function jc(e,t){let r=e.message;return(t==="postgresql"||t==="postgres"||t==="mysql")&&e.error_code===$c&&(r+=` -Prisma Accelerate has built-in connection pooling to prevent such errors: https://pris.ly/client/error-accelerate`),r}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();var zt="";function is(e){var t=e.split(` -`);return t.reduce(function(r,n){var i=Qc(n)||Jc(n)||Hc(n)||Xc(n)||Yc(n);return i&&r.push(i),r},[])}var Uc=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|rsc||\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Vc=/\((\S*)(?::(\d+))(?::(\d+))\)/;function Qc(e){var t=Uc.exec(e);if(!t)return null;var r=t[2]&&t[2].indexOf("native")===0,n=t[2]&&t[2].indexOf("eval")===0,i=Vc.exec(t[2]);return n&&i!=null&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]),{file:r?null:t[2],methodName:t[1]||zt,arguments:r?[t[2]]:[],lineNumber:t[3]?+t[3]:null,column:t[4]?+t[4]:null}}var Gc=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|rsc|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function Jc(e){var t=Gc.exec(e);return t?{file:t[2],methodName:t[1]||zt,arguments:[],lineNumber:+t[3],column:t[4]?+t[4]:null}:null}var Wc=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|rsc|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,Kc=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Hc(e){var t=Wc.exec(e);if(!t)return null;var r=t[3]&&t[3].indexOf(" > eval")>-1,n=Kc.exec(t[3]);return r&&n!=null&&(t[3]=n[1],t[4]=n[2],t[5]=null),{file:t[3],methodName:t[1]||zt,arguments:t[2]?t[2].split(","):[],lineNumber:t[4]?+t[4]:null,column:t[5]?+t[5]:null}}var zc=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;function Yc(e){var t=zc.exec(e);return t?{file:t[3],methodName:t[1]||zt,arguments:[],lineNumber:+t[4],column:t[5]?+t[5]:null}:null}var Zc=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;function Xc(e){var t=Zc.exec(e);return t?{file:t[2],methodName:t[1]||zt,arguments:[],lineNumber:+t[3],column:t[4]?+t[4]:null}:null}var Bn=class{getLocation(){return null}},$n=class{_error;constructor(){this._error=new Error}getLocation(){let t=this._error.stack;if(!t)return null;let n=is(t).find(i=>{if(!i.file)return!1;let o=bn(i.file);return o!==""&&!o.includes("@prisma")&&!o.includes("/packages/client/src/runtime/")&&!o.endsWith("/runtime/binary.js")&&!o.endsWith("/runtime/library.js")&&!o.endsWith("/runtime/edge.js")&&!o.endsWith("/runtime/edge-esm.js")&&!o.startsWith("internal/")&&!i.methodName.includes("new ")&&!i.methodName.includes("getCallSite")&&!i.methodName.includes("Proxy.")&&i.methodName.split(".").length<4});return!n||!n.file?null:{fileName:n.file,lineNumber:n.lineNumber,columnNumber:n.column}}};function Ue(e){return e==="minimal"?typeof $EnabledCallSite=="function"&&e!=="minimal"?new $EnabledCallSite:new Bn:new $n}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();var os={_avg:!0,_count:!0,_sum:!0,_min:!0,_max:!0};function Et(e={}){let t=tp(e);return Object.entries(t).reduce((n,[i,o])=>(os[i]!==void 0?n.select[i]={select:o}:n[i]=o,n),{select:{}})}function tp(e={}){return typeof e._count=="boolean"?{...e,_count:{_all:e._count}}:e}function jr(e={}){return t=>(typeof e._count=="boolean"&&(t._count=t._count._all),t)}function ss(e,t){let r=jr(e);return t({action:"aggregate",unpacker:r,argsMapper:Et})(e)}f();c();p();d();m();function rp(e={}){let{select:t,...r}=e;return typeof t=="object"?Et({...r,_count:t}):Et({...r,_count:{_all:!0}})}function np(e={}){return typeof e.select=="object"?t=>jr(e)(t)._count:t=>jr(e)(t)._count._all}function as(e,t){return t({action:"count",unpacker:np(e),argsMapper:rp})(e)}f();c();p();d();m();function ip(e={}){let t=Et(e);if(Array.isArray(t.by))for(let r of t.by)typeof r=="string"&&(t.select[r]=!0);else typeof t.by=="string"&&(t.select[t.by]=!0);return t}function op(e={}){return t=>(typeof e?._count=="boolean"&&t.forEach(r=>{r._count=r._count._all}),t)}function ls(e,t){return t({action:"groupBy",unpacker:op(e),argsMapper:ip})(e)}function us(e,t,r){if(t==="aggregate")return n=>ss(n,r);if(t==="count")return n=>as(n,r);if(t==="groupBy")return n=>ls(n,r)}f();c();p();d();m();function cs(e,t){let r=t.fields.filter(i=>!i.relationName),n=go(r,"name");return new Proxy({},{get(i,o){if(o in i||typeof o=="symbol")return i[o];let s=n[o];if(s)return new jt(e,o,s.type,s.isList,s.kind==="enum")},...qr(Object.keys(n))})}f();c();p();d();m();f();c();p();d();m();var ps=e=>Array.isArray(e)?e:e.split("."),jn=(e,t)=>ps(t).reduce((r,n)=>r&&r[n],e),ds=(e,t,r)=>ps(t).reduceRight((n,i,o,s)=>Object.assign({},jn(e,s.slice(0,o)),{[i]:n}),r);function sp(e,t){return e===void 0||t===void 0?[]:[...t,"select",e]}function ap(e,t,r){return t===void 0?e??{}:ds(t,r,e||!0)}function Un(e,t,r,n,i,o){let a=e._runtimeDataModel.models[t].fields.reduce((l,u)=>({...l,[u.name]:u}),{});return l=>{let u=Ue(e._errorFormat),g=sp(n,i),h=ap(l,o,g),v=r({dataPath:g,callsite:u})(h),R=lp(e,t);return new Proxy(v,{get(C,A){if(!R.includes(A))return C[A];let M=[a[A].type,r,A],L=[g,h];return Un(e,...M,...L)},...qr([...R,...Object.getOwnPropertyNames(v)])})}}function lp(e,t){return e._runtimeDataModel.models[t].fields.filter(r=>r.kind==="object").map(r=>r.name)}var up=["findUnique","findUniqueOrThrow","findFirst","findFirstOrThrow","create","update","upsert","delete"],cp=["aggregate","count","groupBy"];function Vn(e,t){let r=e._extensions.getAllModelExtensions(t)??{},n=[pp(e,t),mp(e,t),Ht(r),re("name",()=>t),re("$name",()=>t),re("$parent",()=>e._appliedParent)];return fe({},n)}function pp(e,t){let r=Pe(t),n=Object.keys(ct).concat("count");return{getKeys(){return n},getPropertyValue(i){let o=i,s=a=>l=>{let u=Ue(e._errorFormat);return e._createPrismaPromise(g=>{let h={args:l,dataPath:[],action:o,model:t,clientMethod:`${r}.${i}`,jsModelName:r,transaction:g,callsite:u};return e._request({...h,...a})},{action:o,args:l,model:t})};return up.includes(o)?Un(e,t,s):dp(i)?us(e,i,s):s({})}}}function dp(e){return cp.includes(e)}function mp(e,t){return Ke(re("fields",()=>{let r=e._runtimeDataModel.models[t];return cs(t,r)}))}f();c();p();d();m();function ms(e){return e.replace(/^./,t=>t.toUpperCase())}var Qn=Symbol();function Yt(e){let t=[fp(e),gp(e),re(Qn,()=>e),re("$parent",()=>e._appliedParent)],r=e._extensions.getAllClientExtensions();return r&&t.push(Ht(r)),fe(e,t)}function fp(e){let t=Object.getPrototypeOf(e._originalClient),r=[...new Set(Object.getOwnPropertyNames(t))];return{getKeys(){return r},getPropertyValue(n){return e[n]}}}function gp(e){let t=Object.keys(e._runtimeDataModel.models),r=t.map(Pe),n=[...new Set(t.concat(r))];return Ke({getKeys(){return n},getPropertyValue(i){let o=ms(i);if(e._runtimeDataModel.models[o]!==void 0)return Vn(e,o);if(e._runtimeDataModel.models[i]!==void 0)return Vn(e,i)},getPropertyDescriptor(i){if(!r.includes(i))return{enumerable:!1}}})}function fs(e){return e[Qn]?e[Qn]:e}function gs(e){if(typeof e=="function")return e(this);if(e.client?.__AccelerateEngine){let r=e.client.__AccelerateEngine;this._originalClient._engine=new r(this._originalClient._accelerateEngineConfig)}let t=Object.create(this._originalClient,{_extensions:{value:this._extensions.append(e)},_appliedParent:{value:this,configurable:!0},$use:{value:void 0},$on:{value:void 0}});return Yt(t)}f();c();p();d();m();f();c();p();d();m();function hs({result:e,modelName:t,select:r,omit:n,extensions:i}){let o=i.getAllComputedFields(t);if(!o)return e;let s=[],a=[];for(let l of Object.values(o)){if(n){if(n[l.name])continue;let u=l.needs.filter(g=>n[g]);u.length>0&&a.push(bt(u))}else if(r){if(!r[l.name])continue;let u=l.needs.filter(g=>!r[g]);u.length>0&&a.push(bt(u))}hp(e,l.needs)&&s.push(yp(l,fe(e,s)))}return s.length>0||a.length>0?fe(e,[...s,...a]):e}function hp(e,t){return t.every(r=>En(e,r))}function yp(e,t){return Ke(re(e.name,()=>e.compute(t)))}f();c();p();d();m();function Ur({visitor:e,result:t,args:r,runtimeDataModel:n,modelName:i}){if(Array.isArray(t)){for(let s=0;sg.name===o);if(!l||l.kind!=="object"||!l.relationName)continue;let u=typeof s=="object"?s:{};t[o]=Ur({visitor:i,result:t[o],args:u,modelName:l.type,runtimeDataModel:n})}}function ws({result:e,modelName:t,args:r,extensions:n,runtimeDataModel:i,globalOmit:o}){return n.isEmpty()||e==null||typeof e!="object"||!i.models[t]?e:Ur({result:e,args:r??{},modelName:t,runtimeDataModel:i,visitor:(a,l,u)=>{let g=Pe(l);return hs({result:a,modelName:g,select:u.select,omit:u.select?void 0:{...o?.[g],...u.omit},extensions:n})}})}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();var wp=["$connect","$disconnect","$on","$transaction","$use","$extends"],bs=wp;function Es(e){if(e instanceof ae)return bp(e);if(Lr(e))return Ep(e);if(Array.isArray(e)){let r=[e[0]];for(let n=1;n{let o=t.customDataProxyFetch;return"transaction"in t&&i!==void 0&&(t.transaction?.kind==="batch"&&t.transaction.lock.then(),t.transaction=i),n===r.length?e._executeRequest(t):r[n]({model:t.model,operation:t.model?t.action:t.clientMethod,args:Es(t.args??{}),__internalParams:t,query:(s,a=t)=>{let l=a.customDataProxyFetch;return a.customDataProxyFetch=As(o,l),a.args=s,Ps(e,a,r,n+1)}})})}function vs(e,t){let{jsModelName:r,action:n,clientMethod:i}=t,o=r?n:i;if(e._extensions.isEmpty())return e._executeRequest(t);let s=e._extensions.getAllQueryCallbacks(r??"$none",o);return Ps(e,t,s)}function Ts(e){return t=>{let r={requests:t},n=t[0].extensions.getAllBatchQueryCallbacks();return n.length?Cs(r,n,0,e):e(r)}}function Cs(e,t,r,n){if(r===t.length)return n(e);let i=e.customDataProxyFetch,o=e.requests[0].transaction;return t[r]({args:{queries:e.requests.map(s=>({model:s.modelName,operation:s.action,args:s.args})),transaction:o?{isolationLevel:o.kind==="batch"?o.isolationLevel:void 0}:void 0},__internalParams:e,query(s,a=e){let l=a.customDataProxyFetch;return a.customDataProxyFetch=As(i,l),Cs(a,t,r+1,n)}})}var xs=e=>e;function As(e=xs,t=xs){return r=>e(t(r))}f();c();p();d();m();var Ss=K("prisma:client"),Rs={Vercel:"vercel","Netlify CI":"netlify"};function ks({postinstall:e,ciName:t,clientVersion:r}){if(Ss("checkPlatformCaching:postinstall",e),Ss("checkPlatformCaching:ciName",t),e===!0&&t&&t in Rs){let n=`Prisma has detected that this project was built on ${t}, which caches dependencies. This leads to an outdated Prisma Client because Prisma's auto-generation isn't triggered. To fix this, make sure to run the \`prisma generate\` command during the build process. - -Learn how: https://pris.ly/d/${Rs[t]}-build`;throw console.error(n),new V(n,r)}}f();c();p();d();m();function Os(e,t){return e?e.datasources?e.datasources:e.datasourceUrl?{[t[0]]:{url:e.datasourceUrl}}:{}:{}}f();c();p();d();m();f();c();p();d();m();var xp=()=>globalThis.process?.release?.name==="node",Pp=()=>!!globalThis.Bun||!!globalThis.process?.versions?.bun,vp=()=>!!globalThis.Deno,Tp=()=>typeof globalThis.Netlify=="object",Cp=()=>typeof globalThis.EdgeRuntime=="object",Ap=()=>globalThis.navigator?.userAgent==="Cloudflare-Workers";function Sp(){return[[Tp,"netlify"],[Cp,"edge-light"],[Ap,"workerd"],[vp,"deno"],[Pp,"bun"],[xp,"node"]].flatMap(r=>r[0]()?[r[1]]:[]).at(0)??""}var Rp={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function Is(){let e=Sp();return{id:e,prettyName:Rp[e]||e,isEdge:["workerd","deno","netlify","edge-light"].includes(e)}}f();c();p();d();m();f();c();p();d();m();var Gn=Se(wn());f();c();p();d();m();function Fs(e){return e?e.replace(/".*"/g,'"X"').replace(/[\s:\[]([+-]?([0-9]*[.])?[0-9]+)/g,t=>`${t[0]}5`):""}f();c();p();d();m();function Ms(e){return e.split(` -`).map(t=>t.replace(/^\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)\s*/,"").replace(/\+\d+\s*ms$/,"")).join(` -`)}f();c();p();d();m();var _s=Se(Yi());function Ls({title:e,user:t="prisma",repo:r="prisma",template:n="bug_report.yml",body:i}){return(0,_s.default)({user:t,repo:r,template:n,title:e,body:i})}function Ds({version:e,binaryTarget:t,title:r,description:n,engineVersion:i,database:o,query:s}){let a=Mi(6e3-(s?.length??0)),l=Ms((0,Gn.default)(a)),u=n?`# Description -\`\`\` -${n} -\`\`\``:"",g=(0,Gn.default)(`Hi Prisma Team! My Prisma Client just crashed. This is the report: -## Versions - -| Name | Version | -|-----------------|--------------------| -| Node | ${y.version?.padEnd(19)}| -| OS | ${t?.padEnd(19)}| -| Prisma Client | ${e?.padEnd(19)}| -| Query Engine | ${i?.padEnd(19)}| -| Database | ${o?.padEnd(19)}| - -${u} - -## Logs -\`\`\` -${l} -\`\`\` - -## Client Snippet -\`\`\`ts -// PLEASE FILL YOUR CODE SNIPPET HERE -\`\`\` - -## Schema -\`\`\`prisma -// PLEASE ADD YOUR SCHEMA HERE IF POSSIBLE -\`\`\` - -## Prisma Engine Query -\`\`\` -${s?Fs(s):""} -\`\`\` -`),h=Ls({title:r,body:g});return`${r} - -This is a non-recoverable error which probably happens when the Prisma Query Engine has a panic. - -${At(h)} - -If you want the Prisma team to look into it, please open the link above \u{1F64F} -To increase the chance of success, please post your schema and a snippet of -how you used Prisma Client in the issue. -`}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();function Jn(e){return e.name==="DriverAdapterError"&&typeof e.cause=="object"}f();c();p();d();m();function Vr(e){return{ok:!0,value:e,map(t){return Vr(t(e))},flatMap(t){return t(e)}}}function He(e){return{ok:!1,error:e,map(){return He(e)},flatMap(){return He(e)}}}var Ns=K("driver-adapter-utils"),Wn=class{registeredErrors=[];consumeError(t){return this.registeredErrors[t]}registerNewError(t){let r=0;for(;this.registeredErrors[r]!==void 0;)r++;return this.registeredErrors[r]={error:t},r}};var Qr=(e,t=new Wn)=>{let r={adapterName:e.adapterName,errorRegistry:t,queryRaw:_e(t,e.queryRaw.bind(e)),executeRaw:_e(t,e.executeRaw.bind(e)),executeScript:_e(t,e.executeScript.bind(e)),dispose:_e(t,e.dispose.bind(e)),provider:e.provider,startTransaction:async(...n)=>(await _e(t,e.startTransaction.bind(e))(...n)).map(o=>kp(t,o))};return e.getConnectionInfo&&(r.getConnectionInfo=Op(t,e.getConnectionInfo.bind(e))),r},kp=(e,t)=>({adapterName:t.adapterName,provider:t.provider,options:t.options,queryRaw:_e(e,t.queryRaw.bind(t)),executeRaw:_e(e,t.executeRaw.bind(t)),commit:_e(e,t.commit.bind(t)),rollback:_e(e,t.rollback.bind(t))});function _e(e,t){return async(...r)=>{try{return Vr(await t(...r))}catch(n){if(Ns("[error@wrapAsync]",n),Jn(n))return He(n.cause);let i=e.registerNewError(n);return He({kind:"GenericJs",id:i})}}}function Op(e,t){return(...r)=>{try{return Vr(t(...r))}catch(n){if(Ns("[error@wrapSync]",n),Jn(n))return He(n.cause);let i=e.registerNewError(n);return He({kind:"GenericJs",id:i})}}}var qs="6.12.0";f();c();p();d();m();function Gr({inlineDatasources:e,overrideDatasources:t,env:r,clientVersion:n}){let i,o=Object.keys(e)[0],s=e[o]?.url,a=t[o]?.url;if(o===void 0?i=void 0:a?i=a:s?.value?i=s.value:s?.fromEnvVar&&(i=r[s.fromEnvVar]),s?.fromEnvVar!==void 0&&i===void 0)throw new V(`error: Environment variable not found: ${s.fromEnvVar}.`,n);if(i===void 0)throw new V("error: Missing URL environment variable, value, or override.",n);return i}f();c();p();d();m();f();c();p();d();m();function Bs(e){if(e?.kind==="itx")return e.options.id}f();c();p();d();m();var Kn=class{engineObject;constructor(t,r,n){this.engineObject=__PrismaProxy.create({datamodel:t.datamodel,env:y.env,ignoreEnvVarErrors:!0,datasourceOverrides:t.datasourceOverrides??{},logLevel:t.logLevel,logQueries:t.logQueries??!1,logCallback:r,enableTracing:t.enableTracing})}async connect(t,r){return __PrismaProxy.connect(this.engineObject,t,r)}async disconnect(t,r){return __PrismaProxy.disconnect(this.engineObject,t,r)}query(t,r,n,i){return __PrismaProxy.execute(this.engineObject,t,r,n,i)}compile(){throw new Error("not implemented")}sdlSchema(){return Promise.resolve("{}")}dmmf(t){return Promise.resolve("{}")}async startTransaction(t,r,n){return __PrismaProxy.startTransaction(this.engineObject,t,r,n)}async commitTransaction(t,r,n){return __PrismaProxy.commitTransaction(this.engineObject,t,r,n)}async rollbackTransaction(t,r,n){return __PrismaProxy.rollbackTransaction(this.engineObject,t,r,n)}metrics(t){return Promise.resolve("{}")}async applyPendingMigrations(){return __PrismaProxy.applyPendingMigrations(this.engineObject)}trace(t){return __PrismaProxy.trace(this.engineObject,t)}},$s={async loadLibrary(e){if(!__PrismaProxy)throw new V("__PrismaProxy not detected make sure React Native bindings are installed",e.clientVersion);return{debugPanic(){return Promise.reject("{}")},dmmf(){return Promise.resolve("{}")},version(){return{commit:"unknown",version:"unknown"}},QueryEngine:Kn}}};var Fp="P2036",Te=K("prisma:client:libraryEngine");function Mp(e){return e.item_type==="query"&&"query"in e}function _p(e){return"level"in e?e.level==="error"&&e.message==="PANIC":!1}var X2=[...dn,"native"],Lp=0xffffffffffffffffn,Hn=1n;function Dp(){let e=Hn++;return Hn>Lp&&(Hn=1n),e}var Xt=class{name="LibraryEngine";engine;libraryInstantiationPromise;libraryStartingPromise;libraryStoppingPromise;libraryStarted;executingQueryPromise;config;QueryEngineConstructor;libraryLoader;library;logEmitter;libQueryEnginePath;binaryTarget;datasourceOverrides;datamodel;logQueries;logLevel;lastQuery;loggerRustPanic;tracingHelper;adapterPromise;versionInfo;constructor(t,r){this.libraryLoader=$s,this.config=t,this.libraryStarted=!1,this.logQueries=t.logQueries??!1,this.logLevel=t.logLevel??"error",this.logEmitter=t.logEmitter,this.datamodel=t.inlineSchema,this.tracingHelper=t.tracingHelper,t.enableDebugLogs&&(this.logLevel="debug");let n=Object.keys(t.overrideDatasources)[0],i=t.overrideDatasources[n]?.url;n!==void 0&&i!==void 0&&(this.datasourceOverrides={[n]:i}),this.libraryInstantiationPromise=this.instantiateLibrary()}wrapEngine(t){return{applyPendingMigrations:t.applyPendingMigrations?.bind(t),commitTransaction:this.withRequestId(t.commitTransaction.bind(t)),connect:this.withRequestId(t.connect.bind(t)),disconnect:this.withRequestId(t.disconnect.bind(t)),metrics:t.metrics?.bind(t),query:this.withRequestId(t.query.bind(t)),rollbackTransaction:this.withRequestId(t.rollbackTransaction.bind(t)),sdlSchema:t.sdlSchema?.bind(t),startTransaction:this.withRequestId(t.startTransaction.bind(t)),trace:t.trace.bind(t),free:t.free?.bind(t)}}withRequestId(t){return async(...r)=>{let n=Dp().toString();try{return await t(...r,n)}finally{if(this.tracingHelper.isEnabled()){let i=await this.engine?.trace(n);if(i){let o=JSON.parse(i);this.tracingHelper.dispatchEngineSpans(o.spans)}}}}}async applyPendingMigrations(){await this.start(),await this.engine?.applyPendingMigrations()}async transaction(t,r,n){await this.start();let i=await this.adapterPromise,o=JSON.stringify(r),s;if(t==="start"){let l=JSON.stringify({max_wait:n.maxWait,timeout:n.timeout,isolation_level:n.isolationLevel});s=await this.engine?.startTransaction(l,o)}else t==="commit"?s=await this.engine?.commitTransaction(n.id,o):t==="rollback"&&(s=await this.engine?.rollbackTransaction(n.id,o));let a=this.parseEngineResponse(s);if(Np(a)){let l=this.getExternalAdapterError(a,i?.errorRegistry);throw l?l.error:new oe(a.message,{code:a.error_code,clientVersion:this.config.clientVersion,meta:a.meta})}else if(typeof a.message=="string")throw new G(a.message,{clientVersion:this.config.clientVersion});return a}async instantiateLibrary(){if(Te("internalSetup"),this.libraryInstantiationPromise)return this.libraryInstantiationPromise;this.binaryTarget=await this.getCurrentBinaryTarget(),await this.tracingHelper.runInChildSpan("load_engine",()=>this.loadEngine()),this.version()}async getCurrentBinaryTarget(){}parseEngineResponse(t){if(!t)throw new G("Response from the Engine was empty",{clientVersion:this.config.clientVersion});try{return JSON.parse(t)}catch{throw new G("Unable to JSON.parse response from engine",{clientVersion:this.config.clientVersion})}}async loadEngine(){if(!this.engine){this.QueryEngineConstructor||(this.library=await this.libraryLoader.loadLibrary(this.config),this.QueryEngineConstructor=this.library.QueryEngine);try{let t=new b(this);this.adapterPromise||(this.adapterPromise=this.config.adapter?.connect()?.then(Qr));let r=await this.adapterPromise;r&&Te("Using driver adapter: %O",r),this.engine=this.wrapEngine(new this.QueryEngineConstructor({datamodel:this.datamodel,env:y.env,logQueries:this.config.logQueries??!1,ignoreEnvVarErrors:!0,datasourceOverrides:this.datasourceOverrides??{},logLevel:this.logLevel,configDir:this.config.cwd,engineProtocol:"json",enableTracing:this.tracingHelper.isEnabled()},n=>{t.deref()?.logger(n)},r))}catch(t){let r=t,n=this.parseInitError(r.message);throw typeof n=="string"?r:new V(n.message,this.config.clientVersion,n.error_code)}}}logger(t){let r=this.parseEngineResponse(t);r&&(r.level=r?.level.toLowerCase()??"unknown",Mp(r)?this.logEmitter.emit("query",{timestamp:new Date,query:r.query,params:r.params,duration:Number(r.duration_ms),target:r.module_path}):_p(r)?this.loggerRustPanic=new ue(zn(this,`${r.message}: ${r.reason} in ${r.file}:${r.line}:${r.column}`),this.config.clientVersion):this.logEmitter.emit(r.level,{timestamp:new Date,message:r.message,target:r.module_path}))}parseInitError(t){try{return JSON.parse(t)}catch{}return t}parseRequestError(t){try{return JSON.parse(t)}catch{}return t}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the library engine since Prisma 5.0.0, it is only relevant and implemented for the binary engine. Please add your event listener to the `process` object directly instead.')}async start(){if(this.libraryInstantiationPromise||(this.libraryInstantiationPromise=this.instantiateLibrary()),await this.libraryInstantiationPromise,await this.libraryStoppingPromise,this.libraryStartingPromise)return Te(`library already starting, this.libraryStarted: ${this.libraryStarted}`),this.libraryStartingPromise;if(this.libraryStarted)return;let t=async()=>{Te("library starting");try{let r={traceparent:this.tracingHelper.getTraceParent()};await this.engine?.connect(JSON.stringify(r)),this.libraryStarted=!0,this.adapterPromise||(this.adapterPromise=this.config.adapter?.connect()?.then(Qr)),await this.adapterPromise,Te("library started")}catch(r){let n=this.parseInitError(r.message);throw typeof n=="string"?r:new V(n.message,this.config.clientVersion,n.error_code)}finally{this.libraryStartingPromise=void 0}};return this.libraryStartingPromise=this.tracingHelper.runInChildSpan("connect",t),this.libraryStartingPromise}async stop(){if(await this.libraryInstantiationPromise,await this.libraryStartingPromise,await this.executingQueryPromise,this.libraryStoppingPromise)return Te("library is already stopping"),this.libraryStoppingPromise;if(!this.libraryStarted){await(await this.adapterPromise)?.dispose(),this.adapterPromise=void 0;return}let t=async()=>{await new Promise(n=>setImmediate(n)),Te("library stopping");let r={traceparent:this.tracingHelper.getTraceParent()};await this.engine?.disconnect(JSON.stringify(r)),this.engine?.free&&this.engine.free(),this.engine=void 0,this.libraryStarted=!1,this.libraryStoppingPromise=void 0,this.libraryInstantiationPromise=void 0,await(await this.adapterPromise)?.dispose(),this.adapterPromise=void 0,Te("library stopped")};return this.libraryStoppingPromise=this.tracingHelper.runInChildSpan("disconnect",t),this.libraryStoppingPromise}version(){return this.versionInfo=this.library?.version(),this.versionInfo?.version??"unknown"}debugPanic(t){return this.library?.debugPanic(t)}async request(t,{traceparent:r,interactiveTransaction:n}){Te(`sending request, this.libraryStarted: ${this.libraryStarted}`);let i=JSON.stringify({traceparent:r}),o=JSON.stringify(t);try{await this.start();let s=await this.adapterPromise;this.executingQueryPromise=this.engine?.query(o,i,n?.id),this.lastQuery=o;let a=this.parseEngineResponse(await this.executingQueryPromise);if(a.errors)throw a.errors.length===1?this.buildQueryError(a.errors[0],s?.errorRegistry):new G(JSON.stringify(a.errors),{clientVersion:this.config.clientVersion});if(this.loggerRustPanic)throw this.loggerRustPanic;return{data:a}}catch(s){if(s instanceof V)throw s;if(s.code==="GenericFailure"&&s.message?.startsWith("PANIC:"))throw new ue(zn(this,s.message),this.config.clientVersion);let a=this.parseRequestError(s.message);throw typeof a=="string"?s:new G(`${a.message} -${a.backtrace}`,{clientVersion:this.config.clientVersion})}}async requestBatch(t,{transaction:r,traceparent:n}){Te("requestBatch");let i=Br(t,r);await this.start();let o=await this.adapterPromise;this.lastQuery=JSON.stringify(i),this.executingQueryPromise=this.engine?.query(this.lastQuery,JSON.stringify({traceparent:n}),Bs(r));let s=await this.executingQueryPromise,a=this.parseEngineResponse(s);if(a.errors)throw a.errors.length===1?this.buildQueryError(a.errors[0],o?.errorRegistry):new G(JSON.stringify(a.errors),{clientVersion:this.config.clientVersion});let{batchResult:l,errors:u}=a;if(Array.isArray(l))return l.map(g=>g.errors&&g.errors.length>0?this.loggerRustPanic??this.buildQueryError(g.errors[0],o?.errorRegistry):{data:g});throw u&&u.length===1?new Error(u[0].error):new Error(JSON.stringify(a))}buildQueryError(t,r){if(t.user_facing_error.is_panic)return new ue(zn(this,t.user_facing_error.message),this.config.clientVersion);let n=this.getExternalAdapterError(t.user_facing_error,r);return n?n.error:$r(t,this.config.clientVersion,this.config.activeProvider)}getExternalAdapterError(t,r){if(t.error_code===Fp&&r){let n=t.meta?.id;sr(typeof n=="number","Malformed external JS error received from the engine");let i=r.consumeError(n);return sr(i,"External error with reported id was not registered"),i}}async metrics(t){await this.start();let r=await this.engine.metrics(JSON.stringify(t));return t.format==="prometheus"?r:this.parseEngineResponse(r)}};function Np(e){return typeof e=="object"&&e!==null&&e.error_code!==void 0}function zn(e,t){return Ds({binaryTarget:e.binaryTarget,title:t,version:e.config.clientVersion,engineVersion:e.versionInfo?.commit,database:e.config.activeProvider,query:e.lastQuery})}f();c();p();d();m();function js({url:e,adapter:t,copyEngine:r,targetBuildType:n}){let i=[],o=[],s=A=>{i.push({_tag:"warning",value:A})},a=A=>{let O=A.join(` -`);o.push({_tag:"error",value:O})},l=!!e?.startsWith("prisma://"),u=hn(e),g=!!t,h=l||u;!g&&r&&h&&s(["recommend--no-engine","In production, we recommend using `prisma generate --no-engine` (See: `prisma generate --help`)"]);let v=h||!r;g&&(v||n==="edge")&&(n==="edge"?a(["Prisma Client was configured to use the `adapter` option but it was imported via its `/edge` endpoint.","Please either remove the `/edge` endpoint or remove the `adapter` from the Prisma Client constructor."]):r?l&&a(["Prisma Client was configured to use the `adapter` option but the URL was a `prisma://` URL.","Please either use the `prisma://` URL or remove the `adapter` from the Prisma Client constructor."]):a(["Prisma Client was configured to use the `adapter` option but `prisma generate` was run with `--no-engine`.","Please run `prisma generate` without `--no-engine` to be able to use Prisma Client with the adapter."]));let R={accelerate:v,ppg:u,driverAdapters:g};function C(A){return A.length>0}return C(o)?{ok:!1,diagnostics:{warnings:i,errors:o},isUsing:R}:{ok:!0,diagnostics:{warnings:i},isUsing:R}}function Us({copyEngine:e=!0},t){let r;try{r=Gr({inlineDatasources:t.inlineDatasources,overrideDatasources:t.overrideDatasources,env:{...t.env,...y.env},clientVersion:t.clientVersion})}catch{}let{ok:n,isUsing:i,diagnostics:o}=js({url:r,adapter:t.adapter,copyEngine:e,targetBuildType:"react-native"});for(let h of o.warnings)_t(...h.value);if(!n){let h=o.errors[0];throw new ee(h.value,{clientVersion:t.clientVersion})}let s=nt(t.generator),a=s==="library",l=s==="binary",u=s==="client",g=(i.accelerate||i.ppg)&&!i.driverAdapters;return new Xt(t)}f();c();p();d();m();function Jr({generator:e}){return e?.previewFeatures??[]}f();c();p();d();m();var Vs=e=>({command:e});f();c();p();d();m();f();c();p();d();m();var Qs=e=>e.strings.reduce((t,r,n)=>`${t}@P${n}${r}`);f();c();p();d();m();function xt(e){try{return Gs(e,"fast")}catch{return Gs(e,"slow")}}function Gs(e,t){return JSON.stringify(e.map(r=>Ws(r,t)))}function Ws(e,t){if(Array.isArray(e))return e.map(r=>Ws(r,t));if(typeof e=="bigint")return{prisma__type:"bigint",prisma__value:e.toString()};if(lt(e))return{prisma__type:"date",prisma__value:e.toJSON()};if(be.isDecimal(e))return{prisma__type:"decimal",prisma__value:e.toJSON()};if(w.Buffer.isBuffer(e))return{prisma__type:"bytes",prisma__value:e.toString("base64")};if(qp(e))return{prisma__type:"bytes",prisma__value:w.Buffer.from(e).toString("base64")};if(ArrayBuffer.isView(e)){let{buffer:r,byteOffset:n,byteLength:i}=e;return{prisma__type:"bytes",prisma__value:w.Buffer.from(r,n,i).toString("base64")}}return typeof e=="object"&&t==="slow"?Ks(e):e}function qp(e){return e instanceof ArrayBuffer||e instanceof SharedArrayBuffer?!0:typeof e=="object"&&e!==null?e[Symbol.toStringTag]==="ArrayBuffer"||e[Symbol.toStringTag]==="SharedArrayBuffer":!1}function Ks(e){if(typeof e!="object"||e===null)return e;if(typeof e.toJSON=="function")return e.toJSON();if(Array.isArray(e))return e.map(Js);let t={};for(let r of Object.keys(e))t[r]=Js(e[r]);return t}function Js(e){return typeof e=="bigint"?e.toString():Ks(e)}var Bp=/^(\s*alter\s)/i,Hs=K("prisma:client");function Yn(e,t,r,n){if(!(e!=="postgresql"&&e!=="cockroachdb")&&r.length>0&&Bp.exec(t))throw new Error(`Running ALTER using ${n} is not supported -Using the example below you can still execute your query with Prisma, but please note that it is vulnerable to SQL injection attacks and requires you to take care of input sanitization. - -Example: - await prisma.$executeRawUnsafe(\`ALTER USER prisma WITH PASSWORD '\${password}'\`) - -More Information: https://pris.ly/d/execute-raw -`)}var Zn=({clientMethod:e,activeProvider:t})=>r=>{let n="",i;if(Lr(r))n=r.sql,i={values:xt(r.values),__prismaRawParameters__:!0};else if(Array.isArray(r)){let[o,...s]=r;n=o,i={values:xt(s||[]),__prismaRawParameters__:!0}}else switch(t){case"sqlite":case"mysql":{n=r.sql,i={values:xt(r.values),__prismaRawParameters__:!0};break}case"cockroachdb":case"postgresql":case"postgres":{n=r.text,i={values:xt(r.values),__prismaRawParameters__:!0};break}case"sqlserver":{n=Qs(r),i={values:xt(r.values),__prismaRawParameters__:!0};break}default:throw new Error(`The ${t} provider does not support ${e}`)}return i?.values?Hs(`prisma.${e}(${n}, ${i.values})`):Hs(`prisma.${e}(${n})`),{query:n,parameters:i}},zs={requestArgsToMiddlewareArgs(e){return[e.strings,...e.values]},middlewareArgsToRequestArgs(e){let[t,...r]=e;return new ae(t,r)}},Ys={requestArgsToMiddlewareArgs(e){return[e]},middlewareArgsToRequestArgs(e){return e[0]}};f();c();p();d();m();function Xn(e){return function(r,n){let i,o=(s=e)=>{try{return s===void 0||s?.kind==="itx"?i??=Zs(r(s)):Zs(r(s))}catch(a){return Promise.reject(a)}};return{get spec(){return n},then(s,a){return o().then(s,a)},catch(s){return o().catch(s)},finally(s){return o().finally(s)},requestTransaction(s){let a=o(s);return a.requestTransaction?a.requestTransaction(s):a},[Symbol.toStringTag]:"PrismaPromise"}}}function Zs(e){return typeof e.then=="function"?e:Promise.resolve(e)}f();c();p();d();m();var $p=fn.split(".")[0],jp={isEnabled(){return!1},getTraceParent(){return"00-10-10-00"},dispatchEngineSpans(){},getActiveContext(){},runInChildSpan(e,t){return t()}},ei=class{isEnabled(){return this.getGlobalTracingHelper().isEnabled()}getTraceParent(t){return this.getGlobalTracingHelper().getTraceParent(t)}dispatchEngineSpans(t){return this.getGlobalTracingHelper().dispatchEngineSpans(t)}getActiveContext(){return this.getGlobalTracingHelper().getActiveContext()}runInChildSpan(t,r){return this.getGlobalTracingHelper().runInChildSpan(t,r)}getGlobalTracingHelper(){let t=globalThis[`V${$p}_PRISMA_INSTRUMENTATION`],r=globalThis.PRISMA_INSTRUMENTATION;return t?.helper??r?.helper??jp}};function Xs(){return new ei}f();c();p();d();m();function ea(e,t=()=>{}){let r,n=new Promise(i=>r=i);return{then(i){return--e===0&&r(t()),i?.(n)}}}f();c();p();d();m();function ta(e){return typeof e=="string"?e:e.reduce((t,r)=>{let n=typeof r=="string"?r:r.level;return n==="query"?t:t&&(r==="info"||t==="info")?"info":n},void 0)}f();c();p();d();m();var Wr=class{_middlewares=[];use(t){this._middlewares.push(t)}get(t){return this._middlewares[t]}has(t){return!!this._middlewares[t]}length(){return this._middlewares.length}};f();c();p();d();m();var na=Se(wn());f();c();p();d();m();function Kr(e){return typeof e.batchRequestIdx=="number"}f();c();p();d();m();function ra(e){if(e.action!=="findUnique"&&e.action!=="findUniqueOrThrow")return;let t=[];return e.modelName&&t.push(e.modelName),e.query.arguments&&t.push(ti(e.query.arguments)),t.push(ti(e.query.selection)),t.join("")}function ti(e){return`(${Object.keys(e).sort().map(r=>{let n=e[r];return typeof n=="object"&&n!==null?`(${r} ${ti(n)})`:r}).join(" ")})`}f();c();p();d();m();var Up={aggregate:!1,aggregateRaw:!1,createMany:!0,createManyAndReturn:!0,createOne:!0,deleteMany:!0,deleteOne:!0,executeRaw:!0,findFirst:!1,findFirstOrThrow:!1,findMany:!1,findRaw:!1,findUnique:!1,findUniqueOrThrow:!1,groupBy:!1,queryRaw:!1,runCommandRaw:!0,updateMany:!0,updateManyAndReturn:!0,updateOne:!0,upsertOne:!0};function ri(e){return Up[e]}f();c();p();d();m();var Hr=class{constructor(t){this.options=t;this.batches={}}batches;tickActive=!1;request(t){let r=this.options.batchBy(t);return r?(this.batches[r]||(this.batches[r]=[],this.tickActive||(this.tickActive=!0,y.nextTick(()=>{this.dispatchBatches(),this.tickActive=!1}))),new Promise((n,i)=>{this.batches[r].push({request:t,resolve:n,reject:i})})):this.options.singleLoader(t)}dispatchBatches(){for(let t in this.batches){let r=this.batches[t];delete this.batches[t],r.length===1?this.options.singleLoader(r[0].request).then(n=>{n instanceof Error?r[0].reject(n):r[0].resolve(n)}).catch(n=>{r[0].reject(n)}):(r.sort((n,i)=>this.options.batchOrder(n.request,i.request)),this.options.batchLoader(r.map(n=>n.request)).then(n=>{if(n instanceof Error)for(let i=0;i{for(let i=0;ize("bigint",r));case"bytes-array":return t.map(r=>ze("bytes",r));case"decimal-array":return t.map(r=>ze("decimal",r));case"datetime-array":return t.map(r=>ze("datetime",r));case"date-array":return t.map(r=>ze("date",r));case"time-array":return t.map(r=>ze("time",r));default:return t}}function zr(e){let t=[],r=Vp(e);for(let n=0;n{let{transaction:o,otelParentCtx:s}=n[0],a=n.map(h=>h.protocolQuery),l=this.client._tracingHelper.getTraceParent(s),u=n.some(h=>ri(h.protocolQuery.action));return(await this.client._engine.requestBatch(a,{traceparent:l,transaction:Gp(o),containsWrite:u,customDataProxyFetch:i})).map((h,v)=>{if(h instanceof Error)return h;try{return this.mapQueryEngineResult(n[v],h)}catch(R){return R}})}),singleLoader:async n=>{let i=n.transaction?.kind==="itx"?ia(n.transaction):void 0,o=await this.client._engine.request(n.protocolQuery,{traceparent:this.client._tracingHelper.getTraceParent(),interactiveTransaction:i,isWrite:ri(n.protocolQuery.action),customDataProxyFetch:n.customDataProxyFetch});return this.mapQueryEngineResult(n,o)},batchBy:n=>n.transaction?.id?`transaction-${n.transaction.id}`:ra(n.protocolQuery),batchOrder(n,i){return n.transaction?.kind==="batch"&&i.transaction?.kind==="batch"?n.transaction.index-i.transaction.index:0}})}async request(t){try{return await this.dataloader.request(t)}catch(r){let{clientMethod:n,callsite:i,transaction:o,args:s,modelName:a}=t;this.handleAndLogRequestError({error:r,clientMethod:n,callsite:i,transaction:o,args:s,modelName:a,globalOmit:t.globalOmit})}}mapQueryEngineResult({dataPath:t,unpacker:r},n){let i=n?.data,o=this.unpack(i,t,r);return y.env.PRISMA_CLIENT_GET_TIME?{data:o}:o}handleAndLogRequestError(t){try{this.handleRequestError(t)}catch(r){throw this.logEmitter&&this.logEmitter.emit("error",{message:r.message,target:t.clientMethod,timestamp:new Date}),r}}handleRequestError({error:t,clientMethod:r,callsite:n,transaction:i,args:o,modelName:s,globalOmit:a}){if(Qp(t),Jp(t,i))throw t;if(t instanceof oe&&Wp(t)){let u=oa(t.meta);kr({args:o,errors:[u],callsite:n,errorFormat:this.client._errorFormat,originalMethod:r,clientVersion:this.client._clientVersion,globalOmit:a})}let l=t.message;if(n&&(l=br({callsite:n,originalMethod:r,isPanic:t.isPanic,showColors:this.client._errorFormat==="pretty",message:l})),l=this.sanitizeMessage(l),t.code){let u=s?{modelName:s,...t.meta}:t.meta;throw new oe(l,{code:t.code,clientVersion:this.client._clientVersion,meta:u,batchRequestIdx:t.batchRequestIdx})}else{if(t.isPanic)throw new ue(l,this.client._clientVersion);if(t instanceof G)throw new G(l,{clientVersion:this.client._clientVersion,batchRequestIdx:t.batchRequestIdx});if(t instanceof V)throw new V(l,this.client._clientVersion);if(t instanceof ue)throw new ue(l,this.client._clientVersion)}throw t.clientVersion=this.client._clientVersion,t}sanitizeMessage(t){return this.client._errorFormat&&this.client._errorFormat!=="pretty"?(0,na.default)(t):t}unpack(t,r,n){if(!t||(t.data&&(t=t.data),!t))return t;let i=Object.keys(t)[0],o=Object.values(t)[0],s=r.filter(u=>u!=="select"&&u!=="include"),a=jn(o,s),l=i==="queryRaw"?zr(a):at(a);return n?n(l):l}get[Symbol.toStringTag](){return"RequestHandler"}};function Gp(e){if(e){if(e.kind==="batch")return{kind:"batch",options:{isolationLevel:e.isolationLevel}};if(e.kind==="itx")return{kind:"itx",options:ia(e)};Ie(e,"Unknown transaction kind")}}function ia(e){return{id:e.id,payload:e.payload}}function Jp(e,t){return Kr(e)&&t?.kind==="batch"&&e.batchRequestIdx!==t.index}function Wp(e){return e.code==="P2009"||e.code==="P2012"}function oa(e){if(e.kind==="Union")return{kind:"Union",errors:e.errors.map(oa)};if(Array.isArray(e.selectionPath)){let[,...t]=e.selectionPath;return{...e,selectionPath:t}}return e}f();c();p();d();m();var sa=qs;f();c();p();d();m();var pa=Se(Rn());f();c();p();d();m();var q=class extends Error{constructor(t){super(t+` -Read more at https://pris.ly/d/client-constructor`),this.name="PrismaClientConstructorValidationError"}get[Symbol.toStringTag](){return"PrismaClientConstructorValidationError"}};le(q,"PrismaClientConstructorValidationError");var aa=["datasources","datasourceUrl","errorFormat","adapter","log","transactionOptions","omit","__internal"],la=["pretty","colorless","minimal"],ua=["info","query","warn","error"],Kp={datasources:(e,{datasourceNames:t})=>{if(e){if(typeof e!="object"||Array.isArray(e))throw new q(`Invalid value ${JSON.stringify(e)} for "datasources" provided to PrismaClient constructor`);for(let[r,n]of Object.entries(e)){if(!t.includes(r)){let i=Pt(r,t)||` Available datasources: ${t.join(", ")}`;throw new q(`Unknown datasource ${r} provided to PrismaClient constructor.${i}`)}if(typeof n!="object"||Array.isArray(n))throw new q(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(n&&typeof n=="object")for(let[i,o]of Object.entries(n)){if(i!=="url")throw new q(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(typeof o!="string")throw new q(`Invalid value ${JSON.stringify(o)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`)}}}},adapter:(e,t)=>{if(!e&&nt(t.generator)==="client")throw new q('Using engine type "client" requires a driver adapter to be provided to PrismaClient constructor.');if(e===null)return;if(e===void 0)throw new q('"adapter" property must not be undefined, use null to conditionally disable driver adapters.');if(!Jr(t).includes("driverAdapters"))throw new q('"adapter" property can only be provided to PrismaClient constructor when "driverAdapters" preview feature is enabled.');if(nt(t.generator)==="binary")throw new q('Cannot use a driver adapter with the "binary" Query Engine. Please use the "library" Query Engine.')},datasourceUrl:e=>{if(typeof e<"u"&&typeof e!="string")throw new q(`Invalid value ${JSON.stringify(e)} for "datasourceUrl" provided to PrismaClient constructor. -Expected string or undefined.`)},errorFormat:e=>{if(e){if(typeof e!="string")throw new q(`Invalid value ${JSON.stringify(e)} for "errorFormat" provided to PrismaClient constructor.`);if(!la.includes(e)){let t=Pt(e,la);throw new q(`Invalid errorFormat ${e} provided to PrismaClient constructor.${t}`)}}},log:e=>{if(!e)return;if(!Array.isArray(e))throw new q(`Invalid value ${JSON.stringify(e)} for "log" provided to PrismaClient constructor.`);function t(r){if(typeof r=="string"&&!ua.includes(r)){let n=Pt(r,ua);throw new q(`Invalid log level "${r}" provided to PrismaClient constructor.${n}`)}}for(let r of e){t(r);let n={level:t,emit:i=>{let o=["stdout","event"];if(!o.includes(i)){let s=Pt(i,o);throw new q(`Invalid value ${JSON.stringify(i)} for "emit" in logLevel provided to PrismaClient constructor.${s}`)}}};if(r&&typeof r=="object")for(let[i,o]of Object.entries(r))if(n[i])n[i](o);else throw new q(`Invalid property ${i} for "log" provided to PrismaClient constructor`)}},transactionOptions:e=>{if(!e)return;let t=e.maxWait;if(t!=null&&t<=0)throw new q(`Invalid value ${t} for maxWait in "transactionOptions" provided to PrismaClient constructor. maxWait needs to be greater than 0`);let r=e.timeout;if(r!=null&&r<=0)throw new q(`Invalid value ${r} for timeout in "transactionOptions" provided to PrismaClient constructor. timeout needs to be greater than 0`)},omit:(e,t)=>{if(typeof e!="object")throw new q('"omit" option is expected to be an object.');if(e===null)throw new q('"omit" option can not be `null`');let r=[];for(let[n,i]of Object.entries(e)){let o=zp(n,t.runtimeDataModel);if(!o){r.push({kind:"UnknownModel",modelKey:n});continue}for(let[s,a]of Object.entries(i)){let l=o.fields.find(u=>u.name===s);if(!l){r.push({kind:"UnknownField",modelKey:n,fieldName:s});continue}if(l.relationName){r.push({kind:"RelationInOmit",modelKey:n,fieldName:s});continue}typeof a!="boolean"&&r.push({kind:"InvalidFieldValue",modelKey:n,fieldName:s})}}if(r.length>0)throw new q(Yp(e,r))},__internal:e=>{if(!e)return;let t=["debug","engine","configOverride"];if(typeof e!="object")throw new q(`Invalid value ${JSON.stringify(e)} for "__internal" to PrismaClient constructor`);for(let[r]of Object.entries(e))if(!t.includes(r)){let n=Pt(r,t);throw new q(`Invalid property ${JSON.stringify(r)} for "__internal" provided to PrismaClient constructor.${n}`)}}};function da(e,t){for(let[r,n]of Object.entries(e)){if(!aa.includes(r)){let i=Pt(r,aa);throw new q(`Unknown property ${r} provided to PrismaClient constructor.${i}`)}Kp[r](n,t)}if(e.datasourceUrl&&e.datasources)throw new q('Can not use "datasourceUrl" and "datasources" options at the same time. Pick one of them')}function Pt(e,t){if(t.length===0||typeof e!="string")return"";let r=Hp(e,t);return r?` Did you mean "${r}"?`:""}function Hp(e,t){if(t.length===0)return null;let r=t.map(i=>({value:i,distance:(0,pa.default)(e,i)}));r.sort((i,o)=>i.distance$e(n)===t);if(r)return e[r]}function Yp(e,t){let r=ht(e);for(let o of t)switch(o.kind){case"UnknownModel":r.arguments.getField(o.modelKey)?.markAsError(),r.addErrorMessage(()=>`Unknown model name: ${o.modelKey}.`);break;case"UnknownField":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>`Model "${o.modelKey}" does not have a field named "${o.fieldName}".`);break;case"RelationInOmit":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>'Relations are already excluded by default and can not be specified in "omit".');break;case"InvalidFieldValue":r.arguments.getDeepFieldValue([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>"Omit field option value must be a boolean.");break}let{message:n,args:i}=Rr(r,"colorless");return`Error validating "omit" option: - -${i} - -${n}`}f();c();p();d();m();function ma(e){return e.length===0?Promise.resolve([]):new Promise((t,r)=>{let n=new Array(e.length),i=null,o=!1,s=0,a=()=>{o||(s++,s===e.length&&(o=!0,i?r(i):t(n)))},l=u=>{o||(o=!0,r(u))};for(let u=0;u{n[u]=g,a()},g=>{if(!Kr(g)){l(g);return}g.batchRequestIdx===u?l(g):(i||(i=g),a())})})}var Ve=K("prisma:client");typeof globalThis=="object"&&(globalThis.NODE_CLIENT=!0);var Zp={requestArgsToMiddlewareArgs:e=>e,middlewareArgsToRequestArgs:e=>e},Xp=Symbol.for("prisma.client.transaction.id"),ed={id:0,nextId(){return++this.id}};function ha(e){class t{_originalClient=this;_runtimeDataModel;_requestHandler;_connectionPromise;_disconnectionPromise;_engineConfig;_accelerateEngineConfig;_clientVersion;_errorFormat;_tracingHelper;_middlewares=new Wr;_previewFeatures;_activeProvider;_globalOmit;_extensions;_engine;_appliedParent;_createPrismaPromise=Xn();constructor(n){e=n?.__internal?.configOverride?.(e)??e,ks(e),n&&da(n,e);let i=new Dr().on("error",()=>{});this._extensions=yt.empty(),this._previewFeatures=Jr(e),this._clientVersion=e.clientVersion??sa,this._activeProvider=e.activeProvider,this._globalOmit=n?.omit,this._tracingHelper=Xs();let o=e.relativeEnvPaths&&{rootEnvPath:e.relativeEnvPaths.rootEnvPath&&Oe.resolve(e.dirname,e.relativeEnvPaths.rootEnvPath),schemaEnvPath:e.relativeEnvPaths.schemaEnvPath&&Oe.resolve(e.dirname,e.relativeEnvPaths.schemaEnvPath)},s;if(n?.adapter){s=n.adapter;let l=e.activeProvider==="postgresql"||e.activeProvider==="cockroachdb"?"postgres":e.activeProvider;if(s.provider!==l)throw new V(`The Driver Adapter \`${s.adapterName}\`, based on \`${s.provider}\`, is not compatible with the provider \`${l}\` specified in the Prisma schema.`,this._clientVersion);if(n.datasources||n.datasourceUrl!==void 0)throw new V("Custom datasource configuration is not compatible with Prisma Driver Adapters. Please define the database connection string directly in the Driver Adapter configuration.",this._clientVersion)}let a=e.injectableEdgeEnv?.();try{let l=n??{},u=l.__internal??{},g=u.debug===!0;g&&K.enable("prisma:client");let h=Oe.resolve(e.dirname,e.relativePath);or.existsSync(h)||(h=e.dirname),Ve("dirname",e.dirname),Ve("relativePath",e.relativePath),Ve("cwd",h);let v=u.engine||{};if(l.errorFormat?this._errorFormat=l.errorFormat:y.env.NODE_ENV==="production"?this._errorFormat="minimal":y.env.NO_COLOR?this._errorFormat="colorless":this._errorFormat="colorless",this._runtimeDataModel=e.runtimeDataModel,this._engineConfig={cwd:h,dirname:e.dirname,enableDebugLogs:g,allowTriggerPanic:v.allowTriggerPanic,prismaPath:v.binaryPath??void 0,engineEndpoint:v.endpoint,generator:e.generator,showColors:this._errorFormat==="pretty",logLevel:l.log&&ta(l.log),logQueries:l.log&&!!(typeof l.log=="string"?l.log==="query":l.log.find(R=>typeof R=="string"?R==="query":R.level==="query")),env:a?.parsed??{},flags:[],engineWasm:e.engineWasm,compilerWasm:e.compilerWasm,clientVersion:e.clientVersion,engineVersion:e.engineVersion,previewFeatures:this._previewFeatures,activeProvider:e.activeProvider,inlineSchema:e.inlineSchema,overrideDatasources:Os(l,e.datasourceNames),inlineDatasources:e.inlineDatasources,inlineSchemaHash:e.inlineSchemaHash,tracingHelper:this._tracingHelper,transactionOptions:{maxWait:l.transactionOptions?.maxWait??2e3,timeout:l.transactionOptions?.timeout??5e3,isolationLevel:l.transactionOptions?.isolationLevel},logEmitter:i,isBundled:e.isBundled,adapter:s},this._accelerateEngineConfig={...this._engineConfig,accelerateUtils:{resolveDatasourceUrl:Gr,getBatchRequestPayload:Br,prismaGraphQLToJSError:$r,PrismaClientUnknownRequestError:G,PrismaClientInitializationError:V,PrismaClientKnownRequestError:oe,debug:K("prisma:client:accelerateEngine"),engineVersion:ga.version,clientVersion:e.clientVersion}},Ve("clientVersion",e.clientVersion),this._engine=Us(e,this._engineConfig),this._requestHandler=new Yr(this,i),l.log)for(let R of l.log){let C=typeof R=="string"?R:R.emit==="stdout"?R.level:null;C&&this.$on(C,A=>{Mt.log(`${Mt.tags[C]??""}`,A.message||A.query)})}}catch(l){throw l.clientVersion=this._clientVersion,l}return this._appliedParent=Yt(this)}get[Symbol.toStringTag](){return"PrismaClient"}$use(n){this._middlewares.use(n)}$on(n,i){return n==="beforeExit"?this._engine.onBeforeExit(i):n&&this._engineConfig.logEmitter.on(n,i),this}$connect(){try{return this._engine.start()}catch(n){throw n.clientVersion=this._clientVersion,n}}async $disconnect(){try{await this._engine.stop()}catch(n){throw n.clientVersion=this._clientVersion,n}finally{_i()}}$executeRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"executeRaw",args:o,transaction:n,clientMethod:i,argsMapper:Zn({clientMethod:i,activeProvider:a}),callsite:Ue(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$executeRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0){let[s,a]=fa(n,i);return Yn(this._activeProvider,s.text,s.values,Array.isArray(n)?"prisma.$executeRaw``":"prisma.$executeRaw(sql``)"),this.$executeRawInternal(o,"$executeRaw",s,a)}throw new ee("`$executeRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#executeraw\n",{clientVersion:this._clientVersion})})}$executeRawUnsafe(n,...i){return this._createPrismaPromise(o=>(Yn(this._activeProvider,n,i,"prisma.$executeRawUnsafe(, [...values])"),this.$executeRawInternal(o,"$executeRawUnsafe",[n,...i])))}$runCommandRaw(n){if(e.activeProvider!=="mongodb")throw new ee(`The ${e.activeProvider} provider does not support $runCommandRaw. Use the mongodb provider.`,{clientVersion:this._clientVersion});return this._createPrismaPromise(i=>this._request({args:n,clientMethod:"$runCommandRaw",dataPath:[],action:"runCommandRaw",argsMapper:Vs,callsite:Ue(this._errorFormat),transaction:i}))}async $queryRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"queryRaw",args:o,transaction:n,clientMethod:i,argsMapper:Zn({clientMethod:i,activeProvider:a}),callsite:Ue(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$queryRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0)return this.$queryRawInternal(o,"$queryRaw",...fa(n,i));throw new ee("`$queryRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#queryraw\n",{clientVersion:this._clientVersion})})}$queryRawTyped(n){return this._createPrismaPromise(i=>{if(!this._hasPreviewFlag("typedSql"))throw new ee("`typedSql` preview feature must be enabled in order to access $queryRawTyped API",{clientVersion:this._clientVersion});return this.$queryRawInternal(i,"$queryRawTyped",n)})}$queryRawUnsafe(n,...i){return this._createPrismaPromise(o=>this.$queryRawInternal(o,"$queryRawUnsafe",[n,...i]))}_transactionWithArray({promises:n,options:i}){let o=ed.nextId(),s=ea(n.length),a=n.map((l,u)=>{if(l?.[Symbol.toStringTag]!=="PrismaPromise")throw new Error("All elements of the array need to be Prisma Client promises. Hint: Please make sure you are not awaiting the Prisma client calls you intended to pass in the $transaction function.");let g=i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel,h={kind:"batch",id:o,index:u,isolationLevel:g,lock:s};return l.requestTransaction?.(h)??l});return ma(a)}async _transactionWithCallback({callback:n,options:i}){let o={traceparent:this._tracingHelper.getTraceParent()},s={maxWait:i?.maxWait??this._engineConfig.transactionOptions.maxWait,timeout:i?.timeout??this._engineConfig.transactionOptions.timeout,isolationLevel:i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel},a=await this._engine.transaction("start",o,s),l;try{let u={kind:"itx",...a};l=await n(this._createItxClient(u)),await this._engine.transaction("commit",o,a)}catch(u){throw await this._engine.transaction("rollback",o,a).catch(()=>{}),u}return l}_createItxClient(n){return fe(Yt(fe(fs(this),[re("_appliedParent",()=>this._appliedParent._createItxClient(n)),re("_createPrismaPromise",()=>Xn(n)),re(Xp,()=>n.id)])),[bt(bs)])}$transaction(n,i){let o;typeof n=="function"?this._engineConfig.adapter?.adapterName==="@prisma/adapter-d1"?o=()=>{throw new Error("Cloudflare D1 does not support interactive transactions. We recommend you to refactor your queries with that limitation in mind, and use batch transactions with `prisma.$transactions([])` where applicable.")}:o=()=>this._transactionWithCallback({callback:n,options:i}):o=()=>this._transactionWithArray({promises:n,options:i});let s={name:"transaction",attributes:{method:"$transaction"}};return this._tracingHelper.runInChildSpan(s,o)}_request(n){n.otelParentCtx=this._tracingHelper.getActiveContext();let i=n.middlewareArgsMapper??Zp,o={args:i.requestArgsToMiddlewareArgs(n.args),dataPath:n.dataPath,runInTransaction:!!n.transaction,action:n.action,model:n.model},s={middleware:{name:"middleware",middleware:!0,attributes:{method:"$use"},active:!1},operation:{name:"operation",attributes:{method:o.action,model:o.model,name:o.model?`${o.model}.${o.action}`:o.action}}},a=-1,l=async u=>{let g=this._middlewares.get(++a);if(g)return this._tracingHelper.runInChildSpan(s.middleware,O=>g(u,M=>(O?.end(),l(M))));let{runInTransaction:h,args:v,...R}=u,C={...n,...R};v&&(C.args=i.middlewareArgsToRequestArgs(v)),n.transaction!==void 0&&h===!1&&delete C.transaction;let A=await vs(this,C);return C.model?ws({result:A,modelName:C.model,args:C.args,extensions:this._extensions,runtimeDataModel:this._runtimeDataModel,globalOmit:this._globalOmit}):A};return this._tracingHelper.runInChildSpan(s.operation,()=>l(o))}async _executeRequest({args:n,clientMethod:i,dataPath:o,callsite:s,action:a,model:l,argsMapper:u,transaction:g,unpacker:h,otelParentCtx:v,customDataProxyFetch:R}){try{n=u?u(n):n;let C={name:"serialize"},A=this._tracingHelper.runInChildSpan(C,()=>Mr({modelName:l,runtimeDataModel:this._runtimeDataModel,action:a,args:n,clientMethod:i,callsite:s,extensions:this._extensions,errorFormat:this._errorFormat,clientVersion:this._clientVersion,previewFeatures:this._previewFeatures,globalOmit:this._globalOmit}));return K.enabled("prisma:client")&&(Ve("Prisma Client call:"),Ve(`prisma.${i}(${ns(n)})`),Ve("Generated request:"),Ve(JSON.stringify(A,null,2)+` -`)),g?.kind==="batch"&&await g.lock,this._requestHandler.request({protocolQuery:A,modelName:l,action:a,clientMethod:i,dataPath:o,callsite:s,args:n,extensions:this._extensions,transaction:g,unpacker:h,otelParentCtx:v,otelChildCtx:this._tracingHelper.getActiveContext(),globalOmit:this._globalOmit,customDataProxyFetch:R})}catch(C){throw C.clientVersion=this._clientVersion,C}}$metrics=new wt(this);_hasPreviewFlag(n){return!!this._engineConfig.previewFeatures?.includes(n)}$applyPendingMigrations(){return this._engine.applyPendingMigrations()}$extends=gs}return t}function fa(e,t){return td(e)?[new ae(e,t),zs]:[e,Ys]}function td(e){return Array.isArray(e)&&Array.isArray(e.raw)}f();c();p();d();m();var rd=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function ya(e){return new Proxy(e,{get(t,r){if(r in t)return t[r];if(!rd.has(r))throw new TypeError(`Invalid enum value: ${String(r)}`)}})}f();c();p();d();m();0&&(module.exports={DMMF,Debug,Decimal,Extensions,MetricsClient,PrismaClientInitializationError,PrismaClientKnownRequestError,PrismaClientRustPanicError,PrismaClientUnknownRequestError,PrismaClientValidationError,Public,Sql,createParam,defineDmmfProperty,deserializeJsonResponse,deserializeRawResult,dmmfToRuntimeDataModel,empty,getPrismaClient,getRuntime,join,makeStrictEnum,makeTypedQueryFactory,objectEnumValues,raw,serializeJsonQuery,skip,sqltag,warnEnvConflicts,warnOnce}); -//# sourceMappingURL=react-native.js.map diff --git a/prisma/generated/client/runtime/wasm-compiler-edge.js b/prisma/generated/client/runtime/wasm-compiler-edge.js deleted file mode 100644 index 29bab3f..0000000 --- a/prisma/generated/client/runtime/wasm-compiler-edge.js +++ /dev/null @@ -1,83 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! -/* eslint-disable */ -"use strict";var au=Object.create;var Wr=Object.defineProperty;var lu=Object.getOwnPropertyDescriptor;var cu=Object.getOwnPropertyNames;var uu=Object.getPrototypeOf,pu=Object.prototype.hasOwnProperty;var fe=(e,t)=>()=>(e&&(t=e(e=0)),t);var oe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ut=(e,t)=>{for(var r in t)Wr(e,r,{get:t[r],enumerable:!0})},Lo=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of cu(t))!pu.call(e,i)&&i!==r&&Wr(e,i,{get:()=>t[i],enumerable:!(n=lu(t,i))||n.enumerable});return e};var Ae=(e,t,r)=>(r=e!=null?au(uu(e)):{},Lo(t||!e||!e.__esModule?Wr(r,"default",{value:e,enumerable:!0}):r,e)),No=e=>Lo(Wr({},"__esModule",{value:!0}),e);function si(e,t){if(t=t.toLowerCase(),t==="utf8"||t==="utf-8")return new h(gu.encode(e));if(t==="base64"||t==="base64url")return e=e.replace(/-/g,"+").replace(/_/g,"/"),e=e.replace(/[^A-Za-z0-9+/]/g,""),new h([...atob(e)].map(r=>r.charCodeAt(0)));if(t==="binary"||t==="ascii"||t==="latin1"||t==="latin-1")return new h([...e].map(r=>r.charCodeAt(0)));if(t==="ucs2"||t==="ucs-2"||t==="utf16le"||t==="utf-16le"){let r=new h(e.length*2),n=new DataView(r.buffer);for(let i=0;ia.startsWith("get")||a.startsWith("set")),n=r.map(a=>a.replace("get","read").replace("set","write")),i=(a,f)=>function(w=0){return Y(w,"offset"),pe(w,"offset"),X(w,"offset",this.length-1),new DataView(this.buffer)[r[a]](w,f)},o=(a,f)=>function(w,v=0){let A=r[a].match(/set(\w+\d+)/)[1].toLowerCase(),R=fu[A];return Y(v,"offset"),pe(v,"offset"),X(v,"offset",this.length-1),du(w,"value",R[0],R[1]),new DataView(this.buffer)[r[a]](v,w,f),v+parseInt(r[a].match(/\d+/)[0])/8},s=a=>{a.forEach(f=>{f.includes("Uint")&&(e[f.replace("Uint","UInt")]=e[f]),f.includes("Float64")&&(e[f.replace("Float64","Double")]=e[f]),f.includes("Float32")&&(e[f.replace("Float32","Float")]=e[f])})};n.forEach((a,f)=>{a.startsWith("read")&&(e[a]=i(f,!1),e[a+"LE"]=i(f,!0),e[a+"BE"]=i(f,!1)),a.startsWith("write")&&(e[a]=o(f,!1),e[a+"LE"]=o(f,!0),e[a+"BE"]=o(f,!1)),s([a,a+"LE",a+"BE"])})}function Fo(e){throw new Error(`Buffer polyfill does not implement "${e}"`)}function Jr(e,t){if(!(e instanceof Uint8Array))throw new TypeError(`The "${t}" argument must be an instance of Buffer or Uint8Array`)}function X(e,t,r=wu+1){if(e<0||e>r){let n=new RangeError(`The value of "${t}" is out of range. It must be >= 0 && <= ${r}. Received ${e}`);throw n.code="ERR_OUT_OF_RANGE",n}}function Y(e,t){if(typeof e!="number"){let r=new TypeError(`The "${t}" argument must be of type number. Received type ${typeof e}.`);throw r.code="ERR_INVALID_ARG_TYPE",r}}function pe(e,t){if(!Number.isInteger(e)||Number.isNaN(e)){let r=new RangeError(`The value of "${t}" is out of range. It must be an integer. Received ${e}`);throw r.code="ERR_OUT_OF_RANGE",r}}function du(e,t,r,n){if(en){let i=new RangeError(`The value of "${t}" is out of range. It must be >= ${r} and <= ${n}. Received ${e}`);throw i.code="ERR_OUT_OF_RANGE",i}}function Uo(e,t){if(typeof e!="string"){let r=new TypeError(`The "${t}" argument must be of type string. Received type ${typeof e}`);throw r.code="ERR_INVALID_ARG_TYPE",r}}function bu(e,t="utf8"){return h.from(e,t)}var h,fu,gu,yu,hu,wu,y,ai,c=fe(()=>{"use strict";h=class e extends Uint8Array{_isBuffer=!0;get offset(){return this.byteOffset}static alloc(t,r=0,n="utf8"){return Uo(n,"encoding"),e.allocUnsafe(t).fill(r,n)}static allocUnsafe(t){return e.from(t)}static allocUnsafeSlow(t){return e.from(t)}static isBuffer(t){return t&&!!t._isBuffer}static byteLength(t,r="utf8"){if(typeof t=="string")return si(t,r).byteLength;if(t&&t.byteLength)return t.byteLength;let n=new TypeError('The "string" argument must be of type string or an instance of Buffer or ArrayBuffer.');throw n.code="ERR_INVALID_ARG_TYPE",n}static isEncoding(t){return hu.includes(t)}static compare(t,r){Jr(t,"buff1"),Jr(r,"buff2");for(let n=0;nr[n])return 1}return t.length===r.length?0:t.length>r.length?1:-1}static from(t,r="utf8"){if(t&&typeof t=="object"&&t.type==="Buffer")return new e(t.data);if(typeof t=="number")return new e(new Uint8Array(t));if(typeof t=="string")return si(t,r);if(ArrayBuffer.isView(t)){let{byteOffset:n,byteLength:i,buffer:o}=t;return"map"in t&&typeof t.map=="function"?new e(t.map(s=>s%256),n,i):new e(o,n,i)}if(t&&typeof t=="object"&&("length"in t||"byteLength"in t||"buffer"in t))return new e(t);throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}static concat(t,r){if(t.length===0)return e.alloc(0);let n=[].concat(...t.map(o=>[...o])),i=e.alloc(r!==void 0?r:n.length);return i.set(r!==void 0?n.slice(0,r):n),i}slice(t=0,r=this.length){return this.subarray(t,r)}subarray(t=0,r=this.length){return Object.setPrototypeOf(super.subarray(t,r),e.prototype)}reverse(){return super.reverse(),this}readIntBE(t,r){Y(t,"offset"),pe(t,"offset"),X(t,"offset",this.length-1),Y(r,"byteLength"),pe(r,"byteLength");let n=new DataView(this.buffer,t,r),i=0;for(let o=0;o=0;o--)i.setUint8(o,t&255),t=t/256;return r+n}writeUintBE(t,r,n){return this.writeUIntBE(t,r,n)}writeUIntLE(t,r,n){Y(r,"offset"),pe(r,"offset"),X(r,"offset",this.length-1),Y(n,"byteLength"),pe(n,"byteLength");let i=new DataView(this.buffer,r,n);for(let o=0;or===t[n])}copy(t,r=0,n=0,i=this.length){X(r,"targetStart"),X(n,"sourceStart",this.length),X(i,"sourceEnd"),r>>>=0,n>>>=0,i>>>=0;let o=0;for(;n=this.length?this.length-a:t.length),a);return this}includes(t,r=null,n="utf-8"){return this.indexOf(t,r,n)!==-1}lastIndexOf(t,r=null,n="utf-8"){return this.indexOf(t,r,n,!0)}indexOf(t,r=null,n="utf-8",i=!1){let o=i?this.findLastIndex.bind(this):this.findIndex.bind(this);n=typeof r=="string"?r:n;let s=e.from(typeof t=="number"?[t]:t,n),a=typeof r=="string"?0:r;return a=typeof r=="number"?a:null,a=Number.isNaN(a)?null:a,a??=i?this.length:0,a=a<0?this.length+a:a,s.length===0&&i===!1?a>=this.length?this.length:a:s.length===0&&i===!0?(a>=this.length?this.length:a)||this.length:o((f,w)=>(i?w<=a:w>=a)&&this[w]===s[0]&&s.every((A,R)=>this[w+R]===A))}toString(t="utf8",r=0,n=this.length){if(r=r<0?0:r,t=t.toString().toLowerCase(),n<=0)return"";if(t==="utf8"||t==="utf-8")return yu.decode(this.slice(r,n));if(t==="base64"||t==="base64url"){let i=btoa(this.reduce((o,s)=>o+ai(s),""));return t==="base64url"?i.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""):i}if(t==="binary"||t==="ascii"||t==="latin1"||t==="latin-1")return this.slice(r,n).reduce((i,o)=>i+ai(o&(t==="ascii"?127:255)),"");if(t==="ucs2"||t==="ucs-2"||t==="utf16le"||t==="utf-16le"){let i=new DataView(this.buffer.slice(r,n));return Array.from({length:i.byteLength/2},(o,s)=>s*2+1i+o.toString(16).padStart(2,"0"),"");Fo(`encoding "${t}"`)}toLocaleString(){return this.toString()}inspect(){return``}};fu={int8:[-128,127],int16:[-32768,32767],int32:[-2147483648,2147483647],uint8:[0,255],uint16:[0,65535],uint32:[0,4294967295],float32:[-1/0,1/0],float64:[-1/0,1/0],bigint64:[-0x8000000000000000n,0x7fffffffffffffffn],biguint64:[0n,0xffffffffffffffffn]},gu=new TextEncoder,yu=new TextDecoder,hu=["utf8","utf-8","hex","base64","ascii","binary","base64url","ucs2","ucs-2","utf16le","utf-16le","latin1","latin-1"],wu=4294967295;mu(h.prototype);y=new Proxy(bu,{construct(e,[t,r]){return h.from(t,r)},get(e,t){return h[t]}}),ai=String.fromCodePoint});var g,u=fe(()=>{"use strict";g={nextTick:(e,...t)=>{setTimeout(()=>{e(...t)},0)},env:{},version:"",cwd:()=>"/",stderr:{},argv:["/bin/node"],pid:1e4}});var b,p=fe(()=>{"use strict";b=globalThis.performance??(()=>{let e=Date.now();return{now:()=>Date.now()-e}})()});var E,m=fe(()=>{"use strict";E=()=>{};E.prototype=E});var d=fe(()=>{"use strict"});function Bo(e,t){var r,n,i,o,s,a,f,w,v=e.constructor,A=v.precision;if(!e.s||!t.s)return t.s||(t=new v(e)),G?V(t,A):t;if(f=e.d,w=t.d,s=e.e,i=t.e,f=f.slice(),o=s-i,o){for(o<0?(n=f,o=-o,a=w.length):(n=w,i=s,a=f.length),s=Math.ceil(A/j),a=s>a?s+1:a+1,o>a&&(o=a,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for(a=f.length,o=w.length,a-o<0&&(o=a,n=w,w=f,f=n),r=0;o;)r=(f[--o]=f[o]+w[o]+r)/ee|0,f[o]%=ee;for(r&&(f.unshift(r),++i),a=f.length;f[--a]==0;)f.pop();return t.d=f,t.e=i,G?V(t,A):t}function Re(e,t,r){if(e!==~~e||er)throw Error(ze+e)}function Ce(e){var t,r,n,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;t16)throw Error(ci+Z(e));if(!e.s)return new v(ge);for(t==null?(G=!1,a=A):a=t,s=new v(.03125);e.abs().gte(.1);)e=e.times(s),w+=5;for(n=Math.log(Ke(2,w))/Math.LN10*2+5|0,a+=n,r=i=o=new v(ge),v.precision=a;;){if(i=V(i.times(e),a),r=r.times(++f),s=o.plus(Me(i,r,a)),Ce(s.d).slice(0,a)===Ce(o.d).slice(0,a)){for(;w--;)o=V(o.times(o),a);return v.precision=A,t==null?(G=!0,V(o,A)):o}o=s}}function Z(e){for(var t=e.e*j,r=e.d[0];r>=10;r/=10)t++;return t}function li(e,t,r){if(t>e.LN10.sd())throw G=!0,r&&(e.precision=r),Error(he+"LN10 precision limit exceeded");return V(new e(e.LN10),t)}function Ve(e){for(var t="";e--;)t+="0";return t}function Qt(e,t){var r,n,i,o,s,a,f,w,v,A=1,R=10,C=e,D=C.d,I=C.constructor,M=I.precision;if(C.s<1)throw Error(he+(C.s?"NaN":"-Infinity"));if(C.eq(ge))return new I(0);if(t==null?(G=!1,w=M):w=t,C.eq(10))return t==null&&(G=!0),li(I,w);if(w+=R,I.precision=w,r=Ce(D),n=r.charAt(0),o=Z(C),Math.abs(o)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)C=C.times(e),r=Ce(C.d),n=r.charAt(0),A++;o=Z(C),n>1?(C=new I("0."+r),o++):C=new I(n+"."+r.slice(1))}else return f=li(I,w+2,M).times(o+""),C=Qt(new I(n+"."+r.slice(1)),w-R).plus(f),I.precision=M,t==null?(G=!0,V(C,M)):C;for(a=s=C=Me(C.minus(ge),C.plus(ge),w),v=V(C.times(C),w),i=3;;){if(s=V(s.times(v),w),f=a.plus(Me(s,new I(i),w)),Ce(f.d).slice(0,w)===Ce(a.d).slice(0,w))return a=a.times(2),o!==0&&(a=a.plus(li(I,w+2,M).times(o+""))),a=Me(a,new I(A),w),I.precision=M,t==null?(G=!0,V(a,M)):a;a=f,i+=2}}function Vo(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=mt(r/j),e.d=[],n=(r+1)%j,r<0&&(n+=j),nKr||e.e<-Kr))throw Error(ci+r)}else e.s=0,e.e=0,e.d=[0];return e}function V(e,t,r){var n,i,o,s,a,f,w,v,A=e.d;for(s=1,o=A[0];o>=10;o/=10)s++;if(n=t-s,n<0)n+=j,i=t,w=A[v=0];else{if(v=Math.ceil((n+1)/j),o=A.length,v>=o)return e;for(w=o=A[v],s=1;o>=10;o/=10)s++;n%=j,i=n-j+s}if(r!==void 0&&(o=Ke(10,s-i-1),a=w/o%10|0,f=t<0||A[v+1]!==void 0||w%o,f=r<4?(a||f)&&(r==0||r==(e.s<0?3:2)):a>5||a==5&&(r==4||f||r==6&&(n>0?i>0?w/Ke(10,s-i):0:A[v-1])%10&1||r==(e.s<0?8:7))),t<1||!A[0])return f?(o=Z(e),A.length=1,t=t-o-1,A[0]=Ke(10,(j-t%j)%j),e.e=mt(-t/j)||0):(A.length=1,A[0]=e.e=e.s=0),e;if(n==0?(A.length=v,o=1,v--):(A.length=v+1,o=Ke(10,j-n),A[v]=i>0?(w/Ke(10,s-i)%Ke(10,i)|0)*o:0),f)for(;;)if(v==0){(A[0]+=o)==ee&&(A[0]=1,++e.e);break}else{if(A[v]+=o,A[v]!=ee)break;A[v--]=0,o=1}for(n=A.length;A[--n]===0;)A.pop();if(G&&(e.e>Kr||e.e<-Kr))throw Error(ci+Z(e));return e}function Qo(e,t){var r,n,i,o,s,a,f,w,v,A,R=e.constructor,C=R.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new R(e),G?V(t,C):t;if(f=e.d,A=t.d,n=t.e,w=e.e,f=f.slice(),s=w-n,s){for(v=s<0,v?(r=f,s=-s,a=A.length):(r=A,n=w,a=f.length),i=Math.max(Math.ceil(C/j),a)+2,s>i&&(s=i,r.length=1),r.reverse(),i=s;i--;)r.push(0);r.reverse()}else{for(i=f.length,a=A.length,v=i0;--i)f[a++]=0;for(i=A.length;i>s;){if(f[--i]0?o=o.charAt(0)+"."+o.slice(1)+Ve(n):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Ve(-i-1)+o,r&&(n=r-s)>0&&(o+=Ve(n))):i>=s?(o+=Ve(i+1-s),r&&(n=r-i-1)>0&&(o=o+"."+Ve(n))):((n=i+1)0&&(i+1===s&&(o+="."),o+=Ve(n))),e.s<0?"-"+o:o}function $o(e,t){if(e.length>t)return e.length=t,!0}function Ho(e){var t,r,n;function i(o){var s=this;if(!(s instanceof i))return new i(o);if(s.constructor=i,o instanceof i){s.s=o.s,s.e=o.e,s.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(ze+o);if(o>0)s.s=1;else if(o<0)o=-o,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(o===~~o&&o<1e7){s.e=0,s.d=[o];return}return Vo(s,o.toString())}else if(typeof o!="string")throw Error(ze+o);if(o.charCodeAt(0)===45?(o=o.slice(1),s.s=-1):s.s=1,xu.test(o))Vo(s,o);else throw Error(ze+o)}if(i.prototype=S,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Ho,i.config=i.set=Pu,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(ze+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(ze+r+": "+n);return this}var pt,Eu,ui,G,he,ze,ci,mt,Ke,xu,ge,ee,j,qo,Kr,S,Me,ui,zr,Go=fe(()=>{"use strict";c();u();p();m();d();l();pt=1e9,Eu={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},G=!0,he="[DecimalError] ",ze=he+"Invalid argument: ",ci=he+"Exponent out of range: ",mt=Math.floor,Ke=Math.pow,xu=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ee=1e7,j=7,qo=9007199254740991,Kr=mt(qo/j),S={};S.absoluteValue=S.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};S.comparedTo=S.cmp=function(e){var t,r,n,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(n=o.d.length,i=e.d.length,t=0,r=ne.d[t]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1};S.decimalPlaces=S.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*j;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};S.dividedBy=S.div=function(e){return Me(this,new this.constructor(e))};S.dividedToIntegerBy=S.idiv=function(e){var t=this,r=t.constructor;return V(Me(t,new r(e),0,1),r.precision)};S.equals=S.eq=function(e){return!this.cmp(e)};S.exponent=function(){return Z(this)};S.greaterThan=S.gt=function(e){return this.cmp(e)>0};S.greaterThanOrEqualTo=S.gte=function(e){return this.cmp(e)>=0};S.isInteger=S.isint=function(){return this.e>this.d.length-2};S.isNegative=S.isneg=function(){return this.s<0};S.isPositive=S.ispos=function(){return this.s>0};S.isZero=function(){return this.s===0};S.lessThan=S.lt=function(e){return this.cmp(e)<0};S.lessThanOrEqualTo=S.lte=function(e){return this.cmp(e)<1};S.logarithm=S.log=function(e){var t,r=this,n=r.constructor,i=n.precision,o=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(ge))throw Error(he+"NaN");if(r.s<1)throw Error(he+(r.s?"NaN":"-Infinity"));return r.eq(ge)?new n(0):(G=!1,t=Me(Qt(r,o),Qt(e,o),o),G=!0,V(t,i))};S.minus=S.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Qo(t,e):Bo(t,(e.s=-e.s,e))};S.modulo=S.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(he+"NaN");return r.s?(G=!1,t=Me(r,e,0,1).times(e),G=!0,r.minus(t)):V(new n(r),i)};S.naturalExponential=S.exp=function(){return jo(this)};S.naturalLogarithm=S.ln=function(){return Qt(this)};S.negated=S.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};S.plus=S.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Bo(t,e):Qo(t,(e.s=-e.s,e))};S.precision=S.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ze+e);if(t=Z(i)+1,n=i.d.length-1,r=n*j+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};S.squareRoot=S.sqrt=function(){var e,t,r,n,i,o,s,a=this,f=a.constructor;if(a.s<1){if(!a.s)return new f(0);throw Error(he+"NaN")}for(e=Z(a),G=!1,i=Math.sqrt(+a),i==0||i==1/0?(t=Ce(a.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=mt((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new f(t)):n=new f(i.toString()),r=f.precision,i=s=r+3;;)if(o=n,n=o.plus(Me(a,o,s+2)).times(.5),Ce(o.d).slice(0,s)===(t=Ce(n.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(V(o,r+1,0),o.times(o).eq(a)){n=o;break}}else if(t!="9999")break;s+=4}return G=!0,V(n,r)};S.times=S.mul=function(e){var t,r,n,i,o,s,a,f,w,v=this,A=v.constructor,R=v.d,C=(e=new A(e)).d;if(!v.s||!e.s)return new A(0);for(e.s*=v.s,r=v.e+e.e,f=R.length,w=C.length,f=0;){for(t=0,i=f+n;i>n;)a=o[i]+C[n]*R[i-n-1]+t,o[i--]=a%ee|0,t=a/ee|0;o[i]=(o[i]+t)%ee|0}for(;!o[--s];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,G?V(e,A.precision):e};S.toDecimalPlaces=S.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Re(e,0,pt),t===void 0?t=n.rounding:Re(t,0,8),V(r,e+Z(r)+1,t))};S.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Ye(n,!0):(Re(e,0,pt),t===void 0?t=i.rounding:Re(t,0,8),n=V(new i(n),e+1,t),r=Ye(n,!0,e+1)),r};S.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?Ye(i):(Re(e,0,pt),t===void 0?t=o.rounding:Re(t,0,8),n=V(new o(i),e+Z(i)+1,t),r=Ye(n.abs(),!1,e+Z(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};S.toInteger=S.toint=function(){var e=this,t=e.constructor;return V(new t(e),Z(e)+1,t.rounding)};S.toNumber=function(){return+this};S.toPower=S.pow=function(e){var t,r,n,i,o,s,a=this,f=a.constructor,w=12,v=+(e=new f(e));if(!e.s)return new f(ge);if(a=new f(a),!a.s){if(e.s<1)throw Error(he+"Infinity");return a}if(a.eq(ge))return a;if(n=f.precision,e.eq(ge))return V(a,n);if(t=e.e,r=e.d.length-1,s=t>=r,o=a.s,s){if((r=v<0?-v:v)<=qo){for(i=new f(ge),t=Math.ceil(n/j+4),G=!1;r%2&&(i=i.times(a),$o(i.d,t)),r=mt(r/2),r!==0;)a=a.times(a),$o(a.d,t);return G=!0,e.s<0?new f(ge).div(i):V(i,n)}}else if(o<0)throw Error(he+"NaN");return o=o<0&&e.d[Math.max(t,r)]&1?-1:1,a.s=1,G=!1,i=e.times(Qt(a,n+w)),G=!0,i=jo(i),i.s=o,i};S.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?(r=Z(i),n=Ye(i,r<=o.toExpNeg||r>=o.toExpPos)):(Re(e,1,pt),t===void 0?t=o.rounding:Re(t,0,8),i=V(new o(i),e,t),r=Z(i),n=Ye(i,e<=r||r<=o.toExpNeg,e)),n};S.toSignificantDigits=S.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Re(e,1,pt),t===void 0?t=n.rounding:Re(t,0,8)),V(new n(r),e,t)};S.toString=S.valueOf=S.val=S.toJSON=S[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Z(e),r=e.constructor;return Ye(e,t<=r.toExpNeg||t>=r.toExpPos)};Me=function(){function e(n,i){var o,s=0,a=n.length;for(n=n.slice();a--;)o=n[a]*i+s,n[a]=o%ee|0,s=o/ee|0;return s&&n.unshift(s),n}function t(n,i,o,s){var a,f;if(o!=s)f=o>s?1:-1;else for(a=f=0;ai[a]?1:-1;break}return f}function r(n,i,o){for(var s=0;o--;)n[o]-=s,s=n[o]1;)n.shift()}return function(n,i,o,s){var a,f,w,v,A,R,C,D,I,M,be,ce,$,ue,Je,oi,Ee,Hr,Gr=n.constructor,su=n.s==i.s?1:-1,ve=n.d,z=i.d;if(!n.s)return new Gr(n);if(!i.s)throw Error(he+"Division by zero");for(f=n.e-i.e,Ee=z.length,Je=ve.length,C=new Gr(su),D=C.d=[],w=0;z[w]==(ve[w]||0);)++w;if(z[w]>(ve[w]||0)&&--f,o==null?ce=o=Gr.precision:s?ce=o+(Z(n)-Z(i))+1:ce=o,ce<0)return new Gr(0);if(ce=ce/j+2|0,w=0,Ee==1)for(v=0,z=z[0],ce++;(w1&&(z=e(z,v),ve=e(ve,v),Ee=z.length,Je=ve.length),ue=Ee,I=ve.slice(0,Ee),M=I.length;M=ee/2&&++oi;do v=0,a=t(z,I,Ee,M),a<0?(be=I[0],Ee!=M&&(be=be*ee+(I[1]||0)),v=be/oi|0,v>1?(v>=ee&&(v=ee-1),A=e(z,v),R=A.length,M=I.length,a=t(A,I,R,M),a==1&&(v--,r(A,Ee{"use strict";Go();T=class extends zr{static isDecimal(t){return t instanceof zr}static random(t=20){{let n=globalThis.crypto.getRandomValues(new Uint8Array(t)).reduce((i,o)=>i+o,"");return new zr(`0.${n.slice(0,t)}`)}}},re=T});function Su(){return!1}function cs(){return{dev:0,ino:0,mode:0,nlink:0,uid:0,gid:0,rdev:0,size:0,blksize:0,blocks:0,atimeMs:0,mtimeMs:0,ctimeMs:0,birthtimeMs:0,atime:new Date,mtime:new Date,ctime:new Date,birthtime:new Date}}function Iu(){return cs()}function ku(){return[]}function Ou(e){e(null,[])}function Du(){return""}function _u(){return""}function Mu(){}function Lu(){}function Nu(){}function Uu(){}function Fu(){}function Vu(){}var $u,qu,us,ps=fe(()=>{"use strict";c();u();p();m();d();l();$u={},qu={existsSync:Su,lstatSync:cs,statSync:Iu,readdirSync:ku,readdir:Ou,readlinkSync:Du,realpathSync:_u,chmodSync:Mu,renameSync:Lu,mkdirSync:Nu,rmdirSync:Uu,rmSync:Fu,unlinkSync:Vu,promises:$u},us=qu});var ms=oe(()=>{"use strict";c();u();p();m();d();l()});function Bu(...e){return e.join("/")}function ju(...e){return e.join("/")}function Qu(e){let t=ds(e),r=fs(e),[n,i]=t.split(".");return{root:"/",dir:r,base:t,ext:i,name:n}}function ds(e){let t=e.split("/");return t[t.length-1]}function fs(e){return e.split("/").slice(0,-1).join("/")}var gs,Hu,Gu,en,ys=fe(()=>{"use strict";c();u();p();m();d();l();gs="/",Hu={sep:gs},Gu={basename:ds,dirname:fs,join:ju,parse:Qu,posix:Hu,resolve:Bu,sep:gs},en=Gu});var hs=oe((Dy,Wu)=>{Wu.exports={name:"@prisma/internals",version:"6.12.0",description:"This package is intended for Prisma's internal use",main:"dist/index.js",types:"dist/index.d.ts",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/internals"},homepage:"https://www.prisma.io",author:"Tim Suchanek ",bugs:"https://github.com/prisma/prisma/issues",license:"Apache-2.0",scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",test:"dotenv -e ../../.db.env -- jest --silent",prepublishOnly:"pnpm run build"},files:["README.md","dist","!**/libquery_engine*","!dist/get-generators/engines/*","scripts"],devDependencies:{"@babel/helper-validator-identifier":"7.25.9","@opentelemetry/api":"1.9.0","@swc/core":"1.11.5","@swc/jest":"0.2.37","@types/babel__helper-validator-identifier":"7.15.2","@types/jest":"29.5.14","@types/node":"18.19.76","@types/resolve":"1.20.6",archiver:"6.0.2","checkpoint-client":"1.1.33","cli-truncate":"4.0.0",dotenv:"16.5.0",esbuild:"0.25.5","escape-string-regexp":"5.0.0",execa:"5.1.1","fast-glob":"3.3.3","find-up":"7.0.0","fp-ts":"2.16.9","fs-extra":"11.3.0","fs-jetpack":"5.1.0","global-dirs":"4.0.0",globby:"11.1.0","identifier-regex":"1.0.0","indent-string":"4.0.0","is-windows":"1.0.2","is-wsl":"3.1.0",jest:"29.7.0","jest-junit":"16.0.0",kleur:"4.1.5","mock-stdin":"1.0.0","new-github-issue-url":"0.2.1","node-fetch":"3.3.2","npm-packlist":"5.1.3",open:"7.4.2","p-map":"4.0.0","read-package-up":"11.0.0",resolve:"1.22.10","string-width":"7.2.0","strip-ansi":"6.0.1","strip-indent":"4.0.0","temp-dir":"2.0.0",tempy:"1.0.1","terminal-link":"4.0.0",tmp:"0.2.3","ts-node":"10.9.2","ts-pattern":"5.6.2","ts-toolbelt":"9.6.0",typescript:"5.4.5",yarn:"1.22.22"},dependencies:{"@prisma/config":"workspace:*","@prisma/debug":"workspace:*","@prisma/dmmf":"workspace:*","@prisma/driver-adapter-utils":"workspace:*","@prisma/engines":"workspace:*","@prisma/fetch-engine":"workspace:*","@prisma/generator":"workspace:*","@prisma/generator-helper":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/prisma-schema-wasm":"6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc","@prisma/schema-engine-wasm":"6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc","@prisma/schema-files-loader":"workspace:*",arg:"5.0.2",prompts:"2.4.2"},peerDependencies:{typescript:">=5.1.0"},peerDependenciesMeta:{typescript:{optional:!0}},sideEffects:!1}});var yi={};ut(yi,{Hash:()=>Wt,createHash:()=>ws,default:()=>gt,randomFillSync:()=>rn,randomUUID:()=>tn,webcrypto:()=>Jt});function tn(){return globalThis.crypto.randomUUID()}function rn(e,t,r){return t!==void 0&&(r!==void 0?e=e.subarray(t,t+r):e=e.subarray(t)),globalThis.crypto.getRandomValues(e)}function ws(e){return new Wt(e)}var Jt,Wt,gt,Ze=fe(()=>{"use strict";c();u();p();m();d();l();Jt=globalThis.crypto;Wt=class{#e=[];#t;constructor(t){this.#t=t}update(t){this.#e.push(t)}async digest(){let t=new Uint8Array(this.#e.reduce((i,o)=>i+o.length,0)),r=0;for(let i of this.#e)t.set(i,r),r+=i.length;let n=await globalThis.crypto.subtle.digest(this.#t,t);return new Uint8Array(n)}},gt={webcrypto:Jt,randomUUID:tn,randomFillSync:rn,createHash:ws,Hash:Wt}});var hi=oe((Xy,Yu)=>{Yu.exports={name:"@prisma/engines-version",version:"6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek ",prisma:{enginesVersion:"8047c96bbd92db98a2abc7c9323ce77c02c89dbc"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.76",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var bs=oe(nn=>{"use strict";c();u();p();m();d();l();Object.defineProperty(nn,"__esModule",{value:!0});nn.enginesVersion=void 0;nn.enginesVersion=hi().prisma.enginesVersion});var Ps=oe((fh,xs)=>{"use strict";c();u();p();m();d();l();xs.exports=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof r.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(t===0)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}});var As=oe((Sh,vs)=>{"use strict";c();u();p();m();d();l();vs.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var Ei=oe((Lh,Cs)=>{"use strict";c();u();p();m();d();l();var rp=As();Cs.exports=e=>typeof e=="string"?e.replace(rp(),""):e});var Rs=oe((Kh,an)=>{"use strict";c();u();p();m();d();l();an.exports=(e={})=>{let t;if(e.repoUrl)t=e.repoUrl;else if(e.user&&e.repo)t=`https://github.com/${e.user}/${e.repo}`;else throw new Error("You need to specify either the `repoUrl` option or both the `user` and `repo` options");let r=new URL(`${t}/issues/new`),n=["body","title","labels","template","milestone","assignee","projects"];for(let i of n){let o=e[i];if(o!==void 0){if(i==="labels"||i==="projects"){if(!Array.isArray(o))throw new TypeError(`The \`${i}\` option should be an array`);o=o.join(",")}r.searchParams.set(i,o)}}return r.toString()};an.exports.default=an.exports});var vi=oe((zx,Ds)=>{"use strict";c();u();p();m();d();l();Ds.exports=function(){function e(t,r,n,i,o){return tn?n+1:t+1:i===o?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;s{"use strict";c();u();p();m();d();l()});var Fs=fe(()=>{"use strict";c();u();p();m();d();l()});var Cn,la=fe(()=>{"use strict";c();u();p();m();d();l();Cn=class{events={};on(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),this}emit(t,...r){return this.events[t]?(this.events[t].forEach(n=>{n(...r)}),!0):!1}}});var Ki=oe(tt=>{"use strict";c();u();p();m();d();l();Object.defineProperty(tt,"__esModule",{value:!0});tt.anumber=Ji;tt.abytes=il;tt.ahash=Um;tt.aexists=Fm;tt.aoutput=Vm;function Ji(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Nm(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function il(e,...t){if(!Nm(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function Um(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Ji(e.outputLen),Ji(e.blockLen)}function Fm(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Vm(e,t){il(e);let r=t.outputLen;if(e.length{"use strict";c();u();p();m();d();l();Object.defineProperty(O,"__esModule",{value:!0});O.add5L=O.add5H=O.add4H=O.add4L=O.add3H=O.add3L=O.rotlBL=O.rotlBH=O.rotlSL=O.rotlSH=O.rotr32L=O.rotr32H=O.rotrBL=O.rotrBH=O.rotrSL=O.rotrSH=O.shrSL=O.shrSH=O.toBig=void 0;O.fromBig=Yi;O.split=ol;O.add=bl;var Mn=BigInt(2**32-1),zi=BigInt(32);function Yi(e,t=!1){return t?{h:Number(e&Mn),l:Number(e>>zi&Mn)}:{h:Number(e>>zi&Mn)|0,l:Number(e&Mn)|0}}function ol(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;iBigInt(e>>>0)<>>0);O.toBig=sl;var al=(e,t,r)=>e>>>r;O.shrSH=al;var ll=(e,t,r)=>e<<32-r|t>>>r;O.shrSL=ll;var cl=(e,t,r)=>e>>>r|t<<32-r;O.rotrSH=cl;var ul=(e,t,r)=>e<<32-r|t>>>r;O.rotrSL=ul;var pl=(e,t,r)=>e<<64-r|t>>>r-32;O.rotrBH=pl;var ml=(e,t,r)=>e>>>r-32|t<<64-r;O.rotrBL=ml;var dl=(e,t)=>t;O.rotr32H=dl;var fl=(e,t)=>e;O.rotr32L=fl;var gl=(e,t,r)=>e<>>32-r;O.rotlSH=gl;var yl=(e,t,r)=>t<>>32-r;O.rotlSL=yl;var hl=(e,t,r)=>t<>>64-r;O.rotlBH=hl;var wl=(e,t,r)=>e<>>64-r;O.rotlBL=wl;function bl(e,t,r,n){let i=(t>>>0)+(n>>>0);return{h:e+r+(i/2**32|0)|0,l:i|0}}var El=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);O.add3L=El;var xl=(e,t,r,n)=>t+r+n+(e/2**32|0)|0;O.add3H=xl;var Pl=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);O.add4L=Pl;var Tl=(e,t,r,n,i)=>t+r+n+i+(e/2**32|0)|0;O.add4H=Tl;var vl=(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0);O.add5L=vl;var Al=(e,t,r,n,i,o)=>t+r+n+i+o+(e/2**32|0)|0;O.add5H=Al;var $m={fromBig:Yi,split:ol,toBig:sl,shrSH:al,shrSL:ll,rotrSH:cl,rotrSL:ul,rotrBH:pl,rotrBL:ml,rotr32H:dl,rotr32L:fl,rotlSH:gl,rotlSL:yl,rotlBH:hl,rotlBL:wl,add:bl,add3L:El,add3H:xl,add4L:Pl,add4H:Tl,add5H:Al,add5L:vl};O.default=$m});var Rl=oe(Ln=>{"use strict";c();u();p();m();d();l();Object.defineProperty(Ln,"__esModule",{value:!0});Ln.crypto=void 0;var Qe=(Ze(),No(yi));Ln.crypto=Qe&&typeof Qe=="object"&&"webcrypto"in Qe?Qe.webcrypto:Qe&&typeof Qe=="object"&&"randomBytes"in Qe?Qe:void 0});var kl=oe(N=>{"use strict";c();u();p();m();d();l();Object.defineProperty(N,"__esModule",{value:!0});N.Hash=N.nextTick=N.byteSwapIfBE=N.isLE=void 0;N.isBytes=qm;N.u8=Bm;N.u32=jm;N.createView=Qm;N.rotr=Hm;N.rotl=Gm;N.byteSwap=eo;N.byteSwap32=Wm;N.bytesToHex=Km;N.hexToBytes=zm;N.asyncLoop=Zm;N.utf8ToBytes=Il;N.toBytes=Nn;N.concatBytes=Xm;N.checkOpts=ed;N.wrapConstructor=td;N.wrapConstructorWithOpts=rd;N.wrapXOFConstructorWithOpts=nd;N.randomBytes=id;var Ot=Rl(),Xi=Ki();function qm(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Bm(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function jm(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function Qm(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Hm(e,t){return e<<32-t|e>>>t}function Gm(e,t){return e<>>32-t>>>0}N.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function eo(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}N.byteSwapIfBE=N.isLE?e=>e:e=>eo(e);function Wm(e){for(let t=0;tt.toString(16).padStart(2,"0"));function Km(e){(0,Xi.abytes)(e);let t="";for(let r=0;r=Ne._0&&e<=Ne._9)return e-Ne._0;if(e>=Ne.A&&e<=Ne.F)return e-(Ne.A-10);if(e>=Ne.a&&e<=Ne.f)return e-(Ne.a-10)}function zm(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);let t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let i=0,o=0;i{};N.nextTick=Ym;async function Zm(e,t,r){let n=Date.now();for(let i=0;i=0&&oe().update(Nn(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function rd(e){let t=(n,i)=>e(i).update(Nn(n)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=n=>e(n),t}function nd(e){let t=(n,i)=>e(i).update(Nn(n)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=n=>e(n),t}function id(e=32){if(Ot.crypto&&typeof Ot.crypto.getRandomValues=="function")return Ot.crypto.getRandomValues(new Uint8Array(e));if(Ot.crypto&&typeof Ot.crypto.randomBytes=="function")return Ot.crypto.randomBytes(e);throw new Error("crypto.getRandomValues must be defined")}});var Fl=oe(H=>{"use strict";c();u();p();m();d();l();Object.defineProperty(H,"__esModule",{value:!0});H.shake256=H.shake128=H.keccak_512=H.keccak_384=H.keccak_256=H.keccak_224=H.sha3_512=H.sha3_384=H.sha3_256=H.sha3_224=H.Keccak=void 0;H.keccakP=Nl;var Dt=Ki(),br=Cl(),Ue=kl(),_l=[],Ml=[],Ll=[],od=BigInt(0),wr=BigInt(1),sd=BigInt(2),ad=BigInt(7),ld=BigInt(256),cd=BigInt(113);for(let e=0,t=wr,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],_l.push(2*(5*n+r)),Ml.push((e+1)*(e+2)/2%64);let i=od;for(let o=0;o<7;o++)t=(t<>ad)*cd)%ld,t&sd&&(i^=wr<<(wr<r>32?(0,br.rotlBH)(e,t,r):(0,br.rotlSH)(e,t,r),Dl=(e,t,r)=>r>32?(0,br.rotlBL)(e,t,r):(0,br.rotlSL)(e,t,r);function Nl(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let s=0;s<10;s++)r[s]=e[s]^e[s+10]^e[s+20]^e[s+30]^e[s+40];for(let s=0;s<10;s+=2){let a=(s+8)%10,f=(s+2)%10,w=r[f],v=r[f+1],A=Ol(w,v,1)^r[a],R=Dl(w,v,1)^r[a+1];for(let C=0;C<50;C+=10)e[s+C]^=A,e[s+C+1]^=R}let i=e[2],o=e[3];for(let s=0;s<24;s++){let a=Ml[s],f=Ol(i,o,a),w=Dl(i,o,a),v=_l[s];i=e[v],o=e[v+1],e[v]=f,e[v+1]=w}for(let s=0;s<50;s+=10){for(let a=0;a<10;a++)r[a]=e[s+a];for(let a=0;a<10;a++)e[s+a]^=~r[(a+2)%10]&r[(a+4)%10]}e[0]^=ud[n],e[1]^=pd[n]}r.fill(0)}var Er=class e extends Ue.Hash{constructor(t,r,n,i=!1,o=24){if(super(),this.blockLen=t,this.suffix=r,this.outputLen=n,this.enableXOF=i,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,Dt.anumber)(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,Ue.u32)(this.state)}keccak(){Ue.isLE||(0,Ue.byteSwap32)(this.state32),Nl(this.state32,this.rounds),Ue.isLE||(0,Ue.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(t){(0,Dt.aexists)(this);let{blockLen:r,state:n}=this;t=(0,Ue.toBytes)(t);let i=t.length;for(let o=0;o=n&&this.keccak();let s=Math.min(n-this.posOut,o-i);t.set(r.subarray(this.posOut,this.posOut+s),i),this.posOut+=s,i+=s}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return(0,Dt.anumber)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,Dt.aoutput)(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){let{blockLen:r,suffix:n,outputLen:i,rounds:o,enableXOF:s}=this;return t||(t=new e(r,n,i,s,o)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=o,t.suffix=n,t.outputLen=i,t.enableXOF=s,t.destroyed=this.destroyed,t}};H.Keccak=Er;var He=(e,t,r)=>(0,Ue.wrapConstructor)(()=>new Er(t,e,r));H.sha3_224=He(6,144,224/8);H.sha3_256=He(6,136,256/8);H.sha3_384=He(6,104,384/8);H.sha3_512=He(6,72,512/8);H.keccak_224=He(1,144,224/8);H.keccak_256=He(1,136,256/8);H.keccak_384=He(1,104,384/8);H.keccak_512=He(1,72,512/8);var Ul=(e,t,r)=>(0,Ue.wrapXOFConstructorWithOpts)((n={})=>new Er(t,e,n.dkLen===void 0?r:n.dkLen,!0));H.shake128=Ul(31,168,128/8);H.shake256=Ul(31,136,256/8)});var Gl=oe((iN,Ge)=>{"use strict";c();u();p();m();d();l();var{sha3_512:md}=Fl(),$l=24,xr=32,to=(e=4,t=Math.random)=>{let r="";for(;r.lengthql(md(e)).toString(36).slice(1),Vl=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),dd=e=>Vl[Math.floor(e()*Vl.length)],jl=({globalObj:e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},random:t=Math.random}={})=>{let r=Object.keys(e).toString(),n=r.length?r+to(xr,t):to(xr,t);return Bl(n).substring(0,xr)},Ql=e=>()=>e++,fd=476782367,Hl=({random:e=Math.random,counter:t=Ql(Math.floor(e()*fd)),length:r=$l,fingerprint:n=jl({random:e})}={})=>function(){let o=dd(e),s=Date.now().toString(36),a=t().toString(36),f=to(r,e),w=`${s+f+a+n}`;return`${o+Bl(w).substring(1,r)}`},gd=Hl(),yd=(e,{minLength:t=2,maxLength:r=xr}={})=>{let n=e.length,i=/^[0-9a-z]+$/;try{if(typeof e=="string"&&n>=t&&n<=r&&i.test(e))return!0}finally{}return!1};Ge.exports.getConstants=()=>({defaultLength:$l,bigLength:xr});Ge.exports.init=Hl;Ge.exports.createId=gd;Ge.exports.bufToBigInt=ql;Ge.exports.createCounter=Ql;Ge.exports.createFingerprint=jl;Ge.exports.isCuid=yd});var Wl=oe((pN,Pr)=>{"use strict";c();u();p();m();d();l();var{createId:hd,init:wd,getConstants:bd,isCuid:Ed}=Gl();Pr.exports.createId=hd;Pr.exports.init=wd;Pr.exports.getConstants=bd;Pr.exports.isCuid=Ed});var vf={};ut(vf,{DMMF:()=>er,Debug:()=>J,Decimal:()=>re,Extensions:()=>pi,MetricsClient:()=>Ct,PrismaClientInitializationError:()=>U,PrismaClientKnownRequestError:()=>K,PrismaClientRustPanicError:()=>ae,PrismaClientUnknownRequestError:()=>se,PrismaClientValidationError:()=>ne,Public:()=>mi,Sql:()=>me,createParam:()=>ea,defineDmmfProperty:()=>sa,deserializeJsonResponse:()=>$e,deserializeRawResult:()=>ni,dmmfToRuntimeDataModel:()=>Os,empty:()=>ua,getPrismaClient:()=>nu,getRuntime:()=>kt,join:()=>ca,makeStrictEnum:()=>iu,makeTypedQueryFactory:()=>aa,objectEnumValues:()=>yn,raw:()=>_i,serializeJsonQuery:()=>Tn,skip:()=>Pn,sqltag:()=>Mi,warnEnvConflicts:()=>void 0,warnOnce:()=>Yt});module.exports=No(vf);c();u();p();m();d();l();var pi={};ut(pi,{defineExtension:()=>Wo,getExtensionContext:()=>Jo});c();u();p();m();d();l();c();u();p();m();d();l();function Wo(e){return typeof e=="function"?e:t=>t.$extends(e)}c();u();p();m();d();l();function Jo(e){return e}var mi={};ut(mi,{validator:()=>Ko});c();u();p();m();d();l();c();u();p();m();d();l();function Ko(...e){return t=>t}c();u();p();m();d();l();c();u();p();m();d();l();c();u();p();m();d();l();var di,zo,Yo,Zo,Xo=!0;typeof g<"u"&&({FORCE_COLOR:di,NODE_DISABLE_COLORS:zo,NO_COLOR:Yo,TERM:Zo}=g.env||{},Xo=g.stdout&&g.stdout.isTTY);var Tu={enabled:!zo&&Yo==null&&Zo!=="dumb"&&(di!=null&&di!=="0"||Xo)};function q(e,t){let r=new RegExp(`\\x1b\\[${t}m`,"g"),n=`\x1B[${e}m`,i=`\x1B[${t}m`;return function(o){return!Tu.enabled||o==null?o:n+(~(""+o).indexOf(i)?o.replace(r,i+n):o)+i}}var Pg=q(0,0),Yr=q(1,22),Zr=q(2,22),Tg=q(3,23),Xr=q(4,24),vg=q(7,27),Ag=q(8,28),Cg=q(9,29),Rg=q(30,39),dt=q(31,39),es=q(32,39),ts=q(33,39),rs=q(34,39),Sg=q(35,39),ns=q(36,39),Ig=q(37,39),is=q(90,39),kg=q(90,39),Og=q(40,49),Dg=q(41,49),_g=q(42,49),Mg=q(43,49),Lg=q(44,49),Ng=q(45,49),Ug=q(46,49),Fg=q(47,49);c();u();p();m();d();l();var vu=100,os=["green","yellow","blue","magenta","cyan","red"],Ht=[],ss=Date.now(),Au=0,fi=typeof g<"u"?g.env:{};globalThis.DEBUG??=fi.DEBUG??"";globalThis.DEBUG_COLORS??=fi.DEBUG_COLORS?fi.DEBUG_COLORS==="true":!0;var Gt={enable(e){typeof e=="string"&&(globalThis.DEBUG=e)},disable(){let e=globalThis.DEBUG;return globalThis.DEBUG="",e},enabled(e){let t=globalThis.DEBUG.split(",").map(i=>i.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),r=t.some(i=>i===""||i[0]==="-"?!1:e.match(RegExp(i.split("*").join(".*")+"$"))),n=t.some(i=>i===""||i[0]!=="-"?!1:e.match(RegExp(i.slice(1).split("*").join(".*")+"$")));return r&&!n},log:(...e)=>{let[t,r,...n]=e;(console.warn??console.log)(`${t} ${r}`,...n)},formatters:{}};function Cu(e){let t={color:os[Au++%os.length],enabled:Gt.enabled(e),namespace:e,log:Gt.log,extend:()=>{}},r=(...n)=>{let{enabled:i,namespace:o,color:s,log:a}=t;if(n.length!==0&&Ht.push([o,...n]),Ht.length>vu&&Ht.shift(),Gt.enabled(o)||i){let f=n.map(v=>typeof v=="string"?v:Ru(v)),w=`+${Date.now()-ss}ms`;ss=Date.now(),a(o,...f,w)}};return new Proxy(r,{get:(n,i)=>t[i],set:(n,i,o)=>t[i]=o})}var J=new Proxy(Cu,{get:(e,t)=>Gt[t],set:(e,t,r)=>Gt[t]=r});function Ru(e,t=2){let r=new Set;return JSON.stringify(e,(n,i)=>{if(typeof i=="object"&&i!==null){if(r.has(i))return"[Circular *]";r.add(i)}else if(typeof i=="bigint")return i.toString();return i},t)}function as(e=7500){let t=Ht.map(([r,...n])=>`${r} ${n.map(i=>typeof i=="string"?i:JSON.stringify(i)).join(" ")}`).join(` -`);return t.lengthep,info:()=>Xu,log:()=>Zu,query:()=>tp,should:()=>Ts,tags:()=>Kt,warn:()=>bi});c();u();p();m();d();l();var Kt={error:dt("prisma:error"),warn:ts("prisma:warn"),info:ns("prisma:info"),query:rs("prisma:query")},Ts={warn:()=>!g.env.PRISMA_DISABLE_WARNINGS};function Zu(...e){console.log(...e)}function bi(e,...t){Ts.warn()&&console.warn(`${Kt.warn} ${e}`,...t)}function Xu(e,...t){console.info(`${Kt.info} ${e}`,...t)}function ep(e,...t){console.error(`${Kt.error} ${e}`,...t)}function tp(e,...t){console.log(`${Kt.query} ${e}`,...t)}c();u();p();m();d();l();function xe(e,t){throw new Error(t)}c();u();p();m();d();l();function xi(e,t){return Object.prototype.hasOwnProperty.call(e,t)}c();u();p();m();d();l();function yt(e,t){let r={};for(let n of Object.keys(e))r[n]=t(e[n],n);return r}c();u();p();m();d();l();function Pi(e,t){if(e.length===0)return;let r=e[0];for(let n=1;n{Ss.has(e)||(Ss.add(e),bi(t,...r))};var U=class e extends Error{clientVersion;errorCode;retryable;constructor(t,r,n){super(t),this.name="PrismaClientInitializationError",this.clientVersion=r,this.errorCode=n,Error.captureStackTrace(e)}get[Symbol.toStringTag](){return"PrismaClientInitializationError"}};k(U,"PrismaClientInitializationError");c();u();p();m();d();l();var K=class extends Error{code;meta;clientVersion;batchRequestIdx;constructor(t,{code:r,clientVersion:n,meta:i,batchRequestIdx:o}){super(t),this.name="PrismaClientKnownRequestError",this.code=r,this.clientVersion=n,this.meta=i,Object.defineProperty(this,"batchRequestIdx",{value:o,enumerable:!1,writable:!0})}get[Symbol.toStringTag](){return"PrismaClientKnownRequestError"}};k(K,"PrismaClientKnownRequestError");c();u();p();m();d();l();var ae=class extends Error{clientVersion;constructor(t,r){super(t),this.name="PrismaClientRustPanicError",this.clientVersion=r}get[Symbol.toStringTag](){return"PrismaClientRustPanicError"}};k(ae,"PrismaClientRustPanicError");c();u();p();m();d();l();var se=class extends Error{clientVersion;batchRequestIdx;constructor(t,{clientVersion:r,batchRequestIdx:n}){super(t),this.name="PrismaClientUnknownRequestError",this.clientVersion=r,Object.defineProperty(this,"batchRequestIdx",{value:n,writable:!0,enumerable:!1})}get[Symbol.toStringTag](){return"PrismaClientUnknownRequestError"}};k(se,"PrismaClientUnknownRequestError");c();u();p();m();d();l();var ne=class extends Error{name="PrismaClientValidationError";clientVersion;constructor(t,{clientVersion:r}){super(t),this.clientVersion=r}get[Symbol.toStringTag](){return"PrismaClientValidationError"}};k(ne,"PrismaClientValidationError");c();u();p();m();d();l();l();function $e(e){return e===null?e:Array.isArray(e)?e.map($e):typeof e=="object"?np(e)?ip(e):e.constructor!==null&&e.constructor.name!=="Object"?e:yt(e,$e):e}function np(e){return e!==null&&typeof e=="object"&&typeof e.$type=="string"}function ip({$type:e,value:t}){switch(e){case"BigInt":return BigInt(t);case"Bytes":{let{buffer:r,byteOffset:n,byteLength:i}=y.from(t,"base64");return new Uint8Array(r,n,i)}case"DateTime":return new Date(t);case"Decimal":return new re(t);case"Json":return JSON.parse(t);default:xe(t,"Unknown tagged value")}}c();u();p();m();d();l();c();u();p();m();d();l();c();u();p();m();d();l();var Se=class{_map=new Map;get(t){return this._map.get(t)?.value}set(t,r){this._map.set(t,{value:r})}getOrCreate(t,r){let n=this._map.get(t);if(n)return n.value;let i=r();return this.set(t,i),i}};c();u();p();m();d();l();function qe(e){return e.substring(0,1).toLowerCase()+e.substring(1)}c();u();p();m();d();l();function ks(e,t){let r={};for(let n of e){let i=n[t];r[i]=n}return r}c();u();p();m();d();l();function Zt(e){let t;return{get(){return t||(t={value:e()}),t.value}}}c();u();p();m();d();l();function Os(e){return{models:Ti(e.models),enums:Ti(e.enums),types:Ti(e.types)}}function Ti(e){let t={};for(let{name:r,...n}of e)t[r]=n;return t}c();u();p();m();d();l();function ht(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function ln(e){return e.toString()!=="Invalid Date"}c();u();p();m();d();l();l();function wt(e){return T.isDecimal(e)?!0:e!==null&&typeof e=="object"&&typeof e.s=="number"&&typeof e.e=="number"&&typeof e.toFixed=="function"&&Array.isArray(e.d)}c();u();p();m();d();l();c();u();p();m();d();l();var er={};ut(er,{ModelAction:()=>Xt,datamodelEnumToSchemaEnum:()=>op});c();u();p();m();d();l();c();u();p();m();d();l();function op(e){return{name:e.name,values:e.values.map(t=>t.name)}}c();u();p();m();d();l();var Xt=($=>($.findUnique="findUnique",$.findUniqueOrThrow="findUniqueOrThrow",$.findFirst="findFirst",$.findFirstOrThrow="findFirstOrThrow",$.findMany="findMany",$.create="create",$.createMany="createMany",$.createManyAndReturn="createManyAndReturn",$.update="update",$.updateMany="updateMany",$.updateManyAndReturn="updateManyAndReturn",$.upsert="upsert",$.delete="delete",$.deleteMany="deleteMany",$.groupBy="groupBy",$.count="count",$.aggregate="aggregate",$.findRaw="findRaw",$.aggregateRaw="aggregateRaw",$))(Xt||{});var sp=Ae(Ps());var ap={red:dt,gray:is,dim:Zr,bold:Yr,underline:Xr,highlightSource:e=>e.highlight()},lp={red:e=>e,gray:e=>e,dim:e=>e,bold:e=>e,underline:e=>e,highlightSource:e=>e};function cp({message:e,originalMethod:t,isPanic:r,callArguments:n}){return{functionName:`prisma.${t}()`,message:e,isPanic:r??!1,callArguments:n}}function up({functionName:e,location:t,message:r,isPanic:n,contextLines:i,callArguments:o},s){let a=[""],f=t?" in":":";if(n?(a.push(s.red(`Oops, an unknown error occurred! This is ${s.bold("on us")}, you did nothing wrong.`)),a.push(s.red(`It occurred in the ${s.bold(`\`${e}\``)} invocation${f}`))):a.push(s.red(`Invalid ${s.bold(`\`${e}\``)} invocation${f}`)),t&&a.push(s.underline(pp(t))),i){a.push("");let w=[i.toString()];o&&(w.push(o),w.push(s.dim(")"))),a.push(w.join("")),o&&a.push("")}else a.push(""),o&&a.push(o),a.push("");return a.push(r),a.join(` -`)}function pp(e){let t=[e.fileName];return e.lineNumber&&t.push(String(e.lineNumber)),e.columnNumber&&t.push(String(e.columnNumber)),t.join(":")}function cn(e){let t=e.showColors?ap:lp,r;return typeof $getTemplateParameters<"u"?r=$getTemplateParameters(e,t):r=cp(e),up(r,t)}c();u();p();m();d();l();var $s=Ae(vi());c();u();p();m();d();l();function Ls(e,t,r){let n=Ns(e),i=mp(n),o=fp(i);o?un(o,t,r):t.addErrorMessage(()=>"Unknown error")}function Ns(e){return e.errors.flatMap(t=>t.kind==="Union"?Ns(t):[t])}function mp(e){let t=new Map,r=[];for(let n of e){if(n.kind!=="InvalidArgumentType"){r.push(n);continue}let i=`${n.selectionPath.join(".")}:${n.argumentPath.join(".")}`,o=t.get(i);o?t.set(i,{...n,argument:{...n.argument,typeNames:dp(o.argument.typeNames,n.argument.typeNames)}}):t.set(i,n)}return r.push(...t.values()),r}function dp(e,t){return[...new Set(e.concat(t))]}function fp(e){return Pi(e,(t,r)=>{let n=_s(t),i=_s(r);return n!==i?n-i:Ms(t)-Ms(r)})}function _s(e){let t=0;return Array.isArray(e.selectionPath)&&(t+=e.selectionPath.length),Array.isArray(e.argumentPath)&&(t+=e.argumentPath.length),t}function Ms(e){switch(e.kind){case"InvalidArgumentValue":case"ValueTooLarge":return 20;case"InvalidArgumentType":return 10;case"RequiredArgumentMissing":return-10;default:return 0}}c();u();p();m();d();l();var ye=class{constructor(t,r){this.name=t;this.value=r}isRequired=!1;makeRequired(){return this.isRequired=!0,this}write(t){let{colors:{green:r}}=t.context;t.addMarginSymbol(r(this.isRequired?"+":"?")),t.write(r(this.name)),this.isRequired||t.write(r("?")),t.write(r(": ")),typeof this.value=="string"?t.write(r(this.value)):t.write(this.value)}};c();u();p();m();d();l();c();u();p();m();d();l();Fs();c();u();p();m();d();l();var bt=class{constructor(t=0,r){this.context=r;this.currentIndent=t}lines=[];currentLine="";currentIndent=0;marginSymbol;afterNextNewLineCallback;write(t){return typeof t=="string"?this.currentLine+=t:t.write(this),this}writeJoined(t,r,n=(i,o)=>o.write(i)){let i=r.length-1;for(let o=0;o0&&this.currentIndent--,this}addMarginSymbol(t){return this.marginSymbol=t,this}toString(){return this.lines.concat(this.indentedCurrentLine()).join(` -`)}getCurrentLineLength(){return this.currentLine.length}indentedCurrentLine(){let t=this.currentLine.padStart(this.currentLine.length+2*this.currentIndent);return this.marginSymbol?this.marginSymbol+t.slice(1):t}};Us();c();u();p();m();d();l();c();u();p();m();d();l();var pn=class{constructor(t){this.value=t}write(t){t.write(this.value)}markAsError(){this.value.markAsError()}};c();u();p();m();d();l();var mn=e=>e,dn={bold:mn,red:mn,green:mn,dim:mn,enabled:!1},Vs={bold:Yr,red:dt,green:es,dim:Zr,enabled:!0},Et={write(e){e.writeLine(",")}};c();u();p();m();d();l();var Ie=class{constructor(t){this.contents=t}isUnderlined=!1;color=t=>t;underline(){return this.isUnderlined=!0,this}setColor(t){return this.color=t,this}write(t){let r=t.getCurrentLineLength();t.write(this.color(this.contents)),this.isUnderlined&&t.afterNextNewline(()=>{t.write(" ".repeat(r)).writeLine(this.color("~".repeat(this.contents.length)))})}};c();u();p();m();d();l();var Be=class{hasError=!1;markAsError(){return this.hasError=!0,this}};var xt=class extends Be{items=[];addItem(t){return this.items.push(new pn(t)),this}getField(t){return this.items[t]}getPrintWidth(){return this.items.length===0?2:Math.max(...this.items.map(r=>r.value.getPrintWidth()))+2}write(t){if(this.items.length===0){this.writeEmpty(t);return}this.writeWithItems(t)}writeEmpty(t){let r=new Ie("[]");this.hasError&&r.setColor(t.context.colors.red).underline(),t.write(r)}writeWithItems(t){let{colors:r}=t.context;t.writeLine("[").withIndent(()=>t.writeJoined(Et,this.items).newLine()).write("]"),this.hasError&&t.afterNextNewline(()=>{t.writeLine(r.red("~".repeat(this.getPrintWidth())))})}asObject(){}};var Pt=class e extends Be{fields={};suggestions=[];addField(t){this.fields[t.name]=t}addSuggestion(t){this.suggestions.push(t)}getField(t){return this.fields[t]}getDeepField(t){let[r,...n]=t,i=this.getField(r);if(!i)return;let o=i;for(let s of n){let a;if(o.value instanceof e?a=o.value.getField(s):o.value instanceof xt&&(a=o.value.getField(Number(s))),!a)return;o=a}return o}getDeepFieldValue(t){return t.length===0?this:this.getDeepField(t)?.value}hasField(t){return!!this.getField(t)}removeAllFields(){this.fields={}}removeField(t){delete this.fields[t]}getFields(){return this.fields}isEmpty(){return Object.keys(this.fields).length===0}getFieldValue(t){return this.getField(t)?.value}getDeepSubSelectionValue(t){let r=this;for(let n of t){if(!(r instanceof e))return;let i=r.getSubSelectionValue(n);if(!i)return;r=i}return r}getDeepSelectionParent(t){let r=this.getSelectionParent();if(!r)return;let n=r;for(let i of t){let o=n.value.getFieldValue(i);if(!o||!(o instanceof e))return;let s=o.getSelectionParent();if(!s)return;n=s}return n}getSelectionParent(){let t=this.getField("select")?.value.asObject();if(t)return{kind:"select",value:t};let r=this.getField("include")?.value.asObject();if(r)return{kind:"include",value:r}}getSubSelectionValue(t){return this.getSelectionParent()?.value.fields[t].value}getPrintWidth(){let t=Object.values(this.fields);return t.length==0?2:Math.max(...t.map(n=>n.getPrintWidth()))+2}write(t){let r=Object.values(this.fields);if(r.length===0&&this.suggestions.length===0){this.writeEmpty(t);return}this.writeWithContents(t,r)}asObject(){return this}writeEmpty(t){let r=new Ie("{}");this.hasError&&r.setColor(t.context.colors.red).underline(),t.write(r)}writeWithContents(t,r){t.writeLine("{").withIndent(()=>{t.writeJoined(Et,[...r,...this.suggestions]).newLine()}),t.write("}"),this.hasError&&t.afterNextNewline(()=>{t.writeLine(t.context.colors.red("~".repeat(this.getPrintWidth())))})}};c();u();p();m();d();l();var te=class extends Be{constructor(r){super();this.text=r}getPrintWidth(){return this.text.length}write(r){let n=new Ie(this.text);this.hasError&&n.underline().setColor(r.context.colors.red),r.write(n)}asObject(){}};c();u();p();m();d();l();var tr=class{fields=[];addField(t,r){return this.fields.push({write(n){let{green:i,dim:o}=n.context.colors;n.write(i(o(`${t}: ${r}`))).addMarginSymbol(i(o("+")))}}),this}write(t){let{colors:{green:r}}=t.context;t.writeLine(r("{")).withIndent(()=>{t.writeJoined(Et,this.fields).newLine()}).write(r("}")).addMarginSymbol(r("+"))}};function un(e,t,r){switch(e.kind){case"MutuallyExclusiveFields":gp(e,t);break;case"IncludeOnScalar":yp(e,t);break;case"EmptySelection":hp(e,t,r);break;case"UnknownSelectionField":xp(e,t);break;case"InvalidSelectionValue":Pp(e,t);break;case"UnknownArgument":Tp(e,t);break;case"UnknownInputField":vp(e,t);break;case"RequiredArgumentMissing":Ap(e,t);break;case"InvalidArgumentType":Cp(e,t);break;case"InvalidArgumentValue":Rp(e,t);break;case"ValueTooLarge":Sp(e,t);break;case"SomeFieldsMissing":Ip(e,t);break;case"TooManyFieldsGiven":kp(e,t);break;case"Union":Ls(e,t,r);break;default:throw new Error("not implemented: "+e.kind)}}function gp(e,t){let r=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();r&&(r.getField(e.firstField)?.markAsError(),r.getField(e.secondField)?.markAsError()),t.addErrorMessage(n=>`Please ${n.bold("either")} use ${n.green(`\`${e.firstField}\``)} or ${n.green(`\`${e.secondField}\``)}, but ${n.red("not both")} at the same time.`)}function yp(e,t){let[r,n]=rr(e.selectionPath),i=e.outputType,o=t.arguments.getDeepSelectionParent(r)?.value;if(o&&(o.getField(n)?.markAsError(),i))for(let s of i.fields)s.isRelation&&o.addSuggestion(new ye(s.name,"true"));t.addErrorMessage(s=>{let a=`Invalid scalar field ${s.red(`\`${n}\``)} for ${s.bold("include")} statement`;return i?a+=` on model ${s.bold(i.name)}. ${nr(s)}`:a+=".",a+=` -Note that ${s.bold("include")} statements only accept relation fields.`,a})}function hp(e,t,r){let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getField("omit")?.value.asObject();if(i){wp(e,t,i);return}if(n.hasField("select")){bp(e,t);return}}if(r?.[qe(e.outputType.name)]){Ep(e,t);return}t.addErrorMessage(()=>`Unknown field at "${e.selectionPath.join(".")} selection"`)}function wp(e,t,r){r.removeAllFields();for(let n of e.outputType.fields)r.addSuggestion(new ye(n.name,"false"));t.addErrorMessage(n=>`The ${n.red("omit")} statement includes every field of the model ${n.bold(e.outputType.name)}. At least one field must be included in the result`)}function bp(e,t){let r=e.outputType,n=t.arguments.getDeepSelectionParent(e.selectionPath)?.value,i=n?.isEmpty()??!1;n&&(n.removeAllFields(),js(n,r)),t.addErrorMessage(o=>i?`The ${o.red("`select`")} statement for type ${o.bold(r.name)} must not be empty. ${nr(o)}`:`The ${o.red("`select`")} statement for type ${o.bold(r.name)} needs ${o.bold("at least one truthy value")}.`)}function Ep(e,t){let r=new tr;for(let i of e.outputType.fields)i.isRelation||r.addField(i.name,"false");let n=new ye("omit",r).makeRequired();if(e.selectionPath.length===0)t.arguments.addSuggestion(n);else{let[i,o]=rr(e.selectionPath),a=t.arguments.getDeepSelectionParent(i)?.value.asObject()?.getField(o);if(a){let f=a?.value.asObject()??new Pt;f.addSuggestion(n),a.value=f}}t.addErrorMessage(i=>`The global ${i.red("omit")} configuration excludes every field of the model ${i.bold(e.outputType.name)}. At least one field must be included in the result`)}function xp(e,t){let r=Qs(e.selectionPath,t);if(r.parentKind!=="unknown"){r.field.markAsError();let n=r.parent;switch(r.parentKind){case"select":js(n,e.outputType);break;case"include":Op(n,e.outputType);break;case"omit":Dp(n,e.outputType);break}}t.addErrorMessage(n=>{let i=[`Unknown field ${n.red(`\`${r.fieldName}\``)}`];return r.parentKind!=="unknown"&&i.push(`for ${n.bold(r.parentKind)} statement`),i.push(`on model ${n.bold(`\`${e.outputType.name}\``)}.`),i.push(nr(n)),i.join(" ")})}function Pp(e,t){let r=Qs(e.selectionPath,t);r.parentKind!=="unknown"&&r.field.value.markAsError(),t.addErrorMessage(n=>`Invalid value for selection field \`${n.red(r.fieldName)}\`: ${e.underlyingError}`)}function Tp(e,t){let r=e.argumentPath[0],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&(n.getField(r)?.markAsError(),_p(n,e.arguments)),t.addErrorMessage(i=>qs(i,r,e.arguments.map(o=>o.name)))}function vp(e,t){let[r,n]=rr(e.argumentPath),i=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(i){i.getDeepField(e.argumentPath)?.markAsError();let o=i.getDeepFieldValue(r)?.asObject();o&&Hs(o,e.inputType)}t.addErrorMessage(o=>qs(o,n,e.inputType.fields.map(s=>s.name)))}function qs(e,t,r){let n=[`Unknown argument \`${e.red(t)}\`.`],i=Lp(t,r);return i&&n.push(`Did you mean \`${e.green(i)}\`?`),r.length>0&&n.push(nr(e)),n.join(" ")}function Ap(e,t){let r;t.addErrorMessage(f=>r?.value instanceof te&&r.value.text==="null"?`Argument \`${f.green(o)}\` must not be ${f.red("null")}.`:`Argument \`${f.green(o)}\` is missing.`);let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(!n)return;let[i,o]=rr(e.argumentPath),s=new tr,a=n.getDeepFieldValue(i)?.asObject();if(a)if(r=a.getField(o),r&&a.removeField(o),e.inputTypes.length===1&&e.inputTypes[0].kind==="object"){for(let f of e.inputTypes[0].fields)s.addField(f.name,f.typeNames.join(" | "));a.addSuggestion(new ye(o,s).makeRequired())}else{let f=e.inputTypes.map(Bs).join(" | ");a.addSuggestion(new ye(o,f).makeRequired())}}function Bs(e){return e.kind==="list"?`${Bs(e.elementType)}[]`:e.name}function Cp(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=fn("or",e.argument.typeNames.map(s=>i.green(s)));return`Argument \`${i.bold(r)}\`: Invalid value provided. Expected ${o}, provided ${i.red(e.inferredType)}.`})}function Rp(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=[`Invalid value for argument \`${i.bold(r)}\``];if(e.underlyingError&&o.push(`: ${e.underlyingError}`),o.push("."),e.argument.typeNames.length>0){let s=fn("or",e.argument.typeNames.map(a=>i.green(a)));o.push(` Expected ${s}.`)}return o.join("")})}function Sp(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i;if(n){let s=n.getDeepField(e.argumentPath)?.value;s?.markAsError(),s instanceof te&&(i=s.text)}t.addErrorMessage(o=>{let s=["Unable to fit value"];return i&&s.push(o.red(i)),s.push(`into a 64-bit signed integer for field \`${o.bold(r)}\``),s.join(" ")})}function Ip(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getDeepFieldValue(e.argumentPath)?.asObject();i&&Hs(i,e.inputType)}t.addErrorMessage(i=>{let o=[`Argument \`${i.bold(r)}\` of type ${i.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1?e.constraints.requiredFields?o.push(`${i.green("at least one of")} ${fn("or",e.constraints.requiredFields.map(s=>`\`${i.bold(s)}\``))} arguments.`):o.push(`${i.green("at least one")} argument.`):o.push(`${i.green(`at least ${e.constraints.minFieldCount}`)} arguments.`),o.push(nr(i)),o.join(" ")})}function kp(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i=[];if(n){let o=n.getDeepFieldValue(e.argumentPath)?.asObject();o&&(o.markAsError(),i=Object.keys(o.getFields()))}t.addErrorMessage(o=>{let s=[`Argument \`${o.bold(r)}\` of type ${o.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1&&e.constraints.maxFieldCount==1?s.push(`${o.green("exactly one")} argument,`):e.constraints.maxFieldCount==1?s.push(`${o.green("at most one")} argument,`):s.push(`${o.green(`at most ${e.constraints.maxFieldCount}`)} arguments,`),s.push(`but you provided ${fn("and",i.map(a=>o.red(a)))}. Please choose`),e.constraints.maxFieldCount===1?s.push("one."):s.push(`${e.constraints.maxFieldCount}.`),s.join(" ")})}function js(e,t){for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new ye(r.name,"true"))}function Op(e,t){for(let r of t.fields)r.isRelation&&!e.hasField(r.name)&&e.addSuggestion(new ye(r.name,"true"))}function Dp(e,t){for(let r of t.fields)!e.hasField(r.name)&&!r.isRelation&&e.addSuggestion(new ye(r.name,"true"))}function _p(e,t){for(let r of t)e.hasField(r.name)||e.addSuggestion(new ye(r.name,r.typeNames.join(" | ")))}function Qs(e,t){let[r,n]=rr(e),i=t.arguments.getDeepSubSelectionValue(r)?.asObject();if(!i)return{parentKind:"unknown",fieldName:n};let o=i.getFieldValue("select")?.asObject(),s=i.getFieldValue("include")?.asObject(),a=i.getFieldValue("omit")?.asObject(),f=o?.getField(n);return o&&f?{parentKind:"select",parent:o,field:f,fieldName:n}:(f=s?.getField(n),s&&f?{parentKind:"include",field:f,parent:s,fieldName:n}:(f=a?.getField(n),a&&f?{parentKind:"omit",field:f,parent:a,fieldName:n}:{parentKind:"unknown",fieldName:n}))}function Hs(e,t){if(t.kind==="object")for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new ye(r.name,r.typeNames.join(" | ")))}function rr(e){let t=[...e],r=t.pop();if(!r)throw new Error("unexpected empty path");return[t,r]}function nr({green:e,enabled:t}){return"Available options are "+(t?`listed in ${e("green")}`:"marked with ?")+"."}function fn(e,t){if(t.length===1)return t[0];let r=[...t],n=r.pop();return`${r.join(", ")} ${e} ${n}`}var Mp=3;function Lp(e,t){let r=1/0,n;for(let i of t){let o=(0,$s.default)(e,i);o>Mp||o`}};function Tt(e){return e instanceof ir}c();u();p();m();d();l();var gn=Symbol(),Ci=new WeakMap,Le=class{constructor(t){t===gn?Ci.set(this,`Prisma.${this._getName()}`):Ci.set(this,`new Prisma.${this._getNamespace()}.${this._getName()}()`)}_getName(){return this.constructor.name}toString(){return Ci.get(this)}},or=class extends Le{_getNamespace(){return"NullTypes"}},sr=class extends or{#e};Ri(sr,"DbNull");var ar=class extends or{#e};Ri(ar,"JsonNull");var lr=class extends or{#e};Ri(lr,"AnyNull");var yn={classes:{DbNull:sr,JsonNull:ar,AnyNull:lr},instances:{DbNull:new sr(gn),JsonNull:new ar(gn),AnyNull:new lr(gn)}};function Ri(e,t){Object.defineProperty(e,"name",{value:t,configurable:!0})}c();u();p();m();d();l();var Gs=": ",hn=class{constructor(t,r){this.name=t;this.value=r}hasError=!1;markAsError(){this.hasError=!0}getPrintWidth(){return this.name.length+this.value.getPrintWidth()+Gs.length}write(t){let r=new Ie(this.name);this.hasError&&r.underline().setColor(t.context.colors.red),t.write(r).write(Gs).write(this.value)}};var Si=class{arguments;errorMessages=[];constructor(t){this.arguments=t}write(t){t.write(this.arguments)}addErrorMessage(t){this.errorMessages.push(t)}renderAllMessages(t){return this.errorMessages.map(r=>r(t)).join(` -`)}};function vt(e){return new Si(Ws(e))}function Ws(e){let t=new Pt;for(let[r,n]of Object.entries(e)){let i=new hn(r,Js(n));t.addField(i)}return t}function Js(e){if(typeof e=="string")return new te(JSON.stringify(e));if(typeof e=="number"||typeof e=="boolean")return new te(String(e));if(typeof e=="bigint")return new te(`${e}n`);if(e===null)return new te("null");if(e===void 0)return new te("undefined");if(wt(e))return new te(`new Prisma.Decimal("${e.toFixed()}")`);if(e instanceof Uint8Array)return y.isBuffer(e)?new te(`Buffer.alloc(${e.byteLength})`):new te(`new Uint8Array(${e.byteLength})`);if(e instanceof Date){let t=ln(e)?e.toISOString():"Invalid Date";return new te(`new Date("${t}")`)}return e instanceof Le?new te(`Prisma.${e._getName()}`):Tt(e)?new te(`prisma.${qe(e.modelName)}.$fields.${e.name}`):Array.isArray(e)?Np(e):typeof e=="object"?Ws(e):new te(Object.prototype.toString.call(e))}function Np(e){let t=new xt;for(let r of e)t.addItem(Js(r));return t}function wn(e,t){let r=t==="pretty"?Vs:dn,n=e.renderAllMessages(r),i=new bt(0,{colors:r}).write(e).toString();return{message:n,args:i}}function bn({args:e,errors:t,errorFormat:r,callsite:n,originalMethod:i,clientVersion:o,globalOmit:s}){let a=vt(e);for(let A of t)un(A,a,s);let{message:f,args:w}=wn(a,r),v=cn({message:f,callsite:n,originalMethod:i,showColors:r==="pretty",callArguments:w});throw new ne(v,{clientVersion:o})}c();u();p();m();d();l();c();u();p();m();d();l();function ke(e){return e.replace(/^./,t=>t.toLowerCase())}c();u();p();m();d();l();function zs(e,t,r){let n=ke(r);return!t.result||!(t.result.$allModels||t.result[n])?e:Up({...e,...Ks(t.name,e,t.result.$allModels),...Ks(t.name,e,t.result[n])})}function Up(e){let t=new Se,r=(n,i)=>t.getOrCreate(n,()=>i.has(n)?[n]:(i.add(n),e[n]?e[n].needs.flatMap(o=>r(o,i)):[n]));return yt(e,n=>({...n,needs:r(n.name,new Set)}))}function Ks(e,t,r){return r?yt(r,({needs:n,compute:i},o)=>({name:o,needs:n?Object.keys(n).filter(s=>n[s]):[],compute:Fp(t,o,i)})):{}}function Fp(e,t,r){let n=e?.[t]?.compute;return n?i=>r({...i,[t]:n(i)}):r}function Ys(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(e[n.name])for(let i of n.needs)r[i]=!0;return r}function Zs(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(!e[n.name])for(let i of n.needs)delete r[i];return r}var En=class{constructor(t,r){this.extension=t;this.previous=r}computedFieldsCache=new Se;modelExtensionsCache=new Se;queryCallbacksCache=new Se;clientExtensions=Zt(()=>this.extension.client?{...this.previous?.getAllClientExtensions(),...this.extension.client}:this.previous?.getAllClientExtensions());batchCallbacks=Zt(()=>{let t=this.previous?.getAllBatchQueryCallbacks()??[],r=this.extension.query?.$__internalBatch;return r?t.concat(r):t});getAllComputedFields(t){return this.computedFieldsCache.getOrCreate(t,()=>zs(this.previous?.getAllComputedFields(t),this.extension,t))}getAllClientExtensions(){return this.clientExtensions.get()}getAllModelExtensions(t){return this.modelExtensionsCache.getOrCreate(t,()=>{let r=ke(t);return!this.extension.model||!(this.extension.model[r]||this.extension.model.$allModels)?this.previous?.getAllModelExtensions(t):{...this.previous?.getAllModelExtensions(t),...this.extension.model.$allModels,...this.extension.model[r]}})}getAllQueryCallbacks(t,r){return this.queryCallbacksCache.getOrCreate(`${t}:${r}`,()=>{let n=this.previous?.getAllQueryCallbacks(t,r)??[],i=[],o=this.extension.query;return!o||!(o[t]||o.$allModels||o[r]||o.$allOperations)?n:(o[t]!==void 0&&(o[t][r]!==void 0&&i.push(o[t][r]),o[t].$allOperations!==void 0&&i.push(o[t].$allOperations)),t!=="$none"&&o.$allModels!==void 0&&(o.$allModels[r]!==void 0&&i.push(o.$allModels[r]),o.$allModels.$allOperations!==void 0&&i.push(o.$allModels.$allOperations)),o[r]!==void 0&&i.push(o[r]),o.$allOperations!==void 0&&i.push(o.$allOperations),n.concat(i))})}getAllBatchQueryCallbacks(){return this.batchCallbacks.get()}},At=class e{constructor(t){this.head=t}static empty(){return new e}static single(t){return new e(new En(t))}isEmpty(){return this.head===void 0}append(t){return new e(new En(t,this.head))}getAllComputedFields(t){return this.head?.getAllComputedFields(t)}getAllClientExtensions(){return this.head?.getAllClientExtensions()}getAllModelExtensions(t){return this.head?.getAllModelExtensions(t)}getAllQueryCallbacks(t,r){return this.head?.getAllQueryCallbacks(t,r)??[]}getAllBatchQueryCallbacks(){return this.head?.getAllBatchQueryCallbacks()??[]}};c();u();p();m();d();l();var xn=class{constructor(t){this.name=t}};function Xs(e){return e instanceof xn}function ea(e){return new xn(e)}c();u();p();m();d();l();c();u();p();m();d();l();var ta=Symbol(),cr=class{constructor(t){if(t!==ta)throw new Error("Skip instance can not be constructed directly")}ifUndefined(t){return t===void 0?Pn:t}},Pn=new cr(ta);function Oe(e){return e instanceof cr}var Vp={findUnique:"findUnique",findUniqueOrThrow:"findUniqueOrThrow",findFirst:"findFirst",findFirstOrThrow:"findFirstOrThrow",findMany:"findMany",count:"aggregate",create:"createOne",createMany:"createMany",createManyAndReturn:"createManyAndReturn",update:"updateOne",updateMany:"updateMany",updateManyAndReturn:"updateManyAndReturn",upsert:"upsertOne",delete:"deleteOne",deleteMany:"deleteMany",executeRaw:"executeRaw",queryRaw:"queryRaw",aggregate:"aggregate",groupBy:"groupBy",runCommandRaw:"runCommandRaw",findRaw:"findRaw",aggregateRaw:"aggregateRaw"},ra="explicitly `undefined` values are not allowed";function Tn({modelName:e,action:t,args:r,runtimeDataModel:n,extensions:i=At.empty(),callsite:o,clientMethod:s,errorFormat:a,clientVersion:f,previewFeatures:w,globalOmit:v}){let A=new Ii({runtimeDataModel:n,modelName:e,action:t,rootArgs:r,callsite:o,extensions:i,selectionPath:[],argumentPath:[],originalMethod:s,errorFormat:a,clientVersion:f,previewFeatures:w,globalOmit:v});return{modelName:e,action:Vp[t],query:ur(r,A)}}function ur({select:e,include:t,...r}={},n){let i=r.omit;return delete r.omit,{arguments:ia(r,n),selection:$p(e,t,i,n)}}function $p(e,t,r,n){return e?(t?n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"include",secondField:"select",selectionPath:n.getSelectionPath()}):r&&n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"omit",secondField:"select",selectionPath:n.getSelectionPath()}),Qp(e,n)):qp(n,t,r)}function qp(e,t,r){let n={};return e.modelOrType&&!e.isRawAction()&&(n.$composites=!0,n.$scalars=!0),t&&Bp(n,t,e),jp(n,r,e),n}function Bp(e,t,r){for(let[n,i]of Object.entries(t)){if(Oe(i))continue;let o=r.nestSelection(n);if(ki(i,o),i===!1||i===void 0){e[n]=!1;continue}let s=r.findField(n);if(s&&s.kind!=="object"&&r.throwValidationError({kind:"IncludeOnScalar",selectionPath:r.getSelectionPath().concat(n),outputType:r.getOutputTypeDescription()}),s){e[n]=ur(i===!0?{}:i,o);continue}if(i===!0){e[n]=!0;continue}e[n]=ur(i,o)}}function jp(e,t,r){let n=r.getComputedFields(),i={...r.getGlobalOmit(),...t},o=Zs(i,n);for(let[s,a]of Object.entries(o)){if(Oe(a))continue;ki(a,r.nestSelection(s));let f=r.findField(s);n?.[s]&&!f||(e[s]=!a)}}function Qp(e,t){let r={},n=t.getComputedFields(),i=Ys(e,n);for(let[o,s]of Object.entries(i)){if(Oe(s))continue;let a=t.nestSelection(o);ki(s,a);let f=t.findField(o);if(!(n?.[o]&&!f)){if(s===!1||s===void 0||Oe(s)){r[o]=!1;continue}if(s===!0){f?.kind==="object"?r[o]=ur({},a):r[o]=!0;continue}r[o]=ur(s,a)}}return r}function na(e,t){if(e===null)return null;if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="bigint")return{$type:"BigInt",value:String(e)};if(ht(e)){if(ln(e))return{$type:"DateTime",value:e.toISOString()};t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:["Date"]},underlyingError:"Provided Date object is invalid"})}if(Xs(e))return{$type:"Param",value:e.name};if(Tt(e))return{$type:"FieldRef",value:{_ref:e.name,_container:e.modelName}};if(Array.isArray(e))return Hp(e,t);if(ArrayBuffer.isView(e)){let{buffer:r,byteOffset:n,byteLength:i}=e;return{$type:"Bytes",value:y.from(r,n,i).toString("base64")}}if(Gp(e))return e.values;if(wt(e))return{$type:"Decimal",value:e.toFixed()};if(e instanceof Le){if(e!==yn.instances[e._getName()])throw new Error("Invalid ObjectEnumValue");return{$type:"Enum",value:e._getName()}}if(Wp(e))return e.toJSON();if(typeof e=="object")return ia(e,t);t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:`We could not serialize ${Object.prototype.toString.call(e)} value. Serialize the object to JSON or implement a ".toJSON()" method on it`})}function ia(e,t){if(e.$type)return{$type:"Raw",value:e};let r={};for(let n in e){let i=e[n],o=t.nestArgument(n);Oe(i)||(i!==void 0?r[n]=na(i,o):t.isPreviewFeatureOn("strictUndefinedChecks")&&t.throwValidationError({kind:"InvalidArgumentValue",argumentPath:o.getArgumentPath(),selectionPath:t.getSelectionPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:ra}))}return r}function Hp(e,t){let r=[];for(let n=0;n({name:t.name,typeName:"boolean",isRelation:t.kind==="object"}))}}isRawAction(){return["executeRaw","queryRaw","runCommandRaw","findRaw","aggregateRaw"].includes(this.params.action)}isPreviewFeatureOn(t){return this.params.previewFeatures.includes(t)}getComputedFields(){if(this.params.modelName)return this.params.extensions.getAllComputedFields(this.params.modelName)}findField(t){return this.modelOrType?.fields.find(r=>r.name===t)}nestSelection(t){let r=this.findField(t),n=r?.kind==="object"?r.type:void 0;return new e({...this.params,modelName:n,selectionPath:this.params.selectionPath.concat(t)})}getGlobalOmit(){return this.params.modelName&&this.shouldApplyGlobalOmit()?this.params.globalOmit?.[qe(this.params.modelName)]??{}:{}}shouldApplyGlobalOmit(){switch(this.params.action){case"findFirst":case"findFirstOrThrow":case"findUniqueOrThrow":case"findMany":case"upsert":case"findUnique":case"createManyAndReturn":case"create":case"update":case"updateManyAndReturn":case"delete":return!0;case"executeRaw":case"aggregateRaw":case"runCommandRaw":case"findRaw":case"createMany":case"deleteMany":case"groupBy":case"updateMany":case"count":case"aggregate":case"queryRaw":return!1;default:xe(this.params.action,"Unknown action")}}nestArgument(t){return new e({...this.params,argumentPath:this.params.argumentPath.concat(t)})}};c();u();p();m();d();l();function oa(e){if(!e._hasPreviewFlag("metrics"))throw new ne("`metrics` preview feature must be enabled in order to access metrics API",{clientVersion:e._clientVersion})}var Ct=class{_client;constructor(t){this._client=t}prometheus(t){return oa(this._client),this._client._engine.metrics({format:"prometheus",...t})}json(t){return oa(this._client),this._client._engine.metrics({format:"json",...t})}};c();u();p();m();d();l();function sa(e,t){let r=Zt(()=>Jp(t));Object.defineProperty(e,"dmmf",{get:()=>r.get()})}function Jp(e){throw new Error("Prisma.dmmf is not available when running in edge runtimes.")}function Oi(e){return Object.entries(e).map(([t,r])=>({name:t,...r}))}c();u();p();m();d();l();var Di=new WeakMap,vn="$$PrismaTypedSql",pr=class{constructor(t,r){Di.set(this,{sql:t,values:r}),Object.defineProperty(this,vn,{value:vn})}get sql(){return Di.get(this).sql}get values(){return Di.get(this).values}};function aa(e){return(...t)=>new pr(e,t)}function An(e){return e!=null&&e[vn]===vn}c();u();p();m();d();l();var ru=Ae(hi());c();u();p();m();d();l();la();ps();ys();c();u();p();m();d();l();var me=class e{constructor(t,r){if(t.length-1!==r.length)throw t.length===0?new TypeError("Expected at least 1 string"):new TypeError(`Expected ${t.length} strings to have ${t.length-1} values`);let n=r.reduce((s,a)=>s+(a instanceof e?a.values.length:1),0);this.values=new Array(n),this.strings=new Array(n+1),this.strings[0]=t[0];let i=0,o=0;for(;ie.getPropertyValue(r))},getPropertyDescriptor(r){return e.getPropertyDescriptor?.(r)}}}c();u();p();m();d();l();c();u();p();m();d();l();var Rn={enumerable:!0,configurable:!0,writable:!0};function Sn(e){let t=new Set(e);return{getPrototypeOf:()=>Object.prototype,getOwnPropertyDescriptor:()=>Rn,has:(r,n)=>t.has(n),set:(r,n,i)=>t.add(n)&&Reflect.set(r,n,i),ownKeys:()=>[...t]}}var pa=Symbol.for("nodejs.util.inspect.custom");function Pe(e,t){let r=Kp(t),n=new Set,i=new Proxy(e,{get(o,s){if(n.has(s))return o[s];let a=r.get(s);return a?a.getPropertyValue(s):o[s]},has(o,s){if(n.has(s))return!0;let a=r.get(s);return a?a.has?.(s)??!0:Reflect.has(o,s)},ownKeys(o){let s=ma(Reflect.ownKeys(o),r),a=ma(Array.from(r.keys()),r);return[...new Set([...s,...a,...n])]},set(o,s,a){return r.get(s)?.getPropertyDescriptor?.(s)?.writable===!1?!1:(n.add(s),Reflect.set(o,s,a))},getOwnPropertyDescriptor(o,s){let a=Reflect.getOwnPropertyDescriptor(o,s);if(a&&!a.configurable)return a;let f=r.get(s);return f?f.getPropertyDescriptor?{...Rn,...f?.getPropertyDescriptor(s)}:Rn:a},defineProperty(o,s,a){return n.add(s),Reflect.defineProperty(o,s,a)},getPrototypeOf:()=>Object.prototype});return i[pa]=function(){let o={...this};return delete o[pa],o},i}function Kp(e){let t=new Map;for(let r of e){let n=r.getKeys();for(let i of n)t.set(i,r)}return t}function ma(e,t){return e.filter(r=>t.get(r)?.has?.(r)??!0)}c();u();p();m();d();l();function Rt(e){return{getKeys(){return e},has(){return!1},getPropertyValue(){}}}c();u();p();m();d();l();function St(e,t){return{batch:e,transaction:t?.kind==="batch"?{isolationLevel:t.options.isolationLevel}:void 0}}c();u();p();m();d();l();function da(e){if(e===void 0)return"";let t=vt(e);return new bt(0,{colors:dn}).write(t).toString()}c();u();p();m();d();l();var zp="P2037";function In({error:e,user_facing_error:t},r,n){return t.error_code?new K(Yp(t,n),{code:t.error_code,clientVersion:r,meta:t.meta,batchRequestIdx:t.batch_request_idx}):new se(e,{clientVersion:r,batchRequestIdx:t.batch_request_idx})}function Yp(e,t){let r=e.message;return(t==="postgresql"||t==="postgres"||t==="mysql")&&e.error_code===zp&&(r+=` -Prisma Accelerate has built-in connection pooling to prevent such errors: https://pris.ly/client/error-accelerate`),r}c();u();p();m();d();l();c();u();p();m();d();l();c();u();p();m();d();l();c();u();p();m();d();l();c();u();p();m();d();l();var Li=class{getLocation(){return null}};function je(e){return typeof $EnabledCallSite=="function"&&e!=="minimal"?new $EnabledCallSite:new Li}c();u();p();m();d();l();c();u();p();m();d();l();c();u();p();m();d();l();var fa={_avg:!0,_count:!0,_sum:!0,_min:!0,_max:!0};function It(e={}){let t=Xp(e);return Object.entries(t).reduce((n,[i,o])=>(fa[i]!==void 0?n.select[i]={select:o}:n[i]=o,n),{select:{}})}function Xp(e={}){return typeof e._count=="boolean"?{...e,_count:{_all:e._count}}:e}function kn(e={}){return t=>(typeof e._count=="boolean"&&(t._count=t._count._all),t)}function ga(e,t){let r=kn(e);return t({action:"aggregate",unpacker:r,argsMapper:It})(e)}c();u();p();m();d();l();function em(e={}){let{select:t,...r}=e;return typeof t=="object"?It({...r,_count:t}):It({...r,_count:{_all:!0}})}function tm(e={}){return typeof e.select=="object"?t=>kn(e)(t)._count:t=>kn(e)(t)._count._all}function ya(e,t){return t({action:"count",unpacker:tm(e),argsMapper:em})(e)}c();u();p();m();d();l();function rm(e={}){let t=It(e);if(Array.isArray(t.by))for(let r of t.by)typeof r=="string"&&(t.select[r]=!0);else typeof t.by=="string"&&(t.select[t.by]=!0);return t}function nm(e={}){return t=>(typeof e?._count=="boolean"&&t.forEach(r=>{r._count=r._count._all}),t)}function ha(e,t){return t({action:"groupBy",unpacker:nm(e),argsMapper:rm})(e)}function wa(e,t,r){if(t==="aggregate")return n=>ga(n,r);if(t==="count")return n=>ya(n,r);if(t==="groupBy")return n=>ha(n,r)}c();u();p();m();d();l();function ba(e,t){let r=t.fields.filter(i=>!i.relationName),n=ks(r,"name");return new Proxy({},{get(i,o){if(o in i||typeof o=="symbol")return i[o];let s=n[o];if(s)return new ir(e,o,s.type,s.isList,s.kind==="enum")},...Sn(Object.keys(n))})}c();u();p();m();d();l();c();u();p();m();d();l();var Ea=e=>Array.isArray(e)?e:e.split("."),Ni=(e,t)=>Ea(t).reduce((r,n)=>r&&r[n],e),xa=(e,t,r)=>Ea(t).reduceRight((n,i,o,s)=>Object.assign({},Ni(e,s.slice(0,o)),{[i]:n}),r);function im(e,t){return e===void 0||t===void 0?[]:[...t,"select",e]}function om(e,t,r){return t===void 0?e??{}:xa(t,r,e||!0)}function Ui(e,t,r,n,i,o){let a=e._runtimeDataModel.models[t].fields.reduce((f,w)=>({...f,[w.name]:w}),{});return f=>{let w=je(e._errorFormat),v=im(n,i),A=om(f,o,v),R=r({dataPath:v,callsite:w})(A),C=sm(e,t);return new Proxy(R,{get(D,I){if(!C.includes(I))return D[I];let be=[a[I].type,r,I],ce=[v,A];return Ui(e,...be,...ce)},...Sn([...C,...Object.getOwnPropertyNames(R)])})}}function sm(e,t){return e._runtimeDataModel.models[t].fields.filter(r=>r.kind==="object").map(r=>r.name)}var am=["findUnique","findUniqueOrThrow","findFirst","findFirstOrThrow","create","update","upsert","delete"],lm=["aggregate","count","groupBy"];function Fi(e,t){let r=e._extensions.getAllModelExtensions(t)??{},n=[cm(e,t),pm(e,t),mr(r),le("name",()=>t),le("$name",()=>t),le("$parent",()=>e._appliedParent)];return Pe({},n)}function cm(e,t){let r=ke(t),n=Object.keys(Xt).concat("count");return{getKeys(){return n},getPropertyValue(i){let o=i,s=a=>f=>{let w=je(e._errorFormat);return e._createPrismaPromise(v=>{let A={args:f,dataPath:[],action:o,model:t,clientMethod:`${r}.${i}`,jsModelName:r,transaction:v,callsite:w};return e._request({...A,...a})},{action:o,args:f,model:t})};return am.includes(o)?Ui(e,t,s):um(i)?wa(e,i,s):s({})}}}function um(e){return lm.includes(e)}function pm(e,t){return Xe(le("fields",()=>{let r=e._runtimeDataModel.models[t];return ba(t,r)}))}c();u();p();m();d();l();function Pa(e){return e.replace(/^./,t=>t.toUpperCase())}var Vi=Symbol();function dr(e){let t=[mm(e),dm(e),le(Vi,()=>e),le("$parent",()=>e._appliedParent)],r=e._extensions.getAllClientExtensions();return r&&t.push(mr(r)),Pe(e,t)}function mm(e){let t=Object.getPrototypeOf(e._originalClient),r=[...new Set(Object.getOwnPropertyNames(t))];return{getKeys(){return r},getPropertyValue(n){return e[n]}}}function dm(e){let t=Object.keys(e._runtimeDataModel.models),r=t.map(ke),n=[...new Set(t.concat(r))];return Xe({getKeys(){return n},getPropertyValue(i){let o=Pa(i);if(e._runtimeDataModel.models[o]!==void 0)return Fi(e,o);if(e._runtimeDataModel.models[i]!==void 0)return Fi(e,i)},getPropertyDescriptor(i){if(!r.includes(i))return{enumerable:!1}}})}function Ta(e){return e[Vi]?e[Vi]:e}function va(e){if(typeof e=="function")return e(this);if(e.client?.__AccelerateEngine){let r=e.client.__AccelerateEngine;this._originalClient._engine=new r(this._originalClient._accelerateEngineConfig)}let t=Object.create(this._originalClient,{_extensions:{value:this._extensions.append(e)},_appliedParent:{value:this,configurable:!0},$use:{value:void 0},$on:{value:void 0}});return dr(t)}c();u();p();m();d();l();c();u();p();m();d();l();function Aa({result:e,modelName:t,select:r,omit:n,extensions:i}){let o=i.getAllComputedFields(t);if(!o)return e;let s=[],a=[];for(let f of Object.values(o)){if(n){if(n[f.name])continue;let w=f.needs.filter(v=>n[v]);w.length>0&&a.push(Rt(w))}else if(r){if(!r[f.name])continue;let w=f.needs.filter(v=>!r[v]);w.length>0&&a.push(Rt(w))}fm(e,f.needs)&&s.push(gm(f,Pe(e,s)))}return s.length>0||a.length>0?Pe(e,[...s,...a]):e}function fm(e,t){return t.every(r=>xi(e,r))}function gm(e,t){return Xe(le(e.name,()=>e.compute(t)))}c();u();p();m();d();l();function On({visitor:e,result:t,args:r,runtimeDataModel:n,modelName:i}){if(Array.isArray(t)){for(let s=0;sv.name===o);if(!f||f.kind!=="object"||!f.relationName)continue;let w=typeof s=="object"?s:{};t[o]=On({visitor:i,result:t[o],args:w,modelName:f.type,runtimeDataModel:n})}}function Ra({result:e,modelName:t,args:r,extensions:n,runtimeDataModel:i,globalOmit:o}){return n.isEmpty()||e==null||typeof e!="object"||!i.models[t]?e:On({result:e,args:r??{},modelName:t,runtimeDataModel:i,visitor:(a,f,w)=>{let v=ke(f);return Aa({result:a,modelName:v,select:w.select,omit:w.select?void 0:{...o?.[v],...w.omit},extensions:n})}})}c();u();p();m();d();l();c();u();p();m();d();l();l();c();u();p();m();d();l();var ym=["$connect","$disconnect","$on","$transaction","$use","$extends"],Sa=ym;function Ia(e){if(e instanceof me)return hm(e);if(An(e))return wm(e);if(Array.isArray(e)){let r=[e[0]];for(let n=1;n{let o=t.customDataProxyFetch;return"transaction"in t&&i!==void 0&&(t.transaction?.kind==="batch"&&t.transaction.lock.then(),t.transaction=i),n===r.length?e._executeRequest(t):r[n]({model:t.model,operation:t.model?t.action:t.clientMethod,args:Ia(t.args??{}),__internalParams:t,query:(s,a=t)=>{let f=a.customDataProxyFetch;return a.customDataProxyFetch=La(o,f),a.args=s,Oa(e,a,r,n+1)}})})}function Da(e,t){let{jsModelName:r,action:n,clientMethod:i}=t,o=r?n:i;if(e._extensions.isEmpty())return e._executeRequest(t);let s=e._extensions.getAllQueryCallbacks(r??"$none",o);return Oa(e,t,s)}function _a(e){return t=>{let r={requests:t},n=t[0].extensions.getAllBatchQueryCallbacks();return n.length?Ma(r,n,0,e):e(r)}}function Ma(e,t,r,n){if(r===t.length)return n(e);let i=e.customDataProxyFetch,o=e.requests[0].transaction;return t[r]({args:{queries:e.requests.map(s=>({model:s.modelName,operation:s.action,args:s.args})),transaction:o?{isolationLevel:o.kind==="batch"?o.isolationLevel:void 0}:void 0},__internalParams:e,query(s,a=e){let f=a.customDataProxyFetch;return a.customDataProxyFetch=La(i,f),Ma(a,t,r+1,n)}})}var ka=e=>e;function La(e=ka,t=ka){return r=>e(t(r))}c();u();p();m();d();l();var Na=J("prisma:client"),Ua={Vercel:"vercel","Netlify CI":"netlify"};function Fa({postinstall:e,ciName:t,clientVersion:r}){if(Na("checkPlatformCaching:postinstall",e),Na("checkPlatformCaching:ciName",t),e===!0&&t&&t in Ua){let n=`Prisma has detected that this project was built on ${t}, which caches dependencies. This leads to an outdated Prisma Client because Prisma's auto-generation isn't triggered. To fix this, make sure to run the \`prisma generate\` command during the build process. - -Learn how: https://pris.ly/d/${Ua[t]}-build`;throw console.error(n),new U(n,r)}}c();u();p();m();d();l();function Va(e,t){return e?e.datasources?e.datasources:e.datasourceUrl?{[t[0]]:{url:e.datasourceUrl}}:{}:{}}c();u();p();m();d();l();c();u();p();m();d();l();var bm=()=>globalThis.process?.release?.name==="node",Em=()=>!!globalThis.Bun||!!globalThis.process?.versions?.bun,xm=()=>!!globalThis.Deno,Pm=()=>typeof globalThis.Netlify=="object",Tm=()=>typeof globalThis.EdgeRuntime=="object",vm=()=>globalThis.navigator?.userAgent==="Cloudflare-Workers";function Am(){return[[Pm,"netlify"],[Tm,"edge-light"],[vm,"workerd"],[xm,"deno"],[Em,"bun"],[bm,"node"]].flatMap(r=>r[0]()?[r[1]]:[]).at(0)??""}var Cm={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function kt(){let e=Am();return{id:e,prettyName:Cm[e]||e,isEdge:["workerd","deno","netlify","edge-light"].includes(e)}}c();u();p();m();d();l();c();u();p();m();d();l();var $i=Ae(Ei());c();u();p();m();d();l();function $a(e){return e?e.replace(/".*"/g,'"X"').replace(/[\s:\[]([+-]?([0-9]*[.])?[0-9]+)/g,t=>`${t[0]}5`):""}c();u();p();m();d();l();function qa(e){return e.split(` -`).map(t=>t.replace(/^\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)\s*/,"").replace(/\+\d+\s*ms$/,"")).join(` -`)}c();u();p();m();d();l();var Ba=Ae(Rs());function ja({title:e,user:t="prisma",repo:r="prisma",template:n="bug_report.yml",body:i}){return(0,Ba.default)({user:t,repo:r,template:n,title:e,body:i})}function Qa({version:e,binaryTarget:t,title:r,description:n,engineVersion:i,database:o,query:s}){let a=as(6e3-(s?.length??0)),f=qa((0,$i.default)(a)),w=n?`# Description -\`\`\` -${n} -\`\`\``:"",v=(0,$i.default)(`Hi Prisma Team! My Prisma Client just crashed. This is the report: -## Versions - -| Name | Version | -|-----------------|--------------------| -| Node | ${g.version?.padEnd(19)}| -| OS | ${t?.padEnd(19)}| -| Prisma Client | ${e?.padEnd(19)}| -| Query Engine | ${i?.padEnd(19)}| -| Database | ${o?.padEnd(19)}| - -${w} - -## Logs -\`\`\` -${f} -\`\`\` - -## Client Snippet -\`\`\`ts -// PLEASE FILL YOUR CODE SNIPPET HERE -\`\`\` - -## Schema -\`\`\`prisma -// PLEASE ADD YOUR SCHEMA HERE IF POSSIBLE -\`\`\` - -## Prisma Engine Query -\`\`\` -${s?$a(s):""} -\`\`\` -`),A=ja({title:r,body:v});return`${r} - -This is a non-recoverable error which probably happens when the Prisma Query Engine has a panic. - -${Xr(A)} - -If you want the Prisma team to look into it, please open the link above \u{1F64F} -To increase the chance of success, please post your schema and a snippet of -how you used Prisma Client in the issue. -`}c();u();p();m();d();l();c();u();p();m();d();l();c();u();p();m();d();l();l();c();u();p();m();d();l();l();function Q(e,t){throw new Error(t)}function qi(e,t){return e===t||e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"&&Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(r=>qi(e[r],t[r]))}function gr(e,t){let r=Object.keys(e),n=Object.keys(t);return(r.length{if(typeof e[o]==typeof t[o]&&typeof e[o]!="object")return e[o]===t[o];if(re.isDecimal(e[o])||re.isDecimal(t[o])){let s=Ha(e[o]),a=Ha(t[o]);return s&&a&&s.equals(a)}else if(e[o]instanceof Uint8Array||t[o]instanceof Uint8Array){let s=Ga(e[o]),a=Ga(t[o]);return s&&a&&s.equals(a)}else{if(e[o]instanceof Date||t[o]instanceof Date)return Wa(e[o])?.getTime()===Wa(t[o])?.getTime();if(typeof e[o]=="bigint"||typeof t[o]=="bigint")return Ja(e[o])===Ja(t[o]);if(typeof e[o]=="number"||typeof t[o]=="number")return Ka(e[o])===Ka(t[o])}return qi(e[o],t[o])})}function Ha(e){return re.isDecimal(e)?e:typeof e=="number"||typeof e=="string"?new re(e):void 0}function Ga(e){return y.isBuffer(e)?e:e instanceof Uint8Array?y.from(e.buffer,e.byteOffset,e.byteLength):typeof e=="string"?y.from(e,"base64"):void 0}function Wa(e){return e instanceof Date?e:typeof e=="string"||typeof e=="number"?new Date(e):void 0}function Ja(e){return typeof e=="bigint"?e:typeof e=="number"||typeof e=="string"?BigInt(e):void 0}function Ka(e){return typeof e=="number"?e:typeof e=="string"?Number(e):void 0}function yr(e){return JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString():r instanceof Uint8Array?y.from(r).toString("base64"):r)}var W=class extends Error{name="DataMapperError"};function Za(e,t,r){switch(t.type){case"AffectedRows":if(typeof e!="number")throw new W(`Expected an affected rows count, got: ${typeof e} (${e})`);return{count:e};case"Object":return Bi(e,t.fields,r);case"Value":return ji(e,"",t.resultType,r);default:Q(t,`Invalid data mapping type: '${t.type}'`)}}function Bi(e,t,r){if(e===null)return null;if(Array.isArray(e))return e.map(i=>za(i,t,r));if(typeof e=="object")return za(e,t,r);if(typeof e=="string"){let n;try{n=JSON.parse(e)}catch(i){throw new W("Expected an array or object, got a string that is not valid JSON",{cause:i})}return Bi(n,t,r)}throw new W(`Expected an array or an object, got: ${typeof e}`)}function za(e,t,r){if(typeof e!="object")throw new W(`Expected an object, but got '${typeof e}'`);let n={};for(let[i,o]of Object.entries(t))switch(o.type){case"AffectedRows":throw new W(`Unexpected 'AffectedRows' node in data mapping for field '${i}'`);case"Object":{if(o.serializedName!==null&&!Object.hasOwn(e,o.serializedName))throw new W(`Missing data field (Object): '${i}'; node: ${JSON.stringify(o)}; data: ${JSON.stringify(e)}`);let s=o.serializedName!==null?e[o.serializedName]:e;n[i]=Bi(s,o.fields,r);break}case"Value":{let s=o.dbName;if(Object.hasOwn(e,s))n[i]=ji(e[s],s,o.resultType,r);else throw new W(`Missing data field (Value): '${s}'; node: ${JSON.stringify(o)}; data: ${JSON.stringify(e)}`)}break;default:Q(o,`DataMapper: Invalid data mapping node type: '${o.type}'`)}return n}function ji(e,t,r,n){if(e===null)return r.type==="Array"?[]:null;switch(r.type){case"Any":return e;case"String":{if(typeof e!="string")throw new W(`Expected a string in column '${t}', got ${typeof e}: ${e}`);return e}case"Int":switch(typeof e){case"number":return Math.trunc(e);case"string":{let i=Math.trunc(Number(e));if(Number.isNaN(i)||!Number.isFinite(i))throw new W(`Expected an integer in column '${t}', got string: ${e}`);if(!Number.isSafeInteger(i))throw new W(`Integer value in column '${t}' is too large to represent as a JavaScript number without loss of precision, got: ${e}. Consider using BigInt type.`);return i}default:throw new W(`Expected an integer in column '${t}', got ${typeof e}: ${e}`)}case"BigInt":{if(typeof e!="number"&&typeof e!="string")throw new W(`Expected a bigint in column '${t}', got ${typeof e}: ${e}`);return{$type:"BigInt",value:e}}case"Float":{if(typeof e=="number")return e;if(typeof e=="string"){let i=Number(e);if(Number.isNaN(i)&&!/^[-+]?nan$/.test(e.toLowerCase()))throw new W(`Expected a float in column '${t}', got string: ${e}`);return i}throw new W(`Expected a float in column '${t}', got ${typeof e}: ${e}`)}case"Boolean":{if(typeof e=="boolean")return e;if(typeof e=="number")return e===1;if(typeof e=="string"){if(e==="true"||e==="TRUE"||e==="1")return!0;if(e==="false"||e==="FALSE"||e==="0")return!1;throw new W(`Expected a boolean in column '${t}', got ${typeof e}: ${e}`)}if(e instanceof Uint8Array){for(let i of e)if(i!==0)return!0;return!1}throw new W(`Expected a boolean in column '${t}', got ${typeof e}: ${e}`)}case"Decimal":if(typeof e!="number"&&typeof e!="string"&&!re.isDecimal(e))throw new W(`Expected a decimal in column '${t}', got ${typeof e}: ${e}`);return{$type:"Decimal",value:e};case"Date":{if(typeof e=="string")return{$type:"DateTime",value:Ya(e)};if(typeof e=="number"||e instanceof Date)return{$type:"DateTime",value:e};throw new W(`Expected a date in column '${t}', got ${typeof e}: ${e}`)}case"Time":{if(typeof e=="string")return{$type:"DateTime",value:`1970-01-01T${Ya(e)}`};throw new W(`Expected a time in column '${t}', got ${typeof e}: ${e}`)}case"Array":return e.map((o,s)=>ji(o,`${t}[${s}]`,r.inner,n));case"Object":return{$type:"Json",value:typeof e=="string"?e:yr(e)};case"Bytes":{if(typeof e=="string"&&e.startsWith("\\x"))return{$type:"Bytes",value:y.from(e.slice(2),"hex").toString("base64")};if(Array.isArray(e))return{$type:"Bytes",value:y.from(e).toString("base64")};if(e instanceof Uint8Array)return{$type:"Bytes",value:y.from(e).toString("base64")};throw new W(`Expected a byte array in column '${t}', got ${typeof e}: ${e}`)}case"Enum":{let i=n[r.inner];if(i===void 0)throw new W(`Unknown enum '${r.inner}'`);let o=i[`${e}`];if(o===void 0)throw new W(`Unknown enum value '${e}' for enum '${r.inner}'`);return o}default:Q(r,`DataMapper: Unknown result type: ${r.type}`)}}var Rm=/Z$|(?{let o=new Date,s=b.now(),a=await i(),f=b.now();return n?.({timestamp:o,duration:f-s,query:e.sql,params:e.args}),a})}c();u();p();m();d();l();c();u();p();m();d();l();c();u();p();m();d();l();function Qi(e){return e.name==="DriverAdapterError"&&typeof e.cause=="object"}c();u();p();m();d();l();var _={Int32:0,Int64:1,Float:2,Double:3,Numeric:4,Boolean:5,Character:6,Text:7,Date:8,Time:9,DateTime:10,Json:11,Enum:12,Bytes:13,Set:14,Uuid:15,Int32Array:64,Int64Array:65,FloatArray:66,DoubleArray:67,NumericArray:68,BooleanArray:69,CharacterArray:70,TextArray:71,DateArray:72,TimeArray:73,DateTimeArray:74,JsonArray:75,EnumArray:76,BytesArray:77,UuidArray:78,UnknownNumber:128};var De=class extends Error{name="UserFacingError";code;meta;constructor(t,r,n){super(t),this.code=r,this.meta=n??{}}toQueryResponseErrorObject(){return{error:this.message,user_facing_error:{is_panic:!1,message:this.message,meta:this.meta,error_code:this.code}}}};function Xa(e){if(!Qi(e))throw e;let t=Im(e),r=km(e);throw!t||!r?e:new De(r,t,{driverAdapterError:e})}function Im(e){switch(e.cause.kind){case"AuthenticationFailed":return"P1000";case"DatabaseDoesNotExist":return"P1003";case"SocketTimeout":return"P1008";case"DatabaseAlreadyExists":return"P1009";case"DatabaseAccessDenied":return"P1010";case"TransactionAlreadyClosed":return"P1018";case"LengthMismatch":return"P2000";case"UniqueConstraintViolation":return"P2002";case"ForeignKeyConstraintViolation":return"P2003";case"UnsupportedNativeDataType":return"P2010";case"NullConstraintViolation":return"P2011";case"ValueOutOfRange":return"P2020";case"TableDoesNotExist":return"P2021";case"ColumnNotFound":return"P2022";case"InvalidIsolationLevel":case"InconsistentColumnData":return"P2023";case"MissingFullTextSearchIndex":return"P2030";case"TransactionWriteConflict":return"P2034";case"GenericJs":return"P2036";case"TooManyConnections":return"P2037";case"postgres":case"sqlite":case"mysql":case"mssql":return;default:Q(e.cause,`Unknown error: ${e.cause}`)}}function km(e){switch(e.cause.kind){case"AuthenticationFailed":return`Authentication failed against the database server, the provided database credentials for \`${e.cause.user??"(not available)"}\` are not valid`;case"DatabaseDoesNotExist":return`Database \`${e.cause.db??"(not available)"}\` does not exist on the database server`;case"SocketTimeout":return"Operation has timed out";case"DatabaseAlreadyExists":return`Database \`${e.cause.db??"(not available)"}\` already exists on the database server`;case"DatabaseAccessDenied":return`User was denied access on the database \`${e.cause.db??"(not available)"}\``;case"TransactionAlreadyClosed":return e.cause.cause;case"LengthMismatch":return`The provided value for the column is too long for the column's type. Column: ${e.cause.column??"(not available)"}`;case"UniqueConstraintViolation":return`Unique constraint failed on the ${Hi(e.cause.constraint)}`;case"ForeignKeyConstraintViolation":return`Foreign key constraint violated on the ${Hi(e.cause.constraint)}`;case"UnsupportedNativeDataType":return`Failed to deserialize column of type '${e.cause.type}'. If you're using $queryRaw and this column is explicitly marked as \`Unsupported\` in your Prisma schema, try casting this column to any supported Prisma type such as \`String\`.`;case"NullConstraintViolation":return`Null constraint violation on the ${Hi(e.cause.constraint)}`;case"ValueOutOfRange":return`Value out of range for the type: ${e.cause.cause}`;case"TableDoesNotExist":return`The table \`${e.cause.table??"(not available)"}\` does not exist in the current database.`;case"ColumnNotFound":return`The column \`${e.cause.column??"(not available)"}\` does not exist in the current database.`;case"InvalidIsolationLevel":return`Invalid isolation level \`${e.cause.level}\``;case"InconsistentColumnData":return`Inconsistent column data: ${e.cause.cause}`;case"MissingFullTextSearchIndex":return"Cannot find a fulltext index to use for the native search, try adding a @@fulltext([Fields...]) to your schema";case"TransactionWriteConflict":return"Transaction failed due to a write conflict or a deadlock. Please retry your transaction";case"GenericJs":return`Error in external connector (id ${e.cause.id})`;case"TooManyConnections":return`Too many database connections opened: ${e.cause.cause}`;case"sqlite":case"postgres":case"mysql":case"mssql":return;default:Q(e.cause,`Unknown error: ${e.cause}`)}}function Hi(e){return e&&"fields"in e?`fields: (${e.fields.map(t=>`\`${t}\``).join(", ")})`:e&&"index"in e?`constraint: \`${e.index}\``:e&&"foreignKey"in e?"foreign key":"(not available)"}c();u();p();m();d();l();c();u();p();m();d();l();c();u();p();m();d();l();c();u();p();m();d();l();function et(e,t){var r="000000000"+e;return r.substr(r.length-t)}var el=Ae(ms(),1);function Om(){try{return el.default.hostname()}catch{return g.env._CLUSTER_NETWORK_NAME_||g.env.COMPUTERNAME||"hostname"}}var tl=2,Dm=et(g.pid.toString(36),tl),rl=Om(),_m=rl.length,Mm=et(rl.split("").reduce(function(e,t){return+e+t.charCodeAt(0)},+_m+36).toString(36),tl);function Gi(){return Dm+Mm}c();u();p();m();d();l();c();u();p();m();d();l();function _n(e){return typeof e=="string"&&/^c[a-z0-9]{20,32}$/.test(e)}function Wi(e){let n=Math.pow(36,4),i=0;function o(){return et((Math.random()*n<<0).toString(36),4)}function s(){return i=irt.length&&(Jt.getRandomValues(rt),_t=0),_t+=e}function ro(e=21){Pd(e|=0);let t="";for(let r=_t-e;r<_t;r++)t+=Jl[rt[r]&63];return t}c();u();p();m();d();l();Ze();var zl="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Tr=32;var Td=16,Yl=10,Kl=0xffffffffffff;var nt;(function(e){e.Base32IncorrectEncoding="B32_ENC_INVALID",e.DecodeTimeInvalidCharacter="DEC_TIME_CHAR",e.DecodeTimeValueMalformed="DEC_TIME_MALFORMED",e.EncodeTimeNegative="ENC_TIME_NEG",e.EncodeTimeSizeExceeded="ENC_TIME_SIZE_EXCEED",e.EncodeTimeValueMalformed="ENC_TIME_MALFORMED",e.PRNGDetectFailure="PRNG_DETECT",e.ULIDInvalid="ULID_INVALID",e.Unexpected="UNEXPECTED",e.UUIDInvalid="UUID_INVALID"})(nt||(nt={}));var it=class extends Error{constructor(t,r){super(`${r} (${t})`),this.name="ULIDError",this.code=t}};function vd(e){let t=Math.floor(e()*Tr);return t===Tr&&(t=Tr-1),zl.charAt(t)}function Ad(e){let t=Cd(),r=t&&(t.crypto||t.msCrypto)||(typeof gt<"u"?gt:null);if(typeof r?.getRandomValues=="function")return()=>{let n=new Uint8Array(1);return r.getRandomValues(n),n[0]/255};if(typeof r?.randomBytes=="function")return()=>r.randomBytes(1).readUInt8()/255;if(gt?.randomBytes)return()=>gt.randomBytes(1).readUInt8()/255;throw new it(nt.PRNGDetectFailure,"Failed to find a reliable PRNG")}function Cd(){return Id()?self:typeof window<"u"?window:typeof globalThis<"u"||typeof globalThis<"u"?globalThis:null}function Rd(e,t){let r="";for(;e>0;e--)r=vd(t)+r;return r}function Sd(e,t=Yl){if(isNaN(e))throw new it(nt.EncodeTimeValueMalformed,`Time must be a number: ${e}`);if(e>Kl)throw new it(nt.EncodeTimeSizeExceeded,`Cannot encode a time larger than ${Kl}: ${e}`);if(e<0)throw new it(nt.EncodeTimeNegative,`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new it(nt.EncodeTimeValueMalformed,`Time must be an integer: ${e}`);let r,n="";for(let i=t;i>0;i--)r=e%Tr,n=zl.charAt(r)+n,e=(e-r)/Tr;return n}function Id(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function Zl(e,t){let r=t||Ad(),n=!e||isNaN(e)?Date.now():e;return Sd(n,Yl)+Rd(Td,r)}c();u();p();m();d();l();c();u();p();m();d();l();var ie=[];for(let e=0;e<256;++e)ie.push((e+256).toString(16).slice(1));function Un(e,t=0){return(ie[e[t+0]]+ie[e[t+1]]+ie[e[t+2]]+ie[e[t+3]]+"-"+ie[e[t+4]]+ie[e[t+5]]+"-"+ie[e[t+6]]+ie[e[t+7]]+"-"+ie[e[t+8]]+ie[e[t+9]]+"-"+ie[e[t+10]]+ie[e[t+11]]+ie[e[t+12]]+ie[e[t+13]]+ie[e[t+14]]+ie[e[t+15]]).toLowerCase()}c();u();p();m();d();l();Ze();var Vn=new Uint8Array(256),Fn=Vn.length;function Mt(){return Fn>Vn.length-16&&(rn(Vn),Fn=0),Vn.slice(Fn,Fn+=16)}c();u();p();m();d();l();c();u();p();m();d();l();Ze();var no={randomUUID:tn};function kd(e,t,r){if(no.randomUUID&&!t&&!e)return no.randomUUID();e=e||{};let n=e.random??e.rng?.()??Mt();if(n.length<16)throw new Error("Random bytes length must be >= 16");if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){if(r=r||0,r<0||r+16>t.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let i=0;i<16;++i)t[r+i]=n[i];return t}return Un(n)}var io=kd;c();u();p();m();d();l();var oo={};function Od(e,t,r){let n;if(e)n=Xl(e.random??e.rng?.()??Mt(),e.msecs,e.seq,t,r);else{let i=Date.now(),o=Mt();Dd(oo,i,o),n=Xl(o,oo.msecs,oo.seq,t,r)}return t??Un(n)}function Dd(e,t,r){return e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=r[6]<<23|r[7]<<16|r[8]<<8|r[9],e.msecs=t):(e.seq=e.seq+1|0,e.seq===0&&e.msecs++),e}function Xl(e,t,r,n,i=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(!n)n=new Uint8Array(16),i=0;else if(i<0||i+16>n.length)throw new RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);return t??=Date.now(),r??=e[6]*127<<24|e[7]<<16|e[8]<<8|e[9],n[i++]=t/1099511627776&255,n[i++]=t/4294967296&255,n[i++]=t/16777216&255,n[i++]=t/65536&255,n[i++]=t/256&255,n[i++]=t&255,n[i++]=112|r>>>28&15,n[i++]=r>>>20&255,n[i++]=128|r>>>14&63,n[i++]=r>>>6&255,n[i++]=r<<2&255|e[10]&3,n[i++]=e[11],n[i++]=e[12],n[i++]=e[13],n[i++]=e[14],n[i++]=e[15],n}var so=Od;var $n=class{#e={};constructor(){this.register("uuid",new co),this.register("cuid",new uo),this.register("ulid",new po),this.register("nanoid",new mo),this.register("product",new fo)}snapshot(t){return Object.create(this.#e,{now:{value:t==="mysql"?new lo:new ao}})}register(t,r){this.#e[t]=r}},ao=class{#e=new Date;generate(){return this.#e.toISOString()}},lo=class{#e=new Date;generate(){return this.#e.toISOString().replace("T"," ").replace("Z","")}},co=class{generate(t){if(t===4)return io();if(t===7)return so();throw new Error("Invalid UUID generator arguments")}},uo=class{generate(t){if(t===1)return nl();if(t===2)return(0,ec.createId)();throw new Error("Invalid CUID generator arguments")}},po=class{generate(){return Zl()}},mo=class{generate(t){if(typeof t=="number")return ro(t);if(t===void 0)return ro();throw new Error("Invalid Nanoid generator arguments")}},fo=class{generate(t,r){if(t===void 0||r===void 0)throw new Error("Invalid Product generator arguments");return Array.isArray(t)&&Array.isArray(r)?t.flatMap(n=>r.map(i=>[n,i])):Array.isArray(t)?t.map(n=>[n,r]):Array.isArray(r)?r.map(n=>[t,n]):[[t,r]]}};c();u();p();m();d();l();c();u();p();m();d();l();function go(e){return typeof e=="object"&&e!==null&&e.prisma__type==="param"}function yo(e){return typeof e=="object"&&e!==null&&e.prisma__type==="generatorCall"}function tc(e){return typeof e=="object"&&e!==null&&e.prisma__type==="bytes"}function rc(e){return typeof e=="object"&&e!==null&&e.prisma__type==="bigint"}function wo(e,t,r){let n=e.type;switch(n){case"rawSql":return ic(e.sql,nc(e.params,t,r));case"templateSql":return _d(e.fragments,e.placeholderFormat,nc(e.params,t,r));default:Q(n,"Invalid query type")}}function nc(e,t,r){return e.map(n=>Te(n,t,r))}function Te(e,t,r){let n=e;for(;Ld(n);)if(go(n)){let i=t[n.prisma__value.name];if(i===void 0)throw new Error(`Missing value for query variable ${n.prisma__value.name}`);n=i}else if(yo(n)){let{name:i,args:o}=n.prisma__value,s=r[i];if(!s)throw new Error(`Encountered an unknown generator '${i}'`);n=s.generate(...o.map(a=>Te(a,t,r)))}else Q(n,`Unexpected unevaluated value type: ${n}`);return Array.isArray(n)?n=n.map(i=>Te(i,t,r)):tc(n)?n=y.from(n.prisma__value,"base64"):rc(n)&&(n=BigInt(n.prisma__value)),n}function _d(e,t,r){let n=0,i=1,o=[],s=e.map(a=>{let f=a.type;switch(f){case"parameter":if(n>=r.length)throw new Error(`Malformed query template. Fragments attempt to read over ${r.length} parameters.`);return o.push(r[n++]),ho(t,i++);case"stringChunk":return a.chunk;case"parameterTuple":{if(n>=r.length)throw new Error(`Malformed query template. Fragments attempt to read over ${r.length} parameters.`);let w=r[n++],v=Array.isArray(w)?w:[w];return`(${v.length==0?"NULL":v.map(R=>(o.push(R),ho(t,i++))).join(",")})`}case"parameterTupleList":{if(n>=r.length)throw new Error(`Malformed query template. Fragments attempt to read over ${r.length} parameters.`);let w=r[n++];if(!Array.isArray(w))throw new Error("Malformed query template. Tuple list expected.");if(w.length===0)throw new Error("Malformed query template. Tuple list cannot be empty.");return w.map(A=>{if(!Array.isArray(A))throw new Error("Malformed query template. Tuple expected.");let R=A.map(C=>(o.push(C),ho(t,i++))).join(a.itemSeparator);return`${a.itemPrefix}${R}${a.itemSuffix}`}).join(a.groupSeparator)}default:Q(f,"Invalid fragment type")}}).join("");return ic(s,o)}function ho(e,t){return e.hasNumbering?`${e.prefix}${t}`:e.prefix}function ic(e,t){let r=t.map(n=>Md(n));return{sql:e,args:t,argTypes:r}}function Md(e){return typeof e=="string"?"Text":typeof e=="number"?"Numeric":typeof e=="boolean"?"Boolean":Array.isArray(e)?"Array":y.isBuffer(e)?"Bytes":"Unknown"}function Ld(e){return go(e)||yo(e)}c();u();p();m();d();l();function sc(e){let t=e.columnTypes.map(r=>{switch(r){case _.Bytes:return n=>Array.isArray(n)?new Uint8Array(n):n;default:return n=>n}});return e.rows.map(r=>r.map((n,i)=>t[i](n)).reduce((n,i,o)=>{let s=e.columnNames[o].split("."),a=n;for(let f=0;foc(n)).map(n=>{switch(n){case"bytes":return i=>Array.isArray(i)?new Uint8Array(i):i;case"int":return i=>i===null?null:typeof i=="number"?i:parseInt(`${i}`,10);case"bigint":return i=>i===null?null:typeof i=="bigint"?i:BigInt(`${i}`);case"json":return i=>typeof i=="string"?JSON.parse(i):i;case"bool":return i=>typeof i=="string"?i==="true"||i==="1":typeof i=="number"?i===1:i;default:return i=>i}});return{columns:e.columnNames,types:e.columnTypes.map(n=>oc(n)),rows:e.rows.map(n=>n.map((i,o)=>r[o](i)))}}function oc(e){switch(e){case _.Int32:return"int";case _.Int64:return"bigint";case _.Float:return"float";case _.Double:return"double";case _.Text:return"string";case _.Enum:return"enum";case _.Bytes:return"bytes";case _.Boolean:return"bool";case _.Character:return"char";case _.Numeric:return"decimal";case _.Json:return"json";case _.Uuid:return"uuid";case _.DateTime:return"datetime";case _.Date:return"date";case _.Time:return"time";case _.Int32Array:return"int-array";case _.Int64Array:return"bigint-array";case _.FloatArray:return"float-array";case _.DoubleArray:return"double-array";case _.TextArray:return"string-array";case _.EnumArray:return"string-array";case _.BytesArray:return"bytes-array";case _.BooleanArray:return"bool-array";case _.CharacterArray:return"char-array";case _.NumericArray:return"decimal-array";case _.JsonArray:return"json-array";case _.UuidArray:return"uuid-array";case _.DateTimeArray:return"datetime-array";case _.DateArray:return"date-array";case _.TimeArray:return"time-array";case _.UnknownNumber:return"unknown";case _.Set:return"string";default:Q(e,`Unexpected column type: ${e}`)}}c();u();p();m();d();l();function lc(e,t,r){if(!t.every(n=>bo(e,n))){let n=Nd(e,r),i=Ud(r);throw new De(n,i,r.context)}}function bo(e,t){switch(t.type){case"rowCountEq":return Array.isArray(e)?e.length===t.args:e===null?t.args===0:t.args===1;case"rowCountNeq":return Array.isArray(e)?e.length!==t.args:e===null?t.args!==0:t.args!==1;case"affectedRowCountEq":return e===t.args;case"never":return!1;default:Q(t,`Unknown rule type: ${t.type}`)}}function Nd(e,t){switch(t.error_identifier){case"RELATION_VIOLATION":return`The change you are trying to make would violate the required relation '${t.context.relation}' between the \`${t.context.modelA}\` and \`${t.context.modelB}\` models.`;case"MISSING_RECORD":return`An operation failed because it depends on one or more records that were required but not found. No record was found for ${t.context.operation}.`;case"MISSING_RELATED_RECORD":{let r=t.context.neededFor?` (needed to ${t.context.neededFor})`:"";return`An operation failed because it depends on one or more records that were required but not found. No '${t.context.model}' record${r} was found for ${t.context.operation} on ${t.context.relationType} relation '${t.context.relation}'.`}case"INCOMPLETE_CONNECT_INPUT":return`An operation failed because it depends on one or more records that were required but not found. Expected ${t.context.expectedRows} records to be connected, found only ${Array.isArray(e)?e.length:e}.`;case"INCOMPLETE_CONNECT_OUTPUT":return`The required connected records were not found. Expected ${t.context.expectedRows} records to be connected after connect operation on ${t.context.relationType} relation '${t.context.relation}', found ${Array.isArray(e)?e.length:e}.`;case"RECORDS_NOT_CONNECTED":return`The records for relation \`${t.context.relation}\` between the \`${t.context.parent}\` and \`${t.context.child}\` models are not connected.`;default:Q(t,`Unknown error identifier: ${t}`)}}function Ud(e){switch(e.error_identifier){case"RELATION_VIOLATION":return"P2014";case"RECORDS_NOT_CONNECTED":return"P2017";case"INCOMPLETE_CONNECT_OUTPUT":return"P2018";case"MISSING_RECORD":case"MISSING_RELATED_RECORD":case"INCOMPLETE_CONNECT_INPUT":return"P2025";default:Q(e,`Unknown error identifier: ${e}`)}}var Ar=class e{#e;#t;#r;#n=new $n;#o;#i;#s;#a;constructor({transactionManager:t,placeholderValues:r,onQuery:n,tracingHelper:i,serializer:o,rawSerializer:s,provider:a}){this.#e=t,this.#t=r,this.#r=n,this.#o=i,this.#i=o,this.#s=s??o,this.#a=a}static forSql(t){return new e({transactionManager:t.transactionManager,placeholderValues:t.placeholderValues,onQuery:t.onQuery,tracingHelper:t.tracingHelper,serializer:sc,rawSerializer:ac,provider:t.provider})}async run(t,r){let{value:n}=await this.interpretNode(t,r,this.#t,this.#n.snapshot(r.provider)).catch(i=>Xa(i));return n}async interpretNode(t,r,n,i){switch(t.type){case"value":return{value:Te(t.args,n,i)};case"seq":{let o;for(let s of t.args)o=await this.interpretNode(s,r,n,i);return o??{value:void 0}}case"get":return{value:n[t.args.name]};case"let":{let o=Object.create(n);for(let s of t.args.bindings){let{value:a}=await this.interpretNode(s.expr,r,o,i);o[s.name]=a}return this.interpretNode(t.args.expr,r,o,i)}case"getFirstNonEmpty":{for(let o of t.args.names){let s=n[o];if(!cc(s))return{value:s}}return{value:[]}}case"concat":{let o=await Promise.all(t.args.map(s=>this.interpretNode(s,r,n,i).then(a=>a.value)));return{value:o.length>0?o.reduce((s,a)=>s.concat(vr(a)),[]):[]}}case"sum":{let o=await Promise.all(t.args.map(s=>this.interpretNode(s,r,n,i).then(a=>a.value)));return{value:o.length>0?o.reduce((s,a)=>_e(s)+_e(a)):0}}case"execute":{let o=wo(t.args,n,i);return this.#l(o,r,async()=>({value:await r.executeRaw(o)}))}case"query":{let o=wo(t.args,n,i);return this.#l(o,r,async()=>{let s=await r.queryRaw(o);return t.args.type==="rawSql"?{value:this.#s(s),lastInsertId:s.lastInsertId}:{value:this.#i(s),lastInsertId:s.lastInsertId}})}case"reverse":{let{value:o,lastInsertId:s}=await this.interpretNode(t.args,r,n,i);return{value:Array.isArray(o)?o.reverse():o,lastInsertId:s}}case"unique":{let{value:o,lastInsertId:s}=await this.interpretNode(t.args,r,n,i);if(!Array.isArray(o))return{value:o,lastInsertId:s};if(o.length>1)throw new Error(`Expected zero or one element, got ${o.length}`);return{value:o[0]??null,lastInsertId:s}}case"required":{let{value:o,lastInsertId:s}=await this.interpretNode(t.args,r,n,i);if(cc(o))throw new Error("Required value is empty");return{value:o,lastInsertId:s}}case"mapField":{let{value:o,lastInsertId:s}=await this.interpretNode(t.args.records,r,n,i);return{value:pc(o,t.args.field),lastInsertId:s}}case"join":{let{value:o,lastInsertId:s}=await this.interpretNode(t.args.parent,r,n,i);if(o===null)return{value:null,lastInsertId:s};let a=await Promise.all(t.args.children.map(async f=>({joinExpr:f,childRecords:(await this.interpretNode(f.child,r,n,i)).value})));return{value:Fd(o,a),lastInsertId:s}}case"transaction":{if(!this.#e.enabled)return this.interpretNode(t.args,r,n,i);let o=this.#e.manager,s=await o.startTransaction(),a=o.getTransaction(s,"query");try{let f=await this.interpretNode(t.args,a,n,i);return await o.commitTransaction(s.id),f}catch(f){throw await o.rollbackTransaction(s.id),f}}case"dataMap":{let{value:o,lastInsertId:s}=await this.interpretNode(t.args.expr,r,n,i);return{value:Za(o,t.args.structure,t.args.enums),lastInsertId:s}}case"validate":{let{value:o,lastInsertId:s}=await this.interpretNode(t.args.expr,r,n,i);return lc(o,t.args.rules,t.args),{value:o,lastInsertId:s}}case"if":{let{value:o}=await this.interpretNode(t.args.value,r,n,i);return bo(o,t.args.rule)?await this.interpretNode(t.args.then,r,n,i):await this.interpretNode(t.args.else,r,n,i)}case"unit":return{value:void 0};case"diff":{let{value:o}=await this.interpretNode(t.args.from,r,n,i),{value:s}=await this.interpretNode(t.args.to,r,n,i),a=new Set(vr(s));return{value:vr(o).filter(f=>!a.has(f))}}case"distinctBy":{let{value:o,lastInsertId:s}=await this.interpretNode(t.args.expr,r,n,i),a=new Set,f=[];for(let w of vr(o)){let v=qn(w,t.args.fields);a.has(v)||(a.add(v),f.push(w))}return{value:f,lastInsertId:s}}case"paginate":{let{value:o,lastInsertId:s}=await this.interpretNode(t.args.expr,r,n,i),a=vr(o),f=t.args.pagination.linkingFields;if(f!==null){let w=new Map;for(let A of a){let R=qn(A,f);w.has(R)||w.set(R,[]),w.get(R).push(A)}let v=Array.from(w.entries());return v.sort(([A],[R])=>AR?1:0),{value:v.flatMap(([,A])=>uc(A,t.args.pagination)),lastInsertId:s}}return{value:uc(a,t.args.pagination),lastInsertId:s}}case"initializeRecord":{let{lastInsertId:o}=await this.interpretNode(t.args.expr,r,n,i),s={};for(let[a,f]of Object.entries(t.args.fields))s[a]=Vd(f,o,n,i);return{value:s,lastInsertId:o}}case"mapRecord":{let{value:o,lastInsertId:s}=await this.interpretNode(t.args.expr,r,n,i),a=o===null?{}:Eo(o);for(let[f,w]of Object.entries(t.args.fields))a[f]=$d(w,a[f],n,i);return{value:a,lastInsertId:s}}default:Q(t,`Unexpected node type: ${t.type}`)}}#l(t,r,n){return Dn({query:t,execute:n,provider:this.#a??r.provider,tracingHelper:this.#o,onQuery:this.#r})}};function cc(e){return Array.isArray(e)?e.length===0:e==null}function vr(e){return Array.isArray(e)?e:[e]}function _e(e){if(typeof e=="number")return e;if(typeof e=="string")return Number(e);throw new Error(`Expected number, got ${typeof e}`)}function Eo(e){if(typeof e=="object"&&e!==null)return e;throw new Error(`Expected object, got ${typeof e}`)}function pc(e,t){return Array.isArray(e)?e.map(r=>pc(r,t)):typeof e=="object"&&e!==null?e[t]??null:e}function Fd(e,t){for(let{joinExpr:r,childRecords:n}of t){let i=r.on.map(([a])=>a),o=r.on.map(([,a])=>a),s={};for(let a of Array.isArray(e)?e:[e]){let f=Eo(a),w=qn(f,i);s[w]||(s[w]=[]),s[w].push(f),r.isRelationUnique?f[r.parentField]=null:f[r.parentField]=[]}for(let a of Array.isArray(n)?n:[n]){if(a===null)continue;let f=qn(Eo(a),o);for(let w of s[f]??[])r.isRelationUnique?w[r.parentField]=a:w[r.parentField].push(a)}}return e}function uc(e,{cursor:t,skip:r,take:n}){let i=t!==null?e.findIndex(a=>gr(a,t)):0;if(i===-1)return[];let o=i+(r??0),s=n!==null?o+n:e.length;return e.slice(o,s)}function qn(e,t){return JSON.stringify(t.map(r=>e[r]))}function Vd(e,t,r,n){switch(e.type){case"value":return Te(e.value,r,n);case"lastInsertId":return t;default:Q(e,`Unexpected field initializer type: ${e.type}`)}}function $d(e,t,r,n){switch(e.type){case"set":return Te(e.value,r,n);case"add":return _e(t)+_e(Te(e.value,r,n));case"subtract":return _e(t)-_e(Te(e.value,r,n));case"multiply":return _e(t)*_e(Te(e.value,r,n));case"divide":{let i=_e(t),o=_e(Te(e.value,r,n));return o===0?null:i/o}default:Q(e,`Unexpected field operation type: ${e.type}`)}}c();u();p();m();d();l();c();u();p();m();d();l();async function qd(){return globalThis.crypto??await Promise.resolve().then(()=>(Ze(),yi))}async function mc(){return(await qd()).randomUUID()}c();u();p();m();d();l();var we=class extends De{name="TransactionManagerError";constructor(t,r){super("Transaction API error: "+t,"P2028",r)}},Cr=class extends we{constructor(){super("Transaction not found. Transaction ID is invalid, refers to an old closed transaction Prisma doesn't have information about anymore, or was obtained before disconnecting.")}},Bn=class extends we{constructor(t){super(`Transaction already closed: A ${t} cannot be executed on a committed transaction.`)}},jn=class extends we{constructor(t){super(`Transaction already closed: A ${t} cannot be executed on a transaction that was rolled back.`)}},Qn=class extends we{constructor(){super("Unable to start a transaction in the given time.")}},Hn=class extends we{constructor(t,{timeout:r,timeTaken:n}){super(`A ${t} cannot be executed on an expired transaction. The timeout for this transaction was ${r} ms, however ${n} ms passed since the start of the transaction. Consider increasing the interactive transaction timeout or doing less work in the transaction`,{operation:t,timeout:r,timeTaken:n})}},Lt=class extends we{constructor(t){super(`Internal Consistency Error: ${t}`)}},Gn=class extends we{constructor(t){super(`Invalid isolation level: ${t}`,{isolationLevel:t})}};var Bd=100,Rr=J("prisma:client:transactionManager"),jd=()=>({sql:"COMMIT",args:[],argTypes:[]}),Qd=()=>({sql:"ROLLBACK",args:[],argTypes:[]}),Hd=()=>({sql:'-- Implicit "COMMIT" query via underlying driver',args:[],argTypes:[]}),Gd=()=>({sql:'-- Implicit "ROLLBACK" query via underlying driver',args:[],argTypes:[]}),Sr=class{transactions=new Map;closedTransactions=[];driverAdapter;transactionOptions;tracingHelper;#e;#t;constructor({driverAdapter:t,transactionOptions:r,tracingHelper:n,onQuery:i,provider:o}){this.driverAdapter=t,this.transactionOptions=r,this.tracingHelper=n,this.#e=i,this.#t=o}async startTransaction(t){return await this.tracingHelper.runInChildSpan("start_transaction",()=>this.#r(t))}async#r(t){let r=t!==void 0?this.validateOptions(t):this.transactionOptions,n={id:await mc(),status:"waiting",timer:void 0,timeout:r.timeout,startedAt:Date.now(),transaction:void 0};this.transactions.set(n.id,n);let i=setTimeout(()=>n.status="timed_out",r.maxWait);switch(n.transaction=await this.driverAdapter.startTransaction(r.isolationLevel),clearTimeout(i),n.status){case"waiting":return n.status="running",n.timer=this.startTransactionTimeout(n.id,r.timeout),{id:n.id};case"timed_out":throw await this.closeTransaction(n,"timed_out"),new Qn;case"running":case"committed":case"rolled_back":throw new Lt(`Transaction in invalid state ${n.status} although it just finished startup.`);default:Q(n.status,"Unknown transaction status.")}}async commitTransaction(t){return await this.tracingHelper.runInChildSpan("commit_transaction",async()=>{let r=this.getActiveTransaction(t,"commit");await this.closeTransaction(r,"committed")})}async rollbackTransaction(t){return await this.tracingHelper.runInChildSpan("rollback_transaction",async()=>{let r=this.getActiveTransaction(t,"rollback");await this.closeTransaction(r,"rolled_back")})}getTransaction(t,r){let n=this.getActiveTransaction(t.id,r);if(!n.transaction)throw new Cr;return n.transaction}getActiveTransaction(t,r){let n=this.transactions.get(t);if(!n){let i=this.closedTransactions.find(o=>o.id===t);if(i)switch(Rr("Transaction already closed.",{transactionId:t,status:i.status}),i.status){case"waiting":case"running":throw new Lt("Active transaction found in closed transactions list.");case"committed":throw new Bn(r);case"rolled_back":throw new jn(r);case"timed_out":throw new Hn(r,{timeout:i.timeout,timeTaken:Date.now()-i.startedAt})}else throw Rr("Transaction not found.",t),new Cr}if(["committed","rolled_back","timed_out"].includes(n.status))throw new Lt("Closed transaction found in active transactions map.");return n}async cancelAllTransactions(){await Promise.allSettled([...this.transactions.values()].map(t=>this.closeTransaction(t,"rolled_back")))}startTransactionTimeout(t,r){let n=Date.now();return setTimeout(async()=>{Rr("Transaction timed out.",{transactionId:t,timeoutStartedAt:n,timeout:r});let i=this.transactions.get(t);i&&["running","waiting"].includes(i.status)?await this.closeTransaction(i,"timed_out"):Rr("Transaction already committed or rolled back when timeout happened.",t)},r)}async closeTransaction(t,r){Rr("Closing transaction.",{transactionId:t.id,status:r}),t.status=r;try{if(t.transaction&&r==="committed")if(t.transaction.options.usePhantomQuery)await this.#n(Hd(),t.transaction,()=>t.transaction.commit());else{let n=jd();await this.#n(n,t.transaction,()=>t.transaction.executeRaw(n)),await t.transaction.commit()}else if(t.transaction)if(t.transaction.options.usePhantomQuery)await this.#n(Gd(),t.transaction,()=>t.transaction.rollback());else{let n=Qd();await this.#n(n,t.transaction,()=>t.transaction.executeRaw(n)),await t.transaction.rollback()}}finally{clearTimeout(t.timer),t.timer=void 0,this.transactions.delete(t.id),this.closedTransactions.push(t),this.closedTransactions.length>Bd&&this.closedTransactions.shift()}}validateOptions(t){if(!t.timeout)throw new we("timeout is required");if(!t.maxWait)throw new we("maxWait is required");if(t.isolationLevel==="SNAPSHOT")throw new Gn(t.isolationLevel);return{...t,timeout:t.timeout,maxWait:t.maxWait}}#n(t,r,n){return Dn({query:t,execute:n,provider:this.#t??r.provider,tracingHelper:this.tracingHelper,onQuery:this.#e})}};var Wn="6.12.0";c();u();p();m();d();l();var Jn=class e{#e;#t;#r;constructor(t,r,n){this.#e=t,this.#t=r,this.#r=n}static async connect(t){let r,n;try{r=await t.driverAdapterFactory.connect(),n=new Sr({driverAdapter:r,transactionOptions:t.transactionOptions,tracingHelper:t.tracingHelper,onQuery:t.onQuery,provider:t.provider})}catch(i){throw await r?.dispose(),i}return new e(t,r,n)}getConnectionInfo(){let t=this.#t.getConnectionInfo?.()??{supportsRelationJoins:!1};return Promise.resolve({provider:this.#t.provider,connectionInfo:t})}async execute({plan:t,placeholderValues:r,transaction:n,batchIndex:i}){let o=n?this.#r.getTransaction(n,i!==void 0?"batch query":"query"):this.#t;return await Ar.forSql({transactionManager:n?{enabled:!1}:{enabled:!0,manager:this.#r},placeholderValues:r,onQuery:this.#e.onQuery,tracingHelper:this.#e.tracingHelper,provider:this.#e.provider}).run(t,o)}async startTransaction(t){return{...await this.#r.startTransaction(t),payload:void 0}}async commitTransaction(t){await this.#r.commitTransaction(t.id)}async rollbackTransaction(t){await this.#r.rollbackTransaction(t.id)}async disconnect(){try{await this.#r.cancelAllTransactions()}finally{await this.#t.dispose()}}};c();u();p();m();d();l();c();u();p();m();d();l();var Kn=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function dc(e,t,r){let n=r||{},i=n.encode||encodeURIComponent;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!Kn.test(e))throw new TypeError("argument name is invalid");let o=i(t);if(o&&!Kn.test(o))throw new TypeError("argument val is invalid");let s=e+"="+o;if(n.maxAge!==void 0&&n.maxAge!==null){let a=n.maxAge-0;if(Number.isNaN(a)||!Number.isFinite(a))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+Math.floor(a)}if(n.domain){if(!Kn.test(n.domain))throw new TypeError("option domain is invalid");s+="; Domain="+n.domain}if(n.path){if(!Kn.test(n.path))throw new TypeError("option path is invalid");s+="; Path="+n.path}if(n.expires){if(!Jd(n.expires)||Number.isNaN(n.expires.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(s+="; HttpOnly"),n.secure&&(s+="; Secure"),n.priority)switch(typeof n.priority=="string"?n.priority.toLowerCase():n.priority){case"low":{s+="; Priority=Low";break}case"medium":{s+="; Priority=Medium";break}case"high":{s+="; Priority=High";break}default:throw new TypeError("option priority is invalid")}if(n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:{s+="; SameSite=Strict";break}case"lax":{s+="; SameSite=Lax";break}case"strict":{s+="; SameSite=Strict";break}case"none":{s+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return n.partitioned&&(s+="; Partitioned"),s}function Jd(e){return Object.prototype.toString.call(e)==="[object Date]"||e instanceof Date}function fc(e,t){let r=(e||"").split(";").filter(f=>typeof f=="string"&&!!f.trim()),n=r.shift()||"",i=Kd(n),o=i.name,s=i.value;try{s=t?.decode===!1?s:(t?.decode||decodeURIComponent)(s)}catch{}let a={name:o,value:s};for(let f of r){let w=f.split("="),v=(w.shift()||"").trimStart().toLowerCase(),A=w.join("=");switch(v){case"expires":{a.expires=new Date(A);break}case"max-age":{a.maxAge=Number.parseInt(A,10);break}case"secure":{a.secure=!0;break}case"httponly":{a.httpOnly=!0;break}case"samesite":{a.sameSite=A;break}default:a[v]=A}}return a}function Kd(e){let t="",r="",n=e.split("=");return n.length>1?(t=n.shift(),r=n.join("=")):r=e,{name:t,value:r}}c();u();p();m();d();l();c();u();p();m();d();l();function Nt({inlineDatasources:e,overrideDatasources:t,env:r,clientVersion:n}){let i,o=Object.keys(e)[0],s=e[o]?.url,a=t[o]?.url;if(o===void 0?i=void 0:a?i=a:s?.value?i=s.value:s?.fromEnvVar&&(i=r[s.fromEnvVar]),s?.fromEnvVar!==void 0&&i===void 0)throw kt().id==="workerd"?new U(`error: Environment variable not found: ${s.fromEnvVar}. - -In Cloudflare module Workers, environment variables are available only in the Worker's \`env\` parameter of \`fetch\`. -To solve this, provide the connection string directly: https://pris.ly/d/cloudflare-datasource-url`,n):new U(`error: Environment variable not found: ${s.fromEnvVar}.`,n);if(i===void 0)throw new U("error: Missing URL environment variable, value, or override.",n);return i}c();u();p();m();d();l();c();u();p();m();d();l();c();u();p();m();d();l();var zn=class extends Error{clientVersion;cause;constructor(t,r){super(t),this.clientVersion=r.clientVersion,this.cause=r.cause}get[Symbol.toStringTag](){return this.name}};var de=class extends zn{isRetryable;constructor(t,r){super(t,r),this.isRetryable=r.isRetryable??!0}};c();u();p();m();d();l();function L(e,t){return{...e,isRetryable:t}}var ot=class extends de{name="InvalidDatasourceError";code="P6001";constructor(t,r){super(t,L(r,!1))}};k(ot,"InvalidDatasourceError");function Yn(e){let t={clientVersion:e.clientVersion},r=Object.keys(e.inlineDatasources)[0],n=Nt({inlineDatasources:e.inlineDatasources,overrideDatasources:e.overrideDatasources,clientVersion:e.clientVersion,env:{...e.env,...typeof g<"u"?g.env:{}}}),i;try{i=new URL(n)}catch{throw new ot(`Error validating datasource \`${r}\`: the URL must start with the protocol \`prisma://\``,t)}let{protocol:o,searchParams:s}=i;if(o!=="prisma:"&&o!==on)throw new ot(`Error validating datasource \`${r}\`: the URL must start with the protocol \`prisma://\` or \`prisma+postgres://\``,t);let a=s.get("api_key");if(a===null||a.length<1)throw new ot(`Error validating datasource \`${r}\`: the URL must contain a valid API key`,t);let f=wi(i)?"http:":"https:",w=new URL(i.href.replace(o,f));return{apiKey:a,url:w}}c();u();p();m();d();l();var gc=Ae(bs()),Ut=class{apiKey;tracingHelper;logLevel;logQueries;engineHash;constructor({apiKey:t,tracingHelper:r,logLevel:n,logQueries:i,engineHash:o}){this.apiKey=t,this.tracingHelper=r,this.logLevel=n,this.logQueries=i,this.engineHash=o}build({traceparent:t,transactionId:r}={}){let n={Accept:"application/json",Authorization:`Bearer ${this.apiKey}`,"Content-Type":"application/json","Prisma-Engine-Hash":this.engineHash,"Prisma-Engine-Version":gc.enginesVersion};this.tracingHelper.isEnabled()&&(n.traceparent=t??this.tracingHelper.getTraceParent()),r&&(n["X-Transaction-Id"]=r);let i=this.#e();return i.length>0&&(n["X-Capture-Telemetry"]=i.join(", ")),n}#e(){let t=[];return this.tracingHelper.isEnabled()&&t.push("tracing"),this.logLevel&&t.push(this.logLevel),this.logQueries&&t.push("query"),t}};c();u();p();m();d();l();function zd(e){return e[0]*1e3+e[1]/1e6}function Ft(e){return new Date(zd(e))}var yc=J("prisma:client:clientEngine:remoteExecutor"),Zn=class{#e;#t;#r;#n;#o;constructor(t){this.#e=t.clientVersion,this.#n=t.logEmitter,this.#o=t.tracingHelper;let{url:r,apiKey:n}=Yn({clientVersion:t.clientVersion,env:t.env,inlineDatasources:t.inlineDatasources,overrideDatasources:t.overrideDatasources});this.#r=new xo(r),this.#t=new Ut({apiKey:n,engineHash:t.clientVersion,logLevel:t.logLevel,logQueries:t.logQueries,tracingHelper:t.tracingHelper})}async getConnectionInfo(){return await this.#i({path:"/connection-info",method:"GET"})}async execute({plan:t,placeholderValues:r,batchIndex:n,model:i,operation:o,transaction:s,customFetch:a}){return(await this.#i({path:s?`/transaction/${s.id}/query`:"/query",method:"POST",body:{model:i,operation:o,plan:t,params:r},batchRequestIdx:n,fetch:a})).data}async startTransaction(t){return{...await this.#i({path:"/transaction/start",method:"POST",body:t}),payload:void 0}}async commitTransaction(t){await this.#i({path:`/transaction/${t.id}/commit`,method:"POST"})}async rollbackTransaction(t){await this.#i({path:`/transaction/${t.id}/rollback`,method:"POST"})}disconnect(){return Promise.resolve()}async#i({path:t,method:r,body:n,fetch:i=globalThis.fetch,batchRequestIdx:o}){let s=await this.#r.request({method:r,path:t,headers:this.#t.build(),body:n,fetch:i});s.ok||await this.#s(s,o);let a=await s.json();return typeof a.extensions=="object"&&a.extensions!==null&&this.#a(a.extensions),a}async#s(t,r){let n=t.headers.get("Prisma-Error-Code"),i=await t.text(),o,s=i;try{o=JSON.parse(i)}catch{o={}}typeof o.code=="string"&&(n=o.code),typeof o.error=="string"?s=o.error:typeof o.message=="string"?s=o.message:typeof o.InvalidRequestError=="object"&&o.InvalidRequestError!==null&&typeof o.InvalidRequestError.reason=="string"&&(s=o.InvalidRequestError.reason),s=s||`HTTP ${t.status}: ${t.statusText}`;let a=typeof o.meta=="object"&&o.meta!==null?o.meta:o;throw new K(s,{clientVersion:this.#e,code:n??"P6000",batchRequestIdx:r,meta:a})}#a(t){if(t.logs)for(let r of t.logs)this.#l(r);t.traces&&this.#o.dispatchEngineSpans(t.traces)}#l(t){switch(t.level){case"debug":case"trace":yc(t);break;case"error":case"warn":case"info":{this.#n.emit(t.level,{timestamp:Ft(t.timestamp),message:t.attributes.message??"",target:t.target});break}case"query":{this.#n.emit("query",{query:t.attributes.query??"",timestamp:Ft(t.timestamp),duration:t.attributes.duration_ms??0,params:t.attributes.params??"",target:t.target});break}default:throw new Error(`Unexpected log level: ${t.level}`)}}},xo=class{#e;#t;#r;constructor(t){this.#e=t,this.#t=new Map}async request({method:t,path:r,headers:n,body:i,fetch:o}){let s=new URL(r,this.#e),a=this.#n(s);a&&(n.Cookie=a),this.#r&&(n["Accelerate-Query-Engine-Jwt"]=this.#r);let f=await o(s,{method:t,body:i!==void 0?JSON.stringify(i):void 0,headers:n});return yc(t,s,f.status,f.statusText),this.#r=f.headers.get("Accelerate-Query-Engine-Jwt")??void 0,this.#o(s,f),f}#n(t){let r=[],n=new Date;for(let[i,o]of this.#t){if(o.expires&&o.expires0?r.join("; "):void 0}#o(t,r){let n=r.headers.getSetCookie?.()||[];if(n.length===0){let i=r.headers.get("Set-Cookie");i&&n.push(i)}for(let i of n){let o=fc(i),s=o.domain??t.hostname,a=o.path??"/",f=`${s}:${a}:${o.name}`;this.#t.set(f,{name:o.name,value:o.value,domain:s,path:a,expires:o.expires})}}};c();u();p();m();d();l();var Po,hc={async loadQueryCompiler(e){let{clientVersion:t,compilerWasm:r}=e;if(r===void 0)throw new U("WASM query compiler was unexpectedly `undefined`",t);return Po===void 0&&(Po=(async()=>{let n=await r.getRuntime(),i=await r.getQueryCompilerWasmModule();if(i==null)throw new U("The loaded wasm module was unexpectedly `undefined` or `null` once loaded",t);let o={"./query_compiler_bg.js":n},s=new WebAssembly.Instance(i,o),a=s.exports.__wbindgen_start;return n.__wbg_set_wasm(s.exports),a(),n.QueryCompiler})()),await Po}};var wc="P2038",Ir=J("prisma:client:clientEngine"),Ec=globalThis;Ec.PRISMA_WASM_PANIC_REGISTRY={set_message(e){throw new ae(e,Wn)}};var kr=class{name="ClientEngine";#e;#t={type:"disconnected"};#r;#n;config;datamodel;logEmitter;logQueries;logLevel;tracingHelper;#o;constructor(t,r,n){if(!t.previewFeatures?.includes("driverAdapters")&&!r)throw new U("EngineType `client` requires the driverAdapters preview feature to be enabled.",t.clientVersion,wc);if(r)this.#n={remote:!0};else if(t.adapter)this.#n={remote:!1,driverAdapterFactory:t.adapter},Ir("Using driver adapter: %O",t.adapter);else throw new U("Missing configured driver adapter. Engine type `client` requires an active driver adapter. Please check your PrismaClient initialization code.",t.clientVersion,wc);this.#r=n??hc,this.config=t,this.logQueries=t.logQueries??!1,this.logLevel=t.logLevel??"error",this.logEmitter=t.logEmitter,this.datamodel=t.inlineSchema,this.tracingHelper=t.tracingHelper,t.enableDebugLogs&&(this.logLevel="debug"),this.logQueries&&(this.#o=i=>{this.logEmitter.emit("query",{...i,params:yr(i.params),target:"ClientEngine"})})}applyPendingMigrations(){throw new Error("Cannot call applyPendingMigrations on engine type client.")}async#i(){switch(this.#t.type){case"disconnected":{let t=this.tracingHelper.runInChildSpan("connect",async()=>{let r,n;try{r=await this.#s(),n=await this.#a(r)}catch(o){throw this.#t={type:"disconnected"},n?.free(),await r?.disconnect(),o}let i={executor:r,queryCompiler:n};return this.#t={type:"connected",engine:i},i});return this.#t={type:"connecting",promise:t},await t}case"connecting":return await this.#t.promise;case"connected":return this.#t.engine;case"disconnecting":return await this.#t.promise,await this.#i()}}async#s(){return this.#n.remote?new Zn({clientVersion:this.config.clientVersion,env:this.config.env,inlineDatasources:this.config.inlineDatasources,logEmitter:this.logEmitter,logLevel:this.logLevel,logQueries:this.logQueries,overrideDatasources:this.config.overrideDatasources,tracingHelper:this.tracingHelper}):await Jn.connect({driverAdapterFactory:this.#n.driverAdapterFactory,tracingHelper:this.tracingHelper,transactionOptions:{...this.config.transactionOptions,isolationLevel:this.#m(this.config.transactionOptions.isolationLevel)},onQuery:this.#o,provider:this.config.activeProvider})}async#a(t){let r=this.#e;r===void 0&&(r=await this.#r.loadQueryCompiler(this.config),this.#e=r);let{provider:n,connectionInfo:i}=await t.getConnectionInfo();try{return this.#p(()=>new r({datamodel:this.datamodel,provider:n,connectionInfo:i}),void 0,!1)}catch(o){throw this.#l(o)}}#l(t){if(t instanceof ae)return t;try{let r=JSON.parse(t.message);return new U(r.message,this.config.clientVersion,r.error_code)}catch{return t}}#c(t,r){if(t instanceof U)return t;if(t.code==="GenericFailure"&&t.message?.startsWith("PANIC:"))return new ae(bc(this,t.message,r),this.config.clientVersion);if(t instanceof De)return new K(t.message,{code:t.code,meta:t.meta,clientVersion:this.config.clientVersion});try{let n=JSON.parse(t);return new se(`${n.message} -${n.backtrace}`,{clientVersion:this.config.clientVersion})}catch{return t}}#u(t){return t instanceof ae?t:typeof t.message=="string"&&typeof t.code=="string"?new K(t.message,{code:t.code,meta:t.meta,clientVersion:this.config.clientVersion}):t}#p(t,r,n=!0){let i=Ec.PRISMA_WASM_PANIC_REGISTRY.set_message,o;globalThis.PRISMA_WASM_PANIC_REGISTRY.set_message=s=>{o=s};try{return t()}finally{if(globalThis.PRISMA_WASM_PANIC_REGISTRY.set_message=i,o)throw this.#e=void 0,n&&this.stop().catch(s=>Ir("failed to disconnect:",s)),new ae(bc(this,o,r),this.config.clientVersion)}}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the client engine, it is only relevant and implemented for the binary engine. Please add your event listener to the `process` object directly instead.')}async start(){await this.#i()}async stop(){switch(this.#t.type){case"disconnected":return;case"connecting":return await this.#t.promise,await this.stop();case"connected":{let t=this.#t.engine,r=this.tracingHelper.runInChildSpan("disconnect",async()=>{try{await t.executor.disconnect(),t.queryCompiler.free()}finally{this.#t={type:"disconnected"}}});return this.#t={type:"disconnecting",promise:r},await r}case"disconnecting":return await this.#t.promise}}version(){return"unknown"}async transaction(t,r,n){let i,{executor:o}=await this.#i();try{if(t==="start"){let s=n;i=await o.startTransaction({...s,isolationLevel:this.#m(s.isolationLevel)})}else if(t==="commit"){let s=n;await o.commitTransaction(s)}else if(t==="rollback"){let s=n;await o.rollbackTransaction(s)}else xe(t,"Invalid transaction action.")}catch(s){throw this.#c(s)}return i?{id:i.id,payload:void 0}:void 0}async request(t,{interactiveTransaction:r,customDataProxyFetch:n}){Ir("sending request");let i=JSON.stringify(t),{executor:o,queryCompiler:s}=await this.#i().catch(f=>{throw this.#c(f,i)}),a;try{a=this.#p(()=>s.compile(i),i)}catch(f){throw this.#u(f)}try{Ir("query plan created",a);let f={},w=await o.execute({plan:a,model:t.modelName,operation:t.action,placeholderValues:f,transaction:r,batchIndex:void 0,customFetch:n?.(globalThis.fetch)});return Ir("query plan executed"),{data:{[t.action]:w}}}catch(f){throw this.#c(f,i)}}async requestBatch(t,{transaction:r,customDataProxyFetch:n}){if(t.length===0)return[];let i=t[0].action,o=JSON.stringify(St(t,r)),{executor:s,queryCompiler:a}=await this.#i().catch(w=>{throw this.#c(w,o)}),f;try{f=a.compileBatch(o)}catch(w){throw this.#u(w)}try{let w;if(r?.kind==="itx")w=r.options;else{let R=r?.options.isolationLevel?{...this.config.transactionOptions,isolationLevel:r.options.isolationLevel}:this.config.transactionOptions;w=await this.transaction("start",{},R)}let v={},A=[];switch(f.type){case"multi":{A=await Promise.all(f.plans.map((R,C)=>s.execute({plan:R,placeholderValues:v,model:t[C].modelName,operation:t[C].action,batchIndex:C,transaction:w,customFetch:n?.(globalThis.fetch)}).then(D=>({data:{[t[C].action]:D}}),D=>D)));break}case"compacted":{if(!t.every(C=>C.action===i))throw new Error("All queries in a batch must have the same action");let R=await s.execute({plan:f.plan,placeholderValues:v,model:t[0].modelName,operation:i,batchIndex:void 0,transaction:w,customFetch:n?.(globalThis.fetch)});A=this.#d(R,f,i);break}}return r?.kind!=="itx"&&await this.transaction("commit",{},w),A}catch(w){throw this.#c(w,o)}}metrics(t){throw new Error("Method not implemented.")}#d(t,r,n){let i=t.map(s=>r.keys.reduce((a,f)=>(a[f]=$e(s[f]),a),{})),o=new Set(r.nestedSelection);return r.arguments.map(s=>{let a=i.findIndex(f=>gr(f,s));if(a===-1)return r.expectNonEmpty?new K("An operation failed because it depends on one or more records that were required but not found",{code:"P2025",clientVersion:this.config.clientVersion}):{data:{[n]:null}};{let f=Object.entries(t[a]).filter(([w])=>o.has(w));return{data:{[n]:Object.fromEntries(f)}}}})}#m(t){switch(t){case void 0:return;case"ReadUncommitted":return"READ UNCOMMITTED";case"ReadCommitted":return"READ COMMITTED";case"RepeatableRead":return"REPEATABLE READ";case"Serializable":return"SERIALIZABLE";case"Snapshot":return"SNAPSHOT";default:throw new K(`Inconsistent column data: Conversion failed: Invalid isolation level \`${t}\``,{code:"P2023",clientVersion:this.config.clientVersion,meta:{providedIsolationLevel:t}})}}};function bc(e,t,r){return Qa({binaryTarget:void 0,title:t,version:e.config.clientVersion,engineVersion:"unknown",database:e.config.activeProvider,query:r})}c();u();p();m();d();l();c();u();p();m();d();l();var Vt=class extends de{name="ForcedRetryError";code="P5001";constructor(t){super("This request must be retried",L(t,!0))}};k(Vt,"ForcedRetryError");c();u();p();m();d();l();var st=class extends de{name="NotImplementedYetError";code="P5004";constructor(t,r){super(t,L(r,!1))}};k(st,"NotImplementedYetError");c();u();p();m();d();l();c();u();p();m();d();l();var B=class extends de{response;constructor(t,r){super(t,r),this.response=r.response;let n=this.response.headers.get("prisma-request-id");if(n){let i=`(The request id was: ${n})`;this.message=this.message+" "+i}}};var at=class extends B{name="SchemaMissingError";code="P5005";constructor(t){super("Schema needs to be uploaded",L(t,!0))}};k(at,"SchemaMissingError");c();u();p();m();d();l();c();u();p();m();d();l();var To="This request could not be understood by the server",Or=class extends B{name="BadRequestError";code="P5000";constructor(t,r,n){super(r||To,L(t,!1)),n&&(this.code=n)}};k(Or,"BadRequestError");c();u();p();m();d();l();var Dr=class extends B{name="HealthcheckTimeoutError";code="P5013";logs;constructor(t,r){super("Engine not started: healthcheck timeout",L(t,!0)),this.logs=r}};k(Dr,"HealthcheckTimeoutError");c();u();p();m();d();l();var _r=class extends B{name="EngineStartupError";code="P5014";logs;constructor(t,r,n){super(r,L(t,!0)),this.logs=n}};k(_r,"EngineStartupError");c();u();p();m();d();l();var Mr=class extends B{name="EngineVersionNotSupportedError";code="P5012";constructor(t){super("Engine version is not supported",L(t,!1))}};k(Mr,"EngineVersionNotSupportedError");c();u();p();m();d();l();var vo="Request timed out",Lr=class extends B{name="GatewayTimeoutError";code="P5009";constructor(t,r=vo){super(r,L(t,!1))}};k(Lr,"GatewayTimeoutError");c();u();p();m();d();l();var Yd="Interactive transaction error",Nr=class extends B{name="InteractiveTransactionError";code="P5015";constructor(t,r=Yd){super(r,L(t,!1))}};k(Nr,"InteractiveTransactionError");c();u();p();m();d();l();var Zd="Request parameters are invalid",Ur=class extends B{name="InvalidRequestError";code="P5011";constructor(t,r=Zd){super(r,L(t,!1))}};k(Ur,"InvalidRequestError");c();u();p();m();d();l();var Ao="Requested resource does not exist",Fr=class extends B{name="NotFoundError";code="P5003";constructor(t,r=Ao){super(r,L(t,!1))}};k(Fr,"NotFoundError");c();u();p();m();d();l();var Co="Unknown server error",$t=class extends B{name="ServerError";code="P5006";logs;constructor(t,r,n){super(r||Co,L(t,!0)),this.logs=n}};k($t,"ServerError");c();u();p();m();d();l();var Ro="Unauthorized, check your connection string",Vr=class extends B{name="UnauthorizedError";code="P5007";constructor(t,r=Ro){super(r,L(t,!1))}};k(Vr,"UnauthorizedError");c();u();p();m();d();l();var So="Usage exceeded, retry again later",$r=class extends B{name="UsageExceededError";code="P5008";constructor(t,r=So){super(r,L(t,!0))}};k($r,"UsageExceededError");async function Xd(e){let t;try{t=await e.text()}catch{return{type:"EmptyError"}}try{let r=JSON.parse(t);if(typeof r=="string")switch(r){case"InternalDataProxyError":return{type:"DataProxyError",body:r};default:return{type:"UnknownTextError",body:r}}if(typeof r=="object"&&r!==null){if("is_panic"in r&&"message"in r&&"error_code"in r)return{type:"QueryEngineError",body:r};if("EngineNotStarted"in r||"InteractiveTransactionMisrouted"in r||"InvalidRequestError"in r){let n=Object.values(r)[0].reason;return typeof n=="string"&&!["SchemaMissing","EngineVersionNotSupported"].includes(n)?{type:"UnknownJsonError",body:r}:{type:"DataProxyError",body:r}}}return{type:"UnknownJsonError",body:r}}catch{return t===""?{type:"EmptyError"}:{type:"UnknownTextError",body:t}}}async function qr(e,t){if(e.ok)return;let r={clientVersion:t,response:e},n=await Xd(e);if(n.type==="QueryEngineError")throw new K(n.body.message,{code:n.body.error_code,clientVersion:t});if(n.type==="DataProxyError"){if(n.body==="InternalDataProxyError")throw new $t(r,"Internal Data Proxy error");if("EngineNotStarted"in n.body){if(n.body.EngineNotStarted.reason==="SchemaMissing")return new at(r);if(n.body.EngineNotStarted.reason==="EngineVersionNotSupported")throw new Mr(r);if("EngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,logs:o}=n.body.EngineNotStarted.reason.EngineStartupError;throw new _r(r,i,o)}if("KnownEngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,error_code:o}=n.body.EngineNotStarted.reason.KnownEngineStartupError;throw new U(i,t,o)}if("HealthcheckTimeout"in n.body.EngineNotStarted.reason){let{logs:i}=n.body.EngineNotStarted.reason.HealthcheckTimeout;throw new Dr(r,i)}}if("InteractiveTransactionMisrouted"in n.body){let i={IDParseError:"Could not parse interactive transaction ID",NoQueryEngineFoundError:"Could not find Query Engine for the specified host and transaction ID",TransactionStartError:"Could not start interactive transaction"};throw new Nr(r,i[n.body.InteractiveTransactionMisrouted.reason])}if("InvalidRequestError"in n.body)throw new Ur(r,n.body.InvalidRequestError.reason)}if(e.status===401||e.status===403)throw new Vr(r,qt(Ro,n));if(e.status===404)return new Fr(r,qt(Ao,n));if(e.status===429)throw new $r(r,qt(So,n));if(e.status===504)throw new Lr(r,qt(vo,n));if(e.status>=500)throw new $t(r,qt(Co,n));if(e.status>=400)throw new Or(r,qt(To,n))}function qt(e,t){return t.type==="EmptyError"?e:`${e}: ${JSON.stringify(t)}`}c();u();p();m();d();l();function xc(e){let t=Math.pow(2,e)*50,r=Math.ceil(Math.random()*t)-Math.ceil(t/2),n=t+r;return new Promise(i=>setTimeout(()=>i(n),n))}c();u();p();m();d();l();var Fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Pc(e){let t=new TextEncoder().encode(e),r="",n=t.byteLength,i=n%3,o=n-i,s,a,f,w,v;for(let A=0;A>18,a=(v&258048)>>12,f=(v&4032)>>6,w=v&63,r+=Fe[s]+Fe[a]+Fe[f]+Fe[w];return i==1?(v=t[o],s=(v&252)>>2,a=(v&3)<<4,r+=Fe[s]+Fe[a]+"=="):i==2&&(v=t[o]<<8|t[o+1],s=(v&64512)>>10,a=(v&1008)>>4,f=(v&15)<<2,r+=Fe[s]+Fe[a]+Fe[f]+"="),r}c();u();p();m();d();l();function Tc(e){if(!!e.generator?.previewFeatures.some(r=>r.toLowerCase().includes("metrics")))throw new U("The `metrics` preview feature is not yet available with Accelerate.\nPlease remove `metrics` from the `previewFeatures` in your schema.\n\nMore information about Accelerate: https://pris.ly/d/accelerate",e.clientVersion)}c();u();p();m();d();l();var vc={"@prisma/debug":"workspace:*","@prisma/engines-version":"6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc","@prisma/fetch-engine":"workspace:*","@prisma/get-platform":"workspace:*"};c();u();p();m();d();l();c();u();p();m();d();l();var Br=class extends de{name="RequestError";code="P5010";constructor(t,r){super(`Cannot fetch data from service: -${t}`,L(r,!0))}};k(Br,"RequestError");async function lt(e,t,r=n=>n){let{clientVersion:n,...i}=t,o=r(fetch);try{return await o(e,i)}catch(s){let a=s.message??"Unknown error";throw new Br(a,{clientVersion:n,cause:s})}}var tf=/^[1-9][0-9]*\.[0-9]+\.[0-9]+$/,Ac=J("prisma:client:dataproxyEngine");async function rf(e,t){let r=vc["@prisma/engines-version"],n=t.clientVersion??"unknown";if(g.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION||globalThis.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION)return g.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION||globalThis.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION;if(e.includes("accelerate")&&n!=="0.0.0"&&n!=="in-memory")return n;let[i,o]=n?.split("-")??[];if(o===void 0&&tf.test(i))return i;if(o!==void 0||n==="0.0.0"||n==="in-memory"){let[s]=r.split("-")??[],[a,f,w]=s.split("."),v=nf(`<=${a}.${f}.${w}`),A=await lt(v,{clientVersion:n});if(!A.ok)throw new Error(`Failed to fetch stable Prisma version, unpkg.com status ${A.status} ${A.statusText}, response body: ${await A.text()||""}`);let R=await A.text();Ac("length of body fetched from unpkg.com",R.length);let C;try{C=JSON.parse(R)}catch(D){throw console.error("JSON.parse error: body fetched from unpkg.com: ",R),D}return C.version}throw new st("Only `major.minor.patch` versions are supported by Accelerate.",{clientVersion:n})}async function Cc(e,t){let r=await rf(e,t);return Ac("version",r),r}function nf(e){return encodeURI(`https://unpkg.com/prisma@${e}/package.json`)}var Rc=3,jr=J("prisma:client:dataproxyEngine"),Qr=class{name="DataProxyEngine";inlineSchema;inlineSchemaHash;inlineDatasources;config;logEmitter;env;clientVersion;engineHash;tracingHelper;remoteClientVersion;host;headerBuilder;startPromise;protocol;constructor(t){Tc(t),this.config=t,this.env=t.env,this.inlineSchema=Pc(t.inlineSchema),this.inlineDatasources=t.inlineDatasources,this.inlineSchemaHash=t.inlineSchemaHash,this.clientVersion=t.clientVersion,this.engineHash=t.engineVersion,this.logEmitter=t.logEmitter,this.tracingHelper=t.tracingHelper}apiKey(){return this.headerBuilder.apiKey}version(){return this.engineHash}async start(){this.startPromise!==void 0&&await this.startPromise,this.startPromise=(async()=>{let{apiKey:t,url:r}=this.getURLAndAPIKey();this.host=r.host,this.protocol=r.protocol,this.headerBuilder=new Ut({apiKey:t,tracingHelper:this.tracingHelper,logLevel:this.config.logLevel??"error",logQueries:this.config.logQueries,engineHash:this.engineHash}),this.remoteClientVersion=await Cc(this.host,this.config),jr("host",this.host),jr("protocol",this.protocol)})(),await this.startPromise}async stop(){}propagateResponseExtensions(t){t?.logs?.length&&t.logs.forEach(r=>{switch(r.level){case"debug":case"trace":jr(r);break;case"error":case"warn":case"info":{this.logEmitter.emit(r.level,{timestamp:Ft(r.timestamp),message:r.attributes.message??"",target:r.target});break}case"query":{this.logEmitter.emit("query",{query:r.attributes.query??"",timestamp:Ft(r.timestamp),duration:r.attributes.duration_ms??0,params:r.attributes.params??"",target:r.target});break}default:r.level}}),t?.traces?.length&&this.tracingHelper.dispatchEngineSpans(t.traces)}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the remote query engine')}async url(t){return await this.start(),`${this.protocol}//${this.host}/${this.remoteClientVersion}/${this.inlineSchemaHash}/${t}`}async uploadSchema(){let t={name:"schemaUpload",internal:!0};return this.tracingHelper.runInChildSpan(t,async()=>{let r=await lt(await this.url("schema"),{method:"PUT",headers:this.headerBuilder.build(),body:this.inlineSchema,clientVersion:this.clientVersion});r.ok||jr("schema response status",r.status);let n=await qr(r,this.clientVersion);if(n)throw this.logEmitter.emit("warn",{message:`Error while uploading schema: ${n.message}`,timestamp:new Date,target:""}),n;this.logEmitter.emit("info",{message:`Schema (re)uploaded (hash: ${this.inlineSchemaHash})`,timestamp:new Date,target:""})})}request(t,{traceparent:r,interactiveTransaction:n,customDataProxyFetch:i}){return this.requestInternal({body:t,traceparent:r,interactiveTransaction:n,customDataProxyFetch:i})}async requestBatch(t,{traceparent:r,transaction:n,customDataProxyFetch:i}){let o=n?.kind==="itx"?n.options:void 0,s=St(t,n);return(await this.requestInternal({body:s,customDataProxyFetch:i,interactiveTransaction:o,traceparent:r})).map(f=>(f.extensions&&this.propagateResponseExtensions(f.extensions),"errors"in f?this.convertProtocolErrorsToClientError(f.errors):f))}requestInternal({body:t,traceparent:r,customDataProxyFetch:n,interactiveTransaction:i}){return this.withRetry({actionGerund:"querying",callback:async({logHttpCall:o})=>{let s=i?`${i.payload.endpoint}/graphql`:await this.url("graphql");o(s);let a=await lt(s,{method:"POST",headers:this.headerBuilder.build({traceparent:r,transactionId:i?.id}),body:JSON.stringify(t),clientVersion:this.clientVersion},n);a.ok||jr("graphql response status",a.status),await this.handleError(await qr(a,this.clientVersion));let f=await a.json();if(f.extensions&&this.propagateResponseExtensions(f.extensions),"errors"in f)throw this.convertProtocolErrorsToClientError(f.errors);return"batchResult"in f?f.batchResult:f}})}async transaction(t,r,n){let i={start:"starting",commit:"committing",rollback:"rolling back"};return this.withRetry({actionGerund:`${i[t]} transaction`,callback:async({logHttpCall:o})=>{if(t==="start"){let s=JSON.stringify({max_wait:n.maxWait,timeout:n.timeout,isolation_level:n.isolationLevel}),a=await this.url("transaction/start");o(a);let f=await lt(a,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),body:s,clientVersion:this.clientVersion});await this.handleError(await qr(f,this.clientVersion));let w=await f.json(),{extensions:v}=w;v&&this.propagateResponseExtensions(v);let A=w.id,R=w["data-proxy"].endpoint;return{id:A,payload:{endpoint:R}}}else{let s=`${n.payload.endpoint}/${t}`;o(s);let a=await lt(s,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),clientVersion:this.clientVersion});await this.handleError(await qr(a,this.clientVersion));let f=await a.json(),{extensions:w}=f;w&&this.propagateResponseExtensions(w);return}}})}getURLAndAPIKey(){return Yn({clientVersion:this.clientVersion,env:this.env,inlineDatasources:this.inlineDatasources,overrideDatasources:this.config.overrideDatasources})}metrics(){throw new st("Metrics are not yet supported for Accelerate",{clientVersion:this.clientVersion})}async withRetry(t){for(let r=0;;r++){let n=i=>{this.logEmitter.emit("info",{message:`Calling ${i} (n=${r})`,timestamp:new Date,target:""})};try{return await t.callback({logHttpCall:n})}catch(i){if(!(i instanceof de)||!i.isRetryable)throw i;if(r>=Rc)throw i instanceof Vt?i.cause:i;this.logEmitter.emit("warn",{message:`Attempt ${r+1}/${Rc} failed for ${t.actionGerund}: ${i.message??"(unknown)"}`,timestamp:new Date,target:""});let o=await xc(r);this.logEmitter.emit("warn",{message:`Retrying after ${o}ms`,timestamp:new Date,target:""})}}}async handleError(t){if(t instanceof at)throw await this.uploadSchema(),new Vt({clientVersion:this.clientVersion,cause:t});if(t)throw t}convertProtocolErrorsToClientError(t){return t.length===1?In(t[0],this.config.clientVersion,this.config.activeProvider):new se(JSON.stringify(t),{clientVersion:this.config.clientVersion})}applyPendingMigrations(){throw new Error("Method not implemented.")}};c();u();p();m();d();l();function Sc({url:e,adapter:t,copyEngine:r,targetBuildType:n}){let i=[],o=[],s=I=>{i.push({_tag:"warning",value:I})},a=I=>{let M=I.join(` -`);o.push({_tag:"error",value:M})},f=!!e?.startsWith("prisma://"),w=sn(e),v=!!t,A=f||w;!v&&r&&A&&s(["recommend--no-engine","In production, we recommend using `prisma generate --no-engine` (See: `prisma generate --help`)"]);let R=A||!r;v&&(R||n==="edge")&&(n==="edge"?a(["Prisma Client was configured to use the `adapter` option but it was imported via its `/edge` endpoint.","Please either remove the `/edge` endpoint or remove the `adapter` from the Prisma Client constructor."]):r?f&&a(["Prisma Client was configured to use the `adapter` option but the URL was a `prisma://` URL.","Please either use the `prisma://` URL or remove the `adapter` from the Prisma Client constructor."]):a(["Prisma Client was configured to use the `adapter` option but `prisma generate` was run with `--no-engine`.","Please run `prisma generate` without `--no-engine` to be able to use Prisma Client with the adapter."]));let C={accelerate:R,ppg:w,driverAdapters:v};function D(I){return I.length>0}return D(o)?{ok:!1,diagnostics:{warnings:i,errors:o},isUsing:C}:{ok:!0,diagnostics:{warnings:i},isUsing:C}}function Ic({copyEngine:e=!0},t){let r;try{r=Nt({inlineDatasources:t.inlineDatasources,overrideDatasources:t.overrideDatasources,env:{...t.env,...g.env},clientVersion:t.clientVersion})}catch{}let{ok:n,isUsing:i,diagnostics:o}=Sc({url:r,adapter:t.adapter,copyEngine:e,targetBuildType:"wasm-compiler-edge"});for(let A of o.warnings)Yt(...A.value);if(!n){let A=o.errors[0];throw new ne(A.value,{clientVersion:t.clientVersion})}let s=ft(t.generator),a=s==="library",f=s==="binary",w=s==="client",v=(i.accelerate||i.ppg)&&!i.driverAdapters;if(w)return new kr(t,v);if(i.accelerate)return new Qr(t);i.driverAdapters,i.accelerate;{let A=[`PrismaClient failed to initialize because it wasn't configured to run in this environment (${kt().prettyName}).`,"In order to run Prisma Client in an edge runtime, you will need to configure one of the following options:","- Enable Driver Adapters: https://pris.ly/d/driver-adapters","- Enable Accelerate: https://pris.ly/d/accelerate"];throw new ne(A.join(` -`),{clientVersion:t.clientVersion})}return"wasm-compiler-edge"}c();u();p();m();d();l();function Xn({generator:e}){return e?.previewFeatures??[]}c();u();p();m();d();l();var kc=e=>({command:e});c();u();p();m();d();l();c();u();p();m();d();l();var Oc=e=>e.strings.reduce((t,r,n)=>`${t}@P${n}${r}`);c();u();p();m();d();l();l();function Bt(e){try{return Dc(e,"fast")}catch{return Dc(e,"slow")}}function Dc(e,t){return JSON.stringify(e.map(r=>Mc(r,t)))}function Mc(e,t){if(Array.isArray(e))return e.map(r=>Mc(r,t));if(typeof e=="bigint")return{prisma__type:"bigint",prisma__value:e.toString()};if(ht(e))return{prisma__type:"date",prisma__value:e.toJSON()};if(re.isDecimal(e))return{prisma__type:"decimal",prisma__value:e.toJSON()};if(y.isBuffer(e))return{prisma__type:"bytes",prisma__value:e.toString("base64")};if(of(e))return{prisma__type:"bytes",prisma__value:y.from(e).toString("base64")};if(ArrayBuffer.isView(e)){let{buffer:r,byteOffset:n,byteLength:i}=e;return{prisma__type:"bytes",prisma__value:y.from(r,n,i).toString("base64")}}return typeof e=="object"&&t==="slow"?Lc(e):e}function of(e){return e instanceof ArrayBuffer||e instanceof SharedArrayBuffer?!0:typeof e=="object"&&e!==null?e[Symbol.toStringTag]==="ArrayBuffer"||e[Symbol.toStringTag]==="SharedArrayBuffer":!1}function Lc(e){if(typeof e!="object"||e===null)return e;if(typeof e.toJSON=="function")return e.toJSON();if(Array.isArray(e))return e.map(_c);let t={};for(let r of Object.keys(e))t[r]=_c(e[r]);return t}function _c(e){return typeof e=="bigint"?e.toString():Lc(e)}var sf=/^(\s*alter\s)/i,Nc=J("prisma:client");function Io(e,t,r,n){if(!(e!=="postgresql"&&e!=="cockroachdb")&&r.length>0&&sf.exec(t))throw new Error(`Running ALTER using ${n} is not supported -Using the example below you can still execute your query with Prisma, but please note that it is vulnerable to SQL injection attacks and requires you to take care of input sanitization. - -Example: - await prisma.$executeRawUnsafe(\`ALTER USER prisma WITH PASSWORD '\${password}'\`) - -More Information: https://pris.ly/d/execute-raw -`)}var ko=({clientMethod:e,activeProvider:t})=>r=>{let n="",i;if(An(r))n=r.sql,i={values:Bt(r.values),__prismaRawParameters__:!0};else if(Array.isArray(r)){let[o,...s]=r;n=o,i={values:Bt(s||[]),__prismaRawParameters__:!0}}else switch(t){case"sqlite":case"mysql":{n=r.sql,i={values:Bt(r.values),__prismaRawParameters__:!0};break}case"cockroachdb":case"postgresql":case"postgres":{n=r.text,i={values:Bt(r.values),__prismaRawParameters__:!0};break}case"sqlserver":{n=Oc(r),i={values:Bt(r.values),__prismaRawParameters__:!0};break}default:throw new Error(`The ${t} provider does not support ${e}`)}return i?.values?Nc(`prisma.${e}(${n}, ${i.values})`):Nc(`prisma.${e}(${n})`),{query:n,parameters:i}},Uc={requestArgsToMiddlewareArgs(e){return[e.strings,...e.values]},middlewareArgsToRequestArgs(e){let[t,...r]=e;return new me(t,r)}},Fc={requestArgsToMiddlewareArgs(e){return[e]},middlewareArgsToRequestArgs(e){return e[0]}};c();u();p();m();d();l();function Oo(e){return function(r,n){let i,o=(s=e)=>{try{return s===void 0||s?.kind==="itx"?i??=Vc(r(s)):Vc(r(s))}catch(a){return Promise.reject(a)}};return{get spec(){return n},then(s,a){return o().then(s,a)},catch(s){return o().catch(s)},finally(s){return o().finally(s)},requestTransaction(s){let a=o(s);return a.requestTransaction?a.requestTransaction(s):a},[Symbol.toStringTag]:"PrismaPromise"}}}function Vc(e){return typeof e.then=="function"?e:Promise.resolve(e)}c();u();p();m();d();l();var af=gi.split(".")[0],lf={isEnabled(){return!1},getTraceParent(){return"00-10-10-00"},dispatchEngineSpans(){},getActiveContext(){},runInChildSpan(e,t){return t()}},Do=class{isEnabled(){return this.getGlobalTracingHelper().isEnabled()}getTraceParent(t){return this.getGlobalTracingHelper().getTraceParent(t)}dispatchEngineSpans(t){return this.getGlobalTracingHelper().dispatchEngineSpans(t)}getActiveContext(){return this.getGlobalTracingHelper().getActiveContext()}runInChildSpan(t,r){return this.getGlobalTracingHelper().runInChildSpan(t,r)}getGlobalTracingHelper(){let t=globalThis[`V${af}_PRISMA_INSTRUMENTATION`],r=globalThis.PRISMA_INSTRUMENTATION;return t?.helper??r?.helper??lf}};function $c(){return new Do}c();u();p();m();d();l();function qc(e,t=()=>{}){let r,n=new Promise(i=>r=i);return{then(i){return--e===0&&r(t()),i?.(n)}}}c();u();p();m();d();l();function Bc(e){return typeof e=="string"?e:e.reduce((t,r)=>{let n=typeof r=="string"?r:r.level;return n==="query"?t:t&&(r==="info"||t==="info")?"info":n},void 0)}c();u();p();m();d();l();var ei=class{_middlewares=[];use(t){this._middlewares.push(t)}get(t){return this._middlewares[t]}has(t){return!!this._middlewares[t]}length(){return this._middlewares.length}};c();u();p();m();d();l();var Qc=Ae(Ei());c();u();p();m();d();l();function ti(e){return typeof e.batchRequestIdx=="number"}c();u();p();m();d();l();function jc(e){if(e.action!=="findUnique"&&e.action!=="findUniqueOrThrow")return;let t=[];return e.modelName&&t.push(e.modelName),e.query.arguments&&t.push(_o(e.query.arguments)),t.push(_o(e.query.selection)),t.join("")}function _o(e){return`(${Object.keys(e).sort().map(r=>{let n=e[r];return typeof n=="object"&&n!==null?`(${r} ${_o(n)})`:r}).join(" ")})`}c();u();p();m();d();l();var cf={aggregate:!1,aggregateRaw:!1,createMany:!0,createManyAndReturn:!0,createOne:!0,deleteMany:!0,deleteOne:!0,executeRaw:!0,findFirst:!1,findFirstOrThrow:!1,findMany:!1,findRaw:!1,findUnique:!1,findUniqueOrThrow:!1,groupBy:!1,queryRaw:!1,runCommandRaw:!0,updateMany:!0,updateManyAndReturn:!0,updateOne:!0,upsertOne:!0};function Mo(e){return cf[e]}c();u();p();m();d();l();var ri=class{constructor(t){this.options=t;this.batches={}}batches;tickActive=!1;request(t){let r=this.options.batchBy(t);return r?(this.batches[r]||(this.batches[r]=[],this.tickActive||(this.tickActive=!0,g.nextTick(()=>{this.dispatchBatches(),this.tickActive=!1}))),new Promise((n,i)=>{this.batches[r].push({request:t,resolve:n,reject:i})})):this.options.singleLoader(t)}dispatchBatches(){for(let t in this.batches){let r=this.batches[t];delete this.batches[t],r.length===1?this.options.singleLoader(r[0].request).then(n=>{n instanceof Error?r[0].reject(n):r[0].resolve(n)}).catch(n=>{r[0].reject(n)}):(r.sort((n,i)=>this.options.batchOrder(n.request,i.request)),this.options.batchLoader(r.map(n=>n.request)).then(n=>{if(n instanceof Error)for(let i=0;i{for(let i=0;ict("bigint",r));case"bytes-array":return t.map(r=>ct("bytes",r));case"decimal-array":return t.map(r=>ct("decimal",r));case"datetime-array":return t.map(r=>ct("datetime",r));case"date-array":return t.map(r=>ct("date",r));case"time-array":return t.map(r=>ct("time",r));default:return t}}function ni(e){let t=[],r=uf(e);for(let n=0;n{let{transaction:o,otelParentCtx:s}=n[0],a=n.map(A=>A.protocolQuery),f=this.client._tracingHelper.getTraceParent(s),w=n.some(A=>Mo(A.protocolQuery.action));return(await this.client._engine.requestBatch(a,{traceparent:f,transaction:mf(o),containsWrite:w,customDataProxyFetch:i})).map((A,R)=>{if(A instanceof Error)return A;try{return this.mapQueryEngineResult(n[R],A)}catch(C){return C}})}),singleLoader:async n=>{let i=n.transaction?.kind==="itx"?Hc(n.transaction):void 0,o=await this.client._engine.request(n.protocolQuery,{traceparent:this.client._tracingHelper.getTraceParent(),interactiveTransaction:i,isWrite:Mo(n.protocolQuery.action),customDataProxyFetch:n.customDataProxyFetch});return this.mapQueryEngineResult(n,o)},batchBy:n=>n.transaction?.id?`transaction-${n.transaction.id}`:jc(n.protocolQuery),batchOrder(n,i){return n.transaction?.kind==="batch"&&i.transaction?.kind==="batch"?n.transaction.index-i.transaction.index:0}})}async request(t){try{return await this.dataloader.request(t)}catch(r){let{clientMethod:n,callsite:i,transaction:o,args:s,modelName:a}=t;this.handleAndLogRequestError({error:r,clientMethod:n,callsite:i,transaction:o,args:s,modelName:a,globalOmit:t.globalOmit})}}mapQueryEngineResult({dataPath:t,unpacker:r},n){let i=n?.data,o=this.unpack(i,t,r);return g.env.PRISMA_CLIENT_GET_TIME?{data:o}:o}handleAndLogRequestError(t){try{this.handleRequestError(t)}catch(r){throw this.logEmitter&&this.logEmitter.emit("error",{message:r.message,target:t.clientMethod,timestamp:new Date}),r}}handleRequestError({error:t,clientMethod:r,callsite:n,transaction:i,args:o,modelName:s,globalOmit:a}){if(pf(t),df(t,i))throw t;if(t instanceof K&&ff(t)){let w=Gc(t.meta);bn({args:o,errors:[w],callsite:n,errorFormat:this.client._errorFormat,originalMethod:r,clientVersion:this.client._clientVersion,globalOmit:a})}let f=t.message;if(n&&(f=cn({callsite:n,originalMethod:r,isPanic:t.isPanic,showColors:this.client._errorFormat==="pretty",message:f})),f=this.sanitizeMessage(f),t.code){let w=s?{modelName:s,...t.meta}:t.meta;throw new K(f,{code:t.code,clientVersion:this.client._clientVersion,meta:w,batchRequestIdx:t.batchRequestIdx})}else{if(t.isPanic)throw new ae(f,this.client._clientVersion);if(t instanceof se)throw new se(f,{clientVersion:this.client._clientVersion,batchRequestIdx:t.batchRequestIdx});if(t instanceof U)throw new U(f,this.client._clientVersion);if(t instanceof ae)throw new ae(f,this.client._clientVersion)}throw t.clientVersion=this.client._clientVersion,t}sanitizeMessage(t){return this.client._errorFormat&&this.client._errorFormat!=="pretty"?(0,Qc.default)(t):t}unpack(t,r,n){if(!t||(t.data&&(t=t.data),!t))return t;let i=Object.keys(t)[0],o=Object.values(t)[0],s=r.filter(w=>w!=="select"&&w!=="include"),a=Ni(o,s),f=i==="queryRaw"?ni(a):$e(a);return n?n(f):f}get[Symbol.toStringTag](){return"RequestHandler"}};function mf(e){if(e){if(e.kind==="batch")return{kind:"batch",options:{isolationLevel:e.isolationLevel}};if(e.kind==="itx")return{kind:"itx",options:Hc(e)};xe(e,"Unknown transaction kind")}}function Hc(e){return{id:e.id,payload:e.payload}}function df(e,t){return ti(e)&&t?.kind==="batch"&&e.batchRequestIdx!==t.index}function ff(e){return e.code==="P2009"||e.code==="P2012"}function Gc(e){if(e.kind==="Union")return{kind:"Union",errors:e.errors.map(Gc)};if(Array.isArray(e.selectionPath)){let[,...t]=e.selectionPath;return{...e,selectionPath:t}}return e}c();u();p();m();d();l();var Wc=Wn;c();u();p();m();d();l();var Zc=Ae(vi());c();u();p();m();d();l();var F=class extends Error{constructor(t){super(t+` -Read more at https://pris.ly/d/client-constructor`),this.name="PrismaClientConstructorValidationError"}get[Symbol.toStringTag](){return"PrismaClientConstructorValidationError"}};k(F,"PrismaClientConstructorValidationError");var Jc=["datasources","datasourceUrl","errorFormat","adapter","log","transactionOptions","omit","__internal"],Kc=["pretty","colorless","minimal"],zc=["info","query","warn","error"],gf={datasources:(e,{datasourceNames:t})=>{if(e){if(typeof e!="object"||Array.isArray(e))throw new F(`Invalid value ${JSON.stringify(e)} for "datasources" provided to PrismaClient constructor`);for(let[r,n]of Object.entries(e)){if(!t.includes(r)){let i=jt(r,t)||` Available datasources: ${t.join(", ")}`;throw new F(`Unknown datasource ${r} provided to PrismaClient constructor.${i}`)}if(typeof n!="object"||Array.isArray(n))throw new F(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(n&&typeof n=="object")for(let[i,o]of Object.entries(n)){if(i!=="url")throw new F(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(typeof o!="string")throw new F(`Invalid value ${JSON.stringify(o)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`)}}}},adapter:(e,t)=>{if(!e&&ft(t.generator)==="client")throw new F('Using engine type "client" requires a driver adapter to be provided to PrismaClient constructor.');if(e===null)return;if(e===void 0)throw new F('"adapter" property must not be undefined, use null to conditionally disable driver adapters.');if(!Xn(t).includes("driverAdapters"))throw new F('"adapter" property can only be provided to PrismaClient constructor when "driverAdapters" preview feature is enabled.');if(ft(t.generator)==="binary")throw new F('Cannot use a driver adapter with the "binary" Query Engine. Please use the "library" Query Engine.')},datasourceUrl:e=>{if(typeof e<"u"&&typeof e!="string")throw new F(`Invalid value ${JSON.stringify(e)} for "datasourceUrl" provided to PrismaClient constructor. -Expected string or undefined.`)},errorFormat:e=>{if(e){if(typeof e!="string")throw new F(`Invalid value ${JSON.stringify(e)} for "errorFormat" provided to PrismaClient constructor.`);if(!Kc.includes(e)){let t=jt(e,Kc);throw new F(`Invalid errorFormat ${e} provided to PrismaClient constructor.${t}`)}}},log:e=>{if(!e)return;if(!Array.isArray(e))throw new F(`Invalid value ${JSON.stringify(e)} for "log" provided to PrismaClient constructor.`);function t(r){if(typeof r=="string"&&!zc.includes(r)){let n=jt(r,zc);throw new F(`Invalid log level "${r}" provided to PrismaClient constructor.${n}`)}}for(let r of e){t(r);let n={level:t,emit:i=>{let o=["stdout","event"];if(!o.includes(i)){let s=jt(i,o);throw new F(`Invalid value ${JSON.stringify(i)} for "emit" in logLevel provided to PrismaClient constructor.${s}`)}}};if(r&&typeof r=="object")for(let[i,o]of Object.entries(r))if(n[i])n[i](o);else throw new F(`Invalid property ${i} for "log" provided to PrismaClient constructor`)}},transactionOptions:e=>{if(!e)return;let t=e.maxWait;if(t!=null&&t<=0)throw new F(`Invalid value ${t} for maxWait in "transactionOptions" provided to PrismaClient constructor. maxWait needs to be greater than 0`);let r=e.timeout;if(r!=null&&r<=0)throw new F(`Invalid value ${r} for timeout in "transactionOptions" provided to PrismaClient constructor. timeout needs to be greater than 0`)},omit:(e,t)=>{if(typeof e!="object")throw new F('"omit" option is expected to be an object.');if(e===null)throw new F('"omit" option can not be `null`');let r=[];for(let[n,i]of Object.entries(e)){let o=hf(n,t.runtimeDataModel);if(!o){r.push({kind:"UnknownModel",modelKey:n});continue}for(let[s,a]of Object.entries(i)){let f=o.fields.find(w=>w.name===s);if(!f){r.push({kind:"UnknownField",modelKey:n,fieldName:s});continue}if(f.relationName){r.push({kind:"RelationInOmit",modelKey:n,fieldName:s});continue}typeof a!="boolean"&&r.push({kind:"InvalidFieldValue",modelKey:n,fieldName:s})}}if(r.length>0)throw new F(wf(e,r))},__internal:e=>{if(!e)return;let t=["debug","engine","configOverride"];if(typeof e!="object")throw new F(`Invalid value ${JSON.stringify(e)} for "__internal" to PrismaClient constructor`);for(let[r]of Object.entries(e))if(!t.includes(r)){let n=jt(r,t);throw new F(`Invalid property ${JSON.stringify(r)} for "__internal" provided to PrismaClient constructor.${n}`)}}};function Xc(e,t){for(let[r,n]of Object.entries(e)){if(!Jc.includes(r)){let i=jt(r,Jc);throw new F(`Unknown property ${r} provided to PrismaClient constructor.${i}`)}gf[r](n,t)}if(e.datasourceUrl&&e.datasources)throw new F('Can not use "datasourceUrl" and "datasources" options at the same time. Pick one of them')}function jt(e,t){if(t.length===0||typeof e!="string")return"";let r=yf(e,t);return r?` Did you mean "${r}"?`:""}function yf(e,t){if(t.length===0)return null;let r=t.map(i=>({value:i,distance:(0,Zc.default)(e,i)}));r.sort((i,o)=>i.distanceqe(n)===t);if(r)return e[r]}function wf(e,t){let r=vt(e);for(let o of t)switch(o.kind){case"UnknownModel":r.arguments.getField(o.modelKey)?.markAsError(),r.addErrorMessage(()=>`Unknown model name: ${o.modelKey}.`);break;case"UnknownField":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>`Model "${o.modelKey}" does not have a field named "${o.fieldName}".`);break;case"RelationInOmit":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>'Relations are already excluded by default and can not be specified in "omit".');break;case"InvalidFieldValue":r.arguments.getDeepFieldValue([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>"Omit field option value must be a boolean.");break}let{message:n,args:i}=wn(r,"colorless");return`Error validating "omit" option: - -${i} - -${n}`}c();u();p();m();d();l();function eu(e){return e.length===0?Promise.resolve([]):new Promise((t,r)=>{let n=new Array(e.length),i=null,o=!1,s=0,a=()=>{o||(s++,s===e.length&&(o=!0,i?r(i):t(n)))},f=w=>{o||(o=!0,r(w))};for(let w=0;w{n[w]=v,a()},v=>{if(!ti(v)){f(v);return}v.batchRequestIdx===w?f(v):(i||(i=v),a())})})}var We=J("prisma:client");typeof globalThis=="object"&&(globalThis.NODE_CLIENT=!0);var bf={requestArgsToMiddlewareArgs:e=>e,middlewareArgsToRequestArgs:e=>e},Ef=Symbol.for("prisma.client.transaction.id"),xf={id:0,nextId(){return++this.id}};function nu(e){class t{_originalClient=this;_runtimeDataModel;_requestHandler;_connectionPromise;_disconnectionPromise;_engineConfig;_accelerateEngineConfig;_clientVersion;_errorFormat;_tracingHelper;_middlewares=new ei;_previewFeatures;_activeProvider;_globalOmit;_extensions;_engine;_appliedParent;_createPrismaPromise=Oo();constructor(n){e=n?.__internal?.configOverride?.(e)??e,Fa(e),n&&Xc(n,e);let i=new Cn().on("error",()=>{});this._extensions=At.empty(),this._previewFeatures=Xn(e),this._clientVersion=e.clientVersion??Wc,this._activeProvider=e.activeProvider,this._globalOmit=n?.omit,this._tracingHelper=$c();let o=e.relativeEnvPaths&&{rootEnvPath:e.relativeEnvPaths.rootEnvPath&&en.resolve(e.dirname,e.relativeEnvPaths.rootEnvPath),schemaEnvPath:e.relativeEnvPaths.schemaEnvPath&&en.resolve(e.dirname,e.relativeEnvPaths.schemaEnvPath)},s;if(n?.adapter){s=n.adapter;let f=e.activeProvider==="postgresql"||e.activeProvider==="cockroachdb"?"postgres":e.activeProvider;if(s.provider!==f)throw new U(`The Driver Adapter \`${s.adapterName}\`, based on \`${s.provider}\`, is not compatible with the provider \`${f}\` specified in the Prisma schema.`,this._clientVersion);if(n.datasources||n.datasourceUrl!==void 0)throw new U("Custom datasource configuration is not compatible with Prisma Driver Adapters. Please define the database connection string directly in the Driver Adapter configuration.",this._clientVersion)}let a=e.injectableEdgeEnv?.();try{let f=n??{},w=f.__internal??{},v=w.debug===!0;v&&J.enable("prisma:client");let A=en.resolve(e.dirname,e.relativePath);us.existsSync(A)||(A=e.dirname),We("dirname",e.dirname),We("relativePath",e.relativePath),We("cwd",A);let R=w.engine||{};if(f.errorFormat?this._errorFormat=f.errorFormat:g.env.NODE_ENV==="production"?this._errorFormat="minimal":g.env.NO_COLOR?this._errorFormat="colorless":this._errorFormat="colorless",this._runtimeDataModel=e.runtimeDataModel,this._engineConfig={cwd:A,dirname:e.dirname,enableDebugLogs:v,allowTriggerPanic:R.allowTriggerPanic,prismaPath:R.binaryPath??void 0,engineEndpoint:R.endpoint,generator:e.generator,showColors:this._errorFormat==="pretty",logLevel:f.log&&Bc(f.log),logQueries:f.log&&!!(typeof f.log=="string"?f.log==="query":f.log.find(C=>typeof C=="string"?C==="query":C.level==="query")),env:a?.parsed??{},flags:[],engineWasm:e.engineWasm,compilerWasm:e.compilerWasm,clientVersion:e.clientVersion,engineVersion:e.engineVersion,previewFeatures:this._previewFeatures,activeProvider:e.activeProvider,inlineSchema:e.inlineSchema,overrideDatasources:Va(f,e.datasourceNames),inlineDatasources:e.inlineDatasources,inlineSchemaHash:e.inlineSchemaHash,tracingHelper:this._tracingHelper,transactionOptions:{maxWait:f.transactionOptions?.maxWait??2e3,timeout:f.transactionOptions?.timeout??5e3,isolationLevel:f.transactionOptions?.isolationLevel},logEmitter:i,isBundled:e.isBundled,adapter:s},this._accelerateEngineConfig={...this._engineConfig,accelerateUtils:{resolveDatasourceUrl:Nt,getBatchRequestPayload:St,prismaGraphQLToJSError:In,PrismaClientUnknownRequestError:se,PrismaClientInitializationError:U,PrismaClientKnownRequestError:K,debug:J("prisma:client:accelerateEngine"),engineVersion:ru.version,clientVersion:e.clientVersion}},We("clientVersion",e.clientVersion),this._engine=Ic(e,this._engineConfig),this._requestHandler=new ii(this,i),f.log)for(let C of f.log){let D=typeof C=="string"?C:C.emit==="stdout"?C.level:null;D&&this.$on(D,I=>{zt.log(`${zt.tags[D]??""}`,I.message||I.query)})}}catch(f){throw f.clientVersion=this._clientVersion,f}return this._appliedParent=dr(this)}get[Symbol.toStringTag](){return"PrismaClient"}$use(n){this._middlewares.use(n)}$on(n,i){return n==="beforeExit"?this._engine.onBeforeExit(i):n&&this._engineConfig.logEmitter.on(n,i),this}$connect(){try{return this._engine.start()}catch(n){throw n.clientVersion=this._clientVersion,n}}async $disconnect(){try{await this._engine.stop()}catch(n){throw n.clientVersion=this._clientVersion,n}finally{ls()}}$executeRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"executeRaw",args:o,transaction:n,clientMethod:i,argsMapper:ko({clientMethod:i,activeProvider:a}),callsite:je(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$executeRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0){let[s,a]=tu(n,i);return Io(this._activeProvider,s.text,s.values,Array.isArray(n)?"prisma.$executeRaw``":"prisma.$executeRaw(sql``)"),this.$executeRawInternal(o,"$executeRaw",s,a)}throw new ne("`$executeRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#executeraw\n",{clientVersion:this._clientVersion})})}$executeRawUnsafe(n,...i){return this._createPrismaPromise(o=>(Io(this._activeProvider,n,i,"prisma.$executeRawUnsafe(, [...values])"),this.$executeRawInternal(o,"$executeRawUnsafe",[n,...i])))}$runCommandRaw(n){if(e.activeProvider!=="mongodb")throw new ne(`The ${e.activeProvider} provider does not support $runCommandRaw. Use the mongodb provider.`,{clientVersion:this._clientVersion});return this._createPrismaPromise(i=>this._request({args:n,clientMethod:"$runCommandRaw",dataPath:[],action:"runCommandRaw",argsMapper:kc,callsite:je(this._errorFormat),transaction:i}))}async $queryRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"queryRaw",args:o,transaction:n,clientMethod:i,argsMapper:ko({clientMethod:i,activeProvider:a}),callsite:je(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$queryRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0)return this.$queryRawInternal(o,"$queryRaw",...tu(n,i));throw new ne("`$queryRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#queryraw\n",{clientVersion:this._clientVersion})})}$queryRawTyped(n){return this._createPrismaPromise(i=>{if(!this._hasPreviewFlag("typedSql"))throw new ne("`typedSql` preview feature must be enabled in order to access $queryRawTyped API",{clientVersion:this._clientVersion});return this.$queryRawInternal(i,"$queryRawTyped",n)})}$queryRawUnsafe(n,...i){return this._createPrismaPromise(o=>this.$queryRawInternal(o,"$queryRawUnsafe",[n,...i]))}_transactionWithArray({promises:n,options:i}){let o=xf.nextId(),s=qc(n.length),a=n.map((f,w)=>{if(f?.[Symbol.toStringTag]!=="PrismaPromise")throw new Error("All elements of the array need to be Prisma Client promises. Hint: Please make sure you are not awaiting the Prisma client calls you intended to pass in the $transaction function.");let v=i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel,A={kind:"batch",id:o,index:w,isolationLevel:v,lock:s};return f.requestTransaction?.(A)??f});return eu(a)}async _transactionWithCallback({callback:n,options:i}){let o={traceparent:this._tracingHelper.getTraceParent()},s={maxWait:i?.maxWait??this._engineConfig.transactionOptions.maxWait,timeout:i?.timeout??this._engineConfig.transactionOptions.timeout,isolationLevel:i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel},a=await this._engine.transaction("start",o,s),f;try{let w={kind:"itx",...a};f=await n(this._createItxClient(w)),await this._engine.transaction("commit",o,a)}catch(w){throw await this._engine.transaction("rollback",o,a).catch(()=>{}),w}return f}_createItxClient(n){return Pe(dr(Pe(Ta(this),[le("_appliedParent",()=>this._appliedParent._createItxClient(n)),le("_createPrismaPromise",()=>Oo(n)),le(Ef,()=>n.id)])),[Rt(Sa)])}$transaction(n,i){let o;typeof n=="function"?this._engineConfig.adapter?.adapterName==="@prisma/adapter-d1"?o=()=>{throw new Error("Cloudflare D1 does not support interactive transactions. We recommend you to refactor your queries with that limitation in mind, and use batch transactions with `prisma.$transactions([])` where applicable.")}:o=()=>this._transactionWithCallback({callback:n,options:i}):o=()=>this._transactionWithArray({promises:n,options:i});let s={name:"transaction",attributes:{method:"$transaction"}};return this._tracingHelper.runInChildSpan(s,o)}_request(n){n.otelParentCtx=this._tracingHelper.getActiveContext();let i=n.middlewareArgsMapper??bf,o={args:i.requestArgsToMiddlewareArgs(n.args),dataPath:n.dataPath,runInTransaction:!!n.transaction,action:n.action,model:n.model},s={middleware:{name:"middleware",middleware:!0,attributes:{method:"$use"},active:!1},operation:{name:"operation",attributes:{method:o.action,model:o.model,name:o.model?`${o.model}.${o.action}`:o.action}}},a=-1,f=async w=>{let v=this._middlewares.get(++a);if(v)return this._tracingHelper.runInChildSpan(s.middleware,M=>v(w,be=>(M?.end(),f(be))));let{runInTransaction:A,args:R,...C}=w,D={...n,...C};R&&(D.args=i.middlewareArgsToRequestArgs(R)),n.transaction!==void 0&&A===!1&&delete D.transaction;let I=await Da(this,D);return D.model?Ra({result:I,modelName:D.model,args:D.args,extensions:this._extensions,runtimeDataModel:this._runtimeDataModel,globalOmit:this._globalOmit}):I};return this._tracingHelper.runInChildSpan(s.operation,()=>f(o))}async _executeRequest({args:n,clientMethod:i,dataPath:o,callsite:s,action:a,model:f,argsMapper:w,transaction:v,unpacker:A,otelParentCtx:R,customDataProxyFetch:C}){try{n=w?w(n):n;let D={name:"serialize"},I=this._tracingHelper.runInChildSpan(D,()=>Tn({modelName:f,runtimeDataModel:this._runtimeDataModel,action:a,args:n,clientMethod:i,callsite:s,extensions:this._extensions,errorFormat:this._errorFormat,clientVersion:this._clientVersion,previewFeatures:this._previewFeatures,globalOmit:this._globalOmit}));return J.enabled("prisma:client")&&(We("Prisma Client call:"),We(`prisma.${i}(${da(n)})`),We("Generated request:"),We(JSON.stringify(I,null,2)+` -`)),v?.kind==="batch"&&await v.lock,this._requestHandler.request({protocolQuery:I,modelName:f,action:a,clientMethod:i,dataPath:o,callsite:s,args:n,extensions:this._extensions,transaction:v,unpacker:A,otelParentCtx:R,otelChildCtx:this._tracingHelper.getActiveContext(),globalOmit:this._globalOmit,customDataProxyFetch:C})}catch(D){throw D.clientVersion=this._clientVersion,D}}$metrics=new Ct(this);_hasPreviewFlag(n){return!!this._engineConfig.previewFeatures?.includes(n)}$applyPendingMigrations(){return this._engine.applyPendingMigrations()}$extends=va}return t}function tu(e,t){return Pf(e)?[new me(e,t),Uc]:[e,Fc]}function Pf(e){return Array.isArray(e)&&Array.isArray(e.raw)}c();u();p();m();d();l();var Tf=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function iu(e){return new Proxy(e,{get(t,r){if(r in t)return t[r];if(!Tf.has(r))throw new TypeError(`Invalid enum value: ${String(r)}`)}})}c();u();p();m();d();l();l();0&&(module.exports={DMMF,Debug,Decimal,Extensions,MetricsClient,PrismaClientInitializationError,PrismaClientKnownRequestError,PrismaClientRustPanicError,PrismaClientUnknownRequestError,PrismaClientValidationError,Public,Sql,createParam,defineDmmfProperty,deserializeJsonResponse,deserializeRawResult,dmmfToRuntimeDataModel,empty,getPrismaClient,getRuntime,join,makeStrictEnum,makeTypedQueryFactory,objectEnumValues,raw,serializeJsonQuery,skip,sqltag,warnEnvConflicts,warnOnce}); -//# sourceMappingURL=wasm-compiler-edge.js.map diff --git a/prisma/generated/client/runtime/wasm-engine-edge.js b/prisma/generated/client/runtime/wasm-engine-edge.js deleted file mode 100644 index 09c76ce..0000000 --- a/prisma/generated/client/runtime/wasm-engine-edge.js +++ /dev/null @@ -1,35 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! -/* eslint-disable */ -"use strict";var Yo=Object.create;var Ot=Object.defineProperty;var Xo=Object.getOwnPropertyDescriptor;var Zo=Object.getOwnPropertyNames;var es=Object.getPrototypeOf,ts=Object.prototype.hasOwnProperty;var ne=(t,e)=>()=>(t&&(e=t(t=0)),e);var Le=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),rt=(t,e)=>{for(var r in e)Ot(t,r,{get:e[r],enumerable:!0})},cn=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Zo(e))!ts.call(t,i)&&i!==r&&Ot(t,i,{get:()=>e[i],enumerable:!(n=Xo(e,i))||n.enumerable});return t};var nt=(t,e,r)=>(r=t!=null?Yo(es(t)):{},cn(e||!t||!t.__esModule?Ot(r,"default",{value:t,enumerable:!0}):r,t)),rs=t=>cn(Ot({},"__esModule",{value:!0}),t);function xr(t,e){if(e=e.toLowerCase(),e==="utf8"||e==="utf-8")return new y(ss.encode(t));if(e==="base64"||e==="base64url")return t=t.replace(/-/g,"+").replace(/_/g,"/"),t=t.replace(/[^A-Za-z0-9+/]/g,""),new y([...atob(t)].map(r=>r.charCodeAt(0)));if(e==="binary"||e==="ascii"||e==="latin1"||e==="latin-1")return new y([...t].map(r=>r.charCodeAt(0)));if(e==="ucs2"||e==="ucs-2"||e==="utf16le"||e==="utf-16le"){let r=new y(t.length*2),n=new DataView(r.buffer);for(let i=0;ia.startsWith("get")||a.startsWith("set")),n=r.map(a=>a.replace("get","read").replace("set","write")),i=(a,f)=>function(h=0){return B(h,"offset"),Y(h,"offset"),V(h,"offset",this.length-1),new DataView(this.buffer)[r[a]](h,f)},o=(a,f)=>function(h,T=0){let C=r[a].match(/set(\w+\d+)/)[1].toLowerCase(),k=os[C];return B(T,"offset"),Y(T,"offset"),V(T,"offset",this.length-1),is(h,"value",k[0],k[1]),new DataView(this.buffer)[r[a]](T,h,f),T+parseInt(r[a].match(/\d+/)[0])/8},s=a=>{a.forEach(f=>{f.includes("Uint")&&(t[f.replace("Uint","UInt")]=t[f]),f.includes("Float64")&&(t[f.replace("Float64","Double")]=t[f]),f.includes("Float32")&&(t[f.replace("Float32","Float")]=t[f])})};n.forEach((a,f)=>{a.startsWith("read")&&(t[a]=i(f,!1),t[a+"LE"]=i(f,!0),t[a+"BE"]=i(f,!1)),a.startsWith("write")&&(t[a]=o(f,!1),t[a+"LE"]=o(f,!0),t[a+"BE"]=o(f,!1)),s([a,a+"LE",a+"BE"])})}function pn(t){throw new Error(`Buffer polyfill does not implement "${t}"`)}function It(t,e){if(!(t instanceof Uint8Array))throw new TypeError(`The "${e}" argument must be an instance of Buffer or Uint8Array`)}function V(t,e,r=us+1){if(t<0||t>r){let n=new RangeError(`The value of "${e}" is out of range. It must be >= 0 && <= ${r}. Received ${t}`);throw n.code="ERR_OUT_OF_RANGE",n}}function B(t,e){if(typeof t!="number"){let r=new TypeError(`The "${e}" argument must be of type number. Received type ${typeof t}.`);throw r.code="ERR_INVALID_ARG_TYPE",r}}function Y(t,e){if(!Number.isInteger(t)||Number.isNaN(t)){let r=new RangeError(`The value of "${e}" is out of range. It must be an integer. Received ${t}`);throw r.code="ERR_OUT_OF_RANGE",r}}function is(t,e,r,n){if(tn){let i=new RangeError(`The value of "${e}" is out of range. It must be >= ${r} and <= ${n}. Received ${t}`);throw i.code="ERR_OUT_OF_RANGE",i}}function mn(t,e){if(typeof t!="string"){let r=new TypeError(`The "${e}" argument must be of type string. Received type ${typeof t}`);throw r.code="ERR_INVALID_ARG_TYPE",r}}function cs(t,e="utf8"){return y.from(t,e)}var y,os,ss,as,ls,us,b,Pr,u=ne(()=>{"use strict";y=class t extends Uint8Array{_isBuffer=!0;get offset(){return this.byteOffset}static alloc(e,r=0,n="utf8"){return mn(n,"encoding"),t.allocUnsafe(e).fill(r,n)}static allocUnsafe(e){return t.from(e)}static allocUnsafeSlow(e){return t.from(e)}static isBuffer(e){return e&&!!e._isBuffer}static byteLength(e,r="utf8"){if(typeof e=="string")return xr(e,r).byteLength;if(e&&e.byteLength)return e.byteLength;let n=new TypeError('The "string" argument must be of type string or an instance of Buffer or ArrayBuffer.');throw n.code="ERR_INVALID_ARG_TYPE",n}static isEncoding(e){return ls.includes(e)}static compare(e,r){It(e,"buff1"),It(r,"buff2");for(let n=0;nr[n])return 1}return e.length===r.length?0:e.length>r.length?1:-1}static from(e,r="utf8"){if(e&&typeof e=="object"&&e.type==="Buffer")return new t(e.data);if(typeof e=="number")return new t(new Uint8Array(e));if(typeof e=="string")return xr(e,r);if(ArrayBuffer.isView(e)){let{byteOffset:n,byteLength:i,buffer:o}=e;return"map"in e&&typeof e.map=="function"?new t(e.map(s=>s%256),n,i):new t(o,n,i)}if(e&&typeof e=="object"&&("length"in e||"byteLength"in e||"buffer"in e))return new t(e);throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}static concat(e,r){if(e.length===0)return t.alloc(0);let n=[].concat(...e.map(o=>[...o])),i=t.alloc(r!==void 0?r:n.length);return i.set(r!==void 0?n.slice(0,r):n),i}slice(e=0,r=this.length){return this.subarray(e,r)}subarray(e=0,r=this.length){return Object.setPrototypeOf(super.subarray(e,r),t.prototype)}reverse(){return super.reverse(),this}readIntBE(e,r){B(e,"offset"),Y(e,"offset"),V(e,"offset",this.length-1),B(r,"byteLength"),Y(r,"byteLength");let n=new DataView(this.buffer,e,r),i=0;for(let o=0;o=0;o--)i.setUint8(o,e&255),e=e/256;return r+n}writeUintBE(e,r,n){return this.writeUIntBE(e,r,n)}writeUIntLE(e,r,n){B(r,"offset"),Y(r,"offset"),V(r,"offset",this.length-1),B(n,"byteLength"),Y(n,"byteLength");let i=new DataView(this.buffer,r,n);for(let o=0;or===e[n])}copy(e,r=0,n=0,i=this.length){V(r,"targetStart"),V(n,"sourceStart",this.length),V(i,"sourceEnd"),r>>>=0,n>>>=0,i>>>=0;let o=0;for(;n=this.length?this.length-a:e.length),a);return this}includes(e,r=null,n="utf-8"){return this.indexOf(e,r,n)!==-1}lastIndexOf(e,r=null,n="utf-8"){return this.indexOf(e,r,n,!0)}indexOf(e,r=null,n="utf-8",i=!1){let o=i?this.findLastIndex.bind(this):this.findIndex.bind(this);n=typeof r=="string"?r:n;let s=t.from(typeof e=="number"?[e]:e,n),a=typeof r=="string"?0:r;return a=typeof r=="number"?a:null,a=Number.isNaN(a)?null:a,a??=i?this.length:0,a=a<0?this.length+a:a,s.length===0&&i===!1?a>=this.length?this.length:a:s.length===0&&i===!0?(a>=this.length?this.length:a)||this.length:o((f,h)=>(i?h<=a:h>=a)&&this[h]===s[0]&&s.every((C,k)=>this[h+k]===C))}toString(e="utf8",r=0,n=this.length){if(r=r<0?0:r,e=e.toString().toLowerCase(),n<=0)return"";if(e==="utf8"||e==="utf-8")return as.decode(this.slice(r,n));if(e==="base64"||e==="base64url"){let i=btoa(this.reduce((o,s)=>o+Pr(s),""));return e==="base64url"?i.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""):i}if(e==="binary"||e==="ascii"||e==="latin1"||e==="latin-1")return this.slice(r,n).reduce((i,o)=>i+Pr(o&(e==="ascii"?127:255)),"");if(e==="ucs2"||e==="ucs-2"||e==="utf16le"||e==="utf-16le"){let i=new DataView(this.buffer.slice(r,n));return Array.from({length:i.byteLength/2},(o,s)=>s*2+1i+o.toString(16).padStart(2,"0"),"");pn(`encoding "${e}"`)}toLocaleString(){return this.toString()}inspect(){return``}};os={int8:[-128,127],int16:[-32768,32767],int32:[-2147483648,2147483647],uint8:[0,255],uint16:[0,65535],uint32:[0,4294967295],float32:[-1/0,1/0],float64:[-1/0,1/0],bigint64:[-0x8000000000000000n,0x7fffffffffffffffn],biguint64:[0n,0xffffffffffffffffn]},ss=new TextEncoder,as=new TextDecoder,ls=["utf8","utf-8","hex","base64","ascii","binary","base64url","ucs2","ucs-2","utf16le","utf-16le","latin1","latin-1"],us=4294967295;ns(y.prototype);b=new Proxy(cs,{construct(t,[e,r]){return y.from(e,r)},get(t,e){return y[e]}}),Pr=String.fromCodePoint});var g,c=ne(()=>{"use strict";g={nextTick:(t,...e)=>{setTimeout(()=>{t(...e)},0)},env:{},version:"",cwd:()=>"/",stderr:{},argv:["/bin/node"],pid:1e4}});var x,m=ne(()=>{"use strict";x=globalThis.performance??(()=>{let t=Date.now();return{now:()=>Date.now()-t}})()});var E,p=ne(()=>{"use strict";E=()=>{};E.prototype=E});var w,d=ne(()=>{"use strict";w=class{value;constructor(e){this.value=e}deref(){return this.value}}});function yn(t,e){var r,n,i,o,s,a,f,h,T=t.constructor,C=T.precision;if(!t.s||!e.s)return e.s||(e=new T(t)),N?_(e,C):e;if(f=t.d,h=e.d,s=t.e,i=e.e,f=f.slice(),o=s-i,o){for(o<0?(n=f,o=-o,a=h.length):(n=h,i=s,a=f.length),s=Math.ceil(C/U),a=s>a?s+1:a+1,o>a&&(o=a,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for(a=f.length,o=h.length,a-o<0&&(o=a,n=h,h=f,f=n),r=0;o;)r=(f[--o]=f[o]+h[o]+r)/Q|0,f[o]%=Q;for(r&&(f.unshift(r),++i),a=f.length;f[--a]==0;)f.pop();return e.d=f,e.e=i,N?_(e,C):e}function ce(t,e,r){if(t!==~~t||tr)throw Error(Oe+t)}function ue(t){var e,r,n,i=t.length-1,o="",s=t[0];if(i>0){for(o+=s,e=1;e16)throw Error(Tr+$(t));if(!t.s)return new T(ee);for(e==null?(N=!1,a=C):a=e,s=new T(.03125);t.abs().gte(.1);)t=t.times(s),h+=5;for(n=Math.log(ke(2,h))/Math.LN10*2+5|0,a+=n,r=i=o=new T(ee),T.precision=a;;){if(i=_(i.times(t),a),r=r.times(++f),s=o.plus(he(i,r,a)),ue(s.d).slice(0,a)===ue(o.d).slice(0,a)){for(;h--;)o=_(o.times(o),a);return T.precision=C,e==null?(N=!0,_(o,C)):o}o=s}}function $(t){for(var e=t.e*U,r=t.d[0];r>=10;r/=10)e++;return e}function vr(t,e,r){if(e>t.LN10.sd())throw N=!0,r&&(t.precision=r),Error(ie+"LN10 precision limit exceeded");return _(new t(t.LN10),e)}function Pe(t){for(var e="";t--;)e+="0";return e}function it(t,e){var r,n,i,o,s,a,f,h,T,C=1,k=10,R=t,O=R.d,S=R.constructor,I=S.precision;if(R.s<1)throw Error(ie+(R.s?"NaN":"-Infinity"));if(R.eq(ee))return new S(0);if(e==null?(N=!1,h=I):h=e,R.eq(10))return e==null&&(N=!0),vr(S,h);if(h+=k,S.precision=h,r=ue(O),n=r.charAt(0),o=$(R),Math.abs(o)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)R=R.times(t),r=ue(R.d),n=r.charAt(0),C++;o=$(R),n>1?(R=new S("0."+r),o++):R=new S(n+"."+r.slice(1))}else return f=vr(S,h+2,I).times(o+""),R=it(new S(n+"."+r.slice(1)),h-k).plus(f),S.precision=I,e==null?(N=!0,_(R,I)):R;for(a=s=R=he(R.minus(ee),R.plus(ee),h),T=_(R.times(R),h),i=3;;){if(s=_(s.times(T),h),f=a.plus(he(s,new S(i),h)),ue(f.d).slice(0,h)===ue(a.d).slice(0,h))return a=a.times(2),o!==0&&(a=a.plus(vr(S,h+2,I).times(o+""))),a=he(a,new S(C),h),S.precision=I,e==null?(N=!0,_(a,I)):a;a=f,i+=2}}function dn(t,e){var r,n,i;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;e.charCodeAt(n)===48;)++n;for(i=e.length;e.charCodeAt(i-1)===48;)--i;if(e=e.slice(n,i),e){if(i-=n,r=r-n-1,t.e=Ue(r/U),t.d=[],n=(r+1)%U,r<0&&(n+=U),nMt||t.e<-Mt))throw Error(Tr+r)}else t.s=0,t.e=0,t.d=[0];return t}function _(t,e,r){var n,i,o,s,a,f,h,T,C=t.d;for(s=1,o=C[0];o>=10;o/=10)s++;if(n=e-s,n<0)n+=U,i=e,h=C[T=0];else{if(T=Math.ceil((n+1)/U),o=C.length,T>=o)return t;for(h=o=C[T],s=1;o>=10;o/=10)s++;n%=U,i=n-U+s}if(r!==void 0&&(o=ke(10,s-i-1),a=h/o%10|0,f=e<0||C[T+1]!==void 0||h%o,f=r<4?(a||f)&&(r==0||r==(t.s<0?3:2)):a>5||a==5&&(r==4||f||r==6&&(n>0?i>0?h/ke(10,s-i):0:C[T-1])%10&1||r==(t.s<0?8:7))),e<1||!C[0])return f?(o=$(t),C.length=1,e=e-o-1,C[0]=ke(10,(U-e%U)%U),t.e=Ue(-e/U)||0):(C.length=1,C[0]=t.e=t.s=0),t;if(n==0?(C.length=T,o=1,T--):(C.length=T+1,o=ke(10,U-n),C[T]=i>0?(h/ke(10,s-i)%ke(10,i)|0)*o:0),f)for(;;)if(T==0){(C[0]+=o)==Q&&(C[0]=1,++t.e);break}else{if(C[T]+=o,C[T]!=Q)break;C[T--]=0,o=1}for(n=C.length;C[--n]===0;)C.pop();if(N&&(t.e>Mt||t.e<-Mt))throw Error(Tr+$(t));return t}function bn(t,e){var r,n,i,o,s,a,f,h,T,C,k=t.constructor,R=k.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new k(t),N?_(e,R):e;if(f=t.d,C=e.d,n=e.e,h=t.e,f=f.slice(),s=h-n,s){for(T=s<0,T?(r=f,s=-s,a=C.length):(r=C,n=h,a=f.length),i=Math.max(Math.ceil(R/U),a)+2,s>i&&(s=i,r.length=1),r.reverse(),i=s;i--;)r.push(0);r.reverse()}else{for(i=f.length,a=C.length,T=i0;--i)f[a++]=0;for(i=C.length;i>s;){if(f[--i]0?o=o.charAt(0)+"."+o.slice(1)+Pe(n):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Pe(-i-1)+o,r&&(n=r-s)>0&&(o+=Pe(n))):i>=s?(o+=Pe(i+1-s),r&&(n=r-i-1)>0&&(o=o+"."+Pe(n))):((n=i+1)0&&(i+1===s&&(o+="."),o+=Pe(n))),t.s<0?"-"+o:o}function fn(t,e){if(t.length>e)return t.length=e,!0}function wn(t){var e,r,n;function i(o){var s=this;if(!(s instanceof i))return new i(o);if(s.constructor=i,o instanceof i){s.s=o.s,s.e=o.e,s.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Oe+o);if(o>0)s.s=1;else if(o<0)o=-o,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(o===~~o&&o<1e7){s.e=0,s.d=[o];return}return dn(s,o.toString())}else if(typeof o!="string")throw Error(Oe+o);if(o.charCodeAt(0)===45?(o=o.slice(1),s.s=-1):s.s=1,ps.test(o))dn(s,o);else throw Error(Oe+o)}if(i.prototype=A,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=wn,i.config=i.set=ds,t===void 0&&(t={}),t)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],e=0;e=i[e+1]&&n<=i[e+2])this[r]=n;else throw Error(Oe+r+": "+n);if((n=t[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Oe+r+": "+n);return this}var Fe,ms,Cr,N,ie,Oe,Tr,Ue,ke,ps,ee,Q,U,gn,Mt,A,he,Cr,Dt,En=ne(()=>{"use strict";u();c();m();p();d();l();Fe=1e9,ms={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},N=!0,ie="[DecimalError] ",Oe=ie+"Invalid argument: ",Tr=ie+"Exponent out of range: ",Ue=Math.floor,ke=Math.pow,ps=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Q=1e7,U=7,gn=9007199254740991,Mt=Ue(gn/U),A={};A.absoluteValue=A.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t};A.comparedTo=A.cmp=function(t){var e,r,n,i,o=this;if(t=new o.constructor(t),o.s!==t.s)return o.s||-t.s;if(o.e!==t.e)return o.e>t.e^o.s<0?1:-1;for(n=o.d.length,i=t.d.length,e=0,r=nt.d[e]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1};A.decimalPlaces=A.dp=function(){var t=this,e=t.d.length-1,r=(e-t.e)*U;if(e=t.d[e],e)for(;e%10==0;e/=10)r--;return r<0?0:r};A.dividedBy=A.div=function(t){return he(this,new this.constructor(t))};A.dividedToIntegerBy=A.idiv=function(t){var e=this,r=e.constructor;return _(he(e,new r(t),0,1),r.precision)};A.equals=A.eq=function(t){return!this.cmp(t)};A.exponent=function(){return $(this)};A.greaterThan=A.gt=function(t){return this.cmp(t)>0};A.greaterThanOrEqualTo=A.gte=function(t){return this.cmp(t)>=0};A.isInteger=A.isint=function(){return this.e>this.d.length-2};A.isNegative=A.isneg=function(){return this.s<0};A.isPositive=A.ispos=function(){return this.s>0};A.isZero=function(){return this.s===0};A.lessThan=A.lt=function(t){return this.cmp(t)<0};A.lessThanOrEqualTo=A.lte=function(t){return this.cmp(t)<1};A.logarithm=A.log=function(t){var e,r=this,n=r.constructor,i=n.precision,o=i+5;if(t===void 0)t=new n(10);else if(t=new n(t),t.s<1||t.eq(ee))throw Error(ie+"NaN");if(r.s<1)throw Error(ie+(r.s?"NaN":"-Infinity"));return r.eq(ee)?new n(0):(N=!1,e=he(it(r,o),it(t,o),o),N=!0,_(e,i))};A.minus=A.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?bn(e,t):yn(e,(t.s=-t.s,t))};A.modulo=A.mod=function(t){var e,r=this,n=r.constructor,i=n.precision;if(t=new n(t),!t.s)throw Error(ie+"NaN");return r.s?(N=!1,e=he(r,t,0,1).times(t),N=!0,r.minus(e)):_(new n(r),i)};A.naturalExponential=A.exp=function(){return hn(this)};A.naturalLogarithm=A.ln=function(){return it(this)};A.negated=A.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t};A.plus=A.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?yn(e,t):bn(e,(t.s=-t.s,t))};A.precision=A.sd=function(t){var e,r,n,i=this;if(t!==void 0&&t!==!!t&&t!==1&&t!==0)throw Error(Oe+t);if(e=$(i)+1,n=i.d.length-1,r=n*U+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return t&&e>r?e:r};A.squareRoot=A.sqrt=function(){var t,e,r,n,i,o,s,a=this,f=a.constructor;if(a.s<1){if(!a.s)return new f(0);throw Error(ie+"NaN")}for(t=$(a),N=!1,i=Math.sqrt(+a),i==0||i==1/0?(e=ue(a.d),(e.length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=Ue((t+1)/2)-(t<0||t%2),i==1/0?e="5e"+t:(e=i.toExponential(),e=e.slice(0,e.indexOf("e")+1)+t),n=new f(e)):n=new f(i.toString()),r=f.precision,i=s=r+3;;)if(o=n,n=o.plus(he(a,o,s+2)).times(.5),ue(o.d).slice(0,s)===(e=ue(n.d)).slice(0,s)){if(e=e.slice(s-3,s+1),i==s&&e=="4999"){if(_(o,r+1,0),o.times(o).eq(a)){n=o;break}}else if(e!="9999")break;s+=4}return N=!0,_(n,r)};A.times=A.mul=function(t){var e,r,n,i,o,s,a,f,h,T=this,C=T.constructor,k=T.d,R=(t=new C(t)).d;if(!T.s||!t.s)return new C(0);for(t.s*=T.s,r=T.e+t.e,f=k.length,h=R.length,f=0;){for(e=0,i=f+n;i>n;)a=o[i]+R[n]*k[i-n-1]+e,o[i--]=a%Q|0,e=a/Q|0;o[i]=(o[i]+e)%Q|0}for(;!o[--s];)o.pop();return e?++r:o.shift(),t.d=o,t.e=r,N?_(t,C.precision):t};A.toDecimalPlaces=A.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),t===void 0?r:(ce(t,0,Fe),e===void 0?e=n.rounding:ce(e,0,8),_(r,t+$(r)+1,e))};A.toExponential=function(t,e){var r,n=this,i=n.constructor;return t===void 0?r=Ie(n,!0):(ce(t,0,Fe),e===void 0?e=i.rounding:ce(e,0,8),n=_(new i(n),t+1,e),r=Ie(n,!0,t+1)),r};A.toFixed=function(t,e){var r,n,i=this,o=i.constructor;return t===void 0?Ie(i):(ce(t,0,Fe),e===void 0?e=o.rounding:ce(e,0,8),n=_(new o(i),t+$(i)+1,e),r=Ie(n.abs(),!1,t+$(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};A.toInteger=A.toint=function(){var t=this,e=t.constructor;return _(new e(t),$(t)+1,e.rounding)};A.toNumber=function(){return+this};A.toPower=A.pow=function(t){var e,r,n,i,o,s,a=this,f=a.constructor,h=12,T=+(t=new f(t));if(!t.s)return new f(ee);if(a=new f(a),!a.s){if(t.s<1)throw Error(ie+"Infinity");return a}if(a.eq(ee))return a;if(n=f.precision,t.eq(ee))return _(a,n);if(e=t.e,r=t.d.length-1,s=e>=r,o=a.s,s){if((r=T<0?-T:T)<=gn){for(i=new f(ee),e=Math.ceil(n/U+4),N=!1;r%2&&(i=i.times(a),fn(i.d,e)),r=Ue(r/2),r!==0;)a=a.times(a),fn(a.d,e);return N=!0,t.s<0?new f(ee).div(i):_(i,n)}}else if(o<0)throw Error(ie+"NaN");return o=o<0&&t.d[Math.max(e,r)]&1?-1:1,a.s=1,N=!1,i=t.times(it(a,n+h)),N=!0,i=hn(i),i.s=o,i};A.toPrecision=function(t,e){var r,n,i=this,o=i.constructor;return t===void 0?(r=$(i),n=Ie(i,r<=o.toExpNeg||r>=o.toExpPos)):(ce(t,1,Fe),e===void 0?e=o.rounding:ce(e,0,8),i=_(new o(i),t,e),r=$(i),n=Ie(i,t<=r||r<=o.toExpNeg,t)),n};A.toSignificantDigits=A.tosd=function(t,e){var r=this,n=r.constructor;return t===void 0?(t=n.precision,e=n.rounding):(ce(t,1,Fe),e===void 0?e=n.rounding:ce(e,0,8)),_(new n(r),t,e)};A.toString=A.valueOf=A.val=A.toJSON=A[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=$(t),r=t.constructor;return Ie(t,e<=r.toExpNeg||e>=r.toExpPos)};he=function(){function t(n,i){var o,s=0,a=n.length;for(n=n.slice();a--;)o=n[a]*i+s,n[a]=o%Q|0,s=o/Q|0;return s&&n.unshift(s),n}function e(n,i,o,s){var a,f;if(o!=s)f=o>s?1:-1;else for(a=f=0;ai[a]?1:-1;break}return f}function r(n,i,o){for(var s=0;o--;)n[o]-=s,s=n[o]1;)n.shift()}return function(n,i,o,s){var a,f,h,T,C,k,R,O,S,I,oe,H,L,z,Se,Er,se,St,kt=n.constructor,zo=n.s==i.s?1:-1,le=n.d,q=i.d;if(!n.s)return new kt(n);if(!i.s)throw Error(ie+"Division by zero");for(f=n.e-i.e,se=q.length,Se=le.length,R=new kt(zo),O=R.d=[],h=0;q[h]==(le[h]||0);)++h;if(q[h]>(le[h]||0)&&--f,o==null?H=o=kt.precision:s?H=o+($(n)-$(i))+1:H=o,H<0)return new kt(0);if(H=H/U+2|0,h=0,se==1)for(T=0,q=q[0],H++;(h1&&(q=t(q,T),le=t(le,T),se=q.length,Se=le.length),z=se,S=le.slice(0,se),I=S.length;I=Q/2&&++Er;do T=0,a=e(q,S,se,I),a<0?(oe=S[0],se!=I&&(oe=oe*Q+(S[1]||0)),T=oe/Er|0,T>1?(T>=Q&&(T=Q-1),C=t(q,T),k=C.length,I=S.length,a=e(C,S,k,I),a==1&&(T--,r(C,se{"use strict";En();v=class extends Dt{static isDecimal(e){return e instanceof Dt}static random(e=20){{let n=globalThis.crypto.getRandomValues(new Uint8Array(e)).reduce((i,o)=>i+o,"");return new Dt(`0.${n.slice(0,e)}`)}}},me=v});function ws(){return!1}function Un(){return{dev:0,ino:0,mode:0,nlink:0,uid:0,gid:0,rdev:0,size:0,blksize:0,blocks:0,atimeMs:0,mtimeMs:0,ctimeMs:0,birthtimeMs:0,atime:new Date,mtime:new Date,ctime:new Date,birthtime:new Date}}function Es(){return Un()}function xs(){return[]}function Ps(t){t(null,[])}function vs(){return""}function Ts(){return""}function Cs(){}function Rs(){}function As(){}function Ss(){}function ks(){}function Os(){}var Is,Ms,Nn,qn=ne(()=>{"use strict";u();c();m();p();d();l();Is={},Ms={existsSync:ws,lstatSync:Un,statSync:Es,readdirSync:xs,readdir:Ps,readlinkSync:vs,realpathSync:Ts,chmodSync:Cs,renameSync:Rs,mkdirSync:As,rmdirSync:Ss,rmSync:ks,unlinkSync:Os,promises:Is},Nn=Ms});function Ds(...t){return t.join("/")}function _s(...t){return t.join("/")}function Ls(t){let e=Bn(t),r=$n(t),[n,i]=e.split(".");return{root:"/",dir:r,base:e,ext:i,name:n}}function Bn(t){let e=t.split("/");return e[e.length-1]}function $n(t){return t.split("/").slice(0,-1).join("/")}var Vn,Fs,Us,Ut,jn=ne(()=>{"use strict";u();c();m();p();d();l();Vn="/",Fs={sep:Vn},Us={basename:Bn,dirname:$n,join:_s,parse:Ls,posix:Fs,resolve:Ds,sep:Vn},Ut=Us});var Qn=Le((em,Ns)=>{Ns.exports={name:"@prisma/internals",version:"6.12.0",description:"This package is intended for Prisma's internal use",main:"dist/index.js",types:"dist/index.d.ts",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/internals"},homepage:"https://www.prisma.io",author:"Tim Suchanek ",bugs:"https://github.com/prisma/prisma/issues",license:"Apache-2.0",scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",test:"dotenv -e ../../.db.env -- jest --silent",prepublishOnly:"pnpm run build"},files:["README.md","dist","!**/libquery_engine*","!dist/get-generators/engines/*","scripts"],devDependencies:{"@babel/helper-validator-identifier":"7.25.9","@opentelemetry/api":"1.9.0","@swc/core":"1.11.5","@swc/jest":"0.2.37","@types/babel__helper-validator-identifier":"7.15.2","@types/jest":"29.5.14","@types/node":"18.19.76","@types/resolve":"1.20.6",archiver:"6.0.2","checkpoint-client":"1.1.33","cli-truncate":"4.0.0",dotenv:"16.5.0",esbuild:"0.25.5","escape-string-regexp":"5.0.0",execa:"5.1.1","fast-glob":"3.3.3","find-up":"7.0.0","fp-ts":"2.16.9","fs-extra":"11.3.0","fs-jetpack":"5.1.0","global-dirs":"4.0.0",globby:"11.1.0","identifier-regex":"1.0.0","indent-string":"4.0.0","is-windows":"1.0.2","is-wsl":"3.1.0",jest:"29.7.0","jest-junit":"16.0.0",kleur:"4.1.5","mock-stdin":"1.0.0","new-github-issue-url":"0.2.1","node-fetch":"3.3.2","npm-packlist":"5.1.3",open:"7.4.2","p-map":"4.0.0","read-package-up":"11.0.0",resolve:"1.22.10","string-width":"7.2.0","strip-ansi":"6.0.1","strip-indent":"4.0.0","temp-dir":"2.0.0",tempy:"1.0.1","terminal-link":"4.0.0",tmp:"0.2.3","ts-node":"10.9.2","ts-pattern":"5.6.2","ts-toolbelt":"9.6.0",typescript:"5.4.5",yarn:"1.22.22"},dependencies:{"@prisma/config":"workspace:*","@prisma/debug":"workspace:*","@prisma/dmmf":"workspace:*","@prisma/driver-adapter-utils":"workspace:*","@prisma/engines":"workspace:*","@prisma/fetch-engine":"workspace:*","@prisma/generator":"workspace:*","@prisma/generator-helper":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/prisma-schema-wasm":"6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc","@prisma/schema-engine-wasm":"6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc","@prisma/schema-files-loader":"workspace:*",arg:"5.0.2",prompts:"2.4.2"},peerDependencies:{typescript:">=5.1.0"},peerDependenciesMeta:{typescript:{optional:!0}},sideEffects:!1}});var Kn=Le((Pm,Wn)=>{"use strict";u();c();m();p();d();l();Wn.exports=(t,e=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},typeof t!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof t}\``);if(typeof e!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof e}\``);if(typeof r.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(e===0)return t;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return t.replace(n,r.indent.repeat(e))}});var Yn=Le((Fm,zn)=>{"use strict";u();c();m();p();d();l();zn.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var Zn=Le((jm,Xn)=>{"use strict";u();c();m();p();d();l();var Gs=Yn();Xn.exports=t=>typeof t=="string"?t.replace(Gs(),""):t});var Ur=Le((ay,ii)=>{"use strict";u();c();m();p();d();l();ii.exports=function(){function t(e,r,n,i,o){return en?n+1:e+1:i===o?r:r+1}return function(e,r){if(e===r)return 0;if(e.length>r.length){var n=e;e=r,r=n}for(var i=e.length,o=r.length;i>0&&e.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;s{"use strict";u();c();m();p();d();l()});var ci=ne(()=>{"use strict";u();c();m();p();d();l()});var _i=Le((sP,qa)=>{qa.exports={name:"@prisma/engines-version",version:"6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek ",prisma:{enginesVersion:"8047c96bbd92db98a2abc7c9323ce77c02c89dbc"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.76",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var nr,Li=ne(()=>{"use strict";u();c();m();p();d();l();nr=class{events={};on(e,r){return this.events[e]||(this.events[e]=[]),this.events[e].push(r),this}emit(e,...r){return this.events[e]?(this.events[e].forEach(n=>{n(...r)}),!0):!1}}});var Gl={};rt(Gl,{DMMF:()=>mt,Debug:()=>J,Decimal:()=>me,Extensions:()=>Rr,MetricsClient:()=>Ye,PrismaClientInitializationError:()=>M,PrismaClientKnownRequestError:()=>X,PrismaClientRustPanicError:()=>we,PrismaClientUnknownRequestError:()=>j,PrismaClientValidationError:()=>W,Public:()=>Ar,Sql:()=>Z,createParam:()=>Ri,defineDmmfProperty:()=>Mi,deserializeJsonResponse:()=>$e,deserializeRawResult:()=>br,dmmfToRuntimeDataModel:()=>ni,empty:()=>Ui,getPrismaClient:()=>Wo,getRuntime:()=>Re,join:()=>Fi,makeStrictEnum:()=>Ko,makeTypedQueryFactory:()=>Di,objectEnumValues:()=>Wt,raw:()=>Gr,serializeJsonQuery:()=>er,skip:()=>Zt,sqltag:()=>Wr,warnEnvConflicts:()=>void 0,warnOnce:()=>lt});module.exports=rs(Gl);u();c();m();p();d();l();var Rr={};rt(Rr,{defineExtension:()=>xn,getExtensionContext:()=>Pn});u();c();m();p();d();l();u();c();m();p();d();l();function xn(t){return typeof t=="function"?t:e=>e.$extends(t)}u();c();m();p();d();l();function Pn(t){return t}var Ar={};rt(Ar,{validator:()=>vn});u();c();m();p();d();l();u();c();m();p();d();l();function vn(...t){return e=>e}u();c();m();p();d();l();u();c();m();p();d();l();u();c();m();p();d();l();var Sr,Tn,Cn,Rn,An=!0;typeof g<"u"&&({FORCE_COLOR:Sr,NODE_DISABLE_COLORS:Tn,NO_COLOR:Cn,TERM:Rn}=g.env||{},An=g.stdout&&g.stdout.isTTY);var fs={enabled:!Tn&&Cn==null&&Rn!=="dumb"&&(Sr!=null&&Sr!=="0"||An)};function F(t,e){let r=new RegExp(`\\x1b\\[${e}m`,"g"),n=`\x1B[${t}m`,i=`\x1B[${e}m`;return function(o){return!fs.enabled||o==null?o:n+(~(""+o).indexOf(i)?o.replace(r,i+n):o)+i}}var Qu=F(0,0),_t=F(1,22),Lt=F(2,22),Ju=F(3,23),Sn=F(4,24),Gu=F(7,27),Wu=F(8,28),Ku=F(9,29),Hu=F(30,39),Ne=F(31,39),kn=F(32,39),On=F(33,39),In=F(34,39),zu=F(35,39),Mn=F(36,39),Yu=F(37,39),Dn=F(90,39),Xu=F(90,39),Zu=F(40,49),ec=F(41,49),tc=F(42,49),rc=F(43,49),nc=F(44,49),ic=F(45,49),oc=F(46,49),sc=F(47,49);u();c();m();p();d();l();var gs=100,_n=["green","yellow","blue","magenta","cyan","red"],Ft=[],Ln=Date.now(),ys=0,kr=typeof g<"u"?g.env:{};globalThis.DEBUG??=kr.DEBUG??"";globalThis.DEBUG_COLORS??=kr.DEBUG_COLORS?kr.DEBUG_COLORS==="true":!0;var ot={enable(t){typeof t=="string"&&(globalThis.DEBUG=t)},disable(){let t=globalThis.DEBUG;return globalThis.DEBUG="",t},enabled(t){let e=globalThis.DEBUG.split(",").map(i=>i.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),r=e.some(i=>i===""||i[0]==="-"?!1:t.match(RegExp(i.split("*").join(".*")+"$"))),n=e.some(i=>i===""||i[0]!=="-"?!1:t.match(RegExp(i.slice(1).split("*").join(".*")+"$")));return r&&!n},log:(...t)=>{let[e,r,...n]=t;(console.warn??console.log)(`${e} ${r}`,...n)},formatters:{}};function hs(t){let e={color:_n[ys++%_n.length],enabled:ot.enabled(t),namespace:t,log:ot.log,extend:()=>{}},r=(...n)=>{let{enabled:i,namespace:o,color:s,log:a}=e;if(n.length!==0&&Ft.push([o,...n]),Ft.length>gs&&Ft.shift(),ot.enabled(o)||i){let f=n.map(T=>typeof T=="string"?T:bs(T)),h=`+${Date.now()-Ln}ms`;Ln=Date.now(),a(o,...f,h)}};return new Proxy(r,{get:(n,i)=>e[i],set:(n,i,o)=>e[i]=o})}var J=new Proxy(hs,{get:(t,e)=>ot[e],set:(t,e,r)=>ot[e]=r});function bs(t,e=2){let r=new Set;return JSON.stringify(t,(n,i)=>{if(typeof i=="object"&&i!==null){if(r.has(i))return"[Circular *]";r.add(i)}else if(typeof i=="bigint")return i.toString();return i},e)}function Fn(){Ft.length=0}u();c();m();p();d();l();u();c();m();p();d();l();var Or=["darwin","darwin-arm64","debian-openssl-1.0.x","debian-openssl-1.1.x","debian-openssl-3.0.x","rhel-openssl-1.0.x","rhel-openssl-1.1.x","rhel-openssl-3.0.x","linux-arm64-openssl-1.1.x","linux-arm64-openssl-1.0.x","linux-arm64-openssl-3.0.x","linux-arm-openssl-1.1.x","linux-arm-openssl-1.0.x","linux-arm-openssl-3.0.x","linux-musl","linux-musl-openssl-3.0.x","linux-musl-arm64-openssl-1.1.x","linux-musl-arm64-openssl-3.0.x","linux-nixos","linux-static-x64","linux-static-arm64","windows","freebsd11","freebsd12","freebsd13","freebsd14","freebsd15","openbsd","netbsd","arm"];u();c();m();p();d();l();var qs=Qn(),Ir=qs.version;u();c();m();p();d();l();function qe(t){let e=Bs();return e||(t?.config.engineType==="library"?"library":t?.config.engineType==="binary"?"binary":t?.config.engineType==="client"?"client":$s(t))}function Bs(){let t=g.env.PRISMA_CLIENT_ENGINE_TYPE;return t==="library"?"library":t==="binary"?"binary":t==="client"?"client":void 0}function $s(t){return t?.previewFeatures.includes("queryCompiler")?"client":"library"}u();c();m();p();d();l();var Jn="prisma+postgres",Gn=`${Jn}:`;function Mr(t){return t?.toString().startsWith(`${Gn}//`)??!1}var at={};rt(at,{error:()=>Qs,info:()=>js,log:()=>Vs,query:()=>Js,should:()=>Hn,tags:()=>st,warn:()=>Dr});u();c();m();p();d();l();var st={error:Ne("prisma:error"),warn:On("prisma:warn"),info:Mn("prisma:info"),query:In("prisma:query")},Hn={warn:()=>!g.env.PRISMA_DISABLE_WARNINGS};function Vs(...t){console.log(...t)}function Dr(t,...e){Hn.warn()&&console.warn(`${st.warn} ${t}`,...e)}function js(t,...e){console.info(`${st.info} ${t}`,...e)}function Qs(t,...e){console.error(`${st.error} ${t}`,...e)}function Js(t,...e){console.log(`${st.query} ${t}`,...e)}u();c();m();p();d();l();function Nt(t,e){if(!t)throw new Error(`${e}. This should never happen. If you see this error, please, open an issue at https://pris.ly/prisma-prisma-bug-report`)}u();c();m();p();d();l();function be(t,e){throw new Error(e)}u();c();m();p();d();l();function _r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}u();c();m();p();d();l();function Be(t,e){let r={};for(let n of Object.keys(t))r[n]=e(t[n],n);return r}u();c();m();p();d();l();function Lr(t,e){if(t.length===0)return;let r=t[0];for(let n=1;n{ei.has(t)||(ei.add(t),Dr(e,...r))};var M=class t extends Error{clientVersion;errorCode;retryable;constructor(e,r,n){super(e),this.name="PrismaClientInitializationError",this.clientVersion=r,this.errorCode=n,Error.captureStackTrace(t)}get[Symbol.toStringTag](){return"PrismaClientInitializationError"}};te(M,"PrismaClientInitializationError");u();c();m();p();d();l();var X=class extends Error{code;meta;clientVersion;batchRequestIdx;constructor(e,{code:r,clientVersion:n,meta:i,batchRequestIdx:o}){super(e),this.name="PrismaClientKnownRequestError",this.code=r,this.clientVersion=n,this.meta=i,Object.defineProperty(this,"batchRequestIdx",{value:o,enumerable:!1,writable:!0})}get[Symbol.toStringTag](){return"PrismaClientKnownRequestError"}};te(X,"PrismaClientKnownRequestError");u();c();m();p();d();l();var we=class extends Error{clientVersion;constructor(e,r){super(e),this.name="PrismaClientRustPanicError",this.clientVersion=r}get[Symbol.toStringTag](){return"PrismaClientRustPanicError"}};te(we,"PrismaClientRustPanicError");u();c();m();p();d();l();var j=class extends Error{clientVersion;batchRequestIdx;constructor(e,{clientVersion:r,batchRequestIdx:n}){super(e),this.name="PrismaClientUnknownRequestError",this.clientVersion=r,Object.defineProperty(this,"batchRequestIdx",{value:n,writable:!0,enumerable:!1})}get[Symbol.toStringTag](){return"PrismaClientUnknownRequestError"}};te(j,"PrismaClientUnknownRequestError");u();c();m();p();d();l();var W=class extends Error{name="PrismaClientValidationError";clientVersion;constructor(e,{clientVersion:r}){super(e),this.clientVersion=r}get[Symbol.toStringTag](){return"PrismaClientValidationError"}};te(W,"PrismaClientValidationError");u();c();m();p();d();l();l();function $e(t){return t===null?t:Array.isArray(t)?t.map($e):typeof t=="object"?Ws(t)?Ks(t):t.constructor!==null&&t.constructor.name!=="Object"?t:Be(t,$e):t}function Ws(t){return t!==null&&typeof t=="object"&&typeof t.$type=="string"}function Ks({$type:t,value:e}){switch(t){case"BigInt":return BigInt(e);case"Bytes":{let{buffer:r,byteOffset:n,byteLength:i}=b.from(e,"base64");return new Uint8Array(r,n,i)}case"DateTime":return new Date(e);case"Decimal":return new me(e);case"Json":return JSON.parse(e);default:be(e,"Unknown tagged value")}}u();c();m();p();d();l();u();c();m();p();d();l();u();c();m();p();d();l();var pe=class{_map=new Map;get(e){return this._map.get(e)?.value}set(e,r){this._map.set(e,{value:r})}getOrCreate(e,r){let n=this._map.get(e);if(n)return n.value;let i=r();return this.set(e,i),i}};u();c();m();p();d();l();function ve(t){return t.substring(0,1).toLowerCase()+t.substring(1)}u();c();m();p();d();l();function ri(t,e){let r={};for(let n of t){let i=n[e];r[i]=n}return r}u();c();m();p();d();l();function ut(t){let e;return{get(){return e||(e={value:t()}),e.value}}}u();c();m();p();d();l();function ni(t){return{models:Fr(t.models),enums:Fr(t.enums),types:Fr(t.types)}}function Fr(t){let e={};for(let{name:r,...n}of t)e[r]=n;return e}u();c();m();p();d();l();function Ve(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function qt(t){return t.toString()!=="Invalid Date"}u();c();m();p();d();l();l();function je(t){return v.isDecimal(t)?!0:t!==null&&typeof t=="object"&&typeof t.s=="number"&&typeof t.e=="number"&&typeof t.toFixed=="function"&&Array.isArray(t.d)}u();c();m();p();d();l();u();c();m();p();d();l();var mt={};rt(mt,{ModelAction:()=>ct,datamodelEnumToSchemaEnum:()=>Hs});u();c();m();p();d();l();u();c();m();p();d();l();function Hs(t){return{name:t.name,values:t.values.map(e=>e.name)}}u();c();m();p();d();l();var ct=(L=>(L.findUnique="findUnique",L.findUniqueOrThrow="findUniqueOrThrow",L.findFirst="findFirst",L.findFirstOrThrow="findFirstOrThrow",L.findMany="findMany",L.create="create",L.createMany="createMany",L.createManyAndReturn="createManyAndReturn",L.update="update",L.updateMany="updateMany",L.updateManyAndReturn="updateManyAndReturn",L.upsert="upsert",L.delete="delete",L.deleteMany="deleteMany",L.groupBy="groupBy",L.count="count",L.aggregate="aggregate",L.findRaw="findRaw",L.aggregateRaw="aggregateRaw",L))(ct||{});var zs=nt(Kn());var Ys={red:Ne,gray:Dn,dim:Lt,bold:_t,underline:Sn,highlightSource:t=>t.highlight()},Xs={red:t=>t,gray:t=>t,dim:t=>t,bold:t=>t,underline:t=>t,highlightSource:t=>t};function Zs({message:t,originalMethod:e,isPanic:r,callArguments:n}){return{functionName:`prisma.${e}()`,message:t,isPanic:r??!1,callArguments:n}}function ea({functionName:t,location:e,message:r,isPanic:n,contextLines:i,callArguments:o},s){let a=[""],f=e?" in":":";if(n?(a.push(s.red(`Oops, an unknown error occurred! This is ${s.bold("on us")}, you did nothing wrong.`)),a.push(s.red(`It occurred in the ${s.bold(`\`${t}\``)} invocation${f}`))):a.push(s.red(`Invalid ${s.bold(`\`${t}\``)} invocation${f}`)),e&&a.push(s.underline(ta(e))),i){a.push("");let h=[i.toString()];o&&(h.push(o),h.push(s.dim(")"))),a.push(h.join("")),o&&a.push("")}else a.push(""),o&&a.push(o),a.push("");return a.push(r),a.join(` -`)}function ta(t){let e=[t.fileName];return t.lineNumber&&e.push(String(t.lineNumber)),t.columnNumber&&e.push(String(t.columnNumber)),e.join(":")}function Bt(t){let e=t.showColors?Ys:Xs,r;return typeof $getTemplateParameters<"u"?r=$getTemplateParameters(t,e):r=Zs(t),ea(r,e)}u();c();m();p();d();l();var pi=nt(Ur());u();c();m();p();d();l();function ai(t,e,r){let n=li(t),i=ra(n),o=ia(i);o?$t(o,e,r):e.addErrorMessage(()=>"Unknown error")}function li(t){return t.errors.flatMap(e=>e.kind==="Union"?li(e):[e])}function ra(t){let e=new Map,r=[];for(let n of t){if(n.kind!=="InvalidArgumentType"){r.push(n);continue}let i=`${n.selectionPath.join(".")}:${n.argumentPath.join(".")}`,o=e.get(i);o?e.set(i,{...n,argument:{...n.argument,typeNames:na(o.argument.typeNames,n.argument.typeNames)}}):e.set(i,n)}return r.push(...e.values()),r}function na(t,e){return[...new Set(t.concat(e))]}function ia(t){return Lr(t,(e,r)=>{let n=oi(e),i=oi(r);return n!==i?n-i:si(e)-si(r)})}function oi(t){let e=0;return Array.isArray(t.selectionPath)&&(e+=t.selectionPath.length),Array.isArray(t.argumentPath)&&(e+=t.argumentPath.length),e}function si(t){switch(t.kind){case"InvalidArgumentValue":case"ValueTooLarge":return 20;case"InvalidArgumentType":return 10;case"RequiredArgumentMissing":return-10;default:return 0}}u();c();m();p();d();l();var re=class{constructor(e,r){this.name=e;this.value=r}isRequired=!1;makeRequired(){return this.isRequired=!0,this}write(e){let{colors:{green:r}}=e.context;e.addMarginSymbol(r(this.isRequired?"+":"?")),e.write(r(this.name)),this.isRequired||e.write(r("?")),e.write(r(": ")),typeof this.value=="string"?e.write(r(this.value)):e.write(this.value)}};u();c();m();p();d();l();u();c();m();p();d();l();ci();u();c();m();p();d();l();var Qe=class{constructor(e=0,r){this.context=r;this.currentIndent=e}lines=[];currentLine="";currentIndent=0;marginSymbol;afterNextNewLineCallback;write(e){return typeof e=="string"?this.currentLine+=e:e.write(this),this}writeJoined(e,r,n=(i,o)=>o.write(i)){let i=r.length-1;for(let o=0;o0&&this.currentIndent--,this}addMarginSymbol(e){return this.marginSymbol=e,this}toString(){return this.lines.concat(this.indentedCurrentLine()).join(` -`)}getCurrentLineLength(){return this.currentLine.length}indentedCurrentLine(){let e=this.currentLine.padStart(this.currentLine.length+2*this.currentIndent);return this.marginSymbol?this.marginSymbol+e.slice(1):e}};ui();u();c();m();p();d();l();u();c();m();p();d();l();var Vt=class{constructor(e){this.value=e}write(e){e.write(this.value)}markAsError(){this.value.markAsError()}};u();c();m();p();d();l();var jt=t=>t,Qt={bold:jt,red:jt,green:jt,dim:jt,enabled:!1},mi={bold:_t,red:Ne,green:kn,dim:Lt,enabled:!0},Je={write(t){t.writeLine(",")}};u();c();m();p();d();l();var de=class{constructor(e){this.contents=e}isUnderlined=!1;color=e=>e;underline(){return this.isUnderlined=!0,this}setColor(e){return this.color=e,this}write(e){let r=e.getCurrentLineLength();e.write(this.color(this.contents)),this.isUnderlined&&e.afterNextNewline(()=>{e.write(" ".repeat(r)).writeLine(this.color("~".repeat(this.contents.length)))})}};u();c();m();p();d();l();var Te=class{hasError=!1;markAsError(){return this.hasError=!0,this}};var Ge=class extends Te{items=[];addItem(e){return this.items.push(new Vt(e)),this}getField(e){return this.items[e]}getPrintWidth(){return this.items.length===0?2:Math.max(...this.items.map(r=>r.value.getPrintWidth()))+2}write(e){if(this.items.length===0){this.writeEmpty(e);return}this.writeWithItems(e)}writeEmpty(e){let r=new de("[]");this.hasError&&r.setColor(e.context.colors.red).underline(),e.write(r)}writeWithItems(e){let{colors:r}=e.context;e.writeLine("[").withIndent(()=>e.writeJoined(Je,this.items).newLine()).write("]"),this.hasError&&e.afterNextNewline(()=>{e.writeLine(r.red("~".repeat(this.getPrintWidth())))})}asObject(){}};var We=class t extends Te{fields={};suggestions=[];addField(e){this.fields[e.name]=e}addSuggestion(e){this.suggestions.push(e)}getField(e){return this.fields[e]}getDeepField(e){let[r,...n]=e,i=this.getField(r);if(!i)return;let o=i;for(let s of n){let a;if(o.value instanceof t?a=o.value.getField(s):o.value instanceof Ge&&(a=o.value.getField(Number(s))),!a)return;o=a}return o}getDeepFieldValue(e){return e.length===0?this:this.getDeepField(e)?.value}hasField(e){return!!this.getField(e)}removeAllFields(){this.fields={}}removeField(e){delete this.fields[e]}getFields(){return this.fields}isEmpty(){return Object.keys(this.fields).length===0}getFieldValue(e){return this.getField(e)?.value}getDeepSubSelectionValue(e){let r=this;for(let n of e){if(!(r instanceof t))return;let i=r.getSubSelectionValue(n);if(!i)return;r=i}return r}getDeepSelectionParent(e){let r=this.getSelectionParent();if(!r)return;let n=r;for(let i of e){let o=n.value.getFieldValue(i);if(!o||!(o instanceof t))return;let s=o.getSelectionParent();if(!s)return;n=s}return n}getSelectionParent(){let e=this.getField("select")?.value.asObject();if(e)return{kind:"select",value:e};let r=this.getField("include")?.value.asObject();if(r)return{kind:"include",value:r}}getSubSelectionValue(e){return this.getSelectionParent()?.value.fields[e].value}getPrintWidth(){let e=Object.values(this.fields);return e.length==0?2:Math.max(...e.map(n=>n.getPrintWidth()))+2}write(e){let r=Object.values(this.fields);if(r.length===0&&this.suggestions.length===0){this.writeEmpty(e);return}this.writeWithContents(e,r)}asObject(){return this}writeEmpty(e){let r=new de("{}");this.hasError&&r.setColor(e.context.colors.red).underline(),e.write(r)}writeWithContents(e,r){e.writeLine("{").withIndent(()=>{e.writeJoined(Je,[...r,...this.suggestions]).newLine()}),e.write("}"),this.hasError&&e.afterNextNewline(()=>{e.writeLine(e.context.colors.red("~".repeat(this.getPrintWidth())))})}};u();c();m();p();d();l();var G=class extends Te{constructor(r){super();this.text=r}getPrintWidth(){return this.text.length}write(r){let n=new de(this.text);this.hasError&&n.underline().setColor(r.context.colors.red),r.write(n)}asObject(){}};u();c();m();p();d();l();var pt=class{fields=[];addField(e,r){return this.fields.push({write(n){let{green:i,dim:o}=n.context.colors;n.write(i(o(`${e}: ${r}`))).addMarginSymbol(i(o("+")))}}),this}write(e){let{colors:{green:r}}=e.context;e.writeLine(r("{")).withIndent(()=>{e.writeJoined(Je,this.fields).newLine()}).write(r("}")).addMarginSymbol(r("+"))}};function $t(t,e,r){switch(t.kind){case"MutuallyExclusiveFields":oa(t,e);break;case"IncludeOnScalar":sa(t,e);break;case"EmptySelection":aa(t,e,r);break;case"UnknownSelectionField":ma(t,e);break;case"InvalidSelectionValue":pa(t,e);break;case"UnknownArgument":da(t,e);break;case"UnknownInputField":fa(t,e);break;case"RequiredArgumentMissing":ga(t,e);break;case"InvalidArgumentType":ya(t,e);break;case"InvalidArgumentValue":ha(t,e);break;case"ValueTooLarge":ba(t,e);break;case"SomeFieldsMissing":wa(t,e);break;case"TooManyFieldsGiven":Ea(t,e);break;case"Union":ai(t,e,r);break;default:throw new Error("not implemented: "+t.kind)}}function oa(t,e){let r=e.arguments.getDeepSubSelectionValue(t.selectionPath)?.asObject();r&&(r.getField(t.firstField)?.markAsError(),r.getField(t.secondField)?.markAsError()),e.addErrorMessage(n=>`Please ${n.bold("either")} use ${n.green(`\`${t.firstField}\``)} or ${n.green(`\`${t.secondField}\``)}, but ${n.red("not both")} at the same time.`)}function sa(t,e){let[r,n]=dt(t.selectionPath),i=t.outputType,o=e.arguments.getDeepSelectionParent(r)?.value;if(o&&(o.getField(n)?.markAsError(),i))for(let s of i.fields)s.isRelation&&o.addSuggestion(new re(s.name,"true"));e.addErrorMessage(s=>{let a=`Invalid scalar field ${s.red(`\`${n}\``)} for ${s.bold("include")} statement`;return i?a+=` on model ${s.bold(i.name)}. ${ft(s)}`:a+=".",a+=` -Note that ${s.bold("include")} statements only accept relation fields.`,a})}function aa(t,e,r){let n=e.arguments.getDeepSubSelectionValue(t.selectionPath)?.asObject();if(n){let i=n.getField("omit")?.value.asObject();if(i){la(t,e,i);return}if(n.hasField("select")){ua(t,e);return}}if(r?.[ve(t.outputType.name)]){ca(t,e);return}e.addErrorMessage(()=>`Unknown field at "${t.selectionPath.join(".")} selection"`)}function la(t,e,r){r.removeAllFields();for(let n of t.outputType.fields)r.addSuggestion(new re(n.name,"false"));e.addErrorMessage(n=>`The ${n.red("omit")} statement includes every field of the model ${n.bold(t.outputType.name)}. At least one field must be included in the result`)}function ua(t,e){let r=t.outputType,n=e.arguments.getDeepSelectionParent(t.selectionPath)?.value,i=n?.isEmpty()??!1;n&&(n.removeAllFields(),gi(n,r)),e.addErrorMessage(o=>i?`The ${o.red("`select`")} statement for type ${o.bold(r.name)} must not be empty. ${ft(o)}`:`The ${o.red("`select`")} statement for type ${o.bold(r.name)} needs ${o.bold("at least one truthy value")}.`)}function ca(t,e){let r=new pt;for(let i of t.outputType.fields)i.isRelation||r.addField(i.name,"false");let n=new re("omit",r).makeRequired();if(t.selectionPath.length===0)e.arguments.addSuggestion(n);else{let[i,o]=dt(t.selectionPath),a=e.arguments.getDeepSelectionParent(i)?.value.asObject()?.getField(o);if(a){let f=a?.value.asObject()??new We;f.addSuggestion(n),a.value=f}}e.addErrorMessage(i=>`The global ${i.red("omit")} configuration excludes every field of the model ${i.bold(t.outputType.name)}. At least one field must be included in the result`)}function ma(t,e){let r=yi(t.selectionPath,e);if(r.parentKind!=="unknown"){r.field.markAsError();let n=r.parent;switch(r.parentKind){case"select":gi(n,t.outputType);break;case"include":xa(n,t.outputType);break;case"omit":Pa(n,t.outputType);break}}e.addErrorMessage(n=>{let i=[`Unknown field ${n.red(`\`${r.fieldName}\``)}`];return r.parentKind!=="unknown"&&i.push(`for ${n.bold(r.parentKind)} statement`),i.push(`on model ${n.bold(`\`${t.outputType.name}\``)}.`),i.push(ft(n)),i.join(" ")})}function pa(t,e){let r=yi(t.selectionPath,e);r.parentKind!=="unknown"&&r.field.value.markAsError(),e.addErrorMessage(n=>`Invalid value for selection field \`${n.red(r.fieldName)}\`: ${t.underlyingError}`)}function da(t,e){let r=t.argumentPath[0],n=e.arguments.getDeepSubSelectionValue(t.selectionPath)?.asObject();n&&(n.getField(r)?.markAsError(),va(n,t.arguments)),e.addErrorMessage(i=>di(i,r,t.arguments.map(o=>o.name)))}function fa(t,e){let[r,n]=dt(t.argumentPath),i=e.arguments.getDeepSubSelectionValue(t.selectionPath)?.asObject();if(i){i.getDeepField(t.argumentPath)?.markAsError();let o=i.getDeepFieldValue(r)?.asObject();o&&hi(o,t.inputType)}e.addErrorMessage(o=>di(o,n,t.inputType.fields.map(s=>s.name)))}function di(t,e,r){let n=[`Unknown argument \`${t.red(e)}\`.`],i=Ca(e,r);return i&&n.push(`Did you mean \`${t.green(i)}\`?`),r.length>0&&n.push(ft(t)),n.join(" ")}function ga(t,e){let r;e.addErrorMessage(f=>r?.value instanceof G&&r.value.text==="null"?`Argument \`${f.green(o)}\` must not be ${f.red("null")}.`:`Argument \`${f.green(o)}\` is missing.`);let n=e.arguments.getDeepSubSelectionValue(t.selectionPath)?.asObject();if(!n)return;let[i,o]=dt(t.argumentPath),s=new pt,a=n.getDeepFieldValue(i)?.asObject();if(a)if(r=a.getField(o),r&&a.removeField(o),t.inputTypes.length===1&&t.inputTypes[0].kind==="object"){for(let f of t.inputTypes[0].fields)s.addField(f.name,f.typeNames.join(" | "));a.addSuggestion(new re(o,s).makeRequired())}else{let f=t.inputTypes.map(fi).join(" | ");a.addSuggestion(new re(o,f).makeRequired())}}function fi(t){return t.kind==="list"?`${fi(t.elementType)}[]`:t.name}function ya(t,e){let r=t.argument.name,n=e.arguments.getDeepSubSelectionValue(t.selectionPath)?.asObject();n&&n.getDeepFieldValue(t.argumentPath)?.markAsError(),e.addErrorMessage(i=>{let o=Jt("or",t.argument.typeNames.map(s=>i.green(s)));return`Argument \`${i.bold(r)}\`: Invalid value provided. Expected ${o}, provided ${i.red(t.inferredType)}.`})}function ha(t,e){let r=t.argument.name,n=e.arguments.getDeepSubSelectionValue(t.selectionPath)?.asObject();n&&n.getDeepFieldValue(t.argumentPath)?.markAsError(),e.addErrorMessage(i=>{let o=[`Invalid value for argument \`${i.bold(r)}\``];if(t.underlyingError&&o.push(`: ${t.underlyingError}`),o.push("."),t.argument.typeNames.length>0){let s=Jt("or",t.argument.typeNames.map(a=>i.green(a)));o.push(` Expected ${s}.`)}return o.join("")})}function ba(t,e){let r=t.argument.name,n=e.arguments.getDeepSubSelectionValue(t.selectionPath)?.asObject(),i;if(n){let s=n.getDeepField(t.argumentPath)?.value;s?.markAsError(),s instanceof G&&(i=s.text)}e.addErrorMessage(o=>{let s=["Unable to fit value"];return i&&s.push(o.red(i)),s.push(`into a 64-bit signed integer for field \`${o.bold(r)}\``),s.join(" ")})}function wa(t,e){let r=t.argumentPath[t.argumentPath.length-1],n=e.arguments.getDeepSubSelectionValue(t.selectionPath)?.asObject();if(n){let i=n.getDeepFieldValue(t.argumentPath)?.asObject();i&&hi(i,t.inputType)}e.addErrorMessage(i=>{let o=[`Argument \`${i.bold(r)}\` of type ${i.bold(t.inputType.name)} needs`];return t.constraints.minFieldCount===1?t.constraints.requiredFields?o.push(`${i.green("at least one of")} ${Jt("or",t.constraints.requiredFields.map(s=>`\`${i.bold(s)}\``))} arguments.`):o.push(`${i.green("at least one")} argument.`):o.push(`${i.green(`at least ${t.constraints.minFieldCount}`)} arguments.`),o.push(ft(i)),o.join(" ")})}function Ea(t,e){let r=t.argumentPath[t.argumentPath.length-1],n=e.arguments.getDeepSubSelectionValue(t.selectionPath)?.asObject(),i=[];if(n){let o=n.getDeepFieldValue(t.argumentPath)?.asObject();o&&(o.markAsError(),i=Object.keys(o.getFields()))}e.addErrorMessage(o=>{let s=[`Argument \`${o.bold(r)}\` of type ${o.bold(t.inputType.name)} needs`];return t.constraints.minFieldCount===1&&t.constraints.maxFieldCount==1?s.push(`${o.green("exactly one")} argument,`):t.constraints.maxFieldCount==1?s.push(`${o.green("at most one")} argument,`):s.push(`${o.green(`at most ${t.constraints.maxFieldCount}`)} arguments,`),s.push(`but you provided ${Jt("and",i.map(a=>o.red(a)))}. Please choose`),t.constraints.maxFieldCount===1?s.push("one."):s.push(`${t.constraints.maxFieldCount}.`),s.join(" ")})}function gi(t,e){for(let r of e.fields)t.hasField(r.name)||t.addSuggestion(new re(r.name,"true"))}function xa(t,e){for(let r of e.fields)r.isRelation&&!t.hasField(r.name)&&t.addSuggestion(new re(r.name,"true"))}function Pa(t,e){for(let r of e.fields)!t.hasField(r.name)&&!r.isRelation&&t.addSuggestion(new re(r.name,"true"))}function va(t,e){for(let r of e)t.hasField(r.name)||t.addSuggestion(new re(r.name,r.typeNames.join(" | ")))}function yi(t,e){let[r,n]=dt(t),i=e.arguments.getDeepSubSelectionValue(r)?.asObject();if(!i)return{parentKind:"unknown",fieldName:n};let o=i.getFieldValue("select")?.asObject(),s=i.getFieldValue("include")?.asObject(),a=i.getFieldValue("omit")?.asObject(),f=o?.getField(n);return o&&f?{parentKind:"select",parent:o,field:f,fieldName:n}:(f=s?.getField(n),s&&f?{parentKind:"include",field:f,parent:s,fieldName:n}:(f=a?.getField(n),a&&f?{parentKind:"omit",field:f,parent:a,fieldName:n}:{parentKind:"unknown",fieldName:n}))}function hi(t,e){if(e.kind==="object")for(let r of e.fields)t.hasField(r.name)||t.addSuggestion(new re(r.name,r.typeNames.join(" | ")))}function dt(t){let e=[...t],r=e.pop();if(!r)throw new Error("unexpected empty path");return[e,r]}function ft({green:t,enabled:e}){return"Available options are "+(e?`listed in ${t("green")}`:"marked with ?")+"."}function Jt(t,e){if(e.length===1)return e[0];let r=[...e],n=r.pop();return`${r.join(", ")} ${t} ${n}`}var Ta=3;function Ca(t,e){let r=1/0,n;for(let i of e){let o=(0,pi.default)(t,i);o>Ta||o`}};function Ke(t){return t instanceof gt}u();c();m();p();d();l();var Gt=Symbol(),qr=new WeakMap,Ee=class{constructor(e){e===Gt?qr.set(this,`Prisma.${this._getName()}`):qr.set(this,`new Prisma.${this._getNamespace()}.${this._getName()}()`)}_getName(){return this.constructor.name}toString(){return qr.get(this)}},yt=class extends Ee{_getNamespace(){return"NullTypes"}},ht=class extends yt{#e};Br(ht,"DbNull");var bt=class extends yt{#e};Br(bt,"JsonNull");var wt=class extends yt{#e};Br(wt,"AnyNull");var Wt={classes:{DbNull:ht,JsonNull:bt,AnyNull:wt},instances:{DbNull:new ht(Gt),JsonNull:new bt(Gt),AnyNull:new wt(Gt)}};function Br(t,e){Object.defineProperty(t,"name",{value:e,configurable:!0})}u();c();m();p();d();l();var bi=": ",Kt=class{constructor(e,r){this.name=e;this.value=r}hasError=!1;markAsError(){this.hasError=!0}getPrintWidth(){return this.name.length+this.value.getPrintWidth()+bi.length}write(e){let r=new de(this.name);this.hasError&&r.underline().setColor(e.context.colors.red),e.write(r).write(bi).write(this.value)}};var $r=class{arguments;errorMessages=[];constructor(e){this.arguments=e}write(e){e.write(this.arguments)}addErrorMessage(e){this.errorMessages.push(e)}renderAllMessages(e){return this.errorMessages.map(r=>r(e)).join(` -`)}};function He(t){return new $r(wi(t))}function wi(t){let e=new We;for(let[r,n]of Object.entries(t)){let i=new Kt(r,Ei(n));e.addField(i)}return e}function Ei(t){if(typeof t=="string")return new G(JSON.stringify(t));if(typeof t=="number"||typeof t=="boolean")return new G(String(t));if(typeof t=="bigint")return new G(`${t}n`);if(t===null)return new G("null");if(t===void 0)return new G("undefined");if(je(t))return new G(`new Prisma.Decimal("${t.toFixed()}")`);if(t instanceof Uint8Array)return b.isBuffer(t)?new G(`Buffer.alloc(${t.byteLength})`):new G(`new Uint8Array(${t.byteLength})`);if(t instanceof Date){let e=qt(t)?t.toISOString():"Invalid Date";return new G(`new Date("${e}")`)}return t instanceof Ee?new G(`Prisma.${t._getName()}`):Ke(t)?new G(`prisma.${ve(t.modelName)}.$fields.${t.name}`):Array.isArray(t)?Ra(t):typeof t=="object"?wi(t):new G(Object.prototype.toString.call(t))}function Ra(t){let e=new Ge;for(let r of t)e.addItem(Ei(r));return e}function Ht(t,e){let r=e==="pretty"?mi:Qt,n=t.renderAllMessages(r),i=new Qe(0,{colors:r}).write(t).toString();return{message:n,args:i}}function zt({args:t,errors:e,errorFormat:r,callsite:n,originalMethod:i,clientVersion:o,globalOmit:s}){let a=He(t);for(let C of e)$t(C,a,s);let{message:f,args:h}=Ht(a,r),T=Bt({message:f,callsite:n,originalMethod:i,showColors:r==="pretty",callArguments:h});throw new W(T,{clientVersion:o})}u();c();m();p();d();l();u();c();m();p();d();l();function fe(t){return t.replace(/^./,e=>e.toLowerCase())}u();c();m();p();d();l();function Pi(t,e,r){let n=fe(r);return!e.result||!(e.result.$allModels||e.result[n])?t:Aa({...t,...xi(e.name,t,e.result.$allModels),...xi(e.name,t,e.result[n])})}function Aa(t){let e=new pe,r=(n,i)=>e.getOrCreate(n,()=>i.has(n)?[n]:(i.add(n),t[n]?t[n].needs.flatMap(o=>r(o,i)):[n]));return Be(t,n=>({...n,needs:r(n.name,new Set)}))}function xi(t,e,r){return r?Be(r,({needs:n,compute:i},o)=>({name:o,needs:n?Object.keys(n).filter(s=>n[s]):[],compute:Sa(e,o,i)})):{}}function Sa(t,e,r){let n=t?.[e]?.compute;return n?i=>r({...i,[e]:n(i)}):r}function vi(t,e){if(!e)return t;let r={...t};for(let n of Object.values(e))if(t[n.name])for(let i of n.needs)r[i]=!0;return r}function Ti(t,e){if(!e)return t;let r={...t};for(let n of Object.values(e))if(!t[n.name])for(let i of n.needs)delete r[i];return r}var Yt=class{constructor(e,r){this.extension=e;this.previous=r}computedFieldsCache=new pe;modelExtensionsCache=new pe;queryCallbacksCache=new pe;clientExtensions=ut(()=>this.extension.client?{...this.previous?.getAllClientExtensions(),...this.extension.client}:this.previous?.getAllClientExtensions());batchCallbacks=ut(()=>{let e=this.previous?.getAllBatchQueryCallbacks()??[],r=this.extension.query?.$__internalBatch;return r?e.concat(r):e});getAllComputedFields(e){return this.computedFieldsCache.getOrCreate(e,()=>Pi(this.previous?.getAllComputedFields(e),this.extension,e))}getAllClientExtensions(){return this.clientExtensions.get()}getAllModelExtensions(e){return this.modelExtensionsCache.getOrCreate(e,()=>{let r=fe(e);return!this.extension.model||!(this.extension.model[r]||this.extension.model.$allModels)?this.previous?.getAllModelExtensions(e):{...this.previous?.getAllModelExtensions(e),...this.extension.model.$allModels,...this.extension.model[r]}})}getAllQueryCallbacks(e,r){return this.queryCallbacksCache.getOrCreate(`${e}:${r}`,()=>{let n=this.previous?.getAllQueryCallbacks(e,r)??[],i=[],o=this.extension.query;return!o||!(o[e]||o.$allModels||o[r]||o.$allOperations)?n:(o[e]!==void 0&&(o[e][r]!==void 0&&i.push(o[e][r]),o[e].$allOperations!==void 0&&i.push(o[e].$allOperations)),e!=="$none"&&o.$allModels!==void 0&&(o.$allModels[r]!==void 0&&i.push(o.$allModels[r]),o.$allModels.$allOperations!==void 0&&i.push(o.$allModels.$allOperations)),o[r]!==void 0&&i.push(o[r]),o.$allOperations!==void 0&&i.push(o.$allOperations),n.concat(i))})}getAllBatchQueryCallbacks(){return this.batchCallbacks.get()}},ze=class t{constructor(e){this.head=e}static empty(){return new t}static single(e){return new t(new Yt(e))}isEmpty(){return this.head===void 0}append(e){return new t(new Yt(e,this.head))}getAllComputedFields(e){return this.head?.getAllComputedFields(e)}getAllClientExtensions(){return this.head?.getAllClientExtensions()}getAllModelExtensions(e){return this.head?.getAllModelExtensions(e)}getAllQueryCallbacks(e,r){return this.head?.getAllQueryCallbacks(e,r)??[]}getAllBatchQueryCallbacks(){return this.head?.getAllBatchQueryCallbacks()??[]}};u();c();m();p();d();l();var Xt=class{constructor(e){this.name=e}};function Ci(t){return t instanceof Xt}function Ri(t){return new Xt(t)}u();c();m();p();d();l();u();c();m();p();d();l();var Ai=Symbol(),Et=class{constructor(e){if(e!==Ai)throw new Error("Skip instance can not be constructed directly")}ifUndefined(e){return e===void 0?Zt:e}},Zt=new Et(Ai);function ge(t){return t instanceof Et}var ka={findUnique:"findUnique",findUniqueOrThrow:"findUniqueOrThrow",findFirst:"findFirst",findFirstOrThrow:"findFirstOrThrow",findMany:"findMany",count:"aggregate",create:"createOne",createMany:"createMany",createManyAndReturn:"createManyAndReturn",update:"updateOne",updateMany:"updateMany",updateManyAndReturn:"updateManyAndReturn",upsert:"upsertOne",delete:"deleteOne",deleteMany:"deleteMany",executeRaw:"executeRaw",queryRaw:"queryRaw",aggregate:"aggregate",groupBy:"groupBy",runCommandRaw:"runCommandRaw",findRaw:"findRaw",aggregateRaw:"aggregateRaw"},Si="explicitly `undefined` values are not allowed";function er({modelName:t,action:e,args:r,runtimeDataModel:n,extensions:i=ze.empty(),callsite:o,clientMethod:s,errorFormat:a,clientVersion:f,previewFeatures:h,globalOmit:T}){let C=new Vr({runtimeDataModel:n,modelName:t,action:e,rootArgs:r,callsite:o,extensions:i,selectionPath:[],argumentPath:[],originalMethod:s,errorFormat:a,clientVersion:f,previewFeatures:h,globalOmit:T});return{modelName:t,action:ka[e],query:xt(r,C)}}function xt({select:t,include:e,...r}={},n){let i=r.omit;return delete r.omit,{arguments:Oi(r,n),selection:Oa(t,e,i,n)}}function Oa(t,e,r,n){return t?(e?n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"include",secondField:"select",selectionPath:n.getSelectionPath()}):r&&n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"omit",secondField:"select",selectionPath:n.getSelectionPath()}),_a(t,n)):Ia(n,e,r)}function Ia(t,e,r){let n={};return t.modelOrType&&!t.isRawAction()&&(n.$composites=!0,n.$scalars=!0),e&&Ma(n,e,t),Da(n,r,t),n}function Ma(t,e,r){for(let[n,i]of Object.entries(e)){if(ge(i))continue;let o=r.nestSelection(n);if(jr(i,o),i===!1||i===void 0){t[n]=!1;continue}let s=r.findField(n);if(s&&s.kind!=="object"&&r.throwValidationError({kind:"IncludeOnScalar",selectionPath:r.getSelectionPath().concat(n),outputType:r.getOutputTypeDescription()}),s){t[n]=xt(i===!0?{}:i,o);continue}if(i===!0){t[n]=!0;continue}t[n]=xt(i,o)}}function Da(t,e,r){let n=r.getComputedFields(),i={...r.getGlobalOmit(),...e},o=Ti(i,n);for(let[s,a]of Object.entries(o)){if(ge(a))continue;jr(a,r.nestSelection(s));let f=r.findField(s);n?.[s]&&!f||(t[s]=!a)}}function _a(t,e){let r={},n=e.getComputedFields(),i=vi(t,n);for(let[o,s]of Object.entries(i)){if(ge(s))continue;let a=e.nestSelection(o);jr(s,a);let f=e.findField(o);if(!(n?.[o]&&!f)){if(s===!1||s===void 0||ge(s)){r[o]=!1;continue}if(s===!0){f?.kind==="object"?r[o]=xt({},a):r[o]=!0;continue}r[o]=xt(s,a)}}return r}function ki(t,e){if(t===null)return null;if(typeof t=="string"||typeof t=="number"||typeof t=="boolean")return t;if(typeof t=="bigint")return{$type:"BigInt",value:String(t)};if(Ve(t)){if(qt(t))return{$type:"DateTime",value:t.toISOString()};e.throwValidationError({kind:"InvalidArgumentValue",selectionPath:e.getSelectionPath(),argumentPath:e.getArgumentPath(),argument:{name:e.getArgumentName(),typeNames:["Date"]},underlyingError:"Provided Date object is invalid"})}if(Ci(t))return{$type:"Param",value:t.name};if(Ke(t))return{$type:"FieldRef",value:{_ref:t.name,_container:t.modelName}};if(Array.isArray(t))return La(t,e);if(ArrayBuffer.isView(t)){let{buffer:r,byteOffset:n,byteLength:i}=t;return{$type:"Bytes",value:b.from(r,n,i).toString("base64")}}if(Fa(t))return t.values;if(je(t))return{$type:"Decimal",value:t.toFixed()};if(t instanceof Ee){if(t!==Wt.instances[t._getName()])throw new Error("Invalid ObjectEnumValue");return{$type:"Enum",value:t._getName()}}if(Ua(t))return t.toJSON();if(typeof t=="object")return Oi(t,e);e.throwValidationError({kind:"InvalidArgumentValue",selectionPath:e.getSelectionPath(),argumentPath:e.getArgumentPath(),argument:{name:e.getArgumentName(),typeNames:[]},underlyingError:`We could not serialize ${Object.prototype.toString.call(t)} value. Serialize the object to JSON or implement a ".toJSON()" method on it`})}function Oi(t,e){if(t.$type)return{$type:"Raw",value:t};let r={};for(let n in t){let i=t[n],o=e.nestArgument(n);ge(i)||(i!==void 0?r[n]=ki(i,o):e.isPreviewFeatureOn("strictUndefinedChecks")&&e.throwValidationError({kind:"InvalidArgumentValue",argumentPath:o.getArgumentPath(),selectionPath:e.getSelectionPath(),argument:{name:e.getArgumentName(),typeNames:[]},underlyingError:Si}))}return r}function La(t,e){let r=[];for(let n=0;n({name:e.name,typeName:"boolean",isRelation:e.kind==="object"}))}}isRawAction(){return["executeRaw","queryRaw","runCommandRaw","findRaw","aggregateRaw"].includes(this.params.action)}isPreviewFeatureOn(e){return this.params.previewFeatures.includes(e)}getComputedFields(){if(this.params.modelName)return this.params.extensions.getAllComputedFields(this.params.modelName)}findField(e){return this.modelOrType?.fields.find(r=>r.name===e)}nestSelection(e){let r=this.findField(e),n=r?.kind==="object"?r.type:void 0;return new t({...this.params,modelName:n,selectionPath:this.params.selectionPath.concat(e)})}getGlobalOmit(){return this.params.modelName&&this.shouldApplyGlobalOmit()?this.params.globalOmit?.[ve(this.params.modelName)]??{}:{}}shouldApplyGlobalOmit(){switch(this.params.action){case"findFirst":case"findFirstOrThrow":case"findUniqueOrThrow":case"findMany":case"upsert":case"findUnique":case"createManyAndReturn":case"create":case"update":case"updateManyAndReturn":case"delete":return!0;case"executeRaw":case"aggregateRaw":case"runCommandRaw":case"findRaw":case"createMany":case"deleteMany":case"groupBy":case"updateMany":case"count":case"aggregate":case"queryRaw":return!1;default:be(this.params.action,"Unknown action")}}nestArgument(e){return new t({...this.params,argumentPath:this.params.argumentPath.concat(e)})}};u();c();m();p();d();l();function Ii(t){if(!t._hasPreviewFlag("metrics"))throw new W("`metrics` preview feature must be enabled in order to access metrics API",{clientVersion:t._clientVersion})}var Ye=class{_client;constructor(e){this._client=e}prometheus(e){return Ii(this._client),this._client._engine.metrics({format:"prometheus",...e})}json(e){return Ii(this._client),this._client._engine.metrics({format:"json",...e})}};u();c();m();p();d();l();function Mi(t,e){let r=ut(()=>Na(e));Object.defineProperty(t,"dmmf",{get:()=>r.get()})}function Na(t){throw new Error("Prisma.dmmf is not available when running in edge runtimes.")}function Qr(t){return Object.entries(t).map(([e,r])=>({name:e,...r}))}u();c();m();p();d();l();var Jr=new WeakMap,tr="$$PrismaTypedSql",Pt=class{constructor(e,r){Jr.set(this,{sql:e,values:r}),Object.defineProperty(this,tr,{value:tr})}get sql(){return Jr.get(this).sql}get values(){return Jr.get(this).values}};function Di(t){return(...e)=>new Pt(t,e)}function rr(t){return t!=null&&t[tr]===tr}u();c();m();p();d();l();var Go=nt(_i());u();c();m();p();d();l();Li();qn();jn();u();c();m();p();d();l();var Z=class t{constructor(e,r){if(e.length-1!==r.length)throw e.length===0?new TypeError("Expected at least 1 string"):new TypeError(`Expected ${e.length} strings to have ${e.length-1} values`);let n=r.reduce((s,a)=>s+(a instanceof t?a.values.length:1),0);this.values=new Array(n),this.strings=new Array(n+1),this.strings[0]=e[0];let i=0,o=0;for(;it.getPropertyValue(r))},getPropertyDescriptor(r){return t.getPropertyDescriptor?.(r)}}}u();c();m();p();d();l();u();c();m();p();d();l();var ir={enumerable:!0,configurable:!0,writable:!0};function or(t){let e=new Set(t);return{getPrototypeOf:()=>Object.prototype,getOwnPropertyDescriptor:()=>ir,has:(r,n)=>e.has(n),set:(r,n,i)=>e.add(n)&&Reflect.set(r,n,i),ownKeys:()=>[...e]}}var Ni=Symbol.for("nodejs.util.inspect.custom");function ae(t,e){let r=Ba(e),n=new Set,i=new Proxy(t,{get(o,s){if(n.has(s))return o[s];let a=r.get(s);return a?a.getPropertyValue(s):o[s]},has(o,s){if(n.has(s))return!0;let a=r.get(s);return a?a.has?.(s)??!0:Reflect.has(o,s)},ownKeys(o){let s=qi(Reflect.ownKeys(o),r),a=qi(Array.from(r.keys()),r);return[...new Set([...s,...a,...n])]},set(o,s,a){return r.get(s)?.getPropertyDescriptor?.(s)?.writable===!1?!1:(n.add(s),Reflect.set(o,s,a))},getOwnPropertyDescriptor(o,s){let a=Reflect.getOwnPropertyDescriptor(o,s);if(a&&!a.configurable)return a;let f=r.get(s);return f?f.getPropertyDescriptor?{...ir,...f?.getPropertyDescriptor(s)}:ir:a},defineProperty(o,s,a){return n.add(s),Reflect.defineProperty(o,s,a)},getPrototypeOf:()=>Object.prototype});return i[Ni]=function(){let o={...this};return delete o[Ni],o},i}function Ba(t){let e=new Map;for(let r of t){let n=r.getKeys();for(let i of n)e.set(i,r)}return e}function qi(t,e){return t.filter(r=>e.get(r)?.has?.(r)??!0)}u();c();m();p();d();l();function Xe(t){return{getKeys(){return t},has(){return!1},getPropertyValue(){}}}u();c();m();p();d();l();function sr(t,e){return{batch:t,transaction:e?.kind==="batch"?{isolationLevel:e.options.isolationLevel}:void 0}}u();c();m();p();d();l();function Bi(t){if(t===void 0)return"";let e=He(t);return new Qe(0,{colors:Qt}).write(e).toString()}u();c();m();p();d();l();var $a="P2037";function ar({error:t,user_facing_error:e},r,n){return e.error_code?new X(Va(e,n),{code:e.error_code,clientVersion:r,meta:e.meta,batchRequestIdx:e.batch_request_idx}):new j(t,{clientVersion:r,batchRequestIdx:e.batch_request_idx})}function Va(t,e){let r=t.message;return(e==="postgresql"||e==="postgres"||e==="mysql")&&t.error_code===$a&&(r+=` -Prisma Accelerate has built-in connection pooling to prevent such errors: https://pris.ly/client/error-accelerate`),r}u();c();m();p();d();l();u();c();m();p();d();l();u();c();m();p();d();l();u();c();m();p();d();l();u();c();m();p();d();l();var Kr=class{getLocation(){return null}};function Ce(t){return typeof $EnabledCallSite=="function"&&t!=="minimal"?new $EnabledCallSite:new Kr}u();c();m();p();d();l();u();c();m();p();d();l();u();c();m();p();d();l();var $i={_avg:!0,_count:!0,_sum:!0,_min:!0,_max:!0};function Ze(t={}){let e=Qa(t);return Object.entries(e).reduce((n,[i,o])=>($i[i]!==void 0?n.select[i]={select:o}:n[i]=o,n),{select:{}})}function Qa(t={}){return typeof t._count=="boolean"?{...t,_count:{_all:t._count}}:t}function lr(t={}){return e=>(typeof t._count=="boolean"&&(e._count=e._count._all),e)}function Vi(t,e){let r=lr(t);return e({action:"aggregate",unpacker:r,argsMapper:Ze})(t)}u();c();m();p();d();l();function Ja(t={}){let{select:e,...r}=t;return typeof e=="object"?Ze({...r,_count:e}):Ze({...r,_count:{_all:!0}})}function Ga(t={}){return typeof t.select=="object"?e=>lr(t)(e)._count:e=>lr(t)(e)._count._all}function ji(t,e){return e({action:"count",unpacker:Ga(t),argsMapper:Ja})(t)}u();c();m();p();d();l();function Wa(t={}){let e=Ze(t);if(Array.isArray(e.by))for(let r of e.by)typeof r=="string"&&(e.select[r]=!0);else typeof e.by=="string"&&(e.select[e.by]=!0);return e}function Ka(t={}){return e=>(typeof t?._count=="boolean"&&e.forEach(r=>{r._count=r._count._all}),e)}function Qi(t,e){return e({action:"groupBy",unpacker:Ka(t),argsMapper:Wa})(t)}function Ji(t,e,r){if(e==="aggregate")return n=>Vi(n,r);if(e==="count")return n=>ji(n,r);if(e==="groupBy")return n=>Qi(n,r)}u();c();m();p();d();l();function Gi(t,e){let r=e.fields.filter(i=>!i.relationName),n=ri(r,"name");return new Proxy({},{get(i,o){if(o in i||typeof o=="symbol")return i[o];let s=n[o];if(s)return new gt(t,o,s.type,s.isList,s.kind==="enum")},...or(Object.keys(n))})}u();c();m();p();d();l();u();c();m();p();d();l();var Wi=t=>Array.isArray(t)?t:t.split("."),Hr=(t,e)=>Wi(e).reduce((r,n)=>r&&r[n],t),Ki=(t,e,r)=>Wi(e).reduceRight((n,i,o,s)=>Object.assign({},Hr(t,s.slice(0,o)),{[i]:n}),r);function Ha(t,e){return t===void 0||e===void 0?[]:[...e,"select",t]}function za(t,e,r){return e===void 0?t??{}:Ki(e,r,t||!0)}function zr(t,e,r,n,i,o){let a=t._runtimeDataModel.models[e].fields.reduce((f,h)=>({...f,[h.name]:h}),{});return f=>{let h=Ce(t._errorFormat),T=Ha(n,i),C=za(f,o,T),k=r({dataPath:T,callsite:h})(C),R=Ya(t,e);return new Proxy(k,{get(O,S){if(!R.includes(S))return O[S];let oe=[a[S].type,r,S],H=[T,C];return zr(t,...oe,...H)},...or([...R,...Object.getOwnPropertyNames(k)])})}}function Ya(t,e){return t._runtimeDataModel.models[e].fields.filter(r=>r.kind==="object").map(r=>r.name)}var Xa=["findUnique","findUniqueOrThrow","findFirst","findFirstOrThrow","create","update","upsert","delete"],Za=["aggregate","count","groupBy"];function Yr(t,e){let r=t._extensions.getAllModelExtensions(e)??{},n=[el(t,e),rl(t,e),vt(r),K("name",()=>e),K("$name",()=>e),K("$parent",()=>t._appliedParent)];return ae({},n)}function el(t,e){let r=fe(e),n=Object.keys(ct).concat("count");return{getKeys(){return n},getPropertyValue(i){let o=i,s=a=>f=>{let h=Ce(t._errorFormat);return t._createPrismaPromise(T=>{let C={args:f,dataPath:[],action:o,model:e,clientMethod:`${r}.${i}`,jsModelName:r,transaction:T,callsite:h};return t._request({...C,...a})},{action:o,args:f,model:e})};return Xa.includes(o)?zr(t,e,s):tl(i)?Ji(t,i,s):s({})}}}function tl(t){return Za.includes(t)}function rl(t,e){return Me(K("fields",()=>{let r=t._runtimeDataModel.models[e];return Gi(e,r)}))}u();c();m();p();d();l();function Hi(t){return t.replace(/^./,e=>e.toUpperCase())}var Xr=Symbol();function Tt(t){let e=[nl(t),il(t),K(Xr,()=>t),K("$parent",()=>t._appliedParent)],r=t._extensions.getAllClientExtensions();return r&&e.push(vt(r)),ae(t,e)}function nl(t){let e=Object.getPrototypeOf(t._originalClient),r=[...new Set(Object.getOwnPropertyNames(e))];return{getKeys(){return r},getPropertyValue(n){return t[n]}}}function il(t){let e=Object.keys(t._runtimeDataModel.models),r=e.map(fe),n=[...new Set(e.concat(r))];return Me({getKeys(){return n},getPropertyValue(i){let o=Hi(i);if(t._runtimeDataModel.models[o]!==void 0)return Yr(t,o);if(t._runtimeDataModel.models[i]!==void 0)return Yr(t,i)},getPropertyDescriptor(i){if(!r.includes(i))return{enumerable:!1}}})}function zi(t){return t[Xr]?t[Xr]:t}function Yi(t){if(typeof t=="function")return t(this);if(t.client?.__AccelerateEngine){let r=t.client.__AccelerateEngine;this._originalClient._engine=new r(this._originalClient._accelerateEngineConfig)}let e=Object.create(this._originalClient,{_extensions:{value:this._extensions.append(t)},_appliedParent:{value:this,configurable:!0},$use:{value:void 0},$on:{value:void 0}});return Tt(e)}u();c();m();p();d();l();u();c();m();p();d();l();function Xi({result:t,modelName:e,select:r,omit:n,extensions:i}){let o=i.getAllComputedFields(e);if(!o)return t;let s=[],a=[];for(let f of Object.values(o)){if(n){if(n[f.name])continue;let h=f.needs.filter(T=>n[T]);h.length>0&&a.push(Xe(h))}else if(r){if(!r[f.name])continue;let h=f.needs.filter(T=>!r[T]);h.length>0&&a.push(Xe(h))}ol(t,f.needs)&&s.push(sl(f,ae(t,s)))}return s.length>0||a.length>0?ae(t,[...s,...a]):t}function ol(t,e){return e.every(r=>_r(t,r))}function sl(t,e){return Me(K(t.name,()=>t.compute(e)))}u();c();m();p();d();l();function ur({visitor:t,result:e,args:r,runtimeDataModel:n,modelName:i}){if(Array.isArray(e)){for(let s=0;sT.name===o);if(!f||f.kind!=="object"||!f.relationName)continue;let h=typeof s=="object"?s:{};e[o]=ur({visitor:i,result:e[o],args:h,modelName:f.type,runtimeDataModel:n})}}function eo({result:t,modelName:e,args:r,extensions:n,runtimeDataModel:i,globalOmit:o}){return n.isEmpty()||t==null||typeof t!="object"||!i.models[e]?t:ur({result:t,args:r??{},modelName:e,runtimeDataModel:i,visitor:(a,f,h)=>{let T=fe(f);return Xi({result:a,modelName:T,select:h.select,omit:h.select?void 0:{...o?.[T],...h.omit},extensions:n})}})}u();c();m();p();d();l();u();c();m();p();d();l();l();u();c();m();p();d();l();var al=["$connect","$disconnect","$on","$transaction","$use","$extends"],to=al;function ro(t){if(t instanceof Z)return ll(t);if(rr(t))return ul(t);if(Array.isArray(t)){let r=[t[0]];for(let n=1;n{let o=e.customDataProxyFetch;return"transaction"in e&&i!==void 0&&(e.transaction?.kind==="batch"&&e.transaction.lock.then(),e.transaction=i),n===r.length?t._executeRequest(e):r[n]({model:e.model,operation:e.model?e.action:e.clientMethod,args:ro(e.args??{}),__internalParams:e,query:(s,a=e)=>{let f=a.customDataProxyFetch;return a.customDataProxyFetch=lo(o,f),a.args=s,io(t,a,r,n+1)}})})}function oo(t,e){let{jsModelName:r,action:n,clientMethod:i}=e,o=r?n:i;if(t._extensions.isEmpty())return t._executeRequest(e);let s=t._extensions.getAllQueryCallbacks(r??"$none",o);return io(t,e,s)}function so(t){return e=>{let r={requests:e},n=e[0].extensions.getAllBatchQueryCallbacks();return n.length?ao(r,n,0,t):t(r)}}function ao(t,e,r,n){if(r===e.length)return n(t);let i=t.customDataProxyFetch,o=t.requests[0].transaction;return e[r]({args:{queries:t.requests.map(s=>({model:s.modelName,operation:s.action,args:s.args})),transaction:o?{isolationLevel:o.kind==="batch"?o.isolationLevel:void 0}:void 0},__internalParams:t,query(s,a=t){let f=a.customDataProxyFetch;return a.customDataProxyFetch=lo(i,f),ao(a,e,r+1,n)}})}var no=t=>t;function lo(t=no,e=no){return r=>t(e(r))}u();c();m();p();d();l();var uo=J("prisma:client"),co={Vercel:"vercel","Netlify CI":"netlify"};function mo({postinstall:t,ciName:e,clientVersion:r}){if(uo("checkPlatformCaching:postinstall",t),uo("checkPlatformCaching:ciName",e),t===!0&&e&&e in co){let n=`Prisma has detected that this project was built on ${e}, which caches dependencies. This leads to an outdated Prisma Client because Prisma's auto-generation isn't triggered. To fix this, make sure to run the \`prisma generate\` command during the build process. - -Learn how: https://pris.ly/d/${co[e]}-build`;throw console.error(n),new M(n,r)}}u();c();m();p();d();l();function po(t,e){return t?t.datasources?t.datasources:t.datasourceUrl?{[e[0]]:{url:t.datasourceUrl}}:{}:{}}u();c();m();p();d();l();u();c();m();p();d();l();var cl=()=>globalThis.process?.release?.name==="node",ml=()=>!!globalThis.Bun||!!globalThis.process?.versions?.bun,pl=()=>!!globalThis.Deno,dl=()=>typeof globalThis.Netlify=="object",fl=()=>typeof globalThis.EdgeRuntime=="object",gl=()=>globalThis.navigator?.userAgent==="Cloudflare-Workers";function yl(){return[[dl,"netlify"],[fl,"edge-light"],[gl,"workerd"],[pl,"deno"],[ml,"bun"],[cl,"node"]].flatMap(r=>r[0]()?[r[1]]:[]).at(0)??""}var hl={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function Re(){let t=yl();return{id:t,prettyName:hl[t]||t,isEdge:["workerd","deno","netlify","edge-light"].includes(t)}}u();c();m();p();d();l();u();c();m();p();d();l();u();c();m();p();d();l();u();c();m();p();d();l();u();c();m();p();d();l();function Zr(t){return t.name==="DriverAdapterError"&&typeof t.cause=="object"}u();c();m();p();d();l();function cr(t){return{ok:!0,value:t,map(e){return cr(e(t))},flatMap(e){return e(t)}}}function De(t){return{ok:!1,error:t,map(){return De(t)},flatMap(){return De(t)}}}var fo=J("driver-adapter-utils"),en=class{registeredErrors=[];consumeError(e){return this.registeredErrors[e]}registerNewError(e){let r=0;for(;this.registeredErrors[r]!==void 0;)r++;return this.registeredErrors[r]={error:e},r}};var mr=(t,e=new en)=>{let r={adapterName:t.adapterName,errorRegistry:e,queryRaw:xe(e,t.queryRaw.bind(t)),executeRaw:xe(e,t.executeRaw.bind(t)),executeScript:xe(e,t.executeScript.bind(t)),dispose:xe(e,t.dispose.bind(t)),provider:t.provider,startTransaction:async(...n)=>(await xe(e,t.startTransaction.bind(t))(...n)).map(o=>bl(e,o))};return t.getConnectionInfo&&(r.getConnectionInfo=wl(e,t.getConnectionInfo.bind(t))),r},bl=(t,e)=>({adapterName:e.adapterName,provider:e.provider,options:e.options,queryRaw:xe(t,e.queryRaw.bind(e)),executeRaw:xe(t,e.executeRaw.bind(e)),commit:xe(t,e.commit.bind(e)),rollback:xe(t,e.rollback.bind(e))});function xe(t,e){return async(...r)=>{try{return cr(await e(...r))}catch(n){if(fo("[error@wrapAsync]",n),Zr(n))return De(n.cause);let i=t.registerNewError(n);return De({kind:"GenericJs",id:i})}}}function wl(t,e){return(...r)=>{try{return cr(e(...r))}catch(n){if(fo("[error@wrapSync]",n),Zr(n))return De(n.cause);let i=t.registerNewError(n);return De({kind:"GenericJs",id:i})}}}var go="6.12.0";u();c();m();p();d();l();function pr({inlineDatasources:t,overrideDatasources:e,env:r,clientVersion:n}){let i,o=Object.keys(t)[0],s=t[o]?.url,a=e[o]?.url;if(o===void 0?i=void 0:a?i=a:s?.value?i=s.value:s?.fromEnvVar&&(i=r[s.fromEnvVar]),s?.fromEnvVar!==void 0&&i===void 0)throw Re().id==="workerd"?new M(`error: Environment variable not found: ${s.fromEnvVar}. - -In Cloudflare module Workers, environment variables are available only in the Worker's \`env\` parameter of \`fetch\`. -To solve this, provide the connection string directly: https://pris.ly/d/cloudflare-datasource-url`,n):new M(`error: Environment variable not found: ${s.fromEnvVar}.`,n);if(i===void 0)throw new M("error: Missing URL environment variable, value, or override.",n);return i}u();c();m();p();d();l();u();c();m();p();d();l();function yo(t){if(t?.kind==="itx")return t.options.id}u();c();m();p();d();l();var tn,ho={async loadLibrary(t){let{clientVersion:e,adapter:r,engineWasm:n}=t;if(r===void 0)throw new M(`The \`adapter\` option for \`PrismaClient\` is required in this context (${Re().prettyName})`,e);if(n===void 0)throw new M("WASM engine was unexpectedly `undefined`",e);tn===void 0&&(tn=(async()=>{let o=await n.getRuntime(),s=await n.getQueryEngineWasmModule();if(s==null)throw new M("The loaded wasm module was unexpectedly `undefined` or `null` once loaded",e);let a={"./query_engine_bg.js":o},f=new WebAssembly.Instance(s,a),h=f.exports.__wbindgen_start;return o.__wbg_set_wasm(f.exports),h(),o.QueryEngine})());let i=await tn;return{debugPanic(){return Promise.reject("{}")},dmmf(){return Promise.resolve("{}")},version(){return{commit:"unknown",version:"unknown"}},QueryEngine:i}}};var xl="P2036",ye=J("prisma:client:libraryEngine");function Pl(t){return t.item_type==="query"&&"query"in t}function vl(t){return"level"in t?t.level==="error"&&t.message==="PANIC":!1}var IS=[...Or,"native"],Tl=0xffffffffffffffffn,rn=1n;function Cl(){let t=rn++;return rn>Tl&&(rn=1n),t}var Rt=class{name="LibraryEngine";engine;libraryInstantiationPromise;libraryStartingPromise;libraryStoppingPromise;libraryStarted;executingQueryPromise;config;QueryEngineConstructor;libraryLoader;library;logEmitter;libQueryEnginePath;binaryTarget;datasourceOverrides;datamodel;logQueries;logLevel;lastQuery;loggerRustPanic;tracingHelper;adapterPromise;versionInfo;constructor(e,r){this.libraryLoader=r??ho,this.config=e,this.libraryStarted=!1,this.logQueries=e.logQueries??!1,this.logLevel=e.logLevel??"error",this.logEmitter=e.logEmitter,this.datamodel=e.inlineSchema,this.tracingHelper=e.tracingHelper,e.enableDebugLogs&&(this.logLevel="debug");let n=Object.keys(e.overrideDatasources)[0],i=e.overrideDatasources[n]?.url;n!==void 0&&i!==void 0&&(this.datasourceOverrides={[n]:i}),this.libraryInstantiationPromise=this.instantiateLibrary()}wrapEngine(e){return{applyPendingMigrations:e.applyPendingMigrations?.bind(e),commitTransaction:this.withRequestId(e.commitTransaction.bind(e)),connect:this.withRequestId(e.connect.bind(e)),disconnect:this.withRequestId(e.disconnect.bind(e)),metrics:e.metrics?.bind(e),query:this.withRequestId(e.query.bind(e)),rollbackTransaction:this.withRequestId(e.rollbackTransaction.bind(e)),sdlSchema:e.sdlSchema?.bind(e),startTransaction:this.withRequestId(e.startTransaction.bind(e)),trace:e.trace.bind(e),free:e.free?.bind(e)}}withRequestId(e){return async(...r)=>{let n=Cl().toString();try{return await e(...r,n)}finally{if(this.tracingHelper.isEnabled()){let i=await this.engine?.trace(n);if(i){let o=JSON.parse(i);this.tracingHelper.dispatchEngineSpans(o.spans)}}}}}async applyPendingMigrations(){throw new Error("Cannot call this method from this type of engine instance")}async transaction(e,r,n){await this.start();let i=await this.adapterPromise,o=JSON.stringify(r),s;if(e==="start"){let f=JSON.stringify({max_wait:n.maxWait,timeout:n.timeout,isolation_level:n.isolationLevel});s=await this.engine?.startTransaction(f,o)}else e==="commit"?s=await this.engine?.commitTransaction(n.id,o):e==="rollback"&&(s=await this.engine?.rollbackTransaction(n.id,o));let a=this.parseEngineResponse(s);if(Rl(a)){let f=this.getExternalAdapterError(a,i?.errorRegistry);throw f?f.error:new X(a.message,{code:a.error_code,clientVersion:this.config.clientVersion,meta:a.meta})}else if(typeof a.message=="string")throw new j(a.message,{clientVersion:this.config.clientVersion});return a}async instantiateLibrary(){if(ye("internalSetup"),this.libraryInstantiationPromise)return this.libraryInstantiationPromise;this.binaryTarget=await this.getCurrentBinaryTarget(),await this.tracingHelper.runInChildSpan("load_engine",()=>this.loadEngine()),this.version()}async getCurrentBinaryTarget(){}parseEngineResponse(e){if(!e)throw new j("Response from the Engine was empty",{clientVersion:this.config.clientVersion});try{return JSON.parse(e)}catch{throw new j("Unable to JSON.parse response from engine",{clientVersion:this.config.clientVersion})}}async loadEngine(){if(!this.engine){this.QueryEngineConstructor||(this.library=await this.libraryLoader.loadLibrary(this.config),this.QueryEngineConstructor=this.library.QueryEngine);try{let e=new w(this);this.adapterPromise||(this.adapterPromise=this.config.adapter?.connect()?.then(mr));let r=await this.adapterPromise;r&&ye("Using driver adapter: %O",r),this.engine=this.wrapEngine(new this.QueryEngineConstructor({datamodel:this.datamodel,env:g.env,logQueries:this.config.logQueries??!1,ignoreEnvVarErrors:!0,datasourceOverrides:this.datasourceOverrides??{},logLevel:this.logLevel,configDir:this.config.cwd,engineProtocol:"json",enableTracing:this.tracingHelper.isEnabled()},n=>{e.deref()?.logger(n)},r))}catch(e){let r=e,n=this.parseInitError(r.message);throw typeof n=="string"?r:new M(n.message,this.config.clientVersion,n.error_code)}}}logger(e){let r=this.parseEngineResponse(e);r&&(r.level=r?.level.toLowerCase()??"unknown",Pl(r)?this.logEmitter.emit("query",{timestamp:new Date,query:r.query,params:r.params,duration:Number(r.duration_ms),target:r.module_path}):(vl(r),this.logEmitter.emit(r.level,{timestamp:new Date,message:r.message,target:r.module_path})))}parseInitError(e){try{return JSON.parse(e)}catch{}return e}parseRequestError(e){try{return JSON.parse(e)}catch{}return e}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the library engine since Prisma 5.0.0, it is only relevant and implemented for the binary engine. Please add your event listener to the `process` object directly instead.')}async start(){if(this.libraryInstantiationPromise||(this.libraryInstantiationPromise=this.instantiateLibrary()),await this.libraryInstantiationPromise,await this.libraryStoppingPromise,this.libraryStartingPromise)return ye(`library already starting, this.libraryStarted: ${this.libraryStarted}`),this.libraryStartingPromise;if(this.libraryStarted)return;let e=async()=>{ye("library starting");try{let r={traceparent:this.tracingHelper.getTraceParent()};await this.engine?.connect(JSON.stringify(r)),this.libraryStarted=!0,this.adapterPromise||(this.adapterPromise=this.config.adapter?.connect()?.then(mr)),await this.adapterPromise,ye("library started")}catch(r){let n=this.parseInitError(r.message);throw typeof n=="string"?r:new M(n.message,this.config.clientVersion,n.error_code)}finally{this.libraryStartingPromise=void 0}};return this.libraryStartingPromise=this.tracingHelper.runInChildSpan("connect",e),this.libraryStartingPromise}async stop(){if(await this.libraryInstantiationPromise,await this.libraryStartingPromise,await this.executingQueryPromise,this.libraryStoppingPromise)return ye("library is already stopping"),this.libraryStoppingPromise;if(!this.libraryStarted){await(await this.adapterPromise)?.dispose(),this.adapterPromise=void 0;return}let e=async()=>{await new Promise(n=>setImmediate(n)),ye("library stopping");let r={traceparent:this.tracingHelper.getTraceParent()};await this.engine?.disconnect(JSON.stringify(r)),this.engine?.free&&this.engine.free(),this.engine=void 0,this.libraryStarted=!1,this.libraryStoppingPromise=void 0,this.libraryInstantiationPromise=void 0,await(await this.adapterPromise)?.dispose(),this.adapterPromise=void 0,ye("library stopped")};return this.libraryStoppingPromise=this.tracingHelper.runInChildSpan("disconnect",e),this.libraryStoppingPromise}version(){return this.versionInfo=this.library?.version(),this.versionInfo?.version??"unknown"}debugPanic(e){return this.library?.debugPanic(e)}async request(e,{traceparent:r,interactiveTransaction:n}){ye(`sending request, this.libraryStarted: ${this.libraryStarted}`);let i=JSON.stringify({traceparent:r}),o=JSON.stringify(e);try{await this.start();let s=await this.adapterPromise;this.executingQueryPromise=this.engine?.query(o,i,n?.id),this.lastQuery=o;let a=this.parseEngineResponse(await this.executingQueryPromise);if(a.errors)throw a.errors.length===1?this.buildQueryError(a.errors[0],s?.errorRegistry):new j(JSON.stringify(a.errors),{clientVersion:this.config.clientVersion});if(this.loggerRustPanic)throw this.loggerRustPanic;return{data:a}}catch(s){if(s instanceof M)throw s;s.code==="GenericFailure"&&s.message?.startsWith("PANIC:");let a=this.parseRequestError(s.message);throw typeof a=="string"?s:new j(`${a.message} -${a.backtrace}`,{clientVersion:this.config.clientVersion})}}async requestBatch(e,{transaction:r,traceparent:n}){ye("requestBatch");let i=sr(e,r);await this.start();let o=await this.adapterPromise;this.lastQuery=JSON.stringify(i),this.executingQueryPromise=this.engine?.query(this.lastQuery,JSON.stringify({traceparent:n}),yo(r));let s=await this.executingQueryPromise,a=this.parseEngineResponse(s);if(a.errors)throw a.errors.length===1?this.buildQueryError(a.errors[0],o?.errorRegistry):new j(JSON.stringify(a.errors),{clientVersion:this.config.clientVersion});let{batchResult:f,errors:h}=a;if(Array.isArray(f))return f.map(T=>T.errors&&T.errors.length>0?this.loggerRustPanic??this.buildQueryError(T.errors[0],o?.errorRegistry):{data:T});throw h&&h.length===1?new Error(h[0].error):new Error(JSON.stringify(a))}buildQueryError(e,r){e.user_facing_error.is_panic;let n=this.getExternalAdapterError(e.user_facing_error,r);return n?n.error:ar(e,this.config.clientVersion,this.config.activeProvider)}getExternalAdapterError(e,r){if(e.error_code===xl&&r){let n=e.meta?.id;Nt(typeof n=="number","Malformed external JS error received from the engine");let i=r.consumeError(n);return Nt(i,"External error with reported id was not registered"),i}}async metrics(e){await this.start();let r=await this.engine.metrics(JSON.stringify(e));return e.format==="prometheus"?r:this.parseEngineResponse(r)}};function Rl(t){return typeof t=="object"&&t!==null&&t.error_code!==void 0}u();c();m();p();d();l();var At="Accelerate has not been setup correctly. Make sure your client is using `.$extends(withAccelerate())`. See https://pris.ly/d/accelerate-getting-started",dr=class{constructor(e){this.config=e;this.resolveDatasourceUrl=this.config.accelerateUtils?.resolveDatasourceUrl,this.getBatchRequestPayload=this.config.accelerateUtils?.getBatchRequestPayload,this.prismaGraphQLToJSError=this.config.accelerateUtils?.prismaGraphQLToJSError,this.PrismaClientUnknownRequestError=this.config.accelerateUtils?.PrismaClientUnknownRequestError,this.PrismaClientInitializationError=this.config.accelerateUtils?.PrismaClientInitializationError,this.PrismaClientKnownRequestError=this.config.accelerateUtils?.PrismaClientKnownRequestError,this.debug=this.config.accelerateUtils?.debug,this.engineVersion=this.config.accelerateUtils?.engineVersion,this.clientVersion=this.config.accelerateUtils?.clientVersion}name="AccelerateEngine";resolveDatasourceUrl;getBatchRequestPayload;prismaGraphQLToJSError;PrismaClientUnknownRequestError;PrismaClientInitializationError;PrismaClientKnownRequestError;debug;engineVersion;clientVersion;onBeforeExit(e){}async start(){}async stop(){}version(e){return"unknown"}transaction(e,r,n){throw new M(At,this.config.clientVersion)}metrics(e){throw new M(At,this.config.clientVersion)}request(e,r){throw new M(At,this.config.clientVersion)}requestBatch(e,r){throw new M(At,this.config.clientVersion)}applyPendingMigrations(){throw new M(At,this.config.clientVersion)}};u();c();m();p();d();l();function bo({url:t,adapter:e,copyEngine:r,targetBuildType:n}){let i=[],o=[],s=S=>{i.push({_tag:"warning",value:S})},a=S=>{let I=S.join(` -`);o.push({_tag:"error",value:I})},f=!!t?.startsWith("prisma://"),h=Mr(t),T=!!e,C=f||h;!T&&r&&C&&s(["recommend--no-engine","In production, we recommend using `prisma generate --no-engine` (See: `prisma generate --help`)"]);let k=C||!r;T&&(k||n==="edge")&&(n==="edge"?a(["Prisma Client was configured to use the `adapter` option but it was imported via its `/edge` endpoint.","Please either remove the `/edge` endpoint or remove the `adapter` from the Prisma Client constructor."]):r?f&&a(["Prisma Client was configured to use the `adapter` option but the URL was a `prisma://` URL.","Please either use the `prisma://` URL or remove the `adapter` from the Prisma Client constructor."]):a(["Prisma Client was configured to use the `adapter` option but `prisma generate` was run with `--no-engine`.","Please run `prisma generate` without `--no-engine` to be able to use Prisma Client with the adapter."]));let R={accelerate:k,ppg:h,driverAdapters:T};function O(S){return S.length>0}return O(o)?{ok:!1,diagnostics:{warnings:i,errors:o},isUsing:R}:{ok:!0,diagnostics:{warnings:i},isUsing:R}}function wo({copyEngine:t=!0},e){let r;try{r=pr({inlineDatasources:e.inlineDatasources,overrideDatasources:e.overrideDatasources,env:{...e.env,...g.env},clientVersion:e.clientVersion})}catch{}let{ok:n,isUsing:i,diagnostics:o}=bo({url:r,adapter:e.adapter,copyEngine:t,targetBuildType:"wasm-engine-edge"});for(let C of o.warnings)lt(...C.value);if(!n){let C=o.errors[0];throw new W(C.value,{clientVersion:e.clientVersion})}let s=qe(e.generator),a=s==="library",f=s==="binary",h=s==="client",T=(i.accelerate||i.ppg)&&!i.driverAdapters;if(i.accelerate,i.driverAdapters)return new Rt(e);if(i.accelerate)return new dr(e);{let C=[`PrismaClient failed to initialize because it wasn't configured to run in this environment (${Re().prettyName}).`,"In order to run Prisma Client in an edge runtime, you will need to configure one of the following options:","- Enable Driver Adapters: https://pris.ly/d/driver-adapters","- Enable Accelerate: https://pris.ly/d/accelerate"];throw new W(C.join(` -`),{clientVersion:e.clientVersion})}return"wasm-engine-edge"}u();c();m();p();d();l();function fr({generator:t}){return t?.previewFeatures??[]}u();c();m();p();d();l();var Eo=t=>({command:t});u();c();m();p();d();l();u();c();m();p();d();l();var xo=t=>t.strings.reduce((e,r,n)=>`${e}@P${n}${r}`);u();c();m();p();d();l();l();function et(t){try{return Po(t,"fast")}catch{return Po(t,"slow")}}function Po(t,e){return JSON.stringify(t.map(r=>To(r,e)))}function To(t,e){if(Array.isArray(t))return t.map(r=>To(r,e));if(typeof t=="bigint")return{prisma__type:"bigint",prisma__value:t.toString()};if(Ve(t))return{prisma__type:"date",prisma__value:t.toJSON()};if(me.isDecimal(t))return{prisma__type:"decimal",prisma__value:t.toJSON()};if(b.isBuffer(t))return{prisma__type:"bytes",prisma__value:t.toString("base64")};if(Al(t))return{prisma__type:"bytes",prisma__value:b.from(t).toString("base64")};if(ArrayBuffer.isView(t)){let{buffer:r,byteOffset:n,byteLength:i}=t;return{prisma__type:"bytes",prisma__value:b.from(r,n,i).toString("base64")}}return typeof t=="object"&&e==="slow"?Co(t):t}function Al(t){return t instanceof ArrayBuffer||t instanceof SharedArrayBuffer?!0:typeof t=="object"&&t!==null?t[Symbol.toStringTag]==="ArrayBuffer"||t[Symbol.toStringTag]==="SharedArrayBuffer":!1}function Co(t){if(typeof t!="object"||t===null)return t;if(typeof t.toJSON=="function")return t.toJSON();if(Array.isArray(t))return t.map(vo);let e={};for(let r of Object.keys(t))e[r]=vo(t[r]);return e}function vo(t){return typeof t=="bigint"?t.toString():Co(t)}var Sl=/^(\s*alter\s)/i,Ro=J("prisma:client");function nn(t,e,r,n){if(!(t!=="postgresql"&&t!=="cockroachdb")&&r.length>0&&Sl.exec(e))throw new Error(`Running ALTER using ${n} is not supported -Using the example below you can still execute your query with Prisma, but please note that it is vulnerable to SQL injection attacks and requires you to take care of input sanitization. - -Example: - await prisma.$executeRawUnsafe(\`ALTER USER prisma WITH PASSWORD '\${password}'\`) - -More Information: https://pris.ly/d/execute-raw -`)}var on=({clientMethod:t,activeProvider:e})=>r=>{let n="",i;if(rr(r))n=r.sql,i={values:et(r.values),__prismaRawParameters__:!0};else if(Array.isArray(r)){let[o,...s]=r;n=o,i={values:et(s||[]),__prismaRawParameters__:!0}}else switch(e){case"sqlite":case"mysql":{n=r.sql,i={values:et(r.values),__prismaRawParameters__:!0};break}case"cockroachdb":case"postgresql":case"postgres":{n=r.text,i={values:et(r.values),__prismaRawParameters__:!0};break}case"sqlserver":{n=xo(r),i={values:et(r.values),__prismaRawParameters__:!0};break}default:throw new Error(`The ${e} provider does not support ${t}`)}return i?.values?Ro(`prisma.${t}(${n}, ${i.values})`):Ro(`prisma.${t}(${n})`),{query:n,parameters:i}},Ao={requestArgsToMiddlewareArgs(t){return[t.strings,...t.values]},middlewareArgsToRequestArgs(t){let[e,...r]=t;return new Z(e,r)}},So={requestArgsToMiddlewareArgs(t){return[t]},middlewareArgsToRequestArgs(t){return t[0]}};u();c();m();p();d();l();function sn(t){return function(r,n){let i,o=(s=t)=>{try{return s===void 0||s?.kind==="itx"?i??=ko(r(s)):ko(r(s))}catch(a){return Promise.reject(a)}};return{get spec(){return n},then(s,a){return o().then(s,a)},catch(s){return o().catch(s)},finally(s){return o().finally(s)},requestTransaction(s){let a=o(s);return a.requestTransaction?a.requestTransaction(s):a},[Symbol.toStringTag]:"PrismaPromise"}}}function ko(t){return typeof t.then=="function"?t:Promise.resolve(t)}u();c();m();p();d();l();var kl=Ir.split(".")[0],Ol={isEnabled(){return!1},getTraceParent(){return"00-10-10-00"},dispatchEngineSpans(){},getActiveContext(){},runInChildSpan(t,e){return e()}},an=class{isEnabled(){return this.getGlobalTracingHelper().isEnabled()}getTraceParent(e){return this.getGlobalTracingHelper().getTraceParent(e)}dispatchEngineSpans(e){return this.getGlobalTracingHelper().dispatchEngineSpans(e)}getActiveContext(){return this.getGlobalTracingHelper().getActiveContext()}runInChildSpan(e,r){return this.getGlobalTracingHelper().runInChildSpan(e,r)}getGlobalTracingHelper(){let e=globalThis[`V${kl}_PRISMA_INSTRUMENTATION`],r=globalThis.PRISMA_INSTRUMENTATION;return e?.helper??r?.helper??Ol}};function Oo(){return new an}u();c();m();p();d();l();function Io(t,e=()=>{}){let r,n=new Promise(i=>r=i);return{then(i){return--t===0&&r(e()),i?.(n)}}}u();c();m();p();d();l();function Mo(t){return typeof t=="string"?t:t.reduce((e,r)=>{let n=typeof r=="string"?r:r.level;return n==="query"?e:e&&(r==="info"||e==="info")?"info":n},void 0)}u();c();m();p();d();l();var gr=class{_middlewares=[];use(e){this._middlewares.push(e)}get(e){return this._middlewares[e]}has(e){return!!this._middlewares[e]}length(){return this._middlewares.length}};u();c();m();p();d();l();var _o=nt(Zn());u();c();m();p();d();l();function yr(t){return typeof t.batchRequestIdx=="number"}u();c();m();p();d();l();function Do(t){if(t.action!=="findUnique"&&t.action!=="findUniqueOrThrow")return;let e=[];return t.modelName&&e.push(t.modelName),t.query.arguments&&e.push(ln(t.query.arguments)),e.push(ln(t.query.selection)),e.join("")}function ln(t){return`(${Object.keys(t).sort().map(r=>{let n=t[r];return typeof n=="object"&&n!==null?`(${r} ${ln(n)})`:r}).join(" ")})`}u();c();m();p();d();l();var Il={aggregate:!1,aggregateRaw:!1,createMany:!0,createManyAndReturn:!0,createOne:!0,deleteMany:!0,deleteOne:!0,executeRaw:!0,findFirst:!1,findFirstOrThrow:!1,findMany:!1,findRaw:!1,findUnique:!1,findUniqueOrThrow:!1,groupBy:!1,queryRaw:!1,runCommandRaw:!0,updateMany:!0,updateManyAndReturn:!0,updateOne:!0,upsertOne:!0};function un(t){return Il[t]}u();c();m();p();d();l();var hr=class{constructor(e){this.options=e;this.batches={}}batches;tickActive=!1;request(e){let r=this.options.batchBy(e);return r?(this.batches[r]||(this.batches[r]=[],this.tickActive||(this.tickActive=!0,g.nextTick(()=>{this.dispatchBatches(),this.tickActive=!1}))),new Promise((n,i)=>{this.batches[r].push({request:e,resolve:n,reject:i})})):this.options.singleLoader(e)}dispatchBatches(){for(let e in this.batches){let r=this.batches[e];delete this.batches[e],r.length===1?this.options.singleLoader(r[0].request).then(n=>{n instanceof Error?r[0].reject(n):r[0].resolve(n)}).catch(n=>{r[0].reject(n)}):(r.sort((n,i)=>this.options.batchOrder(n.request,i.request)),this.options.batchLoader(r.map(n=>n.request)).then(n=>{if(n instanceof Error)for(let i=0;i{for(let i=0;i_e("bigint",r));case"bytes-array":return e.map(r=>_e("bytes",r));case"decimal-array":return e.map(r=>_e("decimal",r));case"datetime-array":return e.map(r=>_e("datetime",r));case"date-array":return e.map(r=>_e("date",r));case"time-array":return e.map(r=>_e("time",r));default:return e}}function br(t){let e=[],r=Ml(t);for(let n=0;n{let{transaction:o,otelParentCtx:s}=n[0],a=n.map(C=>C.protocolQuery),f=this.client._tracingHelper.getTraceParent(s),h=n.some(C=>un(C.protocolQuery.action));return(await this.client._engine.requestBatch(a,{traceparent:f,transaction:_l(o),containsWrite:h,customDataProxyFetch:i})).map((C,k)=>{if(C instanceof Error)return C;try{return this.mapQueryEngineResult(n[k],C)}catch(R){return R}})}),singleLoader:async n=>{let i=n.transaction?.kind==="itx"?Lo(n.transaction):void 0,o=await this.client._engine.request(n.protocolQuery,{traceparent:this.client._tracingHelper.getTraceParent(),interactiveTransaction:i,isWrite:un(n.protocolQuery.action),customDataProxyFetch:n.customDataProxyFetch});return this.mapQueryEngineResult(n,o)},batchBy:n=>n.transaction?.id?`transaction-${n.transaction.id}`:Do(n.protocolQuery),batchOrder(n,i){return n.transaction?.kind==="batch"&&i.transaction?.kind==="batch"?n.transaction.index-i.transaction.index:0}})}async request(e){try{return await this.dataloader.request(e)}catch(r){let{clientMethod:n,callsite:i,transaction:o,args:s,modelName:a}=e;this.handleAndLogRequestError({error:r,clientMethod:n,callsite:i,transaction:o,args:s,modelName:a,globalOmit:e.globalOmit})}}mapQueryEngineResult({dataPath:e,unpacker:r},n){let i=n?.data,o=this.unpack(i,e,r);return g.env.PRISMA_CLIENT_GET_TIME?{data:o}:o}handleAndLogRequestError(e){try{this.handleRequestError(e)}catch(r){throw this.logEmitter&&this.logEmitter.emit("error",{message:r.message,target:e.clientMethod,timestamp:new Date}),r}}handleRequestError({error:e,clientMethod:r,callsite:n,transaction:i,args:o,modelName:s,globalOmit:a}){if(Dl(e),Ll(e,i))throw e;if(e instanceof X&&Fl(e)){let h=Fo(e.meta);zt({args:o,errors:[h],callsite:n,errorFormat:this.client._errorFormat,originalMethod:r,clientVersion:this.client._clientVersion,globalOmit:a})}let f=e.message;if(n&&(f=Bt({callsite:n,originalMethod:r,isPanic:e.isPanic,showColors:this.client._errorFormat==="pretty",message:f})),f=this.sanitizeMessage(f),e.code){let h=s?{modelName:s,...e.meta}:e.meta;throw new X(f,{code:e.code,clientVersion:this.client._clientVersion,meta:h,batchRequestIdx:e.batchRequestIdx})}else{if(e.isPanic)throw new we(f,this.client._clientVersion);if(e instanceof j)throw new j(f,{clientVersion:this.client._clientVersion,batchRequestIdx:e.batchRequestIdx});if(e instanceof M)throw new M(f,this.client._clientVersion);if(e instanceof we)throw new we(f,this.client._clientVersion)}throw e.clientVersion=this.client._clientVersion,e}sanitizeMessage(e){return this.client._errorFormat&&this.client._errorFormat!=="pretty"?(0,_o.default)(e):e}unpack(e,r,n){if(!e||(e.data&&(e=e.data),!e))return e;let i=Object.keys(e)[0],o=Object.values(e)[0],s=r.filter(h=>h!=="select"&&h!=="include"),a=Hr(o,s),f=i==="queryRaw"?br(a):$e(a);return n?n(f):f}get[Symbol.toStringTag](){return"RequestHandler"}};function _l(t){if(t){if(t.kind==="batch")return{kind:"batch",options:{isolationLevel:t.isolationLevel}};if(t.kind==="itx")return{kind:"itx",options:Lo(t)};be(t,"Unknown transaction kind")}}function Lo(t){return{id:t.id,payload:t.payload}}function Ll(t,e){return yr(t)&&e?.kind==="batch"&&t.batchRequestIdx!==e.index}function Fl(t){return t.code==="P2009"||t.code==="P2012"}function Fo(t){if(t.kind==="Union")return{kind:"Union",errors:t.errors.map(Fo)};if(Array.isArray(t.selectionPath)){let[,...e]=t.selectionPath;return{...t,selectionPath:e}}return t}u();c();m();p();d();l();var Uo=go;u();c();m();p();d();l();var Vo=nt(Ur());u();c();m();p();d();l();var D=class extends Error{constructor(e){super(e+` -Read more at https://pris.ly/d/client-constructor`),this.name="PrismaClientConstructorValidationError"}get[Symbol.toStringTag](){return"PrismaClientConstructorValidationError"}};te(D,"PrismaClientConstructorValidationError");var No=["datasources","datasourceUrl","errorFormat","adapter","log","transactionOptions","omit","__internal"],qo=["pretty","colorless","minimal"],Bo=["info","query","warn","error"],Ul={datasources:(t,{datasourceNames:e})=>{if(t){if(typeof t!="object"||Array.isArray(t))throw new D(`Invalid value ${JSON.stringify(t)} for "datasources" provided to PrismaClient constructor`);for(let[r,n]of Object.entries(t)){if(!e.includes(r)){let i=tt(r,e)||` Available datasources: ${e.join(", ")}`;throw new D(`Unknown datasource ${r} provided to PrismaClient constructor.${i}`)}if(typeof n!="object"||Array.isArray(n))throw new D(`Invalid value ${JSON.stringify(t)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(n&&typeof n=="object")for(let[i,o]of Object.entries(n)){if(i!=="url")throw new D(`Invalid value ${JSON.stringify(t)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(typeof o!="string")throw new D(`Invalid value ${JSON.stringify(o)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`)}}}},adapter:(t,e)=>{if(!t&&qe(e.generator)==="client")throw new D('Using engine type "client" requires a driver adapter to be provided to PrismaClient constructor.');if(t===null)return;if(t===void 0)throw new D('"adapter" property must not be undefined, use null to conditionally disable driver adapters.');if(!fr(e).includes("driverAdapters"))throw new D('"adapter" property can only be provided to PrismaClient constructor when "driverAdapters" preview feature is enabled.');if(qe(e.generator)==="binary")throw new D('Cannot use a driver adapter with the "binary" Query Engine. Please use the "library" Query Engine.')},datasourceUrl:t=>{if(typeof t<"u"&&typeof t!="string")throw new D(`Invalid value ${JSON.stringify(t)} for "datasourceUrl" provided to PrismaClient constructor. -Expected string or undefined.`)},errorFormat:t=>{if(t){if(typeof t!="string")throw new D(`Invalid value ${JSON.stringify(t)} for "errorFormat" provided to PrismaClient constructor.`);if(!qo.includes(t)){let e=tt(t,qo);throw new D(`Invalid errorFormat ${t} provided to PrismaClient constructor.${e}`)}}},log:t=>{if(!t)return;if(!Array.isArray(t))throw new D(`Invalid value ${JSON.stringify(t)} for "log" provided to PrismaClient constructor.`);function e(r){if(typeof r=="string"&&!Bo.includes(r)){let n=tt(r,Bo);throw new D(`Invalid log level "${r}" provided to PrismaClient constructor.${n}`)}}for(let r of t){e(r);let n={level:e,emit:i=>{let o=["stdout","event"];if(!o.includes(i)){let s=tt(i,o);throw new D(`Invalid value ${JSON.stringify(i)} for "emit" in logLevel provided to PrismaClient constructor.${s}`)}}};if(r&&typeof r=="object")for(let[i,o]of Object.entries(r))if(n[i])n[i](o);else throw new D(`Invalid property ${i} for "log" provided to PrismaClient constructor`)}},transactionOptions:t=>{if(!t)return;let e=t.maxWait;if(e!=null&&e<=0)throw new D(`Invalid value ${e} for maxWait in "transactionOptions" provided to PrismaClient constructor. maxWait needs to be greater than 0`);let r=t.timeout;if(r!=null&&r<=0)throw new D(`Invalid value ${r} for timeout in "transactionOptions" provided to PrismaClient constructor. timeout needs to be greater than 0`)},omit:(t,e)=>{if(typeof t!="object")throw new D('"omit" option is expected to be an object.');if(t===null)throw new D('"omit" option can not be `null`');let r=[];for(let[n,i]of Object.entries(t)){let o=ql(n,e.runtimeDataModel);if(!o){r.push({kind:"UnknownModel",modelKey:n});continue}for(let[s,a]of Object.entries(i)){let f=o.fields.find(h=>h.name===s);if(!f){r.push({kind:"UnknownField",modelKey:n,fieldName:s});continue}if(f.relationName){r.push({kind:"RelationInOmit",modelKey:n,fieldName:s});continue}typeof a!="boolean"&&r.push({kind:"InvalidFieldValue",modelKey:n,fieldName:s})}}if(r.length>0)throw new D(Bl(t,r))},__internal:t=>{if(!t)return;let e=["debug","engine","configOverride"];if(typeof t!="object")throw new D(`Invalid value ${JSON.stringify(t)} for "__internal" to PrismaClient constructor`);for(let[r]of Object.entries(t))if(!e.includes(r)){let n=tt(r,e);throw new D(`Invalid property ${JSON.stringify(r)} for "__internal" provided to PrismaClient constructor.${n}`)}}};function jo(t,e){for(let[r,n]of Object.entries(t)){if(!No.includes(r)){let i=tt(r,No);throw new D(`Unknown property ${r} provided to PrismaClient constructor.${i}`)}Ul[r](n,e)}if(t.datasourceUrl&&t.datasources)throw new D('Can not use "datasourceUrl" and "datasources" options at the same time. Pick one of them')}function tt(t,e){if(e.length===0||typeof t!="string")return"";let r=Nl(t,e);return r?` Did you mean "${r}"?`:""}function Nl(t,e){if(e.length===0)return null;let r=e.map(i=>({value:i,distance:(0,Vo.default)(t,i)}));r.sort((i,o)=>i.distanceve(n)===e);if(r)return t[r]}function Bl(t,e){let r=He(t);for(let o of e)switch(o.kind){case"UnknownModel":r.arguments.getField(o.modelKey)?.markAsError(),r.addErrorMessage(()=>`Unknown model name: ${o.modelKey}.`);break;case"UnknownField":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>`Model "${o.modelKey}" does not have a field named "${o.fieldName}".`);break;case"RelationInOmit":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>'Relations are already excluded by default and can not be specified in "omit".');break;case"InvalidFieldValue":r.arguments.getDeepFieldValue([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>"Omit field option value must be a boolean.");break}let{message:n,args:i}=Ht(r,"colorless");return`Error validating "omit" option: - -${i} - -${n}`}u();c();m();p();d();l();function Qo(t){return t.length===0?Promise.resolve([]):new Promise((e,r)=>{let n=new Array(t.length),i=null,o=!1,s=0,a=()=>{o||(s++,s===t.length&&(o=!0,i?r(i):e(n)))},f=h=>{o||(o=!0,r(h))};for(let h=0;h{n[h]=T,a()},T=>{if(!yr(T)){f(T);return}T.batchRequestIdx===h?f(T):(i||(i=T),a())})})}var Ae=J("prisma:client");typeof globalThis=="object"&&(globalThis.NODE_CLIENT=!0);var $l={requestArgsToMiddlewareArgs:t=>t,middlewareArgsToRequestArgs:t=>t},Vl=Symbol.for("prisma.client.transaction.id"),jl={id:0,nextId(){return++this.id}};function Wo(t){class e{_originalClient=this;_runtimeDataModel;_requestHandler;_connectionPromise;_disconnectionPromise;_engineConfig;_accelerateEngineConfig;_clientVersion;_errorFormat;_tracingHelper;_middlewares=new gr;_previewFeatures;_activeProvider;_globalOmit;_extensions;_engine;_appliedParent;_createPrismaPromise=sn();constructor(n){t=n?.__internal?.configOverride?.(t)??t,mo(t),n&&jo(n,t);let i=new nr().on("error",()=>{});this._extensions=ze.empty(),this._previewFeatures=fr(t),this._clientVersion=t.clientVersion??Uo,this._activeProvider=t.activeProvider,this._globalOmit=n?.omit,this._tracingHelper=Oo();let o=t.relativeEnvPaths&&{rootEnvPath:t.relativeEnvPaths.rootEnvPath&&Ut.resolve(t.dirname,t.relativeEnvPaths.rootEnvPath),schemaEnvPath:t.relativeEnvPaths.schemaEnvPath&&Ut.resolve(t.dirname,t.relativeEnvPaths.schemaEnvPath)},s;if(n?.adapter){s=n.adapter;let f=t.activeProvider==="postgresql"||t.activeProvider==="cockroachdb"?"postgres":t.activeProvider;if(s.provider!==f)throw new M(`The Driver Adapter \`${s.adapterName}\`, based on \`${s.provider}\`, is not compatible with the provider \`${f}\` specified in the Prisma schema.`,this._clientVersion);if(n.datasources||n.datasourceUrl!==void 0)throw new M("Custom datasource configuration is not compatible with Prisma Driver Adapters. Please define the database connection string directly in the Driver Adapter configuration.",this._clientVersion)}let a=t.injectableEdgeEnv?.();try{let f=n??{},h=f.__internal??{},T=h.debug===!0;T&&J.enable("prisma:client");let C=Ut.resolve(t.dirname,t.relativePath);Nn.existsSync(C)||(C=t.dirname),Ae("dirname",t.dirname),Ae("relativePath",t.relativePath),Ae("cwd",C);let k=h.engine||{};if(f.errorFormat?this._errorFormat=f.errorFormat:g.env.NODE_ENV==="production"?this._errorFormat="minimal":g.env.NO_COLOR?this._errorFormat="colorless":this._errorFormat="colorless",this._runtimeDataModel=t.runtimeDataModel,this._engineConfig={cwd:C,dirname:t.dirname,enableDebugLogs:T,allowTriggerPanic:k.allowTriggerPanic,prismaPath:k.binaryPath??void 0,engineEndpoint:k.endpoint,generator:t.generator,showColors:this._errorFormat==="pretty",logLevel:f.log&&Mo(f.log),logQueries:f.log&&!!(typeof f.log=="string"?f.log==="query":f.log.find(R=>typeof R=="string"?R==="query":R.level==="query")),env:a?.parsed??{},flags:[],engineWasm:t.engineWasm,compilerWasm:t.compilerWasm,clientVersion:t.clientVersion,engineVersion:t.engineVersion,previewFeatures:this._previewFeatures,activeProvider:t.activeProvider,inlineSchema:t.inlineSchema,overrideDatasources:po(f,t.datasourceNames),inlineDatasources:t.inlineDatasources,inlineSchemaHash:t.inlineSchemaHash,tracingHelper:this._tracingHelper,transactionOptions:{maxWait:f.transactionOptions?.maxWait??2e3,timeout:f.transactionOptions?.timeout??5e3,isolationLevel:f.transactionOptions?.isolationLevel},logEmitter:i,isBundled:t.isBundled,adapter:s},this._accelerateEngineConfig={...this._engineConfig,accelerateUtils:{resolveDatasourceUrl:pr,getBatchRequestPayload:sr,prismaGraphQLToJSError:ar,PrismaClientUnknownRequestError:j,PrismaClientInitializationError:M,PrismaClientKnownRequestError:X,debug:J("prisma:client:accelerateEngine"),engineVersion:Go.version,clientVersion:t.clientVersion}},Ae("clientVersion",t.clientVersion),this._engine=wo(t,this._engineConfig),this._requestHandler=new wr(this,i),f.log)for(let R of f.log){let O=typeof R=="string"?R:R.emit==="stdout"?R.level:null;O&&this.$on(O,S=>{at.log(`${at.tags[O]??""}`,S.message||S.query)})}}catch(f){throw f.clientVersion=this._clientVersion,f}return this._appliedParent=Tt(this)}get[Symbol.toStringTag](){return"PrismaClient"}$use(n){this._middlewares.use(n)}$on(n,i){return n==="beforeExit"?this._engine.onBeforeExit(i):n&&this._engineConfig.logEmitter.on(n,i),this}$connect(){try{return this._engine.start()}catch(n){throw n.clientVersion=this._clientVersion,n}}async $disconnect(){try{await this._engine.stop()}catch(n){throw n.clientVersion=this._clientVersion,n}finally{Fn()}}$executeRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"executeRaw",args:o,transaction:n,clientMethod:i,argsMapper:on({clientMethod:i,activeProvider:a}),callsite:Ce(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$executeRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0){let[s,a]=Jo(n,i);return nn(this._activeProvider,s.text,s.values,Array.isArray(n)?"prisma.$executeRaw``":"prisma.$executeRaw(sql``)"),this.$executeRawInternal(o,"$executeRaw",s,a)}throw new W("`$executeRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#executeraw\n",{clientVersion:this._clientVersion})})}$executeRawUnsafe(n,...i){return this._createPrismaPromise(o=>(nn(this._activeProvider,n,i,"prisma.$executeRawUnsafe(, [...values])"),this.$executeRawInternal(o,"$executeRawUnsafe",[n,...i])))}$runCommandRaw(n){if(t.activeProvider!=="mongodb")throw new W(`The ${t.activeProvider} provider does not support $runCommandRaw. Use the mongodb provider.`,{clientVersion:this._clientVersion});return this._createPrismaPromise(i=>this._request({args:n,clientMethod:"$runCommandRaw",dataPath:[],action:"runCommandRaw",argsMapper:Eo,callsite:Ce(this._errorFormat),transaction:i}))}async $queryRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"queryRaw",args:o,transaction:n,clientMethod:i,argsMapper:on({clientMethod:i,activeProvider:a}),callsite:Ce(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$queryRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0)return this.$queryRawInternal(o,"$queryRaw",...Jo(n,i));throw new W("`$queryRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#queryraw\n",{clientVersion:this._clientVersion})})}$queryRawTyped(n){return this._createPrismaPromise(i=>{if(!this._hasPreviewFlag("typedSql"))throw new W("`typedSql` preview feature must be enabled in order to access $queryRawTyped API",{clientVersion:this._clientVersion});return this.$queryRawInternal(i,"$queryRawTyped",n)})}$queryRawUnsafe(n,...i){return this._createPrismaPromise(o=>this.$queryRawInternal(o,"$queryRawUnsafe",[n,...i]))}_transactionWithArray({promises:n,options:i}){let o=jl.nextId(),s=Io(n.length),a=n.map((f,h)=>{if(f?.[Symbol.toStringTag]!=="PrismaPromise")throw new Error("All elements of the array need to be Prisma Client promises. Hint: Please make sure you are not awaiting the Prisma client calls you intended to pass in the $transaction function.");let T=i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel,C={kind:"batch",id:o,index:h,isolationLevel:T,lock:s};return f.requestTransaction?.(C)??f});return Qo(a)}async _transactionWithCallback({callback:n,options:i}){let o={traceparent:this._tracingHelper.getTraceParent()},s={maxWait:i?.maxWait??this._engineConfig.transactionOptions.maxWait,timeout:i?.timeout??this._engineConfig.transactionOptions.timeout,isolationLevel:i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel},a=await this._engine.transaction("start",o,s),f;try{let h={kind:"itx",...a};f=await n(this._createItxClient(h)),await this._engine.transaction("commit",o,a)}catch(h){throw await this._engine.transaction("rollback",o,a).catch(()=>{}),h}return f}_createItxClient(n){return ae(Tt(ae(zi(this),[K("_appliedParent",()=>this._appliedParent._createItxClient(n)),K("_createPrismaPromise",()=>sn(n)),K(Vl,()=>n.id)])),[Xe(to)])}$transaction(n,i){let o;typeof n=="function"?this._engineConfig.adapter?.adapterName==="@prisma/adapter-d1"?o=()=>{throw new Error("Cloudflare D1 does not support interactive transactions. We recommend you to refactor your queries with that limitation in mind, and use batch transactions with `prisma.$transactions([])` where applicable.")}:o=()=>this._transactionWithCallback({callback:n,options:i}):o=()=>this._transactionWithArray({promises:n,options:i});let s={name:"transaction",attributes:{method:"$transaction"}};return this._tracingHelper.runInChildSpan(s,o)}_request(n){n.otelParentCtx=this._tracingHelper.getActiveContext();let i=n.middlewareArgsMapper??$l,o={args:i.requestArgsToMiddlewareArgs(n.args),dataPath:n.dataPath,runInTransaction:!!n.transaction,action:n.action,model:n.model},s={middleware:{name:"middleware",middleware:!0,attributes:{method:"$use"},active:!1},operation:{name:"operation",attributes:{method:o.action,model:o.model,name:o.model?`${o.model}.${o.action}`:o.action}}},a=-1,f=async h=>{let T=this._middlewares.get(++a);if(T)return this._tracingHelper.runInChildSpan(s.middleware,I=>T(h,oe=>(I?.end(),f(oe))));let{runInTransaction:C,args:k,...R}=h,O={...n,...R};k&&(O.args=i.middlewareArgsToRequestArgs(k)),n.transaction!==void 0&&C===!1&&delete O.transaction;let S=await oo(this,O);return O.model?eo({result:S,modelName:O.model,args:O.args,extensions:this._extensions,runtimeDataModel:this._runtimeDataModel,globalOmit:this._globalOmit}):S};return this._tracingHelper.runInChildSpan(s.operation,()=>f(o))}async _executeRequest({args:n,clientMethod:i,dataPath:o,callsite:s,action:a,model:f,argsMapper:h,transaction:T,unpacker:C,otelParentCtx:k,customDataProxyFetch:R}){try{n=h?h(n):n;let O={name:"serialize"},S=this._tracingHelper.runInChildSpan(O,()=>er({modelName:f,runtimeDataModel:this._runtimeDataModel,action:a,args:n,clientMethod:i,callsite:s,extensions:this._extensions,errorFormat:this._errorFormat,clientVersion:this._clientVersion,previewFeatures:this._previewFeatures,globalOmit:this._globalOmit}));return J.enabled("prisma:client")&&(Ae("Prisma Client call:"),Ae(`prisma.${i}(${Bi(n)})`),Ae("Generated request:"),Ae(JSON.stringify(S,null,2)+` -`)),T?.kind==="batch"&&await T.lock,this._requestHandler.request({protocolQuery:S,modelName:f,action:a,clientMethod:i,dataPath:o,callsite:s,args:n,extensions:this._extensions,transaction:T,unpacker:C,otelParentCtx:k,otelChildCtx:this._tracingHelper.getActiveContext(),globalOmit:this._globalOmit,customDataProxyFetch:R})}catch(O){throw O.clientVersion=this._clientVersion,O}}$metrics=new Ye(this);_hasPreviewFlag(n){return!!this._engineConfig.previewFeatures?.includes(n)}$applyPendingMigrations(){return this._engine.applyPendingMigrations()}$extends=Yi}return e}function Jo(t,e){return Ql(t)?[new Z(t,e),Ao]:[t,So]}function Ql(t){return Array.isArray(t)&&Array.isArray(t.raw)}u();c();m();p();d();l();var Jl=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function Ko(t){return new Proxy(t,{get(e,r){if(r in e)return e[r];if(!Jl.has(r))throw new TypeError(`Invalid enum value: ${String(r)}`)}})}u();c();m();p();d();l();l();0&&(module.exports={DMMF,Debug,Decimal,Extensions,MetricsClient,PrismaClientInitializationError,PrismaClientKnownRequestError,PrismaClientRustPanicError,PrismaClientUnknownRequestError,PrismaClientValidationError,Public,Sql,createParam,defineDmmfProperty,deserializeJsonResponse,deserializeRawResult,dmmfToRuntimeDataModel,empty,getPrismaClient,getRuntime,join,makeStrictEnum,makeTypedQueryFactory,objectEnumValues,raw,serializeJsonQuery,skip,sqltag,warnEnvConflicts,warnOnce}); -//# sourceMappingURL=wasm-engine-edge.js.map diff --git a/prisma/generated/client/schema.prisma b/prisma/generated/client/schema.prisma deleted file mode 100644 index 06278b7..0000000 --- a/prisma/generated/client/schema.prisma +++ /dev/null @@ -1,506 +0,0 @@ -generator client { - provider = "prisma-client-js" -} - -// Конфигурация для автоматического seeding -generator seed { - provider = "prisma-client-js" - output = "./generated/client" -} - -datasource db { - provider = "postgresql" - url = env("DATABASE_URL") -} - -model User { - id String @id @default(cuid()) - phone String @unique - avatar String? - managerName String? - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - organizationId String? - sentMessages Message[] @relation("SentMessages") - smsCodes SmsCode[] - organization Organization? @relation(fields: [organizationId], references: [id]) - - @@map("users") -} - -model Admin { - id String @id @default(cuid()) - username String @unique - password String // Хеш пароля - email String? @unique - isActive Boolean @default(true) - lastLogin DateTime? - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - - @@map("admins") -} - -model SmsCode { - id String @id @default(cuid()) - code String - phone String - expiresAt DateTime - isUsed Boolean @default(false) - attempts Int @default(0) - maxAttempts Int @default(3) - createdAt DateTime @default(now()) - userId String? - user User? @relation(fields: [userId], references: [id]) - - @@map("sms_codes") -} - -model Organization { - id String @id @default(cuid()) - inn String @unique - kpp String? - name String? - fullName String? - ogrn String? - ogrnDate DateTime? - type OrganizationType - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - address String? - addressFull String? - status String? - actualityDate DateTime? - registrationDate DateTime? - liquidationDate DateTime? - managementName String? - managementPost String? - opfCode String? - opfFull String? - opfShort String? - okato String? - oktmo String? - okpo String? - okved String? - phones Json? - emails Json? - employeeCount Int? - revenue BigInt? - taxSystem String? - dadataData Json? - apiKeys ApiKey[] - carts Cart? - counterpartyOf Counterparty[] @relation("CounterpartyOf") - organizationCounterparties Counterparty[] @relation("OrganizationCounterparties") - receivedRequests CounterpartyRequest[] @relation("ReceivedRequests") - sentRequests CounterpartyRequest[] @relation("SentRequests") - employees Employee[] - favorites Favorites[] - receivedMessages Message[] @relation("ReceivedMessages") - sentMessages Message[] @relation("SentMessages") - products Product[] - services Service[] - supplies Supply[] - users User[] - logistics Logistics[] - supplyOrders SupplyOrder[] - partnerSupplyOrders SupplyOrder[] @relation("SupplyOrderPartner") - fulfillmentSupplyOrders SupplyOrder[] @relation("SupplyOrderFulfillmentCenter") - wildberriesSupplies WildberriesSupply[] - supplySuppliers SupplySupplier[] @relation("SupplySuppliers") - - @@map("organizations") -} - -model ApiKey { - id String @id @default(cuid()) - marketplace MarketplaceType - apiKey String - isActive Boolean @default(true) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - validationData Json? - organizationId String - organization Organization @relation(fields: [organizationId], references: [id]) - - @@unique([organizationId, marketplace]) - @@map("api_keys") -} - -model CounterpartyRequest { - id String @id @default(cuid()) - status CounterpartyRequestStatus @default(PENDING) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - senderId String - receiverId String - message String? - receiver Organization @relation("ReceivedRequests", fields: [receiverId], references: [id]) - sender Organization @relation("SentRequests", fields: [senderId], references: [id]) - - @@unique([senderId, receiverId]) - @@map("counterparty_requests") -} - -model Counterparty { - id String @id @default(cuid()) - createdAt DateTime @default(now()) - organizationId String - counterpartyId String - counterparty Organization @relation("CounterpartyOf", fields: [counterpartyId], references: [id]) - organization Organization @relation("OrganizationCounterparties", fields: [organizationId], references: [id]) - - @@unique([organizationId, counterpartyId]) - @@map("counterparties") -} - -model Message { - id String @id @default(cuid()) - content String? - type MessageType @default(TEXT) - voiceUrl String? - voiceDuration Int? - fileUrl String? - fileName String? - fileSize Int? - fileType String? - isRead Boolean @default(false) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - senderId String - senderOrganizationId String - receiverOrganizationId String - receiverOrganization Organization @relation("ReceivedMessages", fields: [receiverOrganizationId], references: [id]) - sender User @relation("SentMessages", fields: [senderId], references: [id]) - senderOrganization Organization @relation("SentMessages", fields: [senderOrganizationId], references: [id]) - - @@index([senderOrganizationId, receiverOrganizationId, createdAt]) - @@index([receiverOrganizationId, isRead]) - @@map("messages") -} - -model Service { - id String @id @default(cuid()) - name String - description String? - price Decimal @db.Decimal(10, 2) - imageUrl String? - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - organizationId String - organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade) - - @@map("services") -} - -model Supply { - id String @id @default(cuid()) - name String - description String? - price Decimal @db.Decimal(10, 2) - quantity Int @default(0) - unit String @default("шт") - category String @default("Упаковка") - status String @default("planned") // planned, in-transit, delivered, in-stock - date DateTime @default(now()) - supplier String @default("Не указан") - minStock Int @default(0) - currentStock Int @default(0) - imageUrl String? - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - organizationId String - organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade) - - @@map("supplies") -} - -model Category { - id String @id @default(cuid()) - name String @unique - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - products Product[] - - @@map("categories") -} - -model Product { - id String @id @default(cuid()) - name String - article String - description String? - price Decimal @db.Decimal(12, 2) - quantity Int @default(0) - categoryId String? - brand String? - color String? - size String? - weight Decimal? @db.Decimal(8, 3) - dimensions String? - material String? - images Json @default("[]") - mainImage String? - isActive Boolean @default(true) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - organizationId String - cartItems CartItem[] - favorites Favorites[] - supplyOrderItems SupplyOrderItem[] - category Category? @relation(fields: [categoryId], references: [id]) - organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade) - - @@unique([organizationId, article]) - @@map("products") -} - -model Cart { - id String @id @default(cuid()) - organizationId String @unique - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - items CartItem[] - organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade) - - @@map("carts") -} - -model CartItem { - id String @id @default(cuid()) - cartId String - productId String - quantity Int @default(1) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - cart Cart @relation(fields: [cartId], references: [id], onDelete: Cascade) - product Product @relation(fields: [productId], references: [id], onDelete: Cascade) - - @@unique([cartId, productId]) - @@map("cart_items") -} - -model Favorites { - id String @id @default(cuid()) - organizationId String - productId String - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade) - product Product @relation(fields: [productId], references: [id], onDelete: Cascade) - - @@unique([organizationId, productId]) - @@map("favorites") -} - -model Employee { - id String @id @default(cuid()) - firstName String - lastName String - middleName String? - birthDate DateTime? - avatar String? - passportPhoto String? - passportSeries String? - passportNumber String? - passportIssued String? - passportDate DateTime? - address String? - position String - department String? - hireDate DateTime - salary Float? - status EmployeeStatus @default(ACTIVE) - phone String - email String? - telegram String? - whatsapp String? - emergencyContact String? - emergencyPhone String? - organizationId String - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - scheduleRecords EmployeeSchedule[] - organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade) - - @@map("employees") -} - -model EmployeeSchedule { - id String @id @default(cuid()) - date DateTime - status ScheduleStatus - hoursWorked Float? - notes String? - employeeId String - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - employee Employee @relation(fields: [employeeId], references: [id], onDelete: Cascade) - - @@unique([employeeId, date]) - @@map("employee_schedules") -} - -model WildberriesSupply { - id String @id @default(cuid()) - organizationId String - deliveryDate DateTime? - status WildberriesSupplyStatus @default(DRAFT) - totalAmount Decimal @db.Decimal(12, 2) - totalItems Int - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade) - cards WildberriesSupplyCard[] - - @@map("wildberries_supplies") -} - -model WildberriesSupplyCard { - id String @id @default(cuid()) - supplyId String - nmId String - vendorCode String - title String - brand String? - price Decimal @db.Decimal(12, 2) - discountedPrice Decimal? @db.Decimal(12, 2) - quantity Int - selectedQuantity Int - selectedMarket String? - selectedPlace String? - sellerName String? - sellerPhone String? - deliveryDate DateTime? - mediaFiles Json @default("[]") - selectedServices Json @default("[]") - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - supply WildberriesSupply @relation(fields: [supplyId], references: [id], onDelete: Cascade) - - @@map("wildberries_supply_cards") -} - -enum OrganizationType { - FULFILLMENT - SELLER - LOGIST - WHOLESALE -} - -enum MarketplaceType { - WILDBERRIES - OZON -} - -enum CounterpartyRequestStatus { - PENDING - ACCEPTED - REJECTED - CANCELLED -} - -enum MessageType { - TEXT - VOICE - IMAGE - FILE -} - -enum EmployeeStatus { - ACTIVE - VACATION - SICK - FIRED -} - -enum ScheduleStatus { - WORK - WEEKEND - VACATION - SICK - ABSENT -} - -enum SupplyOrderStatus { - PENDING - CONFIRMED - IN_TRANSIT - DELIVERED - CANCELLED -} - -enum WildberriesSupplyStatus { - DRAFT - CREATED - IN_PROGRESS - DELIVERED - CANCELLED -} - -model Logistics { - id String @id @default(cuid()) - fromLocation String - toLocation String - priceUnder1m3 Float - priceOver1m3 Float - description String? - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - organizationId String - organization Organization @relation(fields: [organizationId], references: [id]) - - @@map("logistics") -} - -model SupplyOrder { - id String @id @default(cuid()) - partnerId String - deliveryDate DateTime - status SupplyOrderStatus @default(PENDING) - totalAmount Decimal @db.Decimal(12, 2) - totalItems Int - fulfillmentCenterId String? - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - organizationId String - items SupplyOrderItem[] - organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade) - partner Organization @relation("SupplyOrderPartner", fields: [partnerId], references: [id]) - fulfillmentCenter Organization? @relation("SupplyOrderFulfillmentCenter", fields: [fulfillmentCenterId], references: [id]) - - @@map("supply_orders") -} - -model SupplyOrderItem { - id String @id @default(cuid()) - supplyOrderId String - productId String - quantity Int - price Decimal @db.Decimal(12, 2) - totalPrice Decimal @db.Decimal(12, 2) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - supplyOrder SupplyOrder @relation(fields: [supplyOrderId], references: [id], onDelete: Cascade) - product Product @relation(fields: [productId], references: [id]) - - @@unique([supplyOrderId, productId]) - @@map("supply_order_items") -} - -model SupplySupplier { - id String @id @default(cuid()) - name String - contactName String - phone String - market String? - address String? - place String? - telegram String? - organizationId String - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - organization Organization @relation("SupplySuppliers", fields: [organizationId], references: [id], onDelete: Cascade) - - @@map("supply_suppliers") -} diff --git a/prisma/generated/client/wasm.d.ts b/prisma/generated/client/wasm.d.ts deleted file mode 100644 index bc20c6c..0000000 --- a/prisma/generated/client/wasm.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./index" \ No newline at end of file diff --git a/prisma/generated/client/wasm.js b/prisma/generated/client/wasm.js deleted file mode 100644 index 7cda622..0000000 --- a/prisma/generated/client/wasm.js +++ /dev/null @@ -1,583 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! -/* eslint-disable */ - -Object.defineProperty(exports, "__esModule", { value: true }); - -const { - Decimal, - objectEnumValues, - makeStrictEnum, - Public, - getRuntime, - skip -} = require('./runtime/index-browser.js') - - -const Prisma = {} - -exports.Prisma = Prisma -exports.$Enums = {} - -/** - * Prisma Client JS version: 6.12.0 - * Query Engine version: 8047c96bbd92db98a2abc7c9323ce77c02c89dbc - */ -Prisma.prismaVersion = { - client: "6.12.0", - engine: "8047c96bbd92db98a2abc7c9323ce77c02c89dbc" -} - -Prisma.PrismaClientKnownRequestError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)}; -Prisma.PrismaClientUnknownRequestError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.PrismaClientRustPanicError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.PrismaClientInitializationError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.PrismaClientValidationError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.Decimal = Decimal - -/** - * Re-export of sql-template-tag - */ -Prisma.sql = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.empty = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.join = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.raw = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.validator = Public.validator - -/** -* Extensions -*/ -Prisma.getExtensionContext = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.defineExtension = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} - -/** - * Shorthand utilities for JSON filtering - */ -Prisma.DbNull = objectEnumValues.instances.DbNull -Prisma.JsonNull = objectEnumValues.instances.JsonNull -Prisma.AnyNull = objectEnumValues.instances.AnyNull - -Prisma.NullTypes = { - DbNull: objectEnumValues.classes.DbNull, - JsonNull: objectEnumValues.classes.JsonNull, - AnyNull: objectEnumValues.classes.AnyNull -} - - - -/** - * Enums - */ - -exports.Prisma.TransactionIsolationLevel = makeStrictEnum({ - ReadUncommitted: 'ReadUncommitted', - ReadCommitted: 'ReadCommitted', - RepeatableRead: 'RepeatableRead', - Serializable: 'Serializable' -}); - -exports.Prisma.UserScalarFieldEnum = { - id: 'id', - phone: 'phone', - avatar: 'avatar', - managerName: 'managerName', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' -}; - -exports.Prisma.AdminScalarFieldEnum = { - id: 'id', - username: 'username', - password: 'password', - email: 'email', - isActive: 'isActive', - lastLogin: 'lastLogin', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SmsCodeScalarFieldEnum = { - id: 'id', - code: 'code', - phone: 'phone', - expiresAt: 'expiresAt', - isUsed: 'isUsed', - attempts: 'attempts', - maxAttempts: 'maxAttempts', - createdAt: 'createdAt', - userId: 'userId' -}; - -exports.Prisma.OrganizationScalarFieldEnum = { - id: 'id', - inn: 'inn', - kpp: 'kpp', - name: 'name', - fullName: 'fullName', - ogrn: 'ogrn', - ogrnDate: 'ogrnDate', - type: 'type', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - address: 'address', - addressFull: 'addressFull', - status: 'status', - actualityDate: 'actualityDate', - registrationDate: 'registrationDate', - liquidationDate: 'liquidationDate', - managementName: 'managementName', - managementPost: 'managementPost', - opfCode: 'opfCode', - opfFull: 'opfFull', - opfShort: 'opfShort', - okato: 'okato', - oktmo: 'oktmo', - okpo: 'okpo', - okved: 'okved', - phones: 'phones', - emails: 'emails', - employeeCount: 'employeeCount', - revenue: 'revenue', - taxSystem: 'taxSystem', - dadataData: 'dadataData' -}; - -exports.Prisma.ApiKeyScalarFieldEnum = { - id: 'id', - marketplace: 'marketplace', - apiKey: 'apiKey', - isActive: 'isActive', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - validationData: 'validationData', - organizationId: 'organizationId' -}; - -exports.Prisma.CounterpartyRequestScalarFieldEnum = { - id: 'id', - status: 'status', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - senderId: 'senderId', - receiverId: 'receiverId', - message: 'message' -}; - -exports.Prisma.CounterpartyScalarFieldEnum = { - id: 'id', - createdAt: 'createdAt', - organizationId: 'organizationId', - counterpartyId: 'counterpartyId' -}; - -exports.Prisma.MessageScalarFieldEnum = { - id: 'id', - content: 'content', - type: 'type', - voiceUrl: 'voiceUrl', - voiceDuration: 'voiceDuration', - fileUrl: 'fileUrl', - fileName: 'fileName', - fileSize: 'fileSize', - fileType: 'fileType', - isRead: 'isRead', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - senderId: 'senderId', - senderOrganizationId: 'senderOrganizationId', - receiverOrganizationId: 'receiverOrganizationId' -}; - -exports.Prisma.ServiceScalarFieldEnum = { - id: 'id', - name: 'name', - description: 'description', - price: 'price', - imageUrl: 'imageUrl', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' -}; - -exports.Prisma.SupplyScalarFieldEnum = { - id: 'id', - name: 'name', - description: 'description', - price: 'price', - quantity: 'quantity', - unit: 'unit', - category: 'category', - status: 'status', - date: 'date', - supplier: 'supplier', - minStock: 'minStock', - currentStock: 'currentStock', - imageUrl: 'imageUrl', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' -}; - -exports.Prisma.CategoryScalarFieldEnum = { - id: 'id', - name: 'name', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.ProductScalarFieldEnum = { - id: 'id', - name: 'name', - article: 'article', - description: 'description', - price: 'price', - quantity: 'quantity', - categoryId: 'categoryId', - brand: 'brand', - color: 'color', - size: 'size', - weight: 'weight', - dimensions: 'dimensions', - material: 'material', - images: 'images', - mainImage: 'mainImage', - isActive: 'isActive', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' -}; - -exports.Prisma.CartScalarFieldEnum = { - id: 'id', - organizationId: 'organizationId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.CartItemScalarFieldEnum = { - id: 'id', - cartId: 'cartId', - productId: 'productId', - quantity: 'quantity', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.FavoritesScalarFieldEnum = { - id: 'id', - organizationId: 'organizationId', - productId: 'productId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.EmployeeScalarFieldEnum = { - id: 'id', - firstName: 'firstName', - lastName: 'lastName', - middleName: 'middleName', - birthDate: 'birthDate', - avatar: 'avatar', - passportPhoto: 'passportPhoto', - passportSeries: 'passportSeries', - passportNumber: 'passportNumber', - passportIssued: 'passportIssued', - passportDate: 'passportDate', - address: 'address', - position: 'position', - department: 'department', - hireDate: 'hireDate', - salary: 'salary', - status: 'status', - phone: 'phone', - email: 'email', - telegram: 'telegram', - whatsapp: 'whatsapp', - emergencyContact: 'emergencyContact', - emergencyPhone: 'emergencyPhone', - organizationId: 'organizationId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.EmployeeScheduleScalarFieldEnum = { - id: 'id', - date: 'date', - status: 'status', - hoursWorked: 'hoursWorked', - notes: 'notes', - employeeId: 'employeeId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.WildberriesSupplyScalarFieldEnum = { - id: 'id', - organizationId: 'organizationId', - deliveryDate: 'deliveryDate', - status: 'status', - totalAmount: 'totalAmount', - totalItems: 'totalItems', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.WildberriesSupplyCardScalarFieldEnum = { - id: 'id', - supplyId: 'supplyId', - nmId: 'nmId', - vendorCode: 'vendorCode', - title: 'title', - brand: 'brand', - price: 'price', - discountedPrice: 'discountedPrice', - quantity: 'quantity', - selectedQuantity: 'selectedQuantity', - selectedMarket: 'selectedMarket', - selectedPlace: 'selectedPlace', - sellerName: 'sellerName', - sellerPhone: 'sellerPhone', - deliveryDate: 'deliveryDate', - mediaFiles: 'mediaFiles', - selectedServices: 'selectedServices', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.LogisticsScalarFieldEnum = { - id: 'id', - fromLocation: 'fromLocation', - toLocation: 'toLocation', - priceUnder1m3: 'priceUnder1m3', - priceOver1m3: 'priceOver1m3', - description: 'description', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' -}; - -exports.Prisma.SupplyOrderScalarFieldEnum = { - id: 'id', - partnerId: 'partnerId', - deliveryDate: 'deliveryDate', - status: 'status', - totalAmount: 'totalAmount', - totalItems: 'totalItems', - fulfillmentCenterId: 'fulfillmentCenterId', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - organizationId: 'organizationId' -}; - -exports.Prisma.SupplyOrderItemScalarFieldEnum = { - id: 'id', - supplyOrderId: 'supplyOrderId', - productId: 'productId', - quantity: 'quantity', - price: 'price', - totalPrice: 'totalPrice', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SupplySupplierScalarFieldEnum = { - id: 'id', - name: 'name', - contactName: 'contactName', - phone: 'phone', - market: 'market', - address: 'address', - place: 'place', - telegram: 'telegram', - organizationId: 'organizationId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SortOrder = { - asc: 'asc', - desc: 'desc' -}; - -exports.Prisma.NullableJsonNullValueInput = { - DbNull: Prisma.DbNull, - JsonNull: Prisma.JsonNull -}; - -exports.Prisma.JsonNullValueInput = { - JsonNull: Prisma.JsonNull -}; - -exports.Prisma.QueryMode = { - default: 'default', - insensitive: 'insensitive' -}; - -exports.Prisma.NullsOrder = { - first: 'first', - last: 'last' -}; - -exports.Prisma.JsonNullValueFilter = { - DbNull: Prisma.DbNull, - JsonNull: Prisma.JsonNull, - AnyNull: Prisma.AnyNull -}; -exports.OrganizationType = exports.$Enums.OrganizationType = { - FULFILLMENT: 'FULFILLMENT', - SELLER: 'SELLER', - LOGIST: 'LOGIST', - WHOLESALE: 'WHOLESALE' -}; - -exports.MarketplaceType = exports.$Enums.MarketplaceType = { - WILDBERRIES: 'WILDBERRIES', - OZON: 'OZON' -}; - -exports.CounterpartyRequestStatus = exports.$Enums.CounterpartyRequestStatus = { - PENDING: 'PENDING', - ACCEPTED: 'ACCEPTED', - REJECTED: 'REJECTED', - CANCELLED: 'CANCELLED' -}; - -exports.MessageType = exports.$Enums.MessageType = { - TEXT: 'TEXT', - VOICE: 'VOICE', - IMAGE: 'IMAGE', - FILE: 'FILE' -}; - -exports.EmployeeStatus = exports.$Enums.EmployeeStatus = { - ACTIVE: 'ACTIVE', - VACATION: 'VACATION', - SICK: 'SICK', - FIRED: 'FIRED' -}; - -exports.ScheduleStatus = exports.$Enums.ScheduleStatus = { - WORK: 'WORK', - WEEKEND: 'WEEKEND', - VACATION: 'VACATION', - SICK: 'SICK', - ABSENT: 'ABSENT' -}; - -exports.WildberriesSupplyStatus = exports.$Enums.WildberriesSupplyStatus = { - DRAFT: 'DRAFT', - CREATED: 'CREATED', - IN_PROGRESS: 'IN_PROGRESS', - DELIVERED: 'DELIVERED', - CANCELLED: 'CANCELLED' -}; - -exports.SupplyOrderStatus = exports.$Enums.SupplyOrderStatus = { - PENDING: 'PENDING', - CONFIRMED: 'CONFIRMED', - IN_TRANSIT: 'IN_TRANSIT', - DELIVERED: 'DELIVERED', - CANCELLED: 'CANCELLED' -}; - -exports.Prisma.ModelName = { - User: 'User', - Admin: 'Admin', - SmsCode: 'SmsCode', - Organization: 'Organization', - ApiKey: 'ApiKey', - CounterpartyRequest: 'CounterpartyRequest', - Counterparty: 'Counterparty', - Message: 'Message', - Service: 'Service', - Supply: 'Supply', - Category: 'Category', - Product: 'Product', - Cart: 'Cart', - CartItem: 'CartItem', - Favorites: 'Favorites', - Employee: 'Employee', - EmployeeSchedule: 'EmployeeSchedule', - WildberriesSupply: 'WildberriesSupply', - WildberriesSupplyCard: 'WildberriesSupplyCard', - Logistics: 'Logistics', - SupplyOrder: 'SupplyOrder', - SupplyOrderItem: 'SupplyOrderItem', - SupplySupplier: 'SupplySupplier' -}; - -/** - * This is a stub Prisma Client that will error at runtime if called. - */ -class PrismaClient { - constructor() { - return new Proxy(this, { - get(target, prop) { - let message - const runtime = getRuntime() - if (runtime.isEdge) { - message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either: -- Use Prisma Accelerate: https://pris.ly/d/accelerate -- Use Driver Adapters: https://pris.ly/d/driver-adapters -`; - } else { - message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).' - } - - message += ` -If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report` - - throw new Error(message) - } - }) - } -} - -exports.PrismaClient = PrismaClient - -Object.assign(exports, Prisma) diff --git a/src/components/dashboard/user-settings.tsx b/src/components/dashboard/user-settings.tsx index 1124813..7e231de 100644 --- a/src/components/dashboard/user-settings.tsx +++ b/src/components/dashboard/user-settings.tsx @@ -135,7 +135,7 @@ export function UserSettings() { orgPhone: orgPhone || '+7', managerName: user?.managerName || '', telegram: customContacts?.telegram || '', - whatsapp: customContacts?.whatsapp || '+7', + whatsapp: customContacts?.whatsapp || '', email: email, orgName: org.name || '', address: org.address || '', @@ -374,12 +374,17 @@ export function UserSettings() { return emailRegex.test(email) } - const formatPhoneInput = (value: string) => { + const formatPhoneInput = (value: string, isOptional: boolean = false) => { // Убираем все нецифровые символы const digitsOnly = value.replace(/\D/g, '') - // Если строка пустая, возвращаем +7 - if (!digitsOnly) return '+7' + // Если строка пустая + if (!digitsOnly) { + // Для необязательных полей возвращаем пустую строку + if (isOptional) return '' + // Для обязательных полей возвращаем +7 + return '+7' + } // Если пользователь ввел первую цифру не 7, добавляем 7 перед ней let cleaned = digitsOnly @@ -391,7 +396,7 @@ export function UserSettings() { cleaned = cleaned.slice(0, 11) // Форматируем в зависимости от длины - if (cleaned.length <= 1) return '+7' + if (cleaned.length <= 1) return isOptional && cleaned === '7' ? '' : '+7' if (cleaned.length <= 4) return `+7 (${cleaned.slice(1)}` if (cleaned.length <= 7) return `+7 (${cleaned.slice(1, 4)}) ${cleaned.slice(4)}` if (cleaned.length <= 9) return `+7 (${cleaned.slice(1, 4)}) ${cleaned.slice(4, 7)}-${cleaned.slice(7)}` @@ -400,17 +405,24 @@ export function UserSettings() { return `+7 (${cleaned.slice(1, 4)}) ${cleaned.slice(4, 7)}-${cleaned.slice(7, 9)}-${cleaned.slice(9, 11)}` } - const handlePhoneInputChange = (field: string, value: string, inputRef?: React.RefObject) => { + const handlePhoneInputChange = (field: string, value: string, inputRef?: React.RefObject, isOptional: boolean = false) => { const currentInput = inputRef?.current const currentCursorPosition = currentInput?.selectionStart || 0 const currentValue = formData[field as keyof typeof formData] as string || '' - // Если пользователь пытается удалить +7, предотвращаем это - if (value.length < 2) { + // Для необязательных полей разрешаем пустое значение + if (isOptional && value.length < 2) { + const formatted = formatPhoneInput(value, true) + setFormData(prev => ({ ...prev, [field]: formatted })) + return + } + + // Для обязательных полей если пользователь пытается удалить +7, предотвращаем это + if (!isOptional && value.length < 2) { value = '+7' } - const formatted = formatPhoneInput(value) + const formatted = formatPhoneInput(value, isOptional) setFormData(prev => ({ ...prev, [field]: formatted })) // Вычисляем новую позицию курсора @@ -905,15 +917,12 @@ export function UserSettings() { handlePhoneInputChange('whatsapp', e.target.value, whatsappInputRef)} + onChange={(e) => handlePhoneInputChange('whatsapp', e.target.value, whatsappInputRef, true)} onKeyDown={(e) => { - // Предотвращаем удаление +7 - if ((e.key === 'Backspace' || e.key === 'Delete') && - whatsappInputRef.current?.selectionStart <= 2) { - e.preventDefault() - } + // Для WhatsApp разрешаем полное удаление (поле необязательное) + // Никаких ограничений на удаление }} - placeholder="+7 (999) 999-99-99" + placeholder="Необязательно" readOnly={!isEditing} className={`glass-input text-white placeholder:text-white/40 h-10 read-only:opacity-70 ${ getFieldError('whatsapp', formData.whatsapp) ? 'border-red-400' : '' diff --git a/src/graphql/resolvers.ts b/src/graphql/resolvers.ts index 05d921d..54cef80 100644 --- a/src/graphql/resolvers.ts +++ b/src/graphql/resolvers.ts @@ -5046,6 +5046,139 @@ export const resolvers = { }, }; +// Мутации для категорий +const categoriesMutations = { + // Создать категорию + createCategory: async ( + _: unknown, + args: { input: { name: string } } + ) => { + try { + // Проверяем есть ли уже категория с таким именем + const existingCategory = await prisma.category.findUnique({ + where: { name: args.input.name } + }); + + if (existingCategory) { + return { + success: false, + message: 'Категория с таким названием уже существует' + }; + } + + const category = await prisma.category.create({ + data: { + name: args.input.name + } + }); + + return { + success: true, + message: 'Категория успешно создана', + category + }; + } catch (error) { + console.error('Ошибка создания категории:', error); + return { + success: false, + message: 'Ошибка при создании категории' + }; + } + }, + + // Обновить категорию + updateCategory: async ( + _: unknown, + args: { id: string, input: { name: string } } + ) => { + try { + // Проверяем существует ли категория + const existingCategory = await prisma.category.findUnique({ + where: { id: args.id } + }); + + if (!existingCategory) { + return { + success: false, + message: 'Категория не найдена' + }; + } + + // Проверяем не занято ли имя другой категорией + const duplicateCategory = await prisma.category.findFirst({ + where: { + name: args.input.name, + id: { not: args.id } + } + }); + + if (duplicateCategory) { + return { + success: false, + message: 'Категория с таким названием уже существует' + }; + } + + const category = await prisma.category.update({ + where: { id: args.id }, + data: { + name: args.input.name + } + }); + + return { + success: true, + message: 'Категория успешно обновлена', + category + }; + } catch (error) { + console.error('Ошибка обновления категории:', error); + return { + success: false, + message: 'Ошибка при обновлении категории' + }; + } + }, + + // Удалить категорию + deleteCategory: async ( + _: unknown, + args: { id: string } + ) => { + try { + // Проверяем существует ли категория + const existingCategory = await prisma.category.findUnique({ + where: { id: args.id } + }); + + if (!existingCategory) { + throw new GraphQLError('Категория не найдена'); + } + + // Проверяем есть ли товары в этой категории + const productsCount = await prisma.product.count({ + where: { categoryId: args.id } + }); + + if (productsCount > 0) { + throw new GraphQLError('Нельзя удалить категорию, в которой есть товары'); + } + + await prisma.category.delete({ + where: { id: args.id } + }); + + return true; + } catch (error) { + console.error('Ошибка удаления категории:', error); + if (error instanceof GraphQLError) { + throw error; + } + throw new GraphQLError('Ошибка при удалении категории'); + } + } +}; + // Логистические мутации const logisticsMutations = { // Создать логистический маршрут @@ -5228,9 +5361,10 @@ const logisticsMutations = { }, }; -// Добавляем логистические мутации к основным резолверам +// Добавляем дополнительные мутации к основным резолверам resolvers.Mutation = { ...resolvers.Mutation, + ...categoriesMutations, ...logisticsMutations, };