targo-backend/prisma/generated/postgres/internal/prismaNamespaceBrowser.ts

434 lines
12 KiB
TypeScript

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* WARNING: This is an internal file that is subject to change!
*
* 🛑 Under no circumstances should you import this file directly! 🛑
*
* All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file.
* While this enables partial backward compatibility, it is not part of the stable public API.
*
* If you are looking for your Models, Enums, and Input Types, please import them from the respective
* model files in the `model` directory!
*/
import * as runtime from "@prisma/client/runtime/index-browser"
export type * from '../models'
export type * from './prismaNamespace'
export const Decimal = runtime.Decimal
export const NullTypes = {
DbNull: runtime.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 = {
Users: 'Users',
userModuleAccess: 'userModuleAccess',
Employees: 'Employees',
LeaveRequests: 'LeaveRequests',
LeaveRequestsArchive: 'LeaveRequestsArchive',
Timesheets: 'Timesheets',
TimesheetsArchive: 'TimesheetsArchive',
SchedulePresets: 'SchedulePresets',
SchedulePresetShifts: 'SchedulePresetShifts',
Shifts: 'Shifts',
ShiftsArchive: 'ShiftsArchive',
BankCodes: 'BankCodes',
Expenses: 'Expenses',
ExpensesArchive: 'ExpensesArchive',
OAuthSessions: 'OAuthSessions',
Sessions: 'Sessions',
Blobs: 'Blobs',
Attachments: 'Attachments',
AttachmentVariants: 'AttachmentVariants',
Preferences: 'Preferences',
PaidTimeOff: 'PaidTimeOff',
PayPeriods: 'PayPeriods'
} as const
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
/*
* Enums
*/
export const TransactionIsolationLevel = runtime.makeStrictEnum({
ReadUncommitted: 'ReadUncommitted',
ReadCommitted: 'ReadCommitted',
RepeatableRead: 'RepeatableRead',
Serializable: 'Serializable'
} as const)
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
export const UsersScalarFieldEnum = {
id: 'id',
first_name: 'first_name',
last_name: 'last_name',
email: 'email',
phone_number: 'phone_number',
residence: 'residence',
role: 'role'
} as const
export type UsersScalarFieldEnum = (typeof UsersScalarFieldEnum)[keyof typeof UsersScalarFieldEnum]
export const UserModuleAccessScalarFieldEnum = {
id: 'id',
user_id: 'user_id',
timesheets: 'timesheets',
timesheets_approval: 'timesheets_approval',
employee_list: 'employee_list',
employee_management: 'employee_management',
personal_profile: 'personal_profile',
dashboard: 'dashboard',
chatbot: 'chatbot'
} as const
export type UserModuleAccessScalarFieldEnum = (typeof UserModuleAccessScalarFieldEnum)[keyof typeof UserModuleAccessScalarFieldEnum]
export const EmployeesScalarFieldEnum = {
id: 'id',
user_id: 'user_id',
external_payroll_id: 'external_payroll_id',
company_code: 'company_code',
daily_expected_hours: 'daily_expected_hours',
first_work_day: 'first_work_day',
last_work_day: 'last_work_day',
supervisor_id: 'supervisor_id',
job_title: 'job_title',
is_supervisor: 'is_supervisor',
schedule_preset_id: 'schedule_preset_id'
} as const
export type EmployeesScalarFieldEnum = (typeof EmployeesScalarFieldEnum)[keyof typeof EmployeesScalarFieldEnum]
export const LeaveRequestsScalarFieldEnum = {
id: 'id',
employee_id: 'employee_id',
leave_type: 'leave_type',
comment: 'comment',
approval_status: 'approval_status',
bank_code_id: 'bank_code_id',
payable_hours: 'payable_hours',
requested_hours: 'requested_hours',
dates: 'dates'
} as const
export type LeaveRequestsScalarFieldEnum = (typeof LeaveRequestsScalarFieldEnum)[keyof typeof LeaveRequestsScalarFieldEnum]
export const LeaveRequestsArchiveScalarFieldEnum = {
id: 'id',
leave_request_id: 'leave_request_id',
archived_at: 'archived_at',
employee_id: 'employee_id',
leave_type: 'leave_type',
comment: 'comment',
approval_status: 'approval_status',
date: 'date',
payable_hours: 'payable_hours',
requested_hours: 'requested_hours'
} as const
export type LeaveRequestsArchiveScalarFieldEnum = (typeof LeaveRequestsArchiveScalarFieldEnum)[keyof typeof LeaveRequestsArchiveScalarFieldEnum]
export const TimesheetsScalarFieldEnum = {
id: 'id',
employee_id: 'employee_id',
is_approved: 'is_approved',
start_date: 'start_date'
} as const
export type TimesheetsScalarFieldEnum = (typeof TimesheetsScalarFieldEnum)[keyof typeof TimesheetsScalarFieldEnum]
export const TimesheetsArchiveScalarFieldEnum = {
id: 'id',
timesheet_id: 'timesheet_id',
archive_at: 'archive_at',
employee_id: 'employee_id',
is_approved: 'is_approved'
} as const
export type TimesheetsArchiveScalarFieldEnum = (typeof TimesheetsArchiveScalarFieldEnum)[keyof typeof TimesheetsArchiveScalarFieldEnum]
export const SchedulePresetsScalarFieldEnum = {
id: 'id',
name: 'name',
is_default: 'is_default'
} as const
export type SchedulePresetsScalarFieldEnum = (typeof SchedulePresetsScalarFieldEnum)[keyof typeof SchedulePresetsScalarFieldEnum]
export const SchedulePresetShiftsScalarFieldEnum = {
id: 'id',
preset_id: 'preset_id',
bank_code_id: 'bank_code_id',
start_time: 'start_time',
end_time: 'end_time',
is_remote: 'is_remote',
week_day: 'week_day'
} as const
export type SchedulePresetShiftsScalarFieldEnum = (typeof SchedulePresetShiftsScalarFieldEnum)[keyof typeof SchedulePresetShiftsScalarFieldEnum]
export const ShiftsScalarFieldEnum = {
id: 'id',
timesheet_id: 'timesheet_id',
date: 'date',
start_time: 'start_time',
end_time: 'end_time',
bank_code_id: 'bank_code_id',
is_approved: 'is_approved',
is_remote: 'is_remote',
comment: 'comment'
} as const
export type ShiftsScalarFieldEnum = (typeof ShiftsScalarFieldEnum)[keyof typeof ShiftsScalarFieldEnum]
export const ShiftsArchiveScalarFieldEnum = {
id: 'id',
shift_id: 'shift_id',
archive_at: 'archive_at',
timesheet_id: 'timesheet_id',
date: 'date',
start_time: 'start_time',
end_time: 'end_time',
bank_code_id: 'bank_code_id',
comment: 'comment'
} as const
export type ShiftsArchiveScalarFieldEnum = (typeof ShiftsArchiveScalarFieldEnum)[keyof typeof ShiftsArchiveScalarFieldEnum]
export const BankCodesScalarFieldEnum = {
id: 'id',
type: 'type',
categorie: 'categorie',
modifier: 'modifier',
bank_code: 'bank_code'
} as const
export type BankCodesScalarFieldEnum = (typeof BankCodesScalarFieldEnum)[keyof typeof BankCodesScalarFieldEnum]
export const ExpensesScalarFieldEnum = {
id: 'id',
timesheet_id: 'timesheet_id',
date: 'date',
amount: 'amount',
is_approved: 'is_approved',
supervisor_comment: 'supervisor_comment',
bank_code_id: 'bank_code_id',
comment: 'comment',
attachment: 'attachment',
mileage: 'mileage'
} as const
export type ExpensesScalarFieldEnum = (typeof ExpensesScalarFieldEnum)[keyof typeof ExpensesScalarFieldEnum]
export const ExpensesArchiveScalarFieldEnum = {
id: 'id',
expense_id: 'expense_id',
timesheet_id: 'timesheet_id',
archived_at: 'archived_at',
date: 'date',
amount: 'amount',
is_approved: 'is_approved',
supervisor_comment: 'supervisor_comment',
bank_code_id: 'bank_code_id',
comment: 'comment',
attachment: 'attachment',
mileage: 'mileage'
} as const
export type ExpensesArchiveScalarFieldEnum = (typeof ExpensesArchiveScalarFieldEnum)[keyof typeof ExpensesArchiveScalarFieldEnum]
export const OAuthSessionsScalarFieldEnum = {
id: 'id',
user_id: 'user_id',
application: 'application',
access_token: 'access_token',
refresh_token: 'refresh_token',
access_token_expiry: 'access_token_expiry',
refresh_token_expiry: 'refresh_token_expiry',
is_revoked: 'is_revoked',
scopes: 'scopes',
created_at: 'created_at',
updated_at: 'updated_at',
sid: 'sid'
} as const
export type OAuthSessionsScalarFieldEnum = (typeof OAuthSessionsScalarFieldEnum)[keyof typeof OAuthSessionsScalarFieldEnum]
export const SessionsScalarFieldEnum = {
id: 'id',
sid: 'sid',
data: 'data',
expiresAt: 'expiresAt'
} as const
export type SessionsScalarFieldEnum = (typeof SessionsScalarFieldEnum)[keyof typeof SessionsScalarFieldEnum]
export const BlobsScalarFieldEnum = {
sha256: 'sha256',
size: 'size',
mime: 'mime',
storage_path: 'storage_path',
refcount: 'refcount',
created_at: 'created_at'
} as const
export type BlobsScalarFieldEnum = (typeof BlobsScalarFieldEnum)[keyof typeof BlobsScalarFieldEnum]
export const AttachmentsScalarFieldEnum = {
id: 'id',
sha256: 'sha256',
owner_type: 'owner_type',
owner_id: 'owner_id',
status: 'status',
created_by: 'created_by',
created_at: 'created_at',
original_name: 'original_name',
retention_policy: 'retention_policy'
} as const
export type AttachmentsScalarFieldEnum = (typeof AttachmentsScalarFieldEnum)[keyof typeof AttachmentsScalarFieldEnum]
export const AttachmentVariantsScalarFieldEnum = {
id: 'id',
attachment_id: 'attachment_id',
variant: 'variant',
bytes: 'bytes',
width: 'width',
height: 'height',
created_at: 'created_at',
path: 'path'
} as const
export type AttachmentVariantsScalarFieldEnum = (typeof AttachmentVariantsScalarFieldEnum)[keyof typeof AttachmentVariantsScalarFieldEnum]
export const PreferencesScalarFieldEnum = {
user_id: 'user_id',
id: 'id',
display_language: 'display_language',
is_dark_mode: 'is_dark_mode',
is_employee_list_grid: 'is_employee_list_grid',
is_lefty_mode: 'is_lefty_mode',
is_timesheet_approval_grid: 'is_timesheet_approval_grid',
notifications: 'notifications'
} as const
export type PreferencesScalarFieldEnum = (typeof PreferencesScalarFieldEnum)[keyof typeof PreferencesScalarFieldEnum]
export const PaidTimeOffScalarFieldEnum = {
id: 'id',
employee_id: 'employee_id',
vacation_hours: 'vacation_hours',
banked_hours: 'banked_hours',
sick_hours: 'sick_hours',
last_updated: 'last_updated'
} as const
export type PaidTimeOffScalarFieldEnum = (typeof PaidTimeOffScalarFieldEnum)[keyof typeof PaidTimeOffScalarFieldEnum]
export const PayPeriodsScalarFieldEnum = {
pay_year: 'pay_year',
pay_period_no: 'pay_period_no',
period_start: 'period_start',
period_end: 'period_end',
payday: 'payday',
label: 'label'
} as const
export type PayPeriodsScalarFieldEnum = (typeof PayPeriodsScalarFieldEnum)[keyof typeof PayPeriodsScalarFieldEnum]
export const SortOrder = {
asc: 'asc',
desc: 'desc'
} as const
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
export const JsonNullValueInput = {
JsonNull: JsonNull
} as const
export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput]
export const QueryMode = {
default: 'default',
insensitive: 'insensitive'
} as const
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
export const NullsOrder = {
first: 'first',
last: 'last'
} as const
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
export const JsonNullValueFilter = {
DbNull: DbNull,
JsonNull: JsonNull,
AnyNull: AnyNull
} as const
export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]