
/* !!! 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)
