269 lines
5.6 KiB
TypeScript
269 lines
5.6 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types.
|
|
* If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
|
|
import * as process from 'node:process'
|
|
import * as path from 'node:path'
|
|
import { fileURLToPath } from 'node:url'
|
|
globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url))
|
|
|
|
import * as runtime from "@prisma/client/runtime/client"
|
|
import * as $Enums from "./enums.ts"
|
|
import * as $Class from "./internal/class.ts"
|
|
import * as Prisma from "./internal/prismaNamespace.ts"
|
|
|
|
export * as $Enums from './enums.ts'
|
|
export * from "./enums.ts"
|
|
/**
|
|
* ## Prisma Client
|
|
*
|
|
* Type-safe database client for TypeScript
|
|
* @example
|
|
* ```
|
|
* const prisma = new PrismaClient({
|
|
* adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
|
* })
|
|
* // Fetch zero or more SyncJobRuns
|
|
* const syncJobRuns = await prisma.syncJobRun.findMany()
|
|
* ```
|
|
*
|
|
* Read more in our [docs](https://pris.ly/d/client).
|
|
*/
|
|
export const PrismaClient = $Class.getPrismaClientClass()
|
|
export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts extends Prisma.PrismaClientOptions["omit"] = Prisma.PrismaClientOptions["omit"], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>
|
|
export { Prisma }
|
|
|
|
/**
|
|
* Model SyncJobRun
|
|
*
|
|
*/
|
|
export type SyncJobRun = Prisma.SyncJobRunModel
|
|
/**
|
|
* Model SyncStepLog
|
|
*
|
|
*/
|
|
export type SyncStepLog = Prisma.SyncStepLogModel
|
|
/**
|
|
* Model Session
|
|
*
|
|
*/
|
|
export type Session = Prisma.SessionModel
|
|
/**
|
|
* Model User
|
|
*
|
|
*/
|
|
export type User = Prisma.UserModel
|
|
/**
|
|
* Model Role
|
|
*
|
|
*/
|
|
export type Role = Prisma.RoleModel
|
|
/**
|
|
* Model CorporateLocation
|
|
*
|
|
*/
|
|
export type CorporateLocation = Prisma.CorporateLocationModel
|
|
/**
|
|
* Model InternalDepartment
|
|
*
|
|
*/
|
|
export type InternalDepartment = Prisma.InternalDepartmentModel
|
|
/**
|
|
* Model UnifiSite
|
|
*
|
|
*/
|
|
export type UnifiSite = Prisma.UnifiSiteModel
|
|
/**
|
|
* Model Company
|
|
*
|
|
*/
|
|
export type Company = Prisma.CompanyModel
|
|
/**
|
|
* Model CompanyAddress
|
|
*
|
|
*/
|
|
export type CompanyAddress = Prisma.CompanyAddressModel
|
|
/**
|
|
* Model Contact
|
|
*
|
|
*/
|
|
export type Contact = Prisma.ContactModel
|
|
/**
|
|
* Model CatalogItemType
|
|
*
|
|
*/
|
|
export type CatalogItemType = Prisma.CatalogItemTypeModel
|
|
/**
|
|
* Model CatalogCategory
|
|
*
|
|
*/
|
|
export type CatalogCategory = Prisma.CatalogCategoryModel
|
|
/**
|
|
* Model CatalogSubcategory
|
|
*
|
|
*/
|
|
export type CatalogSubcategory = Prisma.CatalogSubcategoryModel
|
|
/**
|
|
* Model CatalogManufacturer
|
|
*
|
|
*/
|
|
export type CatalogManufacturer = Prisma.CatalogManufacturerModel
|
|
/**
|
|
* Model WarehouseBin
|
|
*
|
|
*/
|
|
export type WarehouseBin = Prisma.WarehouseBinModel
|
|
/**
|
|
* Model ProductInventory
|
|
*
|
|
*/
|
|
export type ProductInventory = Prisma.ProductInventoryModel
|
|
/**
|
|
* Model Warehouse
|
|
*
|
|
*/
|
|
export type Warehouse = Prisma.WarehouseModel
|
|
/**
|
|
* Model MinimumStockByWarehouse
|
|
*
|
|
*/
|
|
export type MinimumStockByWarehouse = Prisma.MinimumStockByWarehouseModel
|
|
/**
|
|
* Model CatalogItem
|
|
*
|
|
*/
|
|
export type CatalogItem = Prisma.CatalogItemModel
|
|
/**
|
|
* Model ProductData
|
|
*
|
|
*/
|
|
export type ProductData = Prisma.ProductDataModel
|
|
/**
|
|
* Model ServiceTicket
|
|
*
|
|
*/
|
|
export type ServiceTicket = Prisma.ServiceTicketModel
|
|
/**
|
|
* Model ServiceTicketNote
|
|
*
|
|
*/
|
|
export type ServiceTicketNote = Prisma.ServiceTicketNoteModel
|
|
/**
|
|
* Model ServiceTicketType
|
|
*
|
|
*/
|
|
export type ServiceTicketType = Prisma.ServiceTicketTypeModel
|
|
/**
|
|
* Model ServiceTicketBoard
|
|
*
|
|
*/
|
|
export type ServiceTicketBoard = Prisma.ServiceTicketBoardModel
|
|
/**
|
|
* Model ServiceTicketLocation
|
|
*
|
|
*/
|
|
export type ServiceTicketLocation = Prisma.ServiceTicketLocationModel
|
|
/**
|
|
* Model ServiceTicketSource
|
|
*
|
|
*/
|
|
export type ServiceTicketSource = Prisma.ServiceTicketSourceModel
|
|
/**
|
|
* Model ServiceTicketImpact
|
|
*
|
|
*/
|
|
export type ServiceTicketImpact = Prisma.ServiceTicketImpactModel
|
|
/**
|
|
* Model ServiceTicketPriority
|
|
*
|
|
*/
|
|
export type ServiceTicketPriority = Prisma.ServiceTicketPriorityModel
|
|
/**
|
|
* Model ServiceTicketSeverity
|
|
*
|
|
*/
|
|
export type ServiceTicketSeverity = Prisma.ServiceTicketSeverityModel
|
|
/**
|
|
* Model ServiceTicketFinalData
|
|
*
|
|
*/
|
|
export type ServiceTicketFinalData = Prisma.ServiceTicketFinalDataModel
|
|
/**
|
|
* Model OpportunityStage
|
|
*
|
|
*/
|
|
export type OpportunityStage = Prisma.OpportunityStageModel
|
|
/**
|
|
* Model OpportunityType
|
|
*
|
|
*/
|
|
export type OpportunityType = Prisma.OpportunityTypeModel
|
|
/**
|
|
* Model OpportunityStatus
|
|
*
|
|
*/
|
|
export type OpportunityStatus = Prisma.OpportunityStatusModel
|
|
/**
|
|
* Model Opportunity
|
|
*
|
|
*/
|
|
export type Opportunity = Prisma.OpportunityModel
|
|
/**
|
|
* Model ScheduleStatus
|
|
*
|
|
*/
|
|
export type ScheduleStatus = Prisma.ScheduleStatusModel
|
|
/**
|
|
* Model ScheduleType
|
|
*
|
|
*/
|
|
export type ScheduleType = Prisma.ScheduleTypeModel
|
|
/**
|
|
* Model ScheduleSpan
|
|
*
|
|
*/
|
|
export type ScheduleSpan = Prisma.ScheduleSpanModel
|
|
/**
|
|
* Model Schedule
|
|
*
|
|
*/
|
|
export type Schedule = Prisma.ScheduleModel
|
|
/**
|
|
* Model CredentialType
|
|
*
|
|
*/
|
|
export type CredentialType = Prisma.CredentialTypeModel
|
|
/**
|
|
* Model SecureValue
|
|
*
|
|
*/
|
|
export type SecureValue = Prisma.SecureValueModel
|
|
/**
|
|
* Model Credential
|
|
*
|
|
*/
|
|
export type Credential = Prisma.CredentialModel
|
|
/**
|
|
* Model GeneratedQuotes
|
|
*
|
|
*/
|
|
export type GeneratedQuotes = Prisma.GeneratedQuotesModel
|
|
/**
|
|
* Model TaxCode
|
|
*
|
|
*/
|
|
export type TaxCode = Prisma.TaxCodeModel
|
|
/**
|
|
* Model CwMember
|
|
*
|
|
*/
|
|
export type CwMember = Prisma.CwMemberModel
|