Files
psp_api/src/generated/prisma/internal/prismaNamespaceBrowser.ts
T

378 lines
10 KiB
TypeScript
Raw Normal View History

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* WARNING: This is an internal file that is subject to change!
*
* 🛑 Under no circumstances should you import this file directly! 🛑
*
* All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file.
* While this enables partial backward compatibility, it is not part of the stable public API.
*
* If you are looking for your Models, Enums, and Input Types, please import them from the respective
* model files in the `model` directory!
*/
import * as runtime from "@prisma/client/runtime/index-browser"
export type * from '../models.js'
export type * from './prismaNamespace.js'
export const Decimal = runtime.Decimal
export const NullTypes = {
DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull),
JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull),
AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull),
}
/**
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const DbNull = runtime.DbNull
/**
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const JsonNull = runtime.JsonNull
/**
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const AnyNull = runtime.AnyNull
export const ModelName = {
Customer: 'Customer',
Device: 'Device',
2026-02-04 13:49:07 +03:30
Good: 'Good',
GoodCategory: 'GoodCategory',
TriggerLog: 'TriggerLog',
SalesInvoice: 'SalesInvoice',
SalesInvoiceItem: 'SalesInvoiceItem',
SalesInvoicePayment: 'SalesInvoicePayment',
2026-02-04 13:49:07 +03:30
Service: 'Service',
ServiceCategory: 'ServiceCategory'
} as const
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
/*
* Enums
*/
export const TransactionIsolationLevel = {
ReadUncommitted: 'ReadUncommitted',
ReadCommitted: 'ReadCommitted',
RepeatableRead: 'RepeatableRead',
Serializable: 'Serializable'
} as const
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
export const CustomerScalarFieldEnum = {
id: 'id',
first_name: 'first_name',
last_name: 'last_name',
email: 'email',
mobile_number: 'mobile_number',
address: 'address',
is_active: 'is_active',
account_id: 'account_id',
complex_id: 'complex_id',
created_at: 'created_at',
updated_at: 'updated_at',
deleted_at: 'deleted_at'
} as const
export type CustomerScalarFieldEnum = (typeof CustomerScalarFieldEnum)[keyof typeof CustomerScalarFieldEnum]
export const DeviceScalarFieldEnum = {
account_id: 'account_id',
app_version: 'app_version',
build_number: 'build_number',
uuid: 'uuid',
platform: 'platform',
brand: 'brand',
model: 'model',
device: 'device',
os_version: 'os_version',
sdk_version: 'sdk_version',
release_number: 'release_number',
browser_name: 'browser_name',
fcm_token: 'fcm_token'
} as const
export type DeviceScalarFieldEnum = (typeof DeviceScalarFieldEnum)[keyof typeof DeviceScalarFieldEnum]
2026-02-04 13:49:07 +03:30
export const GoodScalarFieldEnum = {
id: 'id',
name: 'name',
description: 'description',
2026-02-04 13:49:07 +03:30
sku: 'sku',
local_sku: 'local_sku',
2026-02-04 13:49:07 +03:30
barcode: 'barcode',
created_at: 'created_at',
updated_at: 'updated_at',
deleted_at: 'deleted_at',
category_id: 'category_id',
base_sale_price: 'base_sale_price',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
2026-02-04 13:49:07 +03:30
export type GoodScalarFieldEnum = (typeof GoodScalarFieldEnum)[keyof typeof GoodScalarFieldEnum]
2026-02-04 13:49:07 +03:30
export const GoodCategoryScalarFieldEnum = {
id: 'id',
name: 'name',
description: 'description',
image_url: 'image_url',
account_id: 'account_id',
complex_id: 'complex_id',
created_at: 'created_at',
updated_at: 'updated_at',
deleted_at: 'deleted_at'
} as const
2026-02-04 13:49:07 +03:30
export type GoodCategoryScalarFieldEnum = (typeof GoodCategoryScalarFieldEnum)[keyof typeof GoodCategoryScalarFieldEnum]
export const TriggerLogScalarFieldEnum = {
id: 'id',
message: 'message',
createdAt: 'createdAt',
name: 'name'
} as const
export type TriggerLogScalarFieldEnum = (typeof TriggerLogScalarFieldEnum)[keyof typeof TriggerLogScalarFieldEnum]
export const SalesInvoiceScalarFieldEnum = {
id: 'id',
code: 'code',
total_amount: 'total_amount',
description: 'description',
created_at: 'created_at',
updated_at: 'updated_at',
customer_id: 'customer_id',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
export type SalesInvoiceScalarFieldEnum = (typeof SalesInvoiceScalarFieldEnum)[keyof typeof SalesInvoiceScalarFieldEnum]
export const SalesInvoiceItemScalarFieldEnum = {
id: 'id',
count: 'count',
unit_price: 'unit_price',
total_amount: 'total_amount',
created_at: 'created_at',
invoice_id: 'invoice_id',
good_id: 'good_id',
service_id: 'service_id'
} as const
export type SalesInvoiceItemScalarFieldEnum = (typeof SalesInvoiceItemScalarFieldEnum)[keyof typeof SalesInvoiceItemScalarFieldEnum]
export const SalesInvoicePaymentScalarFieldEnum = {
id: 'id',
invoice_id: 'invoice_id',
amount: 'amount',
payment_method: 'payment_method',
paid_at: 'paid_at',
created_at: 'created_at'
} as const
export type SalesInvoicePaymentScalarFieldEnum = (typeof SalesInvoicePaymentScalarFieldEnum)[keyof typeof SalesInvoicePaymentScalarFieldEnum]
2026-02-04 13:49:07 +03:30
export const ServiceScalarFieldEnum = {
id: 'id',
2026-02-04 13:49:07 +03:30
name: 'name',
description: 'description',
sku: 'sku',
local_sku: 'local_sku',
2026-02-04 13:49:07 +03:30
barcode: 'barcode',
created_at: 'created_at',
updated_at: 'updated_at',
deleted_at: 'deleted_at',
category_id: 'category_id',
base_sale_price: 'base_sale_price',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
2026-02-04 13:49:07 +03:30
export type ServiceScalarFieldEnum = (typeof ServiceScalarFieldEnum)[keyof typeof ServiceScalarFieldEnum]
2026-02-04 13:49:07 +03:30
export const ServiceCategoryScalarFieldEnum = {
id: 'id',
2026-02-04 13:49:07 +03:30
name: 'name',
description: 'description',
image_url: 'image_url',
account_id: 'account_id',
complex_id: 'complex_id',
created_at: 'created_at',
updated_at: 'updated_at',
deleted_at: 'deleted_at'
} as const
2026-02-04 13:49:07 +03:30
export type ServiceCategoryScalarFieldEnum = (typeof ServiceCategoryScalarFieldEnum)[keyof typeof ServiceCategoryScalarFieldEnum]
2026-01-07 15:25:59 +03:30
export const SortOrder = {
asc: 'asc',
desc: 'desc'
} as const
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
export const NullsOrder = {
first: 'first',
last: 'last'
} as const
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
export const CustomerOrderByRelevanceFieldEnum = {
id: 'id',
first_name: 'first_name',
last_name: 'last_name',
email: 'email',
mobile_number: 'mobile_number',
address: 'address',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
export type CustomerOrderByRelevanceFieldEnum = (typeof CustomerOrderByRelevanceFieldEnum)[keyof typeof CustomerOrderByRelevanceFieldEnum]
export const DeviceOrderByRelevanceFieldEnum = {
account_id: 'account_id',
app_version: 'app_version',
build_number: 'build_number',
uuid: 'uuid',
platform: 'platform',
brand: 'brand',
model: 'model',
device: 'device',
os_version: 'os_version',
sdk_version: 'sdk_version',
release_number: 'release_number',
browser_name: 'browser_name',
fcm_token: 'fcm_token'
} as const
export type DeviceOrderByRelevanceFieldEnum = (typeof DeviceOrderByRelevanceFieldEnum)[keyof typeof DeviceOrderByRelevanceFieldEnum]
2026-02-04 13:49:07 +03:30
export const GoodOrderByRelevanceFieldEnum = {
id: 'id',
name: 'name',
2026-02-04 13:49:07 +03:30
description: 'description',
sku: 'sku',
local_sku: 'local_sku',
barcode: 'barcode',
category_id: 'category_id',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
2026-02-04 13:49:07 +03:30
export type GoodOrderByRelevanceFieldEnum = (typeof GoodOrderByRelevanceFieldEnum)[keyof typeof GoodOrderByRelevanceFieldEnum]
2026-02-04 13:49:07 +03:30
export const GoodCategoryOrderByRelevanceFieldEnum = {
id: 'id',
name: 'name',
2026-02-04 13:49:07 +03:30
description: 'description',
image_url: 'image_url',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
2026-02-04 13:49:07 +03:30
export type GoodCategoryOrderByRelevanceFieldEnum = (typeof GoodCategoryOrderByRelevanceFieldEnum)[keyof typeof GoodCategoryOrderByRelevanceFieldEnum]
export const TriggerLogOrderByRelevanceFieldEnum = {
message: 'message',
name: 'name'
} as const
export type TriggerLogOrderByRelevanceFieldEnum = (typeof TriggerLogOrderByRelevanceFieldEnum)[keyof typeof TriggerLogOrderByRelevanceFieldEnum]
2026-02-04 13:49:07 +03:30
export const SalesInvoiceOrderByRelevanceFieldEnum = {
id: 'id',
2026-02-04 13:49:07 +03:30
code: 'code',
description: 'description',
customer_id: 'customer_id',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
2026-02-04 13:49:07 +03:30
export type SalesInvoiceOrderByRelevanceFieldEnum = (typeof SalesInvoiceOrderByRelevanceFieldEnum)[keyof typeof SalesInvoiceOrderByRelevanceFieldEnum]
export const SalesInvoiceItemOrderByRelevanceFieldEnum = {
id: 'id',
invoice_id: 'invoice_id',
good_id: 'good_id',
service_id: 'service_id'
} as const
export type SalesInvoiceItemOrderByRelevanceFieldEnum = (typeof SalesInvoiceItemOrderByRelevanceFieldEnum)[keyof typeof SalesInvoiceItemOrderByRelevanceFieldEnum]
export const SalesInvoicePaymentOrderByRelevanceFieldEnum = {
id: 'id',
invoice_id: 'invoice_id'
} as const
export type SalesInvoicePaymentOrderByRelevanceFieldEnum = (typeof SalesInvoicePaymentOrderByRelevanceFieldEnum)[keyof typeof SalesInvoicePaymentOrderByRelevanceFieldEnum]
2026-02-04 13:49:07 +03:30
export const ServiceOrderByRelevanceFieldEnum = {
id: 'id',
name: 'name',
description: 'description',
sku: 'sku',
local_sku: 'local_sku',
barcode: 'barcode',
category_id: 'category_id',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
2026-02-04 13:49:07 +03:30
export type ServiceOrderByRelevanceFieldEnum = (typeof ServiceOrderByRelevanceFieldEnum)[keyof typeof ServiceOrderByRelevanceFieldEnum]
2026-02-04 13:49:07 +03:30
export const ServiceCategoryOrderByRelevanceFieldEnum = {
id: 'id',
name: 'name',
description: 'description',
image_url: 'image_url',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
2026-02-04 13:49:07 +03:30
export type ServiceCategoryOrderByRelevanceFieldEnum = (typeof ServiceCategoryOrderByRelevanceFieldEnum)[keyof typeof ServiceCategoryOrderByRelevanceFieldEnum]