335 lines
8.8 KiB
TypeScript
335 lines
8.8 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.ts'
|
|
export type * from './prismaNamespace.ts'
|
|
|
|
export const Decimal = runtime.Decimal
|
|
|
|
|
|
export const NullTypes = {
|
|
DbNull: runtime.objectEnumValues.classes.DbNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.DbNull),
|
|
JsonNull: runtime.objectEnumValues.classes.JsonNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.JsonNull),
|
|
AnyNull: runtime.objectEnumValues.classes.AnyNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.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.objectEnumValues.instances.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.objectEnumValues.instances.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.objectEnumValues.instances.AnyNull
|
|
|
|
|
|
export const ModelName = {
|
|
User: 'User',
|
|
Project: 'Project',
|
|
Membership: 'Membership',
|
|
InviteToken: 'InviteToken',
|
|
Event: 'Event',
|
|
EventTodo: 'EventTodo',
|
|
Address: 'Address',
|
|
Household: 'Household',
|
|
Guest: 'Guest',
|
|
EventGuest: 'EventGuest',
|
|
VendorCategory: 'VendorCategory',
|
|
Vendor: 'Vendor',
|
|
EventVendor: 'EventVendor',
|
|
FileUpload: 'FileUpload',
|
|
RegistryItem: 'RegistryItem',
|
|
AllowedOrigin: 'AllowedOrigin'
|
|
} 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 UserScalarFieldEnum = {
|
|
id: 'id',
|
|
email: 'email',
|
|
name: 'name',
|
|
username: 'username',
|
|
password: 'password',
|
|
authProvider: 'authProvider',
|
|
providerId: 'providerId',
|
|
isAdmin: 'isAdmin',
|
|
createdAt: 'createdAt'
|
|
} as const
|
|
|
|
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
|
|
|
|
|
export const ProjectScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
archivedAt: 'archivedAt'
|
|
} as const
|
|
|
|
export type ProjectScalarFieldEnum = (typeof ProjectScalarFieldEnum)[keyof typeof ProjectScalarFieldEnum]
|
|
|
|
|
|
export const MembershipScalarFieldEnum = {
|
|
id: 'id',
|
|
role: 'role',
|
|
createdAt: 'createdAt',
|
|
userId: 'userId',
|
|
projectId: 'projectId',
|
|
eventId: 'eventId'
|
|
} as const
|
|
|
|
export type MembershipScalarFieldEnum = (typeof MembershipScalarFieldEnum)[keyof typeof MembershipScalarFieldEnum]
|
|
|
|
|
|
export const InviteTokenScalarFieldEnum = {
|
|
id: 'id',
|
|
email: 'email',
|
|
role: 'role',
|
|
token: 'token',
|
|
expiresAt: 'expiresAt',
|
|
acceptedAt: 'acceptedAt',
|
|
createdAt: 'createdAt',
|
|
projectId: 'projectId',
|
|
eventId: 'eventId'
|
|
} as const
|
|
|
|
export type InviteTokenScalarFieldEnum = (typeof InviteTokenScalarFieldEnum)[keyof typeof InviteTokenScalarFieldEnum]
|
|
|
|
|
|
export const EventScalarFieldEnum = {
|
|
id: 'id',
|
|
slug: 'slug',
|
|
name: 'name',
|
|
date: 'date',
|
|
notes: 'notes',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
projectId: 'projectId'
|
|
} as const
|
|
|
|
export type EventScalarFieldEnum = (typeof EventScalarFieldEnum)[keyof typeof EventScalarFieldEnum]
|
|
|
|
|
|
export const EventTodoScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
complete: 'complete',
|
|
dueDate: 'dueDate',
|
|
notes: 'notes',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
eventId: 'eventId'
|
|
} as const
|
|
|
|
export type EventTodoScalarFieldEnum = (typeof EventTodoScalarFieldEnum)[keyof typeof EventTodoScalarFieldEnum]
|
|
|
|
|
|
export const AddressScalarFieldEnum = {
|
|
id: 'id',
|
|
line1: 'line1',
|
|
line2: 'line2',
|
|
city: 'city',
|
|
state: 'state',
|
|
postalCode: 'postalCode',
|
|
country: 'country'
|
|
} as const
|
|
|
|
export type AddressScalarFieldEnum = (typeof AddressScalarFieldEnum)[keyof typeof AddressScalarFieldEnum]
|
|
|
|
|
|
export const HouseholdScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
token: 'token',
|
|
notes: 'notes',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
projectId: 'projectId',
|
|
addressId: 'addressId'
|
|
} as const
|
|
|
|
export type HouseholdScalarFieldEnum = (typeof HouseholdScalarFieldEnum)[keyof typeof HouseholdScalarFieldEnum]
|
|
|
|
|
|
export const GuestScalarFieldEnum = {
|
|
id: 'id',
|
|
firstName: 'firstName',
|
|
lastName: 'lastName',
|
|
email: 'email',
|
|
phone: 'phone',
|
|
notes: 'notes',
|
|
side: 'side',
|
|
congratulated: 'congratulated',
|
|
isPlaceHolder: 'isPlaceHolder',
|
|
createdAt: 'createdAt',
|
|
householdId: 'householdId'
|
|
} as const
|
|
|
|
export type GuestScalarFieldEnum = (typeof GuestScalarFieldEnum)[keyof typeof GuestScalarFieldEnum]
|
|
|
|
|
|
export const EventGuestScalarFieldEnum = {
|
|
id: 'id',
|
|
rsvp: 'rsvp',
|
|
respodedAt: 'respodedAt',
|
|
createdAt: 'createdAt',
|
|
eventId: 'eventId',
|
|
guestId: 'guestId'
|
|
} as const
|
|
|
|
export type EventGuestScalarFieldEnum = (typeof EventGuestScalarFieldEnum)[keyof typeof EventGuestScalarFieldEnum]
|
|
|
|
|
|
export const VendorCategoryScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
description: 'description',
|
|
color: 'color'
|
|
} as const
|
|
|
|
export type VendorCategoryScalarFieldEnum = (typeof VendorCategoryScalarFieldEnum)[keyof typeof VendorCategoryScalarFieldEnum]
|
|
|
|
|
|
export const VendorScalarFieldEnum = {
|
|
id: 'id',
|
|
slug: 'slug',
|
|
name: 'name',
|
|
description: 'description',
|
|
website: 'website',
|
|
contactPerson: 'contactPerson',
|
|
email: 'email',
|
|
phone: 'phone',
|
|
notes: 'notes',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
categoryId: 'categoryId',
|
|
addressId: 'addressId'
|
|
} as const
|
|
|
|
export type VendorScalarFieldEnum = (typeof VendorScalarFieldEnum)[keyof typeof VendorScalarFieldEnum]
|
|
|
|
|
|
export const EventVendorScalarFieldEnum = {
|
|
id: 'id',
|
|
status: 'status',
|
|
bookedDate: 'bookedDate',
|
|
quotedPrice: 'quotedPrice',
|
|
finalCost: 'finalCost',
|
|
depositPaid: 'depositPaid',
|
|
depositDueDate: 'depositDueDate',
|
|
finalPaymentDue: 'finalPaymentDue',
|
|
paymentNotes: 'paymentNotes',
|
|
notes: 'notes',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
eventId: 'eventId',
|
|
vendorId: 'vendorId'
|
|
} as const
|
|
|
|
export type EventVendorScalarFieldEnum = (typeof EventVendorScalarFieldEnum)[keyof typeof EventVendorScalarFieldEnum]
|
|
|
|
|
|
export const FileUploadScalarFieldEnum = {
|
|
id: 'id',
|
|
originalName: 'originalName',
|
|
storageKey: 'storageKey',
|
|
mimeType: 'mimeType',
|
|
size: 'size',
|
|
kind: 'kind',
|
|
uploadedAt: 'uploadedAt',
|
|
uploadedById: 'uploadedById',
|
|
eventId: 'eventId',
|
|
eventVendorId: 'eventVendorId'
|
|
} as const
|
|
|
|
export type FileUploadScalarFieldEnum = (typeof FileUploadScalarFieldEnum)[keyof typeof FileUploadScalarFieldEnum]
|
|
|
|
|
|
export const RegistryItemScalarFieldEnum = {
|
|
id: 'id',
|
|
slug: 'slug',
|
|
name: 'name',
|
|
url: 'url',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
eventId: 'eventId'
|
|
} as const
|
|
|
|
export type RegistryItemScalarFieldEnum = (typeof RegistryItemScalarFieldEnum)[keyof typeof RegistryItemScalarFieldEnum]
|
|
|
|
|
|
export const AllowedOriginScalarFieldEnum = {
|
|
id: 'id',
|
|
origin: 'origin',
|
|
isDefault: 'isDefault',
|
|
createdAt: 'createdAt',
|
|
addedById: 'addedById'
|
|
} as const
|
|
|
|
export type AllowedOriginScalarFieldEnum = (typeof AllowedOriginScalarFieldEnum)[keyof typeof AllowedOriginScalarFieldEnum]
|
|
|
|
|
|
export const SortOrder = {
|
|
asc: 'asc',
|
|
desc: 'desc'
|
|
} as const
|
|
|
|
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
|
|
|
|
|
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]
|
|
|