feat: add schedule column labels, office hours enforcement, and appointment move fix

- Schedule columns default to labels A–F (localStorage, per-browser, click to rename)
- Settings → Advanced → Office Hours: configure Doctors (A-C) and Hygienists (D-F) AM/PM hours per weekday
- Gray out schedule slots outside office hours; override dialog for manual exceptions
- Override Office Hours toggle: select specific dates where all slots are open
- Fix appointment move: send only real DB fields to avoid Zod strict-mode rejection of computed fields (hasProcedures, hasClaimWithNumber)
- Fix backend PUT /appointments: safe error logging to prevent Prisma error crashing Node inspect
- Add OfficeHours Prisma model and GET/PUT /api/office-hours route

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Gitead
2026-05-05 09:15:18 -04:00
parent 70ffd8398b
commit 2312ad66ca
465 changed files with 11834 additions and 1461 deletions

File diff suppressed because one or more lines are too long

View File

@@ -401,6 +401,28 @@ exports.Prisma.PatientDocumentScalarFieldEnum = {
updatedAt: 'updatedAt'
};
exports.Prisma.TwilioSettingsScalarFieldEnum = {
id: 'id',
userId: 'userId',
accountSid: 'accountSid',
authToken: 'authToken',
phoneNumber: 'phoneNumber',
greetingMessage: 'greetingMessage',
templates: 'templates'
};
exports.Prisma.AiSettingsScalarFieldEnum = {
id: 'id',
userId: 'userId',
apiKey: 'apiKey'
};
exports.Prisma.OfficeHoursScalarFieldEnum = {
id: 'id',
userId: 'userId',
data: 'data'
};
exports.Prisma.SortOrder = {
asc: 'asc',
desc: 'desc'
@@ -411,6 +433,10 @@ exports.Prisma.NullableJsonNullValueInput = {
JsonNull: Prisma.JsonNull
};
exports.Prisma.JsonNullValueInput = {
JsonNull: Prisma.JsonNull
};
exports.Prisma.QueryMode = {
default: 'default',
insensitive: 'insensitive'
@@ -538,7 +564,10 @@ exports.Prisma.ModelName = {
CloudFile: 'CloudFile',
CloudFileChunk: 'CloudFileChunk',
Communication: 'Communication',
PatientDocument: 'PatientDocument'
PatientDocument: 'PatientDocument',
TwilioSettings: 'TwilioSettings',
AiSettings: 'AiSettings',
OfficeHours: 'OfficeHours'
};
/**

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,5 @@
{
"name": "prisma-client-22655c07aa39745227b4db21e1a272ed33f573d246376a2497ebde7ea0c156fb",
"name": "prisma-client-db87bf66545e77505291e1e9a0077b158237c6d88a3205c70a049bfe0bf44c4f",
"main": "index.js",
"types": "index.d.ts",
"browser": "default.js",

View File

@@ -37,6 +37,9 @@ model User {
cloudFolders CloudFolder[]
cloudFiles CloudFile[]
communications Communication[]
twilioSettings TwilioSettings?
aiSettings AiSettings?
officeHours OfficeHours?
}
model Patient {
@@ -543,3 +546,37 @@ model PatientDocument {
@@index([patientId])
@@index([uploadedAt])
}
model TwilioSettings {
id Int @id @default(autoincrement())
userId Int @unique
accountSid String
authToken String
phoneNumber String
greetingMessage String?
templates Json?
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
@@map("twilio_settings")
}
model AiSettings {
id Int @id @default(autoincrement())
userId Int @unique
apiKey String
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
@@map("ai_settings")
}
model OfficeHours {
id Int @id @default(autoincrement())
userId Int @unique
data Json
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
@@map("office_hours")
}

View File

@@ -38,6 +38,8 @@ model User {
cloudFiles CloudFile[]
communications Communication[]
twilioSettings TwilioSettings?
aiSettings AiSettings?
officeHours OfficeHours?
}
model Patient {
@@ -559,3 +561,23 @@ model TwilioSettings {
@@map("twilio_settings")
}
model AiSettings {
id Int @id @default(autoincrement())
userId Int @unique
apiKey String
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
@@map("ai_settings")
}
model OfficeHours {
id Int @id @default(autoincrement())
userId Int @unique
data Json
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
@@map("office_hours")
}

View File

@@ -1,8 +1,8 @@
{
"version": "1.0",
"generatorVersion": "1.0.0",
"generatedAt": "2026-05-01T03:52:20.889Z",
"outputPath": "/home/ee/Desktop/DentalManagementMH04/packages/db/shared",
"generatedAt": "2026-05-05T02:21:32.341Z",
"outputPath": "/home/ee/Desktop/DentalManagementMH05/packages/db/shared",
"files": [
"schemas/enums/TransactionIsolationLevel.schema.ts",
"schemas/enums/UserScalarFieldEnum.schema.ts",
@@ -29,8 +29,12 @@
"schemas/enums/CloudFileChunkScalarFieldEnum.schema.ts",
"schemas/enums/CommunicationScalarFieldEnum.schema.ts",
"schemas/enums/PatientDocumentScalarFieldEnum.schema.ts",
"schemas/enums/TwilioSettingsScalarFieldEnum.schema.ts",
"schemas/enums/AiSettingsScalarFieldEnum.schema.ts",
"schemas/enums/OfficeHoursScalarFieldEnum.schema.ts",
"schemas/enums/SortOrder.schema.ts",
"schemas/enums/NullableJsonNullValueInput.schema.ts",
"schemas/enums/JsonNullValueInput.schema.ts",
"schemas/enums/QueryMode.schema.ts",
"schemas/enums/NullsOrder.schema.ts",
"schemas/enums/JsonNullValueFilter.schema.ts",
@@ -166,6 +170,21 @@
"schemas/objects/PatientDocumentWhereUniqueInput.schema.ts",
"schemas/objects/PatientDocumentOrderByWithAggregationInput.schema.ts",
"schemas/objects/PatientDocumentScalarWhereWithAggregatesInput.schema.ts",
"schemas/objects/TwilioSettingsWhereInput.schema.ts",
"schemas/objects/TwilioSettingsOrderByWithRelationInput.schema.ts",
"schemas/objects/TwilioSettingsWhereUniqueInput.schema.ts",
"schemas/objects/TwilioSettingsOrderByWithAggregationInput.schema.ts",
"schemas/objects/TwilioSettingsScalarWhereWithAggregatesInput.schema.ts",
"schemas/objects/AiSettingsWhereInput.schema.ts",
"schemas/objects/AiSettingsOrderByWithRelationInput.schema.ts",
"schemas/objects/AiSettingsWhereUniqueInput.schema.ts",
"schemas/objects/AiSettingsOrderByWithAggregationInput.schema.ts",
"schemas/objects/AiSettingsScalarWhereWithAggregatesInput.schema.ts",
"schemas/objects/OfficeHoursWhereInput.schema.ts",
"schemas/objects/OfficeHoursOrderByWithRelationInput.schema.ts",
"schemas/objects/OfficeHoursWhereUniqueInput.schema.ts",
"schemas/objects/OfficeHoursOrderByWithAggregationInput.schema.ts",
"schemas/objects/OfficeHoursScalarWhereWithAggregatesInput.schema.ts",
"schemas/objects/UserCreateInput.schema.ts",
"schemas/objects/UserUncheckedCreateInput.schema.ts",
"schemas/objects/UserUpdateInput.schema.ts",
@@ -334,6 +353,27 @@
"schemas/objects/PatientDocumentCreateManyInput.schema.ts",
"schemas/objects/PatientDocumentUpdateManyMutationInput.schema.ts",
"schemas/objects/PatientDocumentUncheckedUpdateManyInput.schema.ts",
"schemas/objects/TwilioSettingsCreateInput.schema.ts",
"schemas/objects/TwilioSettingsUncheckedCreateInput.schema.ts",
"schemas/objects/TwilioSettingsUpdateInput.schema.ts",
"schemas/objects/TwilioSettingsUncheckedUpdateInput.schema.ts",
"schemas/objects/TwilioSettingsCreateManyInput.schema.ts",
"schemas/objects/TwilioSettingsUpdateManyMutationInput.schema.ts",
"schemas/objects/TwilioSettingsUncheckedUpdateManyInput.schema.ts",
"schemas/objects/AiSettingsCreateInput.schema.ts",
"schemas/objects/AiSettingsUncheckedCreateInput.schema.ts",
"schemas/objects/AiSettingsUpdateInput.schema.ts",
"schemas/objects/AiSettingsUncheckedUpdateInput.schema.ts",
"schemas/objects/AiSettingsCreateManyInput.schema.ts",
"schemas/objects/AiSettingsUpdateManyMutationInput.schema.ts",
"schemas/objects/AiSettingsUncheckedUpdateManyInput.schema.ts",
"schemas/objects/OfficeHoursCreateInput.schema.ts",
"schemas/objects/OfficeHoursUncheckedCreateInput.schema.ts",
"schemas/objects/OfficeHoursUpdateInput.schema.ts",
"schemas/objects/OfficeHoursUncheckedUpdateInput.schema.ts",
"schemas/objects/OfficeHoursCreateManyInput.schema.ts",
"schemas/objects/OfficeHoursUpdateManyMutationInput.schema.ts",
"schemas/objects/OfficeHoursUncheckedUpdateManyInput.schema.ts",
"schemas/objects/IntFilter.schema.ts",
"schemas/objects/StringFilter.schema.ts",
"schemas/objects/BoolFilter.schema.ts",
@@ -350,6 +390,9 @@
"schemas/objects/CloudFolderListRelationFilter.schema.ts",
"schemas/objects/CloudFileListRelationFilter.schema.ts",
"schemas/objects/CommunicationListRelationFilter.schema.ts",
"schemas/objects/TwilioSettingsNullableScalarRelationFilter.schema.ts",
"schemas/objects/AiSettingsNullableScalarRelationFilter.schema.ts",
"schemas/objects/OfficeHoursNullableScalarRelationFilter.schema.ts",
"schemas/objects/PatientOrderByRelationAggregateInput.schema.ts",
"schemas/objects/AppointmentOrderByRelationAggregateInput.schema.ts",
"schemas/objects/StaffOrderByRelationAggregateInput.schema.ts",
@@ -565,6 +608,23 @@
"schemas/objects/PatientDocumentMaxOrderByAggregateInput.schema.ts",
"schemas/objects/PatientDocumentMinOrderByAggregateInput.schema.ts",
"schemas/objects/PatientDocumentSumOrderByAggregateInput.schema.ts",
"schemas/objects/TwilioSettingsCountOrderByAggregateInput.schema.ts",
"schemas/objects/TwilioSettingsAvgOrderByAggregateInput.schema.ts",
"schemas/objects/TwilioSettingsMaxOrderByAggregateInput.schema.ts",
"schemas/objects/TwilioSettingsMinOrderByAggregateInput.schema.ts",
"schemas/objects/TwilioSettingsSumOrderByAggregateInput.schema.ts",
"schemas/objects/AiSettingsCountOrderByAggregateInput.schema.ts",
"schemas/objects/AiSettingsAvgOrderByAggregateInput.schema.ts",
"schemas/objects/AiSettingsMaxOrderByAggregateInput.schema.ts",
"schemas/objects/AiSettingsMinOrderByAggregateInput.schema.ts",
"schemas/objects/AiSettingsSumOrderByAggregateInput.schema.ts",
"schemas/objects/JsonFilter.schema.ts",
"schemas/objects/OfficeHoursCountOrderByAggregateInput.schema.ts",
"schemas/objects/OfficeHoursAvgOrderByAggregateInput.schema.ts",
"schemas/objects/OfficeHoursMaxOrderByAggregateInput.schema.ts",
"schemas/objects/OfficeHoursMinOrderByAggregateInput.schema.ts",
"schemas/objects/OfficeHoursSumOrderByAggregateInput.schema.ts",
"schemas/objects/JsonWithAggregatesFilter.schema.ts",
"schemas/objects/PatientCreateNestedManyWithoutUserInput.schema.ts",
"schemas/objects/AppointmentCreateNestedManyWithoutUserInput.schema.ts",
"schemas/objects/StaffCreateNestedManyWithoutUserInput.schema.ts",
@@ -578,6 +638,9 @@
"schemas/objects/CloudFolderCreateNestedManyWithoutUserInput.schema.ts",
"schemas/objects/CloudFileCreateNestedManyWithoutUserInput.schema.ts",
"schemas/objects/CommunicationCreateNestedManyWithoutUserInput.schema.ts",
"schemas/objects/TwilioSettingsCreateNestedOneWithoutUserInput.schema.ts",
"schemas/objects/AiSettingsCreateNestedOneWithoutUserInput.schema.ts",
"schemas/objects/OfficeHoursCreateNestedOneWithoutUserInput.schema.ts",
"schemas/objects/PatientUncheckedCreateNestedManyWithoutUserInput.schema.ts",
"schemas/objects/AppointmentUncheckedCreateNestedManyWithoutUserInput.schema.ts",
"schemas/objects/StaffUncheckedCreateNestedManyWithoutUserInput.schema.ts",
@@ -591,6 +654,9 @@
"schemas/objects/CloudFolderUncheckedCreateNestedManyWithoutUserInput.schema.ts",
"schemas/objects/CloudFileUncheckedCreateNestedManyWithoutUserInput.schema.ts",
"schemas/objects/CommunicationUncheckedCreateNestedManyWithoutUserInput.schema.ts",
"schemas/objects/TwilioSettingsUncheckedCreateNestedOneWithoutUserInput.schema.ts",
"schemas/objects/AiSettingsUncheckedCreateNestedOneWithoutUserInput.schema.ts",
"schemas/objects/OfficeHoursUncheckedCreateNestedOneWithoutUserInput.schema.ts",
"schemas/objects/StringFieldUpdateOperationsInput.schema.ts",
"schemas/objects/BoolFieldUpdateOperationsInput.schema.ts",
"schemas/objects/PatientUpdateManyWithoutUserNestedInput.schema.ts",
@@ -606,6 +672,9 @@
"schemas/objects/CloudFolderUpdateManyWithoutUserNestedInput.schema.ts",
"schemas/objects/CloudFileUpdateManyWithoutUserNestedInput.schema.ts",
"schemas/objects/CommunicationUpdateManyWithoutUserNestedInput.schema.ts",
"schemas/objects/TwilioSettingsUpdateOneWithoutUserNestedInput.schema.ts",
"schemas/objects/AiSettingsUpdateOneWithoutUserNestedInput.schema.ts",
"schemas/objects/OfficeHoursUpdateOneWithoutUserNestedInput.schema.ts",
"schemas/objects/IntFieldUpdateOperationsInput.schema.ts",
"schemas/objects/PatientUncheckedUpdateManyWithoutUserNestedInput.schema.ts",
"schemas/objects/AppointmentUncheckedUpdateManyWithoutUserNestedInput.schema.ts",
@@ -620,6 +689,9 @@
"schemas/objects/CloudFolderUncheckedUpdateManyWithoutUserNestedInput.schema.ts",
"schemas/objects/CloudFileUncheckedUpdateManyWithoutUserNestedInput.schema.ts",
"schemas/objects/CommunicationUncheckedUpdateManyWithoutUserNestedInput.schema.ts",
"schemas/objects/TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput.schema.ts",
"schemas/objects/AiSettingsUncheckedUpdateOneWithoutUserNestedInput.schema.ts",
"schemas/objects/OfficeHoursUncheckedUpdateOneWithoutUserNestedInput.schema.ts",
"schemas/objects/UserCreateNestedOneWithoutPatientsInput.schema.ts",
"schemas/objects/AppointmentCreateNestedManyWithoutPatientInput.schema.ts",
"schemas/objects/AppointmentProcedureCreateNestedManyWithoutPatientInput.schema.ts",
@@ -810,6 +882,12 @@
"schemas/objects/UserUpdateOneWithoutCommunicationsNestedInput.schema.ts",
"schemas/objects/PatientCreateNestedOneWithoutDocumentsInput.schema.ts",
"schemas/objects/PatientUpdateOneRequiredWithoutDocumentsNestedInput.schema.ts",
"schemas/objects/UserCreateNestedOneWithoutTwilioSettingsInput.schema.ts",
"schemas/objects/UserUpdateOneRequiredWithoutTwilioSettingsNestedInput.schema.ts",
"schemas/objects/UserCreateNestedOneWithoutAiSettingsInput.schema.ts",
"schemas/objects/UserUpdateOneRequiredWithoutAiSettingsNestedInput.schema.ts",
"schemas/objects/UserCreateNestedOneWithoutOfficeHoursInput.schema.ts",
"schemas/objects/UserUpdateOneRequiredWithoutOfficeHoursNestedInput.schema.ts",
"schemas/objects/NestedIntFilter.schema.ts",
"schemas/objects/NestedStringFilter.schema.ts",
"schemas/objects/NestedBoolFilter.schema.ts",
@@ -859,6 +937,7 @@
"schemas/objects/NestedEnumCommunicationChannelWithAggregatesFilter.schema.ts",
"schemas/objects/NestedEnumCommunicationDirectionWithAggregatesFilter.schema.ts",
"schemas/objects/NestedEnumCommunicationStatusWithAggregatesFilter.schema.ts",
"schemas/objects/NestedJsonFilter.schema.ts",
"schemas/objects/PatientCreateWithoutUserInput.schema.ts",
"schemas/objects/PatientUncheckedCreateWithoutUserInput.schema.ts",
"schemas/objects/PatientCreateOrConnectWithoutUserInput.schema.ts",
@@ -911,6 +990,15 @@
"schemas/objects/CommunicationUncheckedCreateWithoutUserInput.schema.ts",
"schemas/objects/CommunicationCreateOrConnectWithoutUserInput.schema.ts",
"schemas/objects/CommunicationCreateManyUserInputEnvelope.schema.ts",
"schemas/objects/TwilioSettingsCreateWithoutUserInput.schema.ts",
"schemas/objects/TwilioSettingsUncheckedCreateWithoutUserInput.schema.ts",
"schemas/objects/TwilioSettingsCreateOrConnectWithoutUserInput.schema.ts",
"schemas/objects/AiSettingsCreateWithoutUserInput.schema.ts",
"schemas/objects/AiSettingsUncheckedCreateWithoutUserInput.schema.ts",
"schemas/objects/AiSettingsCreateOrConnectWithoutUserInput.schema.ts",
"schemas/objects/OfficeHoursCreateWithoutUserInput.schema.ts",
"schemas/objects/OfficeHoursUncheckedCreateWithoutUserInput.schema.ts",
"schemas/objects/OfficeHoursCreateOrConnectWithoutUserInput.schema.ts",
"schemas/objects/PatientUpsertWithWhereUniqueWithoutUserInput.schema.ts",
"schemas/objects/PatientUpdateWithWhereUniqueWithoutUserInput.schema.ts",
"schemas/objects/PatientUpdateManyWithWhereWithoutUserInput.schema.ts",
@@ -963,6 +1051,18 @@
"schemas/objects/CommunicationUpdateWithWhereUniqueWithoutUserInput.schema.ts",
"schemas/objects/CommunicationUpdateManyWithWhereWithoutUserInput.schema.ts",
"schemas/objects/CommunicationScalarWhereInput.schema.ts",
"schemas/objects/TwilioSettingsUpsertWithoutUserInput.schema.ts",
"schemas/objects/TwilioSettingsUpdateToOneWithWhereWithoutUserInput.schema.ts",
"schemas/objects/TwilioSettingsUpdateWithoutUserInput.schema.ts",
"schemas/objects/TwilioSettingsUncheckedUpdateWithoutUserInput.schema.ts",
"schemas/objects/AiSettingsUpsertWithoutUserInput.schema.ts",
"schemas/objects/AiSettingsUpdateToOneWithWhereWithoutUserInput.schema.ts",
"schemas/objects/AiSettingsUpdateWithoutUserInput.schema.ts",
"schemas/objects/AiSettingsUncheckedUpdateWithoutUserInput.schema.ts",
"schemas/objects/OfficeHoursUpsertWithoutUserInput.schema.ts",
"schemas/objects/OfficeHoursUpdateToOneWithWhereWithoutUserInput.schema.ts",
"schemas/objects/OfficeHoursUpdateWithoutUserInput.schema.ts",
"schemas/objects/OfficeHoursUncheckedUpdateWithoutUserInput.schema.ts",
"schemas/objects/UserCreateWithoutPatientsInput.schema.ts",
"schemas/objects/UserUncheckedCreateWithoutPatientsInput.schema.ts",
"schemas/objects/UserCreateOrConnectWithoutPatientsInput.schema.ts",
@@ -1399,6 +1499,27 @@
"schemas/objects/PatientUpdateToOneWithWhereWithoutDocumentsInput.schema.ts",
"schemas/objects/PatientUpdateWithoutDocumentsInput.schema.ts",
"schemas/objects/PatientUncheckedUpdateWithoutDocumentsInput.schema.ts",
"schemas/objects/UserCreateWithoutTwilioSettingsInput.schema.ts",
"schemas/objects/UserUncheckedCreateWithoutTwilioSettingsInput.schema.ts",
"schemas/objects/UserCreateOrConnectWithoutTwilioSettingsInput.schema.ts",
"schemas/objects/UserUpsertWithoutTwilioSettingsInput.schema.ts",
"schemas/objects/UserUpdateToOneWithWhereWithoutTwilioSettingsInput.schema.ts",
"schemas/objects/UserUpdateWithoutTwilioSettingsInput.schema.ts",
"schemas/objects/UserUncheckedUpdateWithoutTwilioSettingsInput.schema.ts",
"schemas/objects/UserCreateWithoutAiSettingsInput.schema.ts",
"schemas/objects/UserUncheckedCreateWithoutAiSettingsInput.schema.ts",
"schemas/objects/UserCreateOrConnectWithoutAiSettingsInput.schema.ts",
"schemas/objects/UserUpsertWithoutAiSettingsInput.schema.ts",
"schemas/objects/UserUpdateToOneWithWhereWithoutAiSettingsInput.schema.ts",
"schemas/objects/UserUpdateWithoutAiSettingsInput.schema.ts",
"schemas/objects/UserUncheckedUpdateWithoutAiSettingsInput.schema.ts",
"schemas/objects/UserCreateWithoutOfficeHoursInput.schema.ts",
"schemas/objects/UserUncheckedCreateWithoutOfficeHoursInput.schema.ts",
"schemas/objects/UserCreateOrConnectWithoutOfficeHoursInput.schema.ts",
"schemas/objects/UserUpsertWithoutOfficeHoursInput.schema.ts",
"schemas/objects/UserUpdateToOneWithWhereWithoutOfficeHoursInput.schema.ts",
"schemas/objects/UserUpdateWithoutOfficeHoursInput.schema.ts",
"schemas/objects/UserUncheckedUpdateWithoutOfficeHoursInput.schema.ts",
"schemas/objects/PatientCreateManyUserInput.schema.ts",
"schemas/objects/AppointmentCreateManyUserInput.schema.ts",
"schemas/objects/StaffCreateManyUserInput.schema.ts",
@@ -1663,6 +1784,21 @@
"schemas/objects/PatientDocumentSumAggregateInput.schema.ts",
"schemas/objects/PatientDocumentMinAggregateInput.schema.ts",
"schemas/objects/PatientDocumentMaxAggregateInput.schema.ts",
"schemas/objects/TwilioSettingsCountAggregateInput.schema.ts",
"schemas/objects/TwilioSettingsAvgAggregateInput.schema.ts",
"schemas/objects/TwilioSettingsSumAggregateInput.schema.ts",
"schemas/objects/TwilioSettingsMinAggregateInput.schema.ts",
"schemas/objects/TwilioSettingsMaxAggregateInput.schema.ts",
"schemas/objects/AiSettingsCountAggregateInput.schema.ts",
"schemas/objects/AiSettingsAvgAggregateInput.schema.ts",
"schemas/objects/AiSettingsSumAggregateInput.schema.ts",
"schemas/objects/AiSettingsMinAggregateInput.schema.ts",
"schemas/objects/AiSettingsMaxAggregateInput.schema.ts",
"schemas/objects/OfficeHoursCountAggregateInput.schema.ts",
"schemas/objects/OfficeHoursAvgAggregateInput.schema.ts",
"schemas/objects/OfficeHoursSumAggregateInput.schema.ts",
"schemas/objects/OfficeHoursMinAggregateInput.schema.ts",
"schemas/objects/OfficeHoursMaxAggregateInput.schema.ts",
"schemas/objects/UserCountOutputTypeSelect.schema.ts",
"schemas/objects/PatientCountOutputTypeSelect.schema.ts",
"schemas/objects/AppointmentCountOutputTypeSelect.schema.ts",
@@ -1745,6 +1881,9 @@
"schemas/objects/CloudFileChunkSelect.schema.ts",
"schemas/objects/CommunicationSelect.schema.ts",
"schemas/objects/PatientDocumentSelect.schema.ts",
"schemas/objects/TwilioSettingsSelect.schema.ts",
"schemas/objects/AiSettingsSelect.schema.ts",
"schemas/objects/OfficeHoursSelect.schema.ts",
"schemas/objects/UserArgs.schema.ts",
"schemas/objects/PatientArgs.schema.ts",
"schemas/objects/AppointmentArgs.schema.ts",
@@ -1769,6 +1908,9 @@
"schemas/objects/CloudFileChunkArgs.schema.ts",
"schemas/objects/CommunicationArgs.schema.ts",
"schemas/objects/PatientDocumentArgs.schema.ts",
"schemas/objects/TwilioSettingsArgs.schema.ts",
"schemas/objects/AiSettingsArgs.schema.ts",
"schemas/objects/OfficeHoursArgs.schema.ts",
"schemas/objects/UserInclude.schema.ts",
"schemas/objects/PatientInclude.schema.ts",
"schemas/objects/AppointmentInclude.schema.ts",
@@ -1792,6 +1934,9 @@
"schemas/objects/CloudFileChunkInclude.schema.ts",
"schemas/objects/CommunicationInclude.schema.ts",
"schemas/objects/PatientDocumentInclude.schema.ts",
"schemas/objects/TwilioSettingsInclude.schema.ts",
"schemas/objects/AiSettingsInclude.schema.ts",
"schemas/objects/OfficeHoursInclude.schema.ts",
"schemas/findUniqueUser.schema.ts",
"schemas/findUniqueOrThrowUser.schema.ts",
"schemas/findFirstUser.schema.ts",
@@ -2200,6 +2345,57 @@
"schemas/upsertOnePatientDocument.schema.ts",
"schemas/aggregatePatientDocument.schema.ts",
"schemas/groupByPatientDocument.schema.ts",
"schemas/findUniqueTwilioSettings.schema.ts",
"schemas/findUniqueOrThrowTwilioSettings.schema.ts",
"schemas/findFirstTwilioSettings.schema.ts",
"schemas/findFirstOrThrowTwilioSettings.schema.ts",
"schemas/findManyTwilioSettings.schema.ts",
"schemas/countTwilioSettings.schema.ts",
"schemas/createOneTwilioSettings.schema.ts",
"schemas/createManyTwilioSettings.schema.ts",
"schemas/createManyAndReturnTwilioSettings.schema.ts",
"schemas/deleteOneTwilioSettings.schema.ts",
"schemas/deleteManyTwilioSettings.schema.ts",
"schemas/updateOneTwilioSettings.schema.ts",
"schemas/updateManyTwilioSettings.schema.ts",
"schemas/updateManyAndReturnTwilioSettings.schema.ts",
"schemas/upsertOneTwilioSettings.schema.ts",
"schemas/aggregateTwilioSettings.schema.ts",
"schemas/groupByTwilioSettings.schema.ts",
"schemas/findUniqueAiSettings.schema.ts",
"schemas/findUniqueOrThrowAiSettings.schema.ts",
"schemas/findFirstAiSettings.schema.ts",
"schemas/findFirstOrThrowAiSettings.schema.ts",
"schemas/findManyAiSettings.schema.ts",
"schemas/countAiSettings.schema.ts",
"schemas/createOneAiSettings.schema.ts",
"schemas/createManyAiSettings.schema.ts",
"schemas/createManyAndReturnAiSettings.schema.ts",
"schemas/deleteOneAiSettings.schema.ts",
"schemas/deleteManyAiSettings.schema.ts",
"schemas/updateOneAiSettings.schema.ts",
"schemas/updateManyAiSettings.schema.ts",
"schemas/updateManyAndReturnAiSettings.schema.ts",
"schemas/upsertOneAiSettings.schema.ts",
"schemas/aggregateAiSettings.schema.ts",
"schemas/groupByAiSettings.schema.ts",
"schemas/findUniqueOfficeHours.schema.ts",
"schemas/findUniqueOrThrowOfficeHours.schema.ts",
"schemas/findFirstOfficeHours.schema.ts",
"schemas/findFirstOrThrowOfficeHours.schema.ts",
"schemas/findManyOfficeHours.schema.ts",
"schemas/countOfficeHours.schema.ts",
"schemas/createOneOfficeHours.schema.ts",
"schemas/createManyOfficeHours.schema.ts",
"schemas/createManyAndReturnOfficeHours.schema.ts",
"schemas/deleteOneOfficeHours.schema.ts",
"schemas/deleteManyOfficeHours.schema.ts",
"schemas/updateOneOfficeHours.schema.ts",
"schemas/updateManyOfficeHours.schema.ts",
"schemas/updateManyAndReturnOfficeHours.schema.ts",
"schemas/upsertOneOfficeHours.schema.ts",
"schemas/aggregateOfficeHours.schema.ts",
"schemas/groupByOfficeHours.schema.ts",
"schemas/results/UserFindUniqueResult.schema.ts",
"schemas/results/UserFindFirstResult.schema.ts",
"schemas/results/UserFindManyResult.schema.ts",
@@ -2512,6 +2708,45 @@
"schemas/results/PatientDocumentAggregateResult.schema.ts",
"schemas/results/PatientDocumentGroupByResult.schema.ts",
"schemas/results/PatientDocumentCountResult.schema.ts",
"schemas/results/TwilioSettingsFindUniqueResult.schema.ts",
"schemas/results/TwilioSettingsFindFirstResult.schema.ts",
"schemas/results/TwilioSettingsFindManyResult.schema.ts",
"schemas/results/TwilioSettingsCreateResult.schema.ts",
"schemas/results/TwilioSettingsCreateManyResult.schema.ts",
"schemas/results/TwilioSettingsUpdateResult.schema.ts",
"schemas/results/TwilioSettingsUpdateManyResult.schema.ts",
"schemas/results/TwilioSettingsUpsertResult.schema.ts",
"schemas/results/TwilioSettingsDeleteResult.schema.ts",
"schemas/results/TwilioSettingsDeleteManyResult.schema.ts",
"schemas/results/TwilioSettingsAggregateResult.schema.ts",
"schemas/results/TwilioSettingsGroupByResult.schema.ts",
"schemas/results/TwilioSettingsCountResult.schema.ts",
"schemas/results/AiSettingsFindUniqueResult.schema.ts",
"schemas/results/AiSettingsFindFirstResult.schema.ts",
"schemas/results/AiSettingsFindManyResult.schema.ts",
"schemas/results/AiSettingsCreateResult.schema.ts",
"schemas/results/AiSettingsCreateManyResult.schema.ts",
"schemas/results/AiSettingsUpdateResult.schema.ts",
"schemas/results/AiSettingsUpdateManyResult.schema.ts",
"schemas/results/AiSettingsUpsertResult.schema.ts",
"schemas/results/AiSettingsDeleteResult.schema.ts",
"schemas/results/AiSettingsDeleteManyResult.schema.ts",
"schemas/results/AiSettingsAggregateResult.schema.ts",
"schemas/results/AiSettingsGroupByResult.schema.ts",
"schemas/results/AiSettingsCountResult.schema.ts",
"schemas/results/OfficeHoursFindUniqueResult.schema.ts",
"schemas/results/OfficeHoursFindFirstResult.schema.ts",
"schemas/results/OfficeHoursFindManyResult.schema.ts",
"schemas/results/OfficeHoursCreateResult.schema.ts",
"schemas/results/OfficeHoursCreateManyResult.schema.ts",
"schemas/results/OfficeHoursUpdateResult.schema.ts",
"schemas/results/OfficeHoursUpdateManyResult.schema.ts",
"schemas/results/OfficeHoursUpsertResult.schema.ts",
"schemas/results/OfficeHoursDeleteResult.schema.ts",
"schemas/results/OfficeHoursDeleteManyResult.schema.ts",
"schemas/results/OfficeHoursAggregateResult.schema.ts",
"schemas/results/OfficeHoursGroupByResult.schema.ts",
"schemas/results/OfficeHoursCountResult.schema.ts",
"schemas/results/index.ts",
"schemas/index.ts",
"schemas/variants/pure/User.pure.ts",
@@ -2538,6 +2773,9 @@
"schemas/variants/pure/CloudFileChunk.pure.ts",
"schemas/variants/pure/Communication.pure.ts",
"schemas/variants/pure/PatientDocument.pure.ts",
"schemas/variants/pure/TwilioSettings.pure.ts",
"schemas/variants/pure/AiSettings.pure.ts",
"schemas/variants/pure/OfficeHours.pure.ts",
"schemas/variants/pure/index.ts",
"schemas/variants/input/User.input.ts",
"schemas/variants/input/Patient.input.ts",
@@ -2563,6 +2801,9 @@
"schemas/variants/input/CloudFileChunk.input.ts",
"schemas/variants/input/Communication.input.ts",
"schemas/variants/input/PatientDocument.input.ts",
"schemas/variants/input/TwilioSettings.input.ts",
"schemas/variants/input/AiSettings.input.ts",
"schemas/variants/input/OfficeHours.input.ts",
"schemas/variants/input/index.ts",
"schemas/variants/result/User.result.ts",
"schemas/variants/result/Patient.result.ts",
@@ -2588,6 +2829,9 @@
"schemas/variants/result/CloudFileChunk.result.ts",
"schemas/variants/result/Communication.result.ts",
"schemas/variants/result/PatientDocument.result.ts",
"schemas/variants/result/TwilioSettings.result.ts",
"schemas/variants/result/AiSettings.result.ts",
"schemas/variants/result/OfficeHours.result.ts",
"schemas/variants/result/index.ts",
"schemas/variants/index.ts"
],

View File

@@ -1,8 +1,7 @@
import * as z from 'zod';
import type { Prisma } from '../../generated/prisma';
import Decimal from "decimal.js";
import { Prisma } from '../../generated/prisma';
import Decimal from 'decimal.js';
// DECIMAL HELPERS
//------------------------------------------------------
@@ -24,7 +23,7 @@ export const isValidDecimalInput = (
if (v === undefined || v === null) return false;
return (
// Explicit instance checks first
v instanceof Decimal ||
v instanceof Prisma.Decimal ||
// If Decimal.js is present and imported by the generator, this symbol exists at runtime
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore - Decimal may be undefined when not installed; codegen controls the import

View File

@@ -0,0 +1,14 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { AiSettingsOrderByWithRelationInputObjectSchema as AiSettingsOrderByWithRelationInputObjectSchema } from './objects/AiSettingsOrderByWithRelationInput.schema';
import { AiSettingsWhereInputObjectSchema as AiSettingsWhereInputObjectSchema } from './objects/AiSettingsWhereInput.schema';
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './objects/AiSettingsWhereUniqueInput.schema';
import { AiSettingsCountAggregateInputObjectSchema as AiSettingsCountAggregateInputObjectSchema } from './objects/AiSettingsCountAggregateInput.schema';
import { AiSettingsMinAggregateInputObjectSchema as AiSettingsMinAggregateInputObjectSchema } from './objects/AiSettingsMinAggregateInput.schema';
import { AiSettingsMaxAggregateInputObjectSchema as AiSettingsMaxAggregateInputObjectSchema } from './objects/AiSettingsMaxAggregateInput.schema';
import { AiSettingsAvgAggregateInputObjectSchema as AiSettingsAvgAggregateInputObjectSchema } from './objects/AiSettingsAvgAggregateInput.schema';
import { AiSettingsSumAggregateInputObjectSchema as AiSettingsSumAggregateInputObjectSchema } from './objects/AiSettingsSumAggregateInput.schema';
export const AiSettingsAggregateSchema: z.ZodType<Prisma.AiSettingsAggregateArgs> = z.object({ orderBy: z.union([AiSettingsOrderByWithRelationInputObjectSchema, AiSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: AiSettingsWhereInputObjectSchema.optional(), cursor: AiSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), AiSettingsCountAggregateInputObjectSchema ]).optional(), _min: AiSettingsMinAggregateInputObjectSchema.optional(), _max: AiSettingsMaxAggregateInputObjectSchema.optional(), _avg: AiSettingsAvgAggregateInputObjectSchema.optional(), _sum: AiSettingsSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.AiSettingsAggregateArgs>;
export const AiSettingsAggregateZodSchema = z.object({ orderBy: z.union([AiSettingsOrderByWithRelationInputObjectSchema, AiSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: AiSettingsWhereInputObjectSchema.optional(), cursor: AiSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), AiSettingsCountAggregateInputObjectSchema ]).optional(), _min: AiSettingsMinAggregateInputObjectSchema.optional(), _max: AiSettingsMaxAggregateInputObjectSchema.optional(), _avg: AiSettingsAvgAggregateInputObjectSchema.optional(), _sum: AiSettingsSumAggregateInputObjectSchema.optional() }).strict();

View File

@@ -0,0 +1,14 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { OfficeHoursOrderByWithRelationInputObjectSchema as OfficeHoursOrderByWithRelationInputObjectSchema } from './objects/OfficeHoursOrderByWithRelationInput.schema';
import { OfficeHoursWhereInputObjectSchema as OfficeHoursWhereInputObjectSchema } from './objects/OfficeHoursWhereInput.schema';
import { OfficeHoursWhereUniqueInputObjectSchema as OfficeHoursWhereUniqueInputObjectSchema } from './objects/OfficeHoursWhereUniqueInput.schema';
import { OfficeHoursCountAggregateInputObjectSchema as OfficeHoursCountAggregateInputObjectSchema } from './objects/OfficeHoursCountAggregateInput.schema';
import { OfficeHoursMinAggregateInputObjectSchema as OfficeHoursMinAggregateInputObjectSchema } from './objects/OfficeHoursMinAggregateInput.schema';
import { OfficeHoursMaxAggregateInputObjectSchema as OfficeHoursMaxAggregateInputObjectSchema } from './objects/OfficeHoursMaxAggregateInput.schema';
import { OfficeHoursAvgAggregateInputObjectSchema as OfficeHoursAvgAggregateInputObjectSchema } from './objects/OfficeHoursAvgAggregateInput.schema';
import { OfficeHoursSumAggregateInputObjectSchema as OfficeHoursSumAggregateInputObjectSchema } from './objects/OfficeHoursSumAggregateInput.schema';
export const OfficeHoursAggregateSchema: z.ZodType<Prisma.OfficeHoursAggregateArgs> = z.object({ orderBy: z.union([OfficeHoursOrderByWithRelationInputObjectSchema, OfficeHoursOrderByWithRelationInputObjectSchema.array()]).optional(), where: OfficeHoursWhereInputObjectSchema.optional(), cursor: OfficeHoursWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), OfficeHoursCountAggregateInputObjectSchema ]).optional(), _min: OfficeHoursMinAggregateInputObjectSchema.optional(), _max: OfficeHoursMaxAggregateInputObjectSchema.optional(), _avg: OfficeHoursAvgAggregateInputObjectSchema.optional(), _sum: OfficeHoursSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.OfficeHoursAggregateArgs>;
export const OfficeHoursAggregateZodSchema = z.object({ orderBy: z.union([OfficeHoursOrderByWithRelationInputObjectSchema, OfficeHoursOrderByWithRelationInputObjectSchema.array()]).optional(), where: OfficeHoursWhereInputObjectSchema.optional(), cursor: OfficeHoursWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), OfficeHoursCountAggregateInputObjectSchema ]).optional(), _min: OfficeHoursMinAggregateInputObjectSchema.optional(), _max: OfficeHoursMaxAggregateInputObjectSchema.optional(), _avg: OfficeHoursAvgAggregateInputObjectSchema.optional(), _sum: OfficeHoursSumAggregateInputObjectSchema.optional() }).strict();

View File

@@ -0,0 +1,14 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { TwilioSettingsOrderByWithRelationInputObjectSchema as TwilioSettingsOrderByWithRelationInputObjectSchema } from './objects/TwilioSettingsOrderByWithRelationInput.schema';
import { TwilioSettingsWhereInputObjectSchema as TwilioSettingsWhereInputObjectSchema } from './objects/TwilioSettingsWhereInput.schema';
import { TwilioSettingsWhereUniqueInputObjectSchema as TwilioSettingsWhereUniqueInputObjectSchema } from './objects/TwilioSettingsWhereUniqueInput.schema';
import { TwilioSettingsCountAggregateInputObjectSchema as TwilioSettingsCountAggregateInputObjectSchema } from './objects/TwilioSettingsCountAggregateInput.schema';
import { TwilioSettingsMinAggregateInputObjectSchema as TwilioSettingsMinAggregateInputObjectSchema } from './objects/TwilioSettingsMinAggregateInput.schema';
import { TwilioSettingsMaxAggregateInputObjectSchema as TwilioSettingsMaxAggregateInputObjectSchema } from './objects/TwilioSettingsMaxAggregateInput.schema';
import { TwilioSettingsAvgAggregateInputObjectSchema as TwilioSettingsAvgAggregateInputObjectSchema } from './objects/TwilioSettingsAvgAggregateInput.schema';
import { TwilioSettingsSumAggregateInputObjectSchema as TwilioSettingsSumAggregateInputObjectSchema } from './objects/TwilioSettingsSumAggregateInput.schema';
export const TwilioSettingsAggregateSchema: z.ZodType<Prisma.TwilioSettingsAggregateArgs> = z.object({ orderBy: z.union([TwilioSettingsOrderByWithRelationInputObjectSchema, TwilioSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: TwilioSettingsWhereInputObjectSchema.optional(), cursor: TwilioSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), TwilioSettingsCountAggregateInputObjectSchema ]).optional(), _min: TwilioSettingsMinAggregateInputObjectSchema.optional(), _max: TwilioSettingsMaxAggregateInputObjectSchema.optional(), _avg: TwilioSettingsAvgAggregateInputObjectSchema.optional(), _sum: TwilioSettingsSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsAggregateArgs>;
export const TwilioSettingsAggregateZodSchema = z.object({ orderBy: z.union([TwilioSettingsOrderByWithRelationInputObjectSchema, TwilioSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: TwilioSettingsWhereInputObjectSchema.optional(), cursor: TwilioSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), TwilioSettingsCountAggregateInputObjectSchema ]).optional(), _min: TwilioSettingsMinAggregateInputObjectSchema.optional(), _max: TwilioSettingsMaxAggregateInputObjectSchema.optional(), _avg: TwilioSettingsAvgAggregateInputObjectSchema.optional(), _sum: TwilioSettingsSumAggregateInputObjectSchema.optional() }).strict();

View File

@@ -0,0 +1,10 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { AiSettingsOrderByWithRelationInputObjectSchema as AiSettingsOrderByWithRelationInputObjectSchema } from './objects/AiSettingsOrderByWithRelationInput.schema';
import { AiSettingsWhereInputObjectSchema as AiSettingsWhereInputObjectSchema } from './objects/AiSettingsWhereInput.schema';
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './objects/AiSettingsWhereUniqueInput.schema';
import { AiSettingsCountAggregateInputObjectSchema as AiSettingsCountAggregateInputObjectSchema } from './objects/AiSettingsCountAggregateInput.schema';
export const AiSettingsCountSchema: z.ZodType<Prisma.AiSettingsCountArgs> = z.object({ orderBy: z.union([AiSettingsOrderByWithRelationInputObjectSchema, AiSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: AiSettingsWhereInputObjectSchema.optional(), cursor: AiSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), select: z.union([ z.literal(true), AiSettingsCountAggregateInputObjectSchema ]).optional() }).strict() as unknown as z.ZodType<Prisma.AiSettingsCountArgs>;
export const AiSettingsCountZodSchema = z.object({ orderBy: z.union([AiSettingsOrderByWithRelationInputObjectSchema, AiSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: AiSettingsWhereInputObjectSchema.optional(), cursor: AiSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), select: z.union([ z.literal(true), AiSettingsCountAggregateInputObjectSchema ]).optional() }).strict();

View File

@@ -0,0 +1,10 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { OfficeHoursOrderByWithRelationInputObjectSchema as OfficeHoursOrderByWithRelationInputObjectSchema } from './objects/OfficeHoursOrderByWithRelationInput.schema';
import { OfficeHoursWhereInputObjectSchema as OfficeHoursWhereInputObjectSchema } from './objects/OfficeHoursWhereInput.schema';
import { OfficeHoursWhereUniqueInputObjectSchema as OfficeHoursWhereUniqueInputObjectSchema } from './objects/OfficeHoursWhereUniqueInput.schema';
import { OfficeHoursCountAggregateInputObjectSchema as OfficeHoursCountAggregateInputObjectSchema } from './objects/OfficeHoursCountAggregateInput.schema';
export const OfficeHoursCountSchema: z.ZodType<Prisma.OfficeHoursCountArgs> = z.object({ orderBy: z.union([OfficeHoursOrderByWithRelationInputObjectSchema, OfficeHoursOrderByWithRelationInputObjectSchema.array()]).optional(), where: OfficeHoursWhereInputObjectSchema.optional(), cursor: OfficeHoursWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), select: z.union([ z.literal(true), OfficeHoursCountAggregateInputObjectSchema ]).optional() }).strict() as unknown as z.ZodType<Prisma.OfficeHoursCountArgs>;
export const OfficeHoursCountZodSchema = z.object({ orderBy: z.union([OfficeHoursOrderByWithRelationInputObjectSchema, OfficeHoursOrderByWithRelationInputObjectSchema.array()]).optional(), where: OfficeHoursWhereInputObjectSchema.optional(), cursor: OfficeHoursWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), select: z.union([ z.literal(true), OfficeHoursCountAggregateInputObjectSchema ]).optional() }).strict();

View File

@@ -0,0 +1,10 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { TwilioSettingsOrderByWithRelationInputObjectSchema as TwilioSettingsOrderByWithRelationInputObjectSchema } from './objects/TwilioSettingsOrderByWithRelationInput.schema';
import { TwilioSettingsWhereInputObjectSchema as TwilioSettingsWhereInputObjectSchema } from './objects/TwilioSettingsWhereInput.schema';
import { TwilioSettingsWhereUniqueInputObjectSchema as TwilioSettingsWhereUniqueInputObjectSchema } from './objects/TwilioSettingsWhereUniqueInput.schema';
import { TwilioSettingsCountAggregateInputObjectSchema as TwilioSettingsCountAggregateInputObjectSchema } from './objects/TwilioSettingsCountAggregateInput.schema';
export const TwilioSettingsCountSchema: z.ZodType<Prisma.TwilioSettingsCountArgs> = z.object({ orderBy: z.union([TwilioSettingsOrderByWithRelationInputObjectSchema, TwilioSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: TwilioSettingsWhereInputObjectSchema.optional(), cursor: TwilioSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), select: z.union([ z.literal(true), TwilioSettingsCountAggregateInputObjectSchema ]).optional() }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsCountArgs>;
export const TwilioSettingsCountZodSchema = z.object({ orderBy: z.union([TwilioSettingsOrderByWithRelationInputObjectSchema, TwilioSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: TwilioSettingsWhereInputObjectSchema.optional(), cursor: TwilioSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), select: z.union([ z.literal(true), TwilioSettingsCountAggregateInputObjectSchema ]).optional() }).strict();

View File

@@ -0,0 +1,7 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { AiSettingsCreateManyInputObjectSchema as AiSettingsCreateManyInputObjectSchema } from './objects/AiSettingsCreateManyInput.schema';
export const AiSettingsCreateManySchema: z.ZodType<Prisma.AiSettingsCreateManyArgs> = z.object({ data: z.union([ AiSettingsCreateManyInputObjectSchema, z.array(AiSettingsCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict() as unknown as z.ZodType<Prisma.AiSettingsCreateManyArgs>;
export const AiSettingsCreateManyZodSchema = z.object({ data: z.union([ AiSettingsCreateManyInputObjectSchema, z.array(AiSettingsCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict();

View File

@@ -0,0 +1,8 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { AiSettingsSelectObjectSchema as AiSettingsSelectObjectSchema } from './objects/AiSettingsSelect.schema';
import { AiSettingsCreateManyInputObjectSchema as AiSettingsCreateManyInputObjectSchema } from './objects/AiSettingsCreateManyInput.schema';
export const AiSettingsCreateManyAndReturnSchema: z.ZodType<Prisma.AiSettingsCreateManyAndReturnArgs> = z.object({ select: AiSettingsSelectObjectSchema.optional(), data: z.union([ AiSettingsCreateManyInputObjectSchema, z.array(AiSettingsCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict() as unknown as z.ZodType<Prisma.AiSettingsCreateManyAndReturnArgs>;
export const AiSettingsCreateManyAndReturnZodSchema = z.object({ select: AiSettingsSelectObjectSchema.optional(), data: z.union([ AiSettingsCreateManyInputObjectSchema, z.array(AiSettingsCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict();

View File

@@ -0,0 +1,8 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { OfficeHoursSelectObjectSchema as OfficeHoursSelectObjectSchema } from './objects/OfficeHoursSelect.schema';
import { OfficeHoursCreateManyInputObjectSchema as OfficeHoursCreateManyInputObjectSchema } from './objects/OfficeHoursCreateManyInput.schema';
export const OfficeHoursCreateManyAndReturnSchema: z.ZodType<Prisma.OfficeHoursCreateManyAndReturnArgs> = z.object({ select: OfficeHoursSelectObjectSchema.optional(), data: z.union([ OfficeHoursCreateManyInputObjectSchema, z.array(OfficeHoursCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict() as unknown as z.ZodType<Prisma.OfficeHoursCreateManyAndReturnArgs>;
export const OfficeHoursCreateManyAndReturnZodSchema = z.object({ select: OfficeHoursSelectObjectSchema.optional(), data: z.union([ OfficeHoursCreateManyInputObjectSchema, z.array(OfficeHoursCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict();

View File

@@ -0,0 +1,8 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { TwilioSettingsSelectObjectSchema as TwilioSettingsSelectObjectSchema } from './objects/TwilioSettingsSelect.schema';
import { TwilioSettingsCreateManyInputObjectSchema as TwilioSettingsCreateManyInputObjectSchema } from './objects/TwilioSettingsCreateManyInput.schema';
export const TwilioSettingsCreateManyAndReturnSchema: z.ZodType<Prisma.TwilioSettingsCreateManyAndReturnArgs> = z.object({ select: TwilioSettingsSelectObjectSchema.optional(), data: z.union([ TwilioSettingsCreateManyInputObjectSchema, z.array(TwilioSettingsCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsCreateManyAndReturnArgs>;
export const TwilioSettingsCreateManyAndReturnZodSchema = z.object({ select: TwilioSettingsSelectObjectSchema.optional(), data: z.union([ TwilioSettingsCreateManyInputObjectSchema, z.array(TwilioSettingsCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict();

View File

@@ -0,0 +1,7 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { OfficeHoursCreateManyInputObjectSchema as OfficeHoursCreateManyInputObjectSchema } from './objects/OfficeHoursCreateManyInput.schema';
export const OfficeHoursCreateManySchema: z.ZodType<Prisma.OfficeHoursCreateManyArgs> = z.object({ data: z.union([ OfficeHoursCreateManyInputObjectSchema, z.array(OfficeHoursCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict() as unknown as z.ZodType<Prisma.OfficeHoursCreateManyArgs>;
export const OfficeHoursCreateManyZodSchema = z.object({ data: z.union([ OfficeHoursCreateManyInputObjectSchema, z.array(OfficeHoursCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict();

View File

@@ -0,0 +1,7 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { TwilioSettingsCreateManyInputObjectSchema as TwilioSettingsCreateManyInputObjectSchema } from './objects/TwilioSettingsCreateManyInput.schema';
export const TwilioSettingsCreateManySchema: z.ZodType<Prisma.TwilioSettingsCreateManyArgs> = z.object({ data: z.union([ TwilioSettingsCreateManyInputObjectSchema, z.array(TwilioSettingsCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsCreateManyArgs>;
export const TwilioSettingsCreateManyZodSchema = z.object({ data: z.union([ TwilioSettingsCreateManyInputObjectSchema, z.array(TwilioSettingsCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict();

View File

@@ -0,0 +1,10 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { AiSettingsSelectObjectSchema as AiSettingsSelectObjectSchema } from './objects/AiSettingsSelect.schema';
import { AiSettingsIncludeObjectSchema as AiSettingsIncludeObjectSchema } from './objects/AiSettingsInclude.schema';
import { AiSettingsCreateInputObjectSchema as AiSettingsCreateInputObjectSchema } from './objects/AiSettingsCreateInput.schema';
import { AiSettingsUncheckedCreateInputObjectSchema as AiSettingsUncheckedCreateInputObjectSchema } from './objects/AiSettingsUncheckedCreateInput.schema';
export const AiSettingsCreateOneSchema: z.ZodType<Prisma.AiSettingsCreateArgs> = z.object({ select: AiSettingsSelectObjectSchema.optional(), include: AiSettingsIncludeObjectSchema.optional(), data: z.union([AiSettingsCreateInputObjectSchema, AiSettingsUncheckedCreateInputObjectSchema]) }).strict() as unknown as z.ZodType<Prisma.AiSettingsCreateArgs>;
export const AiSettingsCreateOneZodSchema = z.object({ select: AiSettingsSelectObjectSchema.optional(), include: AiSettingsIncludeObjectSchema.optional(), data: z.union([AiSettingsCreateInputObjectSchema, AiSettingsUncheckedCreateInputObjectSchema]) }).strict();

View File

@@ -0,0 +1,10 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { OfficeHoursSelectObjectSchema as OfficeHoursSelectObjectSchema } from './objects/OfficeHoursSelect.schema';
import { OfficeHoursIncludeObjectSchema as OfficeHoursIncludeObjectSchema } from './objects/OfficeHoursInclude.schema';
import { OfficeHoursCreateInputObjectSchema as OfficeHoursCreateInputObjectSchema } from './objects/OfficeHoursCreateInput.schema';
import { OfficeHoursUncheckedCreateInputObjectSchema as OfficeHoursUncheckedCreateInputObjectSchema } from './objects/OfficeHoursUncheckedCreateInput.schema';
export const OfficeHoursCreateOneSchema: z.ZodType<Prisma.OfficeHoursCreateArgs> = z.object({ select: OfficeHoursSelectObjectSchema.optional(), include: OfficeHoursIncludeObjectSchema.optional(), data: z.union([OfficeHoursCreateInputObjectSchema, OfficeHoursUncheckedCreateInputObjectSchema]) }).strict() as unknown as z.ZodType<Prisma.OfficeHoursCreateArgs>;
export const OfficeHoursCreateOneZodSchema = z.object({ select: OfficeHoursSelectObjectSchema.optional(), include: OfficeHoursIncludeObjectSchema.optional(), data: z.union([OfficeHoursCreateInputObjectSchema, OfficeHoursUncheckedCreateInputObjectSchema]) }).strict();

View File

@@ -0,0 +1,10 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { TwilioSettingsSelectObjectSchema as TwilioSettingsSelectObjectSchema } from './objects/TwilioSettingsSelect.schema';
import { TwilioSettingsIncludeObjectSchema as TwilioSettingsIncludeObjectSchema } from './objects/TwilioSettingsInclude.schema';
import { TwilioSettingsCreateInputObjectSchema as TwilioSettingsCreateInputObjectSchema } from './objects/TwilioSettingsCreateInput.schema';
import { TwilioSettingsUncheckedCreateInputObjectSchema as TwilioSettingsUncheckedCreateInputObjectSchema } from './objects/TwilioSettingsUncheckedCreateInput.schema';
export const TwilioSettingsCreateOneSchema: z.ZodType<Prisma.TwilioSettingsCreateArgs> = z.object({ select: TwilioSettingsSelectObjectSchema.optional(), include: TwilioSettingsIncludeObjectSchema.optional(), data: z.union([TwilioSettingsCreateInputObjectSchema, TwilioSettingsUncheckedCreateInputObjectSchema]) }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsCreateArgs>;
export const TwilioSettingsCreateOneZodSchema = z.object({ select: TwilioSettingsSelectObjectSchema.optional(), include: TwilioSettingsIncludeObjectSchema.optional(), data: z.union([TwilioSettingsCreateInputObjectSchema, TwilioSettingsUncheckedCreateInputObjectSchema]) }).strict();

View File

@@ -0,0 +1,7 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { AiSettingsWhereInputObjectSchema as AiSettingsWhereInputObjectSchema } from './objects/AiSettingsWhereInput.schema';
export const AiSettingsDeleteManySchema: z.ZodType<Prisma.AiSettingsDeleteManyArgs> = z.object({ where: AiSettingsWhereInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.AiSettingsDeleteManyArgs>;
export const AiSettingsDeleteManyZodSchema = z.object({ where: AiSettingsWhereInputObjectSchema.optional() }).strict();

View File

@@ -0,0 +1,7 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { OfficeHoursWhereInputObjectSchema as OfficeHoursWhereInputObjectSchema } from './objects/OfficeHoursWhereInput.schema';
export const OfficeHoursDeleteManySchema: z.ZodType<Prisma.OfficeHoursDeleteManyArgs> = z.object({ where: OfficeHoursWhereInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.OfficeHoursDeleteManyArgs>;
export const OfficeHoursDeleteManyZodSchema = z.object({ where: OfficeHoursWhereInputObjectSchema.optional() }).strict();

View File

@@ -0,0 +1,7 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { TwilioSettingsWhereInputObjectSchema as TwilioSettingsWhereInputObjectSchema } from './objects/TwilioSettingsWhereInput.schema';
export const TwilioSettingsDeleteManySchema: z.ZodType<Prisma.TwilioSettingsDeleteManyArgs> = z.object({ where: TwilioSettingsWhereInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsDeleteManyArgs>;
export const TwilioSettingsDeleteManyZodSchema = z.object({ where: TwilioSettingsWhereInputObjectSchema.optional() }).strict();

View File

@@ -0,0 +1,9 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { AiSettingsSelectObjectSchema as AiSettingsSelectObjectSchema } from './objects/AiSettingsSelect.schema';
import { AiSettingsIncludeObjectSchema as AiSettingsIncludeObjectSchema } from './objects/AiSettingsInclude.schema';
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './objects/AiSettingsWhereUniqueInput.schema';
export const AiSettingsDeleteOneSchema: z.ZodType<Prisma.AiSettingsDeleteArgs> = z.object({ select: AiSettingsSelectObjectSchema.optional(), include: AiSettingsIncludeObjectSchema.optional(), where: AiSettingsWhereUniqueInputObjectSchema }).strict() as unknown as z.ZodType<Prisma.AiSettingsDeleteArgs>;
export const AiSettingsDeleteOneZodSchema = z.object({ select: AiSettingsSelectObjectSchema.optional(), include: AiSettingsIncludeObjectSchema.optional(), where: AiSettingsWhereUniqueInputObjectSchema }).strict();

View File

@@ -0,0 +1,9 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { OfficeHoursSelectObjectSchema as OfficeHoursSelectObjectSchema } from './objects/OfficeHoursSelect.schema';
import { OfficeHoursIncludeObjectSchema as OfficeHoursIncludeObjectSchema } from './objects/OfficeHoursInclude.schema';
import { OfficeHoursWhereUniqueInputObjectSchema as OfficeHoursWhereUniqueInputObjectSchema } from './objects/OfficeHoursWhereUniqueInput.schema';
export const OfficeHoursDeleteOneSchema: z.ZodType<Prisma.OfficeHoursDeleteArgs> = z.object({ select: OfficeHoursSelectObjectSchema.optional(), include: OfficeHoursIncludeObjectSchema.optional(), where: OfficeHoursWhereUniqueInputObjectSchema }).strict() as unknown as z.ZodType<Prisma.OfficeHoursDeleteArgs>;
export const OfficeHoursDeleteOneZodSchema = z.object({ select: OfficeHoursSelectObjectSchema.optional(), include: OfficeHoursIncludeObjectSchema.optional(), where: OfficeHoursWhereUniqueInputObjectSchema }).strict();

View File

@@ -0,0 +1,9 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { TwilioSettingsSelectObjectSchema as TwilioSettingsSelectObjectSchema } from './objects/TwilioSettingsSelect.schema';
import { TwilioSettingsIncludeObjectSchema as TwilioSettingsIncludeObjectSchema } from './objects/TwilioSettingsInclude.schema';
import { TwilioSettingsWhereUniqueInputObjectSchema as TwilioSettingsWhereUniqueInputObjectSchema } from './objects/TwilioSettingsWhereUniqueInput.schema';
export const TwilioSettingsDeleteOneSchema: z.ZodType<Prisma.TwilioSettingsDeleteArgs> = z.object({ select: TwilioSettingsSelectObjectSchema.optional(), include: TwilioSettingsIncludeObjectSchema.optional(), where: TwilioSettingsWhereUniqueInputObjectSchema }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsDeleteArgs>;
export const TwilioSettingsDeleteOneZodSchema = z.object({ select: TwilioSettingsSelectObjectSchema.optional(), include: TwilioSettingsIncludeObjectSchema.optional(), where: TwilioSettingsWhereUniqueInputObjectSchema }).strict();

View File

@@ -0,0 +1,5 @@
import * as z from 'zod';
export const AiSettingsScalarFieldEnumSchema = z.enum(['id', 'userId', 'apiKey'])
export type AiSettingsScalarFieldEnum = z.infer<typeof AiSettingsScalarFieldEnumSchema>;

View File

@@ -0,0 +1,5 @@
import * as z from 'zod';
export const JsonNullValueInputSchema = z.enum(['JsonNull'])
export type JsonNullValueInput = z.infer<typeof JsonNullValueInputSchema>;

View File

@@ -0,0 +1,5 @@
import * as z from 'zod';
export const OfficeHoursScalarFieldEnumSchema = z.enum(['id', 'userId', 'data'])
export type OfficeHoursScalarFieldEnum = z.infer<typeof OfficeHoursScalarFieldEnumSchema>;

View File

@@ -0,0 +1,5 @@
import * as z from 'zod';
export const TwilioSettingsScalarFieldEnumSchema = z.enum(['id', 'userId', 'accountSid', 'authToken', 'phoneNumber', 'greetingMessage', 'templates'])
export type TwilioSettingsScalarFieldEnum = z.infer<typeof TwilioSettingsScalarFieldEnumSchema>;

View File

@@ -0,0 +1,28 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { AiSettingsIncludeObjectSchema as AiSettingsIncludeObjectSchema } from './objects/AiSettingsInclude.schema';
import { AiSettingsOrderByWithRelationInputObjectSchema as AiSettingsOrderByWithRelationInputObjectSchema } from './objects/AiSettingsOrderByWithRelationInput.schema';
import { AiSettingsWhereInputObjectSchema as AiSettingsWhereInputObjectSchema } from './objects/AiSettingsWhereInput.schema';
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './objects/AiSettingsWhereUniqueInput.schema';
import { AiSettingsScalarFieldEnumSchema } from './enums/AiSettingsScalarFieldEnum.schema';
// Select schema needs to be in file to prevent circular imports
//------------------------------------------------------
export const AiSettingsFindFirstSelectSchema: z.ZodType<Prisma.AiSettingsSelect> = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
apiKey: z.boolean().optional(),
user: z.boolean().optional()
}).strict() as unknown as z.ZodType<Prisma.AiSettingsSelect>;
export const AiSettingsFindFirstSelectZodSchema = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
apiKey: z.boolean().optional(),
user: z.boolean().optional()
}).strict();
export const AiSettingsFindFirstSchema: z.ZodType<Prisma.AiSettingsFindFirstArgs> = z.object({ select: AiSettingsFindFirstSelectSchema.optional(), include: z.lazy(() => AiSettingsIncludeObjectSchema.optional()), orderBy: z.union([AiSettingsOrderByWithRelationInputObjectSchema, AiSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: AiSettingsWhereInputObjectSchema.optional(), cursor: AiSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([AiSettingsScalarFieldEnumSchema, AiSettingsScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.AiSettingsFindFirstArgs>;
export const AiSettingsFindFirstZodSchema = z.object({ select: AiSettingsFindFirstSelectSchema.optional(), include: z.lazy(() => AiSettingsIncludeObjectSchema.optional()), orderBy: z.union([AiSettingsOrderByWithRelationInputObjectSchema, AiSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: AiSettingsWhereInputObjectSchema.optional(), cursor: AiSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([AiSettingsScalarFieldEnumSchema, AiSettingsScalarFieldEnumSchema.array()]).optional() }).strict();

View File

@@ -0,0 +1,28 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { OfficeHoursIncludeObjectSchema as OfficeHoursIncludeObjectSchema } from './objects/OfficeHoursInclude.schema';
import { OfficeHoursOrderByWithRelationInputObjectSchema as OfficeHoursOrderByWithRelationInputObjectSchema } from './objects/OfficeHoursOrderByWithRelationInput.schema';
import { OfficeHoursWhereInputObjectSchema as OfficeHoursWhereInputObjectSchema } from './objects/OfficeHoursWhereInput.schema';
import { OfficeHoursWhereUniqueInputObjectSchema as OfficeHoursWhereUniqueInputObjectSchema } from './objects/OfficeHoursWhereUniqueInput.schema';
import { OfficeHoursScalarFieldEnumSchema } from './enums/OfficeHoursScalarFieldEnum.schema';
// Select schema needs to be in file to prevent circular imports
//------------------------------------------------------
export const OfficeHoursFindFirstSelectSchema: z.ZodType<Prisma.OfficeHoursSelect> = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
data: z.boolean().optional(),
user: z.boolean().optional()
}).strict() as unknown as z.ZodType<Prisma.OfficeHoursSelect>;
export const OfficeHoursFindFirstSelectZodSchema = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
data: z.boolean().optional(),
user: z.boolean().optional()
}).strict();
export const OfficeHoursFindFirstSchema: z.ZodType<Prisma.OfficeHoursFindFirstArgs> = z.object({ select: OfficeHoursFindFirstSelectSchema.optional(), include: z.lazy(() => OfficeHoursIncludeObjectSchema.optional()), orderBy: z.union([OfficeHoursOrderByWithRelationInputObjectSchema, OfficeHoursOrderByWithRelationInputObjectSchema.array()]).optional(), where: OfficeHoursWhereInputObjectSchema.optional(), cursor: OfficeHoursWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([OfficeHoursScalarFieldEnumSchema, OfficeHoursScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.OfficeHoursFindFirstArgs>;
export const OfficeHoursFindFirstZodSchema = z.object({ select: OfficeHoursFindFirstSelectSchema.optional(), include: z.lazy(() => OfficeHoursIncludeObjectSchema.optional()), orderBy: z.union([OfficeHoursOrderByWithRelationInputObjectSchema, OfficeHoursOrderByWithRelationInputObjectSchema.array()]).optional(), where: OfficeHoursWhereInputObjectSchema.optional(), cursor: OfficeHoursWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([OfficeHoursScalarFieldEnumSchema, OfficeHoursScalarFieldEnumSchema.array()]).optional() }).strict();

View File

@@ -0,0 +1,28 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { AiSettingsIncludeObjectSchema as AiSettingsIncludeObjectSchema } from './objects/AiSettingsInclude.schema';
import { AiSettingsOrderByWithRelationInputObjectSchema as AiSettingsOrderByWithRelationInputObjectSchema } from './objects/AiSettingsOrderByWithRelationInput.schema';
import { AiSettingsWhereInputObjectSchema as AiSettingsWhereInputObjectSchema } from './objects/AiSettingsWhereInput.schema';
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './objects/AiSettingsWhereUniqueInput.schema';
import { AiSettingsScalarFieldEnumSchema } from './enums/AiSettingsScalarFieldEnum.schema';
// Select schema needs to be in file to prevent circular imports
//------------------------------------------------------
export const AiSettingsFindFirstOrThrowSelectSchema: z.ZodType<Prisma.AiSettingsSelect> = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
apiKey: z.boolean().optional(),
user: z.boolean().optional()
}).strict() as unknown as z.ZodType<Prisma.AiSettingsSelect>;
export const AiSettingsFindFirstOrThrowSelectZodSchema = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
apiKey: z.boolean().optional(),
user: z.boolean().optional()
}).strict();
export const AiSettingsFindFirstOrThrowSchema: z.ZodType<Prisma.AiSettingsFindFirstOrThrowArgs> = z.object({ select: AiSettingsFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => AiSettingsIncludeObjectSchema.optional()), orderBy: z.union([AiSettingsOrderByWithRelationInputObjectSchema, AiSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: AiSettingsWhereInputObjectSchema.optional(), cursor: AiSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([AiSettingsScalarFieldEnumSchema, AiSettingsScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.AiSettingsFindFirstOrThrowArgs>;
export const AiSettingsFindFirstOrThrowZodSchema = z.object({ select: AiSettingsFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => AiSettingsIncludeObjectSchema.optional()), orderBy: z.union([AiSettingsOrderByWithRelationInputObjectSchema, AiSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: AiSettingsWhereInputObjectSchema.optional(), cursor: AiSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([AiSettingsScalarFieldEnumSchema, AiSettingsScalarFieldEnumSchema.array()]).optional() }).strict();

View File

@@ -0,0 +1,28 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { OfficeHoursIncludeObjectSchema as OfficeHoursIncludeObjectSchema } from './objects/OfficeHoursInclude.schema';
import { OfficeHoursOrderByWithRelationInputObjectSchema as OfficeHoursOrderByWithRelationInputObjectSchema } from './objects/OfficeHoursOrderByWithRelationInput.schema';
import { OfficeHoursWhereInputObjectSchema as OfficeHoursWhereInputObjectSchema } from './objects/OfficeHoursWhereInput.schema';
import { OfficeHoursWhereUniqueInputObjectSchema as OfficeHoursWhereUniqueInputObjectSchema } from './objects/OfficeHoursWhereUniqueInput.schema';
import { OfficeHoursScalarFieldEnumSchema } from './enums/OfficeHoursScalarFieldEnum.schema';
// Select schema needs to be in file to prevent circular imports
//------------------------------------------------------
export const OfficeHoursFindFirstOrThrowSelectSchema: z.ZodType<Prisma.OfficeHoursSelect> = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
data: z.boolean().optional(),
user: z.boolean().optional()
}).strict() as unknown as z.ZodType<Prisma.OfficeHoursSelect>;
export const OfficeHoursFindFirstOrThrowSelectZodSchema = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
data: z.boolean().optional(),
user: z.boolean().optional()
}).strict();
export const OfficeHoursFindFirstOrThrowSchema: z.ZodType<Prisma.OfficeHoursFindFirstOrThrowArgs> = z.object({ select: OfficeHoursFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => OfficeHoursIncludeObjectSchema.optional()), orderBy: z.union([OfficeHoursOrderByWithRelationInputObjectSchema, OfficeHoursOrderByWithRelationInputObjectSchema.array()]).optional(), where: OfficeHoursWhereInputObjectSchema.optional(), cursor: OfficeHoursWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([OfficeHoursScalarFieldEnumSchema, OfficeHoursScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.OfficeHoursFindFirstOrThrowArgs>;
export const OfficeHoursFindFirstOrThrowZodSchema = z.object({ select: OfficeHoursFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => OfficeHoursIncludeObjectSchema.optional()), orderBy: z.union([OfficeHoursOrderByWithRelationInputObjectSchema, OfficeHoursOrderByWithRelationInputObjectSchema.array()]).optional(), where: OfficeHoursWhereInputObjectSchema.optional(), cursor: OfficeHoursWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([OfficeHoursScalarFieldEnumSchema, OfficeHoursScalarFieldEnumSchema.array()]).optional() }).strict();

View File

@@ -0,0 +1,36 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { TwilioSettingsIncludeObjectSchema as TwilioSettingsIncludeObjectSchema } from './objects/TwilioSettingsInclude.schema';
import { TwilioSettingsOrderByWithRelationInputObjectSchema as TwilioSettingsOrderByWithRelationInputObjectSchema } from './objects/TwilioSettingsOrderByWithRelationInput.schema';
import { TwilioSettingsWhereInputObjectSchema as TwilioSettingsWhereInputObjectSchema } from './objects/TwilioSettingsWhereInput.schema';
import { TwilioSettingsWhereUniqueInputObjectSchema as TwilioSettingsWhereUniqueInputObjectSchema } from './objects/TwilioSettingsWhereUniqueInput.schema';
import { TwilioSettingsScalarFieldEnumSchema } from './enums/TwilioSettingsScalarFieldEnum.schema';
// Select schema needs to be in file to prevent circular imports
//------------------------------------------------------
export const TwilioSettingsFindFirstOrThrowSelectSchema: z.ZodType<Prisma.TwilioSettingsSelect> = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
accountSid: z.boolean().optional(),
authToken: z.boolean().optional(),
phoneNumber: z.boolean().optional(),
greetingMessage: z.boolean().optional(),
templates: z.boolean().optional(),
user: z.boolean().optional()
}).strict() as unknown as z.ZodType<Prisma.TwilioSettingsSelect>;
export const TwilioSettingsFindFirstOrThrowSelectZodSchema = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
accountSid: z.boolean().optional(),
authToken: z.boolean().optional(),
phoneNumber: z.boolean().optional(),
greetingMessage: z.boolean().optional(),
templates: z.boolean().optional(),
user: z.boolean().optional()
}).strict();
export const TwilioSettingsFindFirstOrThrowSchema: z.ZodType<Prisma.TwilioSettingsFindFirstOrThrowArgs> = z.object({ select: TwilioSettingsFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => TwilioSettingsIncludeObjectSchema.optional()), orderBy: z.union([TwilioSettingsOrderByWithRelationInputObjectSchema, TwilioSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: TwilioSettingsWhereInputObjectSchema.optional(), cursor: TwilioSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([TwilioSettingsScalarFieldEnumSchema, TwilioSettingsScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsFindFirstOrThrowArgs>;
export const TwilioSettingsFindFirstOrThrowZodSchema = z.object({ select: TwilioSettingsFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => TwilioSettingsIncludeObjectSchema.optional()), orderBy: z.union([TwilioSettingsOrderByWithRelationInputObjectSchema, TwilioSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: TwilioSettingsWhereInputObjectSchema.optional(), cursor: TwilioSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([TwilioSettingsScalarFieldEnumSchema, TwilioSettingsScalarFieldEnumSchema.array()]).optional() }).strict();

View File

@@ -28,6 +28,9 @@ export const UserFindFirstOrThrowSelectSchema: z.ZodType<Prisma.UserSelect> = z.
cloudFolders: z.boolean().optional(),
cloudFiles: z.boolean().optional(),
communications: z.boolean().optional(),
twilioSettings: z.boolean().optional(),
aiSettings: z.boolean().optional(),
officeHours: z.boolean().optional(),
_count: z.boolean().optional()
}).strict() as unknown as z.ZodType<Prisma.UserSelect>;
@@ -50,6 +53,9 @@ export const UserFindFirstOrThrowSelectZodSchema = z.object({
cloudFolders: z.boolean().optional(),
cloudFiles: z.boolean().optional(),
communications: z.boolean().optional(),
twilioSettings: z.boolean().optional(),
aiSettings: z.boolean().optional(),
officeHours: z.boolean().optional(),
_count: z.boolean().optional()
}).strict();

View File

@@ -0,0 +1,36 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { TwilioSettingsIncludeObjectSchema as TwilioSettingsIncludeObjectSchema } from './objects/TwilioSettingsInclude.schema';
import { TwilioSettingsOrderByWithRelationInputObjectSchema as TwilioSettingsOrderByWithRelationInputObjectSchema } from './objects/TwilioSettingsOrderByWithRelationInput.schema';
import { TwilioSettingsWhereInputObjectSchema as TwilioSettingsWhereInputObjectSchema } from './objects/TwilioSettingsWhereInput.schema';
import { TwilioSettingsWhereUniqueInputObjectSchema as TwilioSettingsWhereUniqueInputObjectSchema } from './objects/TwilioSettingsWhereUniqueInput.schema';
import { TwilioSettingsScalarFieldEnumSchema } from './enums/TwilioSettingsScalarFieldEnum.schema';
// Select schema needs to be in file to prevent circular imports
//------------------------------------------------------
export const TwilioSettingsFindFirstSelectSchema: z.ZodType<Prisma.TwilioSettingsSelect> = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
accountSid: z.boolean().optional(),
authToken: z.boolean().optional(),
phoneNumber: z.boolean().optional(),
greetingMessage: z.boolean().optional(),
templates: z.boolean().optional(),
user: z.boolean().optional()
}).strict() as unknown as z.ZodType<Prisma.TwilioSettingsSelect>;
export const TwilioSettingsFindFirstSelectZodSchema = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
accountSid: z.boolean().optional(),
authToken: z.boolean().optional(),
phoneNumber: z.boolean().optional(),
greetingMessage: z.boolean().optional(),
templates: z.boolean().optional(),
user: z.boolean().optional()
}).strict();
export const TwilioSettingsFindFirstSchema: z.ZodType<Prisma.TwilioSettingsFindFirstArgs> = z.object({ select: TwilioSettingsFindFirstSelectSchema.optional(), include: z.lazy(() => TwilioSettingsIncludeObjectSchema.optional()), orderBy: z.union([TwilioSettingsOrderByWithRelationInputObjectSchema, TwilioSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: TwilioSettingsWhereInputObjectSchema.optional(), cursor: TwilioSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([TwilioSettingsScalarFieldEnumSchema, TwilioSettingsScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsFindFirstArgs>;
export const TwilioSettingsFindFirstZodSchema = z.object({ select: TwilioSettingsFindFirstSelectSchema.optional(), include: z.lazy(() => TwilioSettingsIncludeObjectSchema.optional()), orderBy: z.union([TwilioSettingsOrderByWithRelationInputObjectSchema, TwilioSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: TwilioSettingsWhereInputObjectSchema.optional(), cursor: TwilioSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([TwilioSettingsScalarFieldEnumSchema, TwilioSettingsScalarFieldEnumSchema.array()]).optional() }).strict();

View File

@@ -28,6 +28,9 @@ export const UserFindFirstSelectSchema: z.ZodType<Prisma.UserSelect> = z.object(
cloudFolders: z.boolean().optional(),
cloudFiles: z.boolean().optional(),
communications: z.boolean().optional(),
twilioSettings: z.boolean().optional(),
aiSettings: z.boolean().optional(),
officeHours: z.boolean().optional(),
_count: z.boolean().optional()
}).strict() as unknown as z.ZodType<Prisma.UserSelect>;
@@ -50,6 +53,9 @@ export const UserFindFirstSelectZodSchema = z.object({
cloudFolders: z.boolean().optional(),
cloudFiles: z.boolean().optional(),
communications: z.boolean().optional(),
twilioSettings: z.boolean().optional(),
aiSettings: z.boolean().optional(),
officeHours: z.boolean().optional(),
_count: z.boolean().optional()
}).strict();

View File

@@ -0,0 +1,28 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { AiSettingsIncludeObjectSchema as AiSettingsIncludeObjectSchema } from './objects/AiSettingsInclude.schema';
import { AiSettingsOrderByWithRelationInputObjectSchema as AiSettingsOrderByWithRelationInputObjectSchema } from './objects/AiSettingsOrderByWithRelationInput.schema';
import { AiSettingsWhereInputObjectSchema as AiSettingsWhereInputObjectSchema } from './objects/AiSettingsWhereInput.schema';
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './objects/AiSettingsWhereUniqueInput.schema';
import { AiSettingsScalarFieldEnumSchema } from './enums/AiSettingsScalarFieldEnum.schema';
// Select schema needs to be in file to prevent circular imports
//------------------------------------------------------
export const AiSettingsFindManySelectSchema: z.ZodType<Prisma.AiSettingsSelect> = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
apiKey: z.boolean().optional(),
user: z.boolean().optional()
}).strict() as unknown as z.ZodType<Prisma.AiSettingsSelect>;
export const AiSettingsFindManySelectZodSchema = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
apiKey: z.boolean().optional(),
user: z.boolean().optional()
}).strict();
export const AiSettingsFindManySchema: z.ZodType<Prisma.AiSettingsFindManyArgs> = z.object({ select: AiSettingsFindManySelectSchema.optional(), include: z.lazy(() => AiSettingsIncludeObjectSchema.optional()), orderBy: z.union([AiSettingsOrderByWithRelationInputObjectSchema, AiSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: AiSettingsWhereInputObjectSchema.optional(), cursor: AiSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([AiSettingsScalarFieldEnumSchema, AiSettingsScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.AiSettingsFindManyArgs>;
export const AiSettingsFindManyZodSchema = z.object({ select: AiSettingsFindManySelectSchema.optional(), include: z.lazy(() => AiSettingsIncludeObjectSchema.optional()), orderBy: z.union([AiSettingsOrderByWithRelationInputObjectSchema, AiSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: AiSettingsWhereInputObjectSchema.optional(), cursor: AiSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([AiSettingsScalarFieldEnumSchema, AiSettingsScalarFieldEnumSchema.array()]).optional() }).strict();

View File

@@ -0,0 +1,28 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { OfficeHoursIncludeObjectSchema as OfficeHoursIncludeObjectSchema } from './objects/OfficeHoursInclude.schema';
import { OfficeHoursOrderByWithRelationInputObjectSchema as OfficeHoursOrderByWithRelationInputObjectSchema } from './objects/OfficeHoursOrderByWithRelationInput.schema';
import { OfficeHoursWhereInputObjectSchema as OfficeHoursWhereInputObjectSchema } from './objects/OfficeHoursWhereInput.schema';
import { OfficeHoursWhereUniqueInputObjectSchema as OfficeHoursWhereUniqueInputObjectSchema } from './objects/OfficeHoursWhereUniqueInput.schema';
import { OfficeHoursScalarFieldEnumSchema } from './enums/OfficeHoursScalarFieldEnum.schema';
// Select schema needs to be in file to prevent circular imports
//------------------------------------------------------
export const OfficeHoursFindManySelectSchema: z.ZodType<Prisma.OfficeHoursSelect> = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
data: z.boolean().optional(),
user: z.boolean().optional()
}).strict() as unknown as z.ZodType<Prisma.OfficeHoursSelect>;
export const OfficeHoursFindManySelectZodSchema = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
data: z.boolean().optional(),
user: z.boolean().optional()
}).strict();
export const OfficeHoursFindManySchema: z.ZodType<Prisma.OfficeHoursFindManyArgs> = z.object({ select: OfficeHoursFindManySelectSchema.optional(), include: z.lazy(() => OfficeHoursIncludeObjectSchema.optional()), orderBy: z.union([OfficeHoursOrderByWithRelationInputObjectSchema, OfficeHoursOrderByWithRelationInputObjectSchema.array()]).optional(), where: OfficeHoursWhereInputObjectSchema.optional(), cursor: OfficeHoursWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([OfficeHoursScalarFieldEnumSchema, OfficeHoursScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.OfficeHoursFindManyArgs>;
export const OfficeHoursFindManyZodSchema = z.object({ select: OfficeHoursFindManySelectSchema.optional(), include: z.lazy(() => OfficeHoursIncludeObjectSchema.optional()), orderBy: z.union([OfficeHoursOrderByWithRelationInputObjectSchema, OfficeHoursOrderByWithRelationInputObjectSchema.array()]).optional(), where: OfficeHoursWhereInputObjectSchema.optional(), cursor: OfficeHoursWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([OfficeHoursScalarFieldEnumSchema, OfficeHoursScalarFieldEnumSchema.array()]).optional() }).strict();

View File

@@ -0,0 +1,36 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { TwilioSettingsIncludeObjectSchema as TwilioSettingsIncludeObjectSchema } from './objects/TwilioSettingsInclude.schema';
import { TwilioSettingsOrderByWithRelationInputObjectSchema as TwilioSettingsOrderByWithRelationInputObjectSchema } from './objects/TwilioSettingsOrderByWithRelationInput.schema';
import { TwilioSettingsWhereInputObjectSchema as TwilioSettingsWhereInputObjectSchema } from './objects/TwilioSettingsWhereInput.schema';
import { TwilioSettingsWhereUniqueInputObjectSchema as TwilioSettingsWhereUniqueInputObjectSchema } from './objects/TwilioSettingsWhereUniqueInput.schema';
import { TwilioSettingsScalarFieldEnumSchema } from './enums/TwilioSettingsScalarFieldEnum.schema';
// Select schema needs to be in file to prevent circular imports
//------------------------------------------------------
export const TwilioSettingsFindManySelectSchema: z.ZodType<Prisma.TwilioSettingsSelect> = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
accountSid: z.boolean().optional(),
authToken: z.boolean().optional(),
phoneNumber: z.boolean().optional(),
greetingMessage: z.boolean().optional(),
templates: z.boolean().optional(),
user: z.boolean().optional()
}).strict() as unknown as z.ZodType<Prisma.TwilioSettingsSelect>;
export const TwilioSettingsFindManySelectZodSchema = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
accountSid: z.boolean().optional(),
authToken: z.boolean().optional(),
phoneNumber: z.boolean().optional(),
greetingMessage: z.boolean().optional(),
templates: z.boolean().optional(),
user: z.boolean().optional()
}).strict();
export const TwilioSettingsFindManySchema: z.ZodType<Prisma.TwilioSettingsFindManyArgs> = z.object({ select: TwilioSettingsFindManySelectSchema.optional(), include: z.lazy(() => TwilioSettingsIncludeObjectSchema.optional()), orderBy: z.union([TwilioSettingsOrderByWithRelationInputObjectSchema, TwilioSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: TwilioSettingsWhereInputObjectSchema.optional(), cursor: TwilioSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([TwilioSettingsScalarFieldEnumSchema, TwilioSettingsScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsFindManyArgs>;
export const TwilioSettingsFindManyZodSchema = z.object({ select: TwilioSettingsFindManySelectSchema.optional(), include: z.lazy(() => TwilioSettingsIncludeObjectSchema.optional()), orderBy: z.union([TwilioSettingsOrderByWithRelationInputObjectSchema, TwilioSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: TwilioSettingsWhereInputObjectSchema.optional(), cursor: TwilioSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([TwilioSettingsScalarFieldEnumSchema, TwilioSettingsScalarFieldEnumSchema.array()]).optional() }).strict();

View File

@@ -28,6 +28,9 @@ export const UserFindManySelectSchema: z.ZodType<Prisma.UserSelect> = z.object({
cloudFolders: z.boolean().optional(),
cloudFiles: z.boolean().optional(),
communications: z.boolean().optional(),
twilioSettings: z.boolean().optional(),
aiSettings: z.boolean().optional(),
officeHours: z.boolean().optional(),
_count: z.boolean().optional()
}).strict() as unknown as z.ZodType<Prisma.UserSelect>;
@@ -50,6 +53,9 @@ export const UserFindManySelectZodSchema = z.object({
cloudFolders: z.boolean().optional(),
cloudFiles: z.boolean().optional(),
communications: z.boolean().optional(),
twilioSettings: z.boolean().optional(),
aiSettings: z.boolean().optional(),
officeHours: z.boolean().optional(),
_count: z.boolean().optional()
}).strict();

View File

@@ -0,0 +1,9 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { AiSettingsSelectObjectSchema as AiSettingsSelectObjectSchema } from './objects/AiSettingsSelect.schema';
import { AiSettingsIncludeObjectSchema as AiSettingsIncludeObjectSchema } from './objects/AiSettingsInclude.schema';
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './objects/AiSettingsWhereUniqueInput.schema';
export const AiSettingsFindUniqueSchema: z.ZodType<Prisma.AiSettingsFindUniqueArgs> = z.object({ select: AiSettingsSelectObjectSchema.optional(), include: AiSettingsIncludeObjectSchema.optional(), where: AiSettingsWhereUniqueInputObjectSchema }).strict() as unknown as z.ZodType<Prisma.AiSettingsFindUniqueArgs>;
export const AiSettingsFindUniqueZodSchema = z.object({ select: AiSettingsSelectObjectSchema.optional(), include: AiSettingsIncludeObjectSchema.optional(), where: AiSettingsWhereUniqueInputObjectSchema }).strict();

View File

@@ -0,0 +1,9 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { OfficeHoursSelectObjectSchema as OfficeHoursSelectObjectSchema } from './objects/OfficeHoursSelect.schema';
import { OfficeHoursIncludeObjectSchema as OfficeHoursIncludeObjectSchema } from './objects/OfficeHoursInclude.schema';
import { OfficeHoursWhereUniqueInputObjectSchema as OfficeHoursWhereUniqueInputObjectSchema } from './objects/OfficeHoursWhereUniqueInput.schema';
export const OfficeHoursFindUniqueSchema: z.ZodType<Prisma.OfficeHoursFindUniqueArgs> = z.object({ select: OfficeHoursSelectObjectSchema.optional(), include: OfficeHoursIncludeObjectSchema.optional(), where: OfficeHoursWhereUniqueInputObjectSchema }).strict() as unknown as z.ZodType<Prisma.OfficeHoursFindUniqueArgs>;
export const OfficeHoursFindUniqueZodSchema = z.object({ select: OfficeHoursSelectObjectSchema.optional(), include: OfficeHoursIncludeObjectSchema.optional(), where: OfficeHoursWhereUniqueInputObjectSchema }).strict();

View File

@@ -0,0 +1,9 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { AiSettingsSelectObjectSchema as AiSettingsSelectObjectSchema } from './objects/AiSettingsSelect.schema';
import { AiSettingsIncludeObjectSchema as AiSettingsIncludeObjectSchema } from './objects/AiSettingsInclude.schema';
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './objects/AiSettingsWhereUniqueInput.schema';
export const AiSettingsFindUniqueOrThrowSchema: z.ZodType<Prisma.AiSettingsFindUniqueOrThrowArgs> = z.object({ select: AiSettingsSelectObjectSchema.optional(), include: AiSettingsIncludeObjectSchema.optional(), where: AiSettingsWhereUniqueInputObjectSchema }).strict() as unknown as z.ZodType<Prisma.AiSettingsFindUniqueOrThrowArgs>;
export const AiSettingsFindUniqueOrThrowZodSchema = z.object({ select: AiSettingsSelectObjectSchema.optional(), include: AiSettingsIncludeObjectSchema.optional(), where: AiSettingsWhereUniqueInputObjectSchema }).strict();

View File

@@ -0,0 +1,9 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { OfficeHoursSelectObjectSchema as OfficeHoursSelectObjectSchema } from './objects/OfficeHoursSelect.schema';
import { OfficeHoursIncludeObjectSchema as OfficeHoursIncludeObjectSchema } from './objects/OfficeHoursInclude.schema';
import { OfficeHoursWhereUniqueInputObjectSchema as OfficeHoursWhereUniqueInputObjectSchema } from './objects/OfficeHoursWhereUniqueInput.schema';
export const OfficeHoursFindUniqueOrThrowSchema: z.ZodType<Prisma.OfficeHoursFindUniqueOrThrowArgs> = z.object({ select: OfficeHoursSelectObjectSchema.optional(), include: OfficeHoursIncludeObjectSchema.optional(), where: OfficeHoursWhereUniqueInputObjectSchema }).strict() as unknown as z.ZodType<Prisma.OfficeHoursFindUniqueOrThrowArgs>;
export const OfficeHoursFindUniqueOrThrowZodSchema = z.object({ select: OfficeHoursSelectObjectSchema.optional(), include: OfficeHoursIncludeObjectSchema.optional(), where: OfficeHoursWhereUniqueInputObjectSchema }).strict();

View File

@@ -0,0 +1,9 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { TwilioSettingsSelectObjectSchema as TwilioSettingsSelectObjectSchema } from './objects/TwilioSettingsSelect.schema';
import { TwilioSettingsIncludeObjectSchema as TwilioSettingsIncludeObjectSchema } from './objects/TwilioSettingsInclude.schema';
import { TwilioSettingsWhereUniqueInputObjectSchema as TwilioSettingsWhereUniqueInputObjectSchema } from './objects/TwilioSettingsWhereUniqueInput.schema';
export const TwilioSettingsFindUniqueOrThrowSchema: z.ZodType<Prisma.TwilioSettingsFindUniqueOrThrowArgs> = z.object({ select: TwilioSettingsSelectObjectSchema.optional(), include: TwilioSettingsIncludeObjectSchema.optional(), where: TwilioSettingsWhereUniqueInputObjectSchema }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsFindUniqueOrThrowArgs>;
export const TwilioSettingsFindUniqueOrThrowZodSchema = z.object({ select: TwilioSettingsSelectObjectSchema.optional(), include: TwilioSettingsIncludeObjectSchema.optional(), where: TwilioSettingsWhereUniqueInputObjectSchema }).strict();

View File

@@ -0,0 +1,9 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { TwilioSettingsSelectObjectSchema as TwilioSettingsSelectObjectSchema } from './objects/TwilioSettingsSelect.schema';
import { TwilioSettingsIncludeObjectSchema as TwilioSettingsIncludeObjectSchema } from './objects/TwilioSettingsInclude.schema';
import { TwilioSettingsWhereUniqueInputObjectSchema as TwilioSettingsWhereUniqueInputObjectSchema } from './objects/TwilioSettingsWhereUniqueInput.schema';
export const TwilioSettingsFindUniqueSchema: z.ZodType<Prisma.TwilioSettingsFindUniqueArgs> = z.object({ select: TwilioSettingsSelectObjectSchema.optional(), include: TwilioSettingsIncludeObjectSchema.optional(), where: TwilioSettingsWhereUniqueInputObjectSchema }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsFindUniqueArgs>;
export const TwilioSettingsFindUniqueZodSchema = z.object({ select: TwilioSettingsSelectObjectSchema.optional(), include: TwilioSettingsIncludeObjectSchema.optional(), where: TwilioSettingsWhereUniqueInputObjectSchema }).strict();

View File

@@ -0,0 +1,15 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { AiSettingsWhereInputObjectSchema as AiSettingsWhereInputObjectSchema } from './objects/AiSettingsWhereInput.schema';
import { AiSettingsOrderByWithAggregationInputObjectSchema as AiSettingsOrderByWithAggregationInputObjectSchema } from './objects/AiSettingsOrderByWithAggregationInput.schema';
import { AiSettingsScalarWhereWithAggregatesInputObjectSchema as AiSettingsScalarWhereWithAggregatesInputObjectSchema } from './objects/AiSettingsScalarWhereWithAggregatesInput.schema';
import { AiSettingsScalarFieldEnumSchema } from './enums/AiSettingsScalarFieldEnum.schema';
import { AiSettingsCountAggregateInputObjectSchema as AiSettingsCountAggregateInputObjectSchema } from './objects/AiSettingsCountAggregateInput.schema';
import { AiSettingsMinAggregateInputObjectSchema as AiSettingsMinAggregateInputObjectSchema } from './objects/AiSettingsMinAggregateInput.schema';
import { AiSettingsMaxAggregateInputObjectSchema as AiSettingsMaxAggregateInputObjectSchema } from './objects/AiSettingsMaxAggregateInput.schema';
import { AiSettingsAvgAggregateInputObjectSchema as AiSettingsAvgAggregateInputObjectSchema } from './objects/AiSettingsAvgAggregateInput.schema';
import { AiSettingsSumAggregateInputObjectSchema as AiSettingsSumAggregateInputObjectSchema } from './objects/AiSettingsSumAggregateInput.schema';
export const AiSettingsGroupBySchema: z.ZodType<Prisma.AiSettingsGroupByArgs> = z.object({ where: AiSettingsWhereInputObjectSchema.optional(), orderBy: z.union([AiSettingsOrderByWithAggregationInputObjectSchema, AiSettingsOrderByWithAggregationInputObjectSchema.array()]).optional(), having: AiSettingsScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(AiSettingsScalarFieldEnumSchema), _count: z.union([ z.literal(true), AiSettingsCountAggregateInputObjectSchema ]).optional(), _min: AiSettingsMinAggregateInputObjectSchema.optional(), _max: AiSettingsMaxAggregateInputObjectSchema.optional(), _avg: AiSettingsAvgAggregateInputObjectSchema.optional(), _sum: AiSettingsSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.AiSettingsGroupByArgs>;
export const AiSettingsGroupByZodSchema = z.object({ where: AiSettingsWhereInputObjectSchema.optional(), orderBy: z.union([AiSettingsOrderByWithAggregationInputObjectSchema, AiSettingsOrderByWithAggregationInputObjectSchema.array()]).optional(), having: AiSettingsScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(AiSettingsScalarFieldEnumSchema), _count: z.union([ z.literal(true), AiSettingsCountAggregateInputObjectSchema ]).optional(), _min: AiSettingsMinAggregateInputObjectSchema.optional(), _max: AiSettingsMaxAggregateInputObjectSchema.optional(), _avg: AiSettingsAvgAggregateInputObjectSchema.optional(), _sum: AiSettingsSumAggregateInputObjectSchema.optional() }).strict();

View File

@@ -0,0 +1,15 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { OfficeHoursWhereInputObjectSchema as OfficeHoursWhereInputObjectSchema } from './objects/OfficeHoursWhereInput.schema';
import { OfficeHoursOrderByWithAggregationInputObjectSchema as OfficeHoursOrderByWithAggregationInputObjectSchema } from './objects/OfficeHoursOrderByWithAggregationInput.schema';
import { OfficeHoursScalarWhereWithAggregatesInputObjectSchema as OfficeHoursScalarWhereWithAggregatesInputObjectSchema } from './objects/OfficeHoursScalarWhereWithAggregatesInput.schema';
import { OfficeHoursScalarFieldEnumSchema } from './enums/OfficeHoursScalarFieldEnum.schema';
import { OfficeHoursCountAggregateInputObjectSchema as OfficeHoursCountAggregateInputObjectSchema } from './objects/OfficeHoursCountAggregateInput.schema';
import { OfficeHoursMinAggregateInputObjectSchema as OfficeHoursMinAggregateInputObjectSchema } from './objects/OfficeHoursMinAggregateInput.schema';
import { OfficeHoursMaxAggregateInputObjectSchema as OfficeHoursMaxAggregateInputObjectSchema } from './objects/OfficeHoursMaxAggregateInput.schema';
import { OfficeHoursAvgAggregateInputObjectSchema as OfficeHoursAvgAggregateInputObjectSchema } from './objects/OfficeHoursAvgAggregateInput.schema';
import { OfficeHoursSumAggregateInputObjectSchema as OfficeHoursSumAggregateInputObjectSchema } from './objects/OfficeHoursSumAggregateInput.schema';
export const OfficeHoursGroupBySchema: z.ZodType<Prisma.OfficeHoursGroupByArgs> = z.object({ where: OfficeHoursWhereInputObjectSchema.optional(), orderBy: z.union([OfficeHoursOrderByWithAggregationInputObjectSchema, OfficeHoursOrderByWithAggregationInputObjectSchema.array()]).optional(), having: OfficeHoursScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(OfficeHoursScalarFieldEnumSchema), _count: z.union([ z.literal(true), OfficeHoursCountAggregateInputObjectSchema ]).optional(), _min: OfficeHoursMinAggregateInputObjectSchema.optional(), _max: OfficeHoursMaxAggregateInputObjectSchema.optional(), _avg: OfficeHoursAvgAggregateInputObjectSchema.optional(), _sum: OfficeHoursSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.OfficeHoursGroupByArgs>;
export const OfficeHoursGroupByZodSchema = z.object({ where: OfficeHoursWhereInputObjectSchema.optional(), orderBy: z.union([OfficeHoursOrderByWithAggregationInputObjectSchema, OfficeHoursOrderByWithAggregationInputObjectSchema.array()]).optional(), having: OfficeHoursScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(OfficeHoursScalarFieldEnumSchema), _count: z.union([ z.literal(true), OfficeHoursCountAggregateInputObjectSchema ]).optional(), _min: OfficeHoursMinAggregateInputObjectSchema.optional(), _max: OfficeHoursMaxAggregateInputObjectSchema.optional(), _avg: OfficeHoursAvgAggregateInputObjectSchema.optional(), _sum: OfficeHoursSumAggregateInputObjectSchema.optional() }).strict();

View File

@@ -0,0 +1,15 @@
import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { TwilioSettingsWhereInputObjectSchema as TwilioSettingsWhereInputObjectSchema } from './objects/TwilioSettingsWhereInput.schema';
import { TwilioSettingsOrderByWithAggregationInputObjectSchema as TwilioSettingsOrderByWithAggregationInputObjectSchema } from './objects/TwilioSettingsOrderByWithAggregationInput.schema';
import { TwilioSettingsScalarWhereWithAggregatesInputObjectSchema as TwilioSettingsScalarWhereWithAggregatesInputObjectSchema } from './objects/TwilioSettingsScalarWhereWithAggregatesInput.schema';
import { TwilioSettingsScalarFieldEnumSchema } from './enums/TwilioSettingsScalarFieldEnum.schema';
import { TwilioSettingsCountAggregateInputObjectSchema as TwilioSettingsCountAggregateInputObjectSchema } from './objects/TwilioSettingsCountAggregateInput.schema';
import { TwilioSettingsMinAggregateInputObjectSchema as TwilioSettingsMinAggregateInputObjectSchema } from './objects/TwilioSettingsMinAggregateInput.schema';
import { TwilioSettingsMaxAggregateInputObjectSchema as TwilioSettingsMaxAggregateInputObjectSchema } from './objects/TwilioSettingsMaxAggregateInput.schema';
import { TwilioSettingsAvgAggregateInputObjectSchema as TwilioSettingsAvgAggregateInputObjectSchema } from './objects/TwilioSettingsAvgAggregateInput.schema';
import { TwilioSettingsSumAggregateInputObjectSchema as TwilioSettingsSumAggregateInputObjectSchema } from './objects/TwilioSettingsSumAggregateInput.schema';
export const TwilioSettingsGroupBySchema: z.ZodType<Prisma.TwilioSettingsGroupByArgs> = z.object({ where: TwilioSettingsWhereInputObjectSchema.optional(), orderBy: z.union([TwilioSettingsOrderByWithAggregationInputObjectSchema, TwilioSettingsOrderByWithAggregationInputObjectSchema.array()]).optional(), having: TwilioSettingsScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(TwilioSettingsScalarFieldEnumSchema), _count: z.union([ z.literal(true), TwilioSettingsCountAggregateInputObjectSchema ]).optional(), _min: TwilioSettingsMinAggregateInputObjectSchema.optional(), _max: TwilioSettingsMaxAggregateInputObjectSchema.optional(), _avg: TwilioSettingsAvgAggregateInputObjectSchema.optional(), _sum: TwilioSettingsSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsGroupByArgs>;
export const TwilioSettingsGroupByZodSchema = z.object({ where: TwilioSettingsWhereInputObjectSchema.optional(), orderBy: z.union([TwilioSettingsOrderByWithAggregationInputObjectSchema, TwilioSettingsOrderByWithAggregationInputObjectSchema.array()]).optional(), having: TwilioSettingsScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(TwilioSettingsScalarFieldEnumSchema), _count: z.union([ z.literal(true), TwilioSettingsCountAggregateInputObjectSchema ]).optional(), _min: TwilioSettingsMinAggregateInputObjectSchema.optional(), _max: TwilioSettingsMaxAggregateInputObjectSchema.optional(), _avg: TwilioSettingsAvgAggregateInputObjectSchema.optional(), _sum: TwilioSettingsSumAggregateInputObjectSchema.optional() }).strict();

View File

@@ -23,8 +23,12 @@ export * from './enums/CloudFileScalarFieldEnum.schema'
export * from './enums/CloudFileChunkScalarFieldEnum.schema'
export * from './enums/CommunicationScalarFieldEnum.schema'
export * from './enums/PatientDocumentScalarFieldEnum.schema'
export * from './enums/TwilioSettingsScalarFieldEnum.schema'
export * from './enums/AiSettingsScalarFieldEnum.schema'
export * from './enums/OfficeHoursScalarFieldEnum.schema'
export * from './enums/SortOrder.schema'
export * from './enums/NullableJsonNullValueInput.schema'
export * from './enums/JsonNullValueInput.schema'
export * from './enums/QueryMode.schema'
export * from './enums/NullsOrder.schema'
export * from './enums/JsonNullValueFilter.schema'
@@ -448,6 +452,57 @@ export * from './updateManyAndReturnPatientDocument.schema'
export * from './upsertOnePatientDocument.schema'
export * from './aggregatePatientDocument.schema'
export * from './groupByPatientDocument.schema'
export * from './findUniqueTwilioSettings.schema'
export * from './findUniqueOrThrowTwilioSettings.schema'
export * from './findFirstTwilioSettings.schema'
export * from './findFirstOrThrowTwilioSettings.schema'
export * from './findManyTwilioSettings.schema'
export * from './countTwilioSettings.schema'
export * from './createOneTwilioSettings.schema'
export * from './createManyTwilioSettings.schema'
export * from './createManyAndReturnTwilioSettings.schema'
export * from './deleteOneTwilioSettings.schema'
export * from './deleteManyTwilioSettings.schema'
export * from './updateOneTwilioSettings.schema'
export * from './updateManyTwilioSettings.schema'
export * from './updateManyAndReturnTwilioSettings.schema'
export * from './upsertOneTwilioSettings.schema'
export * from './aggregateTwilioSettings.schema'
export * from './groupByTwilioSettings.schema'
export * from './findUniqueAiSettings.schema'
export * from './findUniqueOrThrowAiSettings.schema'
export * from './findFirstAiSettings.schema'
export * from './findFirstOrThrowAiSettings.schema'
export * from './findManyAiSettings.schema'
export * from './countAiSettings.schema'
export * from './createOneAiSettings.schema'
export * from './createManyAiSettings.schema'
export * from './createManyAndReturnAiSettings.schema'
export * from './deleteOneAiSettings.schema'
export * from './deleteManyAiSettings.schema'
export * from './updateOneAiSettings.schema'
export * from './updateManyAiSettings.schema'
export * from './updateManyAndReturnAiSettings.schema'
export * from './upsertOneAiSettings.schema'
export * from './aggregateAiSettings.schema'
export * from './groupByAiSettings.schema'
export * from './findUniqueOfficeHours.schema'
export * from './findUniqueOrThrowOfficeHours.schema'
export * from './findFirstOfficeHours.schema'
export * from './findFirstOrThrowOfficeHours.schema'
export * from './findManyOfficeHours.schema'
export * from './countOfficeHours.schema'
export * from './createOneOfficeHours.schema'
export * from './createManyOfficeHours.schema'
export * from './createManyAndReturnOfficeHours.schema'
export * from './deleteOneOfficeHours.schema'
export * from './deleteManyOfficeHours.schema'
export * from './updateOneOfficeHours.schema'
export * from './updateManyOfficeHours.schema'
export * from './updateManyAndReturnOfficeHours.schema'
export * from './upsertOneOfficeHours.schema'
export * from './aggregateOfficeHours.schema'
export * from './groupByOfficeHours.schema'
export * from './results/UserFindUniqueResult.schema'
export * from './results/UserFindFirstResult.schema'
export * from './results/UserFindManyResult.schema'
@@ -760,6 +815,45 @@ export * from './results/PatientDocumentDeleteManyResult.schema'
export * from './results/PatientDocumentAggregateResult.schema'
export * from './results/PatientDocumentGroupByResult.schema'
export * from './results/PatientDocumentCountResult.schema'
export * from './results/TwilioSettingsFindUniqueResult.schema'
export * from './results/TwilioSettingsFindFirstResult.schema'
export * from './results/TwilioSettingsFindManyResult.schema'
export * from './results/TwilioSettingsCreateResult.schema'
export * from './results/TwilioSettingsCreateManyResult.schema'
export * from './results/TwilioSettingsUpdateResult.schema'
export * from './results/TwilioSettingsUpdateManyResult.schema'
export * from './results/TwilioSettingsUpsertResult.schema'
export * from './results/TwilioSettingsDeleteResult.schema'
export * from './results/TwilioSettingsDeleteManyResult.schema'
export * from './results/TwilioSettingsAggregateResult.schema'
export * from './results/TwilioSettingsGroupByResult.schema'
export * from './results/TwilioSettingsCountResult.schema'
export * from './results/AiSettingsFindUniqueResult.schema'
export * from './results/AiSettingsFindFirstResult.schema'
export * from './results/AiSettingsFindManyResult.schema'
export * from './results/AiSettingsCreateResult.schema'
export * from './results/AiSettingsCreateManyResult.schema'
export * from './results/AiSettingsUpdateResult.schema'
export * from './results/AiSettingsUpdateManyResult.schema'
export * from './results/AiSettingsUpsertResult.schema'
export * from './results/AiSettingsDeleteResult.schema'
export * from './results/AiSettingsDeleteManyResult.schema'
export * from './results/AiSettingsAggregateResult.schema'
export * from './results/AiSettingsGroupByResult.schema'
export * from './results/AiSettingsCountResult.schema'
export * from './results/OfficeHoursFindUniqueResult.schema'
export * from './results/OfficeHoursFindFirstResult.schema'
export * from './results/OfficeHoursFindManyResult.schema'
export * from './results/OfficeHoursCreateResult.schema'
export * from './results/OfficeHoursCreateManyResult.schema'
export * from './results/OfficeHoursUpdateResult.schema'
export * from './results/OfficeHoursUpdateManyResult.schema'
export * from './results/OfficeHoursUpsertResult.schema'
export * from './results/OfficeHoursDeleteResult.schema'
export * from './results/OfficeHoursDeleteManyResult.schema'
export * from './results/OfficeHoursAggregateResult.schema'
export * from './results/OfficeHoursGroupByResult.schema'
export * from './results/OfficeHoursCountResult.schema'
export * from './results/index'
export * from './objects/index'
export * from './variants/pure/User.pure'
@@ -786,6 +880,9 @@ export * from './variants/pure/CloudFile.pure'
export * from './variants/pure/CloudFileChunk.pure'
export * from './variants/pure/Communication.pure'
export * from './variants/pure/PatientDocument.pure'
export * from './variants/pure/TwilioSettings.pure'
export * from './variants/pure/AiSettings.pure'
export * from './variants/pure/OfficeHours.pure'
export * from './variants/pure/index'
export * from './variants/input/User.input'
export * from './variants/input/Patient.input'
@@ -811,6 +908,9 @@ export * from './variants/input/CloudFile.input'
export * from './variants/input/CloudFileChunk.input'
export * from './variants/input/Communication.input'
export * from './variants/input/PatientDocument.input'
export * from './variants/input/TwilioSettings.input'
export * from './variants/input/AiSettings.input'
export * from './variants/input/OfficeHours.input'
export * from './variants/input/index'
export * from './variants/result/User.result'
export * from './variants/result/Patient.result'
@@ -836,5 +936,8 @@ export * from './variants/result/CloudFile.result'
export * from './variants/result/CloudFileChunk.result'
export * from './variants/result/Communication.result'
export * from './variants/result/PatientDocument.result'
export * from './variants/result/TwilioSettings.result'
export * from './variants/result/AiSettings.result'
export * from './variants/result/OfficeHours.result'
export * from './variants/result/index'
export * from './variants/index'

View File

@@ -0,0 +1,11 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { AiSettingsSelectObjectSchema as AiSettingsSelectObjectSchema } from './AiSettingsSelect.schema';
import { AiSettingsIncludeObjectSchema as AiSettingsIncludeObjectSchema } from './AiSettingsInclude.schema'
const makeSchema = () => z.object({
select: z.lazy(() => AiSettingsSelectObjectSchema).optional(),
include: z.lazy(() => AiSettingsIncludeObjectSchema).optional()
}).strict();
export const AiSettingsArgsObjectSchema = makeSchema();
export const AiSettingsArgsObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,10 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
const makeSchema = () => z.object({
id: z.literal(true).optional(),
userId: z.literal(true).optional()
}).strict();
export const AiSettingsAvgAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsAvgAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsAvgAggregateInputType>;
export const AiSettingsAvgAggregateInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,10 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { SortOrderSchema } from '../enums/SortOrder.schema'
const makeSchema = () => z.object({
id: SortOrderSchema.optional(),
userId: SortOrderSchema.optional()
}).strict();
export const AiSettingsAvgOrderByAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsAvgOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsAvgOrderByAggregateInput>;
export const AiSettingsAvgOrderByAggregateInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,12 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
const makeSchema = () => z.object({
id: z.literal(true).optional(),
userId: z.literal(true).optional(),
apiKey: z.literal(true).optional(),
_all: z.literal(true).optional()
}).strict();
export const AiSettingsCountAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsCountAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsCountAggregateInputType>;
export const AiSettingsCountAggregateInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,11 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { SortOrderSchema } from '../enums/SortOrder.schema'
const makeSchema = () => z.object({
id: SortOrderSchema.optional(),
userId: SortOrderSchema.optional(),
apiKey: SortOrderSchema.optional()
}).strict();
export const AiSettingsCountOrderByAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsCountOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsCountOrderByAggregateInput>;
export const AiSettingsCountOrderByAggregateInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,10 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { UserCreateNestedOneWithoutAiSettingsInputObjectSchema as UserCreateNestedOneWithoutAiSettingsInputObjectSchema } from './UserCreateNestedOneWithoutAiSettingsInput.schema'
const makeSchema = () => z.object({
apiKey: z.string(),
user: z.lazy(() => UserCreateNestedOneWithoutAiSettingsInputObjectSchema)
}).strict();
export const AiSettingsCreateInputObjectSchema: z.ZodType<Prisma.AiSettingsCreateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsCreateInput>;
export const AiSettingsCreateInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,11 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
const makeSchema = () => z.object({
id: z.number().int().optional(),
userId: z.number().int(),
apiKey: z.string()
}).strict();
export const AiSettingsCreateManyInputObjectSchema: z.ZodType<Prisma.AiSettingsCreateManyInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsCreateManyInput>;
export const AiSettingsCreateManyInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,14 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { AiSettingsCreateWithoutUserInputObjectSchema as AiSettingsCreateWithoutUserInputObjectSchema } from './AiSettingsCreateWithoutUserInput.schema';
import { AiSettingsUncheckedCreateWithoutUserInputObjectSchema as AiSettingsUncheckedCreateWithoutUserInputObjectSchema } from './AiSettingsUncheckedCreateWithoutUserInput.schema';
import { AiSettingsCreateOrConnectWithoutUserInputObjectSchema as AiSettingsCreateOrConnectWithoutUserInputObjectSchema } from './AiSettingsCreateOrConnectWithoutUserInput.schema';
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './AiSettingsWhereUniqueInput.schema'
const makeSchema = () => z.object({
create: z.union([z.lazy(() => AiSettingsCreateWithoutUserInputObjectSchema), z.lazy(() => AiSettingsUncheckedCreateWithoutUserInputObjectSchema)]).optional(),
connectOrCreate: z.lazy(() => AiSettingsCreateOrConnectWithoutUserInputObjectSchema).optional(),
connect: z.lazy(() => AiSettingsWhereUniqueInputObjectSchema).optional()
}).strict();
export const AiSettingsCreateNestedOneWithoutUserInputObjectSchema: z.ZodType<Prisma.AiSettingsCreateNestedOneWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsCreateNestedOneWithoutUserInput>;
export const AiSettingsCreateNestedOneWithoutUserInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,12 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './AiSettingsWhereUniqueInput.schema';
import { AiSettingsCreateWithoutUserInputObjectSchema as AiSettingsCreateWithoutUserInputObjectSchema } from './AiSettingsCreateWithoutUserInput.schema';
import { AiSettingsUncheckedCreateWithoutUserInputObjectSchema as AiSettingsUncheckedCreateWithoutUserInputObjectSchema } from './AiSettingsUncheckedCreateWithoutUserInput.schema'
const makeSchema = () => z.object({
where: z.lazy(() => AiSettingsWhereUniqueInputObjectSchema),
create: z.union([z.lazy(() => AiSettingsCreateWithoutUserInputObjectSchema), z.lazy(() => AiSettingsUncheckedCreateWithoutUserInputObjectSchema)])
}).strict();
export const AiSettingsCreateOrConnectWithoutUserInputObjectSchema: z.ZodType<Prisma.AiSettingsCreateOrConnectWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsCreateOrConnectWithoutUserInput>;
export const AiSettingsCreateOrConnectWithoutUserInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,9 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
const makeSchema = () => z.object({
apiKey: z.string()
}).strict();
export const AiSettingsCreateWithoutUserInputObjectSchema: z.ZodType<Prisma.AiSettingsCreateWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsCreateWithoutUserInput>;
export const AiSettingsCreateWithoutUserInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,9 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { UserArgsObjectSchema as UserArgsObjectSchema } from './UserArgs.schema'
const makeSchema = () => z.object({
user: z.union([z.boolean(), z.lazy(() => UserArgsObjectSchema)]).optional()
}).strict();
export const AiSettingsIncludeObjectSchema: z.ZodType<Prisma.AiSettingsInclude> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsInclude>;
export const AiSettingsIncludeObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,11 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
const makeSchema = () => z.object({
id: z.literal(true).optional(),
userId: z.literal(true).optional(),
apiKey: z.literal(true).optional()
}).strict();
export const AiSettingsMaxAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsMaxAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsMaxAggregateInputType>;
export const AiSettingsMaxAggregateInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,11 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { SortOrderSchema } from '../enums/SortOrder.schema'
const makeSchema = () => z.object({
id: SortOrderSchema.optional(),
userId: SortOrderSchema.optional(),
apiKey: SortOrderSchema.optional()
}).strict();
export const AiSettingsMaxOrderByAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsMaxOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsMaxOrderByAggregateInput>;
export const AiSettingsMaxOrderByAggregateInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,11 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
const makeSchema = () => z.object({
id: z.literal(true).optional(),
userId: z.literal(true).optional(),
apiKey: z.literal(true).optional()
}).strict();
export const AiSettingsMinAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsMinAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsMinAggregateInputType>;
export const AiSettingsMinAggregateInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,11 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { SortOrderSchema } from '../enums/SortOrder.schema'
const makeSchema = () => z.object({
id: SortOrderSchema.optional(),
userId: SortOrderSchema.optional(),
apiKey: SortOrderSchema.optional()
}).strict();
export const AiSettingsMinOrderByAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsMinOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsMinOrderByAggregateInput>;
export const AiSettingsMinOrderByAggregateInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,10 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { AiSettingsWhereInputObjectSchema as AiSettingsWhereInputObjectSchema } from './AiSettingsWhereInput.schema'
const makeSchema = () => z.object({
is: z.lazy(() => AiSettingsWhereInputObjectSchema).optional().nullable(),
isNot: z.lazy(() => AiSettingsWhereInputObjectSchema).optional().nullable()
}).strict();
export const AiSettingsNullableScalarRelationFilterObjectSchema: z.ZodType<Prisma.AiSettingsNullableScalarRelationFilter> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsNullableScalarRelationFilter>;
export const AiSettingsNullableScalarRelationFilterObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,21 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { SortOrderSchema } from '../enums/SortOrder.schema';
import { AiSettingsCountOrderByAggregateInputObjectSchema as AiSettingsCountOrderByAggregateInputObjectSchema } from './AiSettingsCountOrderByAggregateInput.schema';
import { AiSettingsAvgOrderByAggregateInputObjectSchema as AiSettingsAvgOrderByAggregateInputObjectSchema } from './AiSettingsAvgOrderByAggregateInput.schema';
import { AiSettingsMaxOrderByAggregateInputObjectSchema as AiSettingsMaxOrderByAggregateInputObjectSchema } from './AiSettingsMaxOrderByAggregateInput.schema';
import { AiSettingsMinOrderByAggregateInputObjectSchema as AiSettingsMinOrderByAggregateInputObjectSchema } from './AiSettingsMinOrderByAggregateInput.schema';
import { AiSettingsSumOrderByAggregateInputObjectSchema as AiSettingsSumOrderByAggregateInputObjectSchema } from './AiSettingsSumOrderByAggregateInput.schema'
const makeSchema = () => z.object({
id: SortOrderSchema.optional(),
userId: SortOrderSchema.optional(),
apiKey: SortOrderSchema.optional(),
_count: z.lazy(() => AiSettingsCountOrderByAggregateInputObjectSchema).optional(),
_avg: z.lazy(() => AiSettingsAvgOrderByAggregateInputObjectSchema).optional(),
_max: z.lazy(() => AiSettingsMaxOrderByAggregateInputObjectSchema).optional(),
_min: z.lazy(() => AiSettingsMinOrderByAggregateInputObjectSchema).optional(),
_sum: z.lazy(() => AiSettingsSumOrderByAggregateInputObjectSchema).optional()
}).strict();
export const AiSettingsOrderByWithAggregationInputObjectSchema: z.ZodType<Prisma.AiSettingsOrderByWithAggregationInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsOrderByWithAggregationInput>;
export const AiSettingsOrderByWithAggregationInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,13 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { SortOrderSchema } from '../enums/SortOrder.schema';
import { UserOrderByWithRelationInputObjectSchema as UserOrderByWithRelationInputObjectSchema } from './UserOrderByWithRelationInput.schema'
const makeSchema = () => z.object({
id: SortOrderSchema.optional(),
userId: SortOrderSchema.optional(),
apiKey: SortOrderSchema.optional(),
user: z.lazy(() => UserOrderByWithRelationInputObjectSchema).optional()
}).strict();
export const AiSettingsOrderByWithRelationInputObjectSchema: z.ZodType<Prisma.AiSettingsOrderByWithRelationInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsOrderByWithRelationInput>;
export const AiSettingsOrderByWithRelationInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,15 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { IntWithAggregatesFilterObjectSchema as IntWithAggregatesFilterObjectSchema } from './IntWithAggregatesFilter.schema';
import { StringWithAggregatesFilterObjectSchema as StringWithAggregatesFilterObjectSchema } from './StringWithAggregatesFilter.schema'
const aisettingsscalarwherewithaggregatesinputSchema = z.object({
AND: z.union([z.lazy(() => AiSettingsScalarWhereWithAggregatesInputObjectSchema), z.lazy(() => AiSettingsScalarWhereWithAggregatesInputObjectSchema).array()]).optional(),
OR: z.lazy(() => AiSettingsScalarWhereWithAggregatesInputObjectSchema).array().optional(),
NOT: z.union([z.lazy(() => AiSettingsScalarWhereWithAggregatesInputObjectSchema), z.lazy(() => AiSettingsScalarWhereWithAggregatesInputObjectSchema).array()]).optional(),
id: z.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
userId: z.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
apiKey: z.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()]).optional()
}).strict();
export const AiSettingsScalarWhereWithAggregatesInputObjectSchema: z.ZodType<Prisma.AiSettingsScalarWhereWithAggregatesInput> = aisettingsscalarwherewithaggregatesinputSchema as unknown as z.ZodType<Prisma.AiSettingsScalarWhereWithAggregatesInput>;
export const AiSettingsScalarWhereWithAggregatesInputObjectZodSchema = aisettingsscalarwherewithaggregatesinputSchema;

View File

@@ -0,0 +1,12 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { UserArgsObjectSchema as UserArgsObjectSchema } from './UserArgs.schema'
const makeSchema = () => z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
apiKey: z.boolean().optional(),
user: z.union([z.boolean(), z.lazy(() => UserArgsObjectSchema)]).optional()
}).strict();
export const AiSettingsSelectObjectSchema: z.ZodType<Prisma.AiSettingsSelect> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsSelect>;
export const AiSettingsSelectObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,10 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
const makeSchema = () => z.object({
id: z.literal(true).optional(),
userId: z.literal(true).optional()
}).strict();
export const AiSettingsSumAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsSumAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsSumAggregateInputType>;
export const AiSettingsSumAggregateInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,10 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { SortOrderSchema } from '../enums/SortOrder.schema'
const makeSchema = () => z.object({
id: SortOrderSchema.optional(),
userId: SortOrderSchema.optional()
}).strict();
export const AiSettingsSumOrderByAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsSumOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsSumOrderByAggregateInput>;
export const AiSettingsSumOrderByAggregateInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,11 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
const makeSchema = () => z.object({
id: z.number().int().optional(),
userId: z.number().int(),
apiKey: z.string()
}).strict();
export const AiSettingsUncheckedCreateInputObjectSchema: z.ZodType<Prisma.AiSettingsUncheckedCreateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUncheckedCreateInput>;
export const AiSettingsUncheckedCreateInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,14 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { AiSettingsCreateWithoutUserInputObjectSchema as AiSettingsCreateWithoutUserInputObjectSchema } from './AiSettingsCreateWithoutUserInput.schema';
import { AiSettingsUncheckedCreateWithoutUserInputObjectSchema as AiSettingsUncheckedCreateWithoutUserInputObjectSchema } from './AiSettingsUncheckedCreateWithoutUserInput.schema';
import { AiSettingsCreateOrConnectWithoutUserInputObjectSchema as AiSettingsCreateOrConnectWithoutUserInputObjectSchema } from './AiSettingsCreateOrConnectWithoutUserInput.schema';
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './AiSettingsWhereUniqueInput.schema'
const makeSchema = () => z.object({
create: z.union([z.lazy(() => AiSettingsCreateWithoutUserInputObjectSchema), z.lazy(() => AiSettingsUncheckedCreateWithoutUserInputObjectSchema)]).optional(),
connectOrCreate: z.lazy(() => AiSettingsCreateOrConnectWithoutUserInputObjectSchema).optional(),
connect: z.lazy(() => AiSettingsWhereUniqueInputObjectSchema).optional()
}).strict();
export const AiSettingsUncheckedCreateNestedOneWithoutUserInputObjectSchema: z.ZodType<Prisma.AiSettingsUncheckedCreateNestedOneWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUncheckedCreateNestedOneWithoutUserInput>;
export const AiSettingsUncheckedCreateNestedOneWithoutUserInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,10 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
const makeSchema = () => z.object({
id: z.number().int().optional(),
apiKey: z.string()
}).strict();
export const AiSettingsUncheckedCreateWithoutUserInputObjectSchema: z.ZodType<Prisma.AiSettingsUncheckedCreateWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUncheckedCreateWithoutUserInput>;
export const AiSettingsUncheckedCreateWithoutUserInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,12 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { IntFieldUpdateOperationsInputObjectSchema as IntFieldUpdateOperationsInputObjectSchema } from './IntFieldUpdateOperationsInput.schema';
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema'
const makeSchema = () => z.object({
id: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
userId: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional()
}).strict();
export const AiSettingsUncheckedUpdateInputObjectSchema: z.ZodType<Prisma.AiSettingsUncheckedUpdateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUncheckedUpdateInput>;
export const AiSettingsUncheckedUpdateInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,12 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { IntFieldUpdateOperationsInputObjectSchema as IntFieldUpdateOperationsInputObjectSchema } from './IntFieldUpdateOperationsInput.schema';
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema'
const makeSchema = () => z.object({
id: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
userId: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional()
}).strict();
export const AiSettingsUncheckedUpdateManyInputObjectSchema: z.ZodType<Prisma.AiSettingsUncheckedUpdateManyInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUncheckedUpdateManyInput>;
export const AiSettingsUncheckedUpdateManyInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,23 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { AiSettingsCreateWithoutUserInputObjectSchema as AiSettingsCreateWithoutUserInputObjectSchema } from './AiSettingsCreateWithoutUserInput.schema';
import { AiSettingsUncheckedCreateWithoutUserInputObjectSchema as AiSettingsUncheckedCreateWithoutUserInputObjectSchema } from './AiSettingsUncheckedCreateWithoutUserInput.schema';
import { AiSettingsCreateOrConnectWithoutUserInputObjectSchema as AiSettingsCreateOrConnectWithoutUserInputObjectSchema } from './AiSettingsCreateOrConnectWithoutUserInput.schema';
import { AiSettingsUpsertWithoutUserInputObjectSchema as AiSettingsUpsertWithoutUserInputObjectSchema } from './AiSettingsUpsertWithoutUserInput.schema';
import { AiSettingsWhereInputObjectSchema as AiSettingsWhereInputObjectSchema } from './AiSettingsWhereInput.schema';
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './AiSettingsWhereUniqueInput.schema';
import { AiSettingsUpdateToOneWithWhereWithoutUserInputObjectSchema as AiSettingsUpdateToOneWithWhereWithoutUserInputObjectSchema } from './AiSettingsUpdateToOneWithWhereWithoutUserInput.schema';
import { AiSettingsUpdateWithoutUserInputObjectSchema as AiSettingsUpdateWithoutUserInputObjectSchema } from './AiSettingsUpdateWithoutUserInput.schema';
import { AiSettingsUncheckedUpdateWithoutUserInputObjectSchema as AiSettingsUncheckedUpdateWithoutUserInputObjectSchema } from './AiSettingsUncheckedUpdateWithoutUserInput.schema'
const makeSchema = () => z.object({
create: z.union([z.lazy(() => AiSettingsCreateWithoutUserInputObjectSchema), z.lazy(() => AiSettingsUncheckedCreateWithoutUserInputObjectSchema)]).optional(),
connectOrCreate: z.lazy(() => AiSettingsCreateOrConnectWithoutUserInputObjectSchema).optional(),
upsert: z.lazy(() => AiSettingsUpsertWithoutUserInputObjectSchema).optional(),
disconnect: z.union([z.boolean(), z.lazy(() => AiSettingsWhereInputObjectSchema)]).optional(),
delete: z.union([z.boolean(), z.lazy(() => AiSettingsWhereInputObjectSchema)]).optional(),
connect: z.lazy(() => AiSettingsWhereUniqueInputObjectSchema).optional(),
update: z.union([z.lazy(() => AiSettingsUpdateToOneWithWhereWithoutUserInputObjectSchema), z.lazy(() => AiSettingsUpdateWithoutUserInputObjectSchema), z.lazy(() => AiSettingsUncheckedUpdateWithoutUserInputObjectSchema)]).optional()
}).strict();
export const AiSettingsUncheckedUpdateOneWithoutUserNestedInputObjectSchema: z.ZodType<Prisma.AiSettingsUncheckedUpdateOneWithoutUserNestedInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUncheckedUpdateOneWithoutUserNestedInput>;
export const AiSettingsUncheckedUpdateOneWithoutUserNestedInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,11 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { IntFieldUpdateOperationsInputObjectSchema as IntFieldUpdateOperationsInputObjectSchema } from './IntFieldUpdateOperationsInput.schema';
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema'
const makeSchema = () => z.object({
id: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional()
}).strict();
export const AiSettingsUncheckedUpdateWithoutUserInputObjectSchema: z.ZodType<Prisma.AiSettingsUncheckedUpdateWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUncheckedUpdateWithoutUserInput>;
export const AiSettingsUncheckedUpdateWithoutUserInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,11 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
import { UserUpdateOneRequiredWithoutAiSettingsNestedInputObjectSchema as UserUpdateOneRequiredWithoutAiSettingsNestedInputObjectSchema } from './UserUpdateOneRequiredWithoutAiSettingsNestedInput.schema'
const makeSchema = () => z.object({
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
user: z.lazy(() => UserUpdateOneRequiredWithoutAiSettingsNestedInputObjectSchema).optional()
}).strict();
export const AiSettingsUpdateInputObjectSchema: z.ZodType<Prisma.AiSettingsUpdateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUpdateInput>;
export const AiSettingsUpdateInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,9 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema'
const makeSchema = () => z.object({
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional()
}).strict();
export const AiSettingsUpdateManyMutationInputObjectSchema: z.ZodType<Prisma.AiSettingsUpdateManyMutationInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUpdateManyMutationInput>;
export const AiSettingsUpdateManyMutationInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,23 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { AiSettingsCreateWithoutUserInputObjectSchema as AiSettingsCreateWithoutUserInputObjectSchema } from './AiSettingsCreateWithoutUserInput.schema';
import { AiSettingsUncheckedCreateWithoutUserInputObjectSchema as AiSettingsUncheckedCreateWithoutUserInputObjectSchema } from './AiSettingsUncheckedCreateWithoutUserInput.schema';
import { AiSettingsCreateOrConnectWithoutUserInputObjectSchema as AiSettingsCreateOrConnectWithoutUserInputObjectSchema } from './AiSettingsCreateOrConnectWithoutUserInput.schema';
import { AiSettingsUpsertWithoutUserInputObjectSchema as AiSettingsUpsertWithoutUserInputObjectSchema } from './AiSettingsUpsertWithoutUserInput.schema';
import { AiSettingsWhereInputObjectSchema as AiSettingsWhereInputObjectSchema } from './AiSettingsWhereInput.schema';
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './AiSettingsWhereUniqueInput.schema';
import { AiSettingsUpdateToOneWithWhereWithoutUserInputObjectSchema as AiSettingsUpdateToOneWithWhereWithoutUserInputObjectSchema } from './AiSettingsUpdateToOneWithWhereWithoutUserInput.schema';
import { AiSettingsUpdateWithoutUserInputObjectSchema as AiSettingsUpdateWithoutUserInputObjectSchema } from './AiSettingsUpdateWithoutUserInput.schema';
import { AiSettingsUncheckedUpdateWithoutUserInputObjectSchema as AiSettingsUncheckedUpdateWithoutUserInputObjectSchema } from './AiSettingsUncheckedUpdateWithoutUserInput.schema'
const makeSchema = () => z.object({
create: z.union([z.lazy(() => AiSettingsCreateWithoutUserInputObjectSchema), z.lazy(() => AiSettingsUncheckedCreateWithoutUserInputObjectSchema)]).optional(),
connectOrCreate: z.lazy(() => AiSettingsCreateOrConnectWithoutUserInputObjectSchema).optional(),
upsert: z.lazy(() => AiSettingsUpsertWithoutUserInputObjectSchema).optional(),
disconnect: z.union([z.boolean(), z.lazy(() => AiSettingsWhereInputObjectSchema)]).optional(),
delete: z.union([z.boolean(), z.lazy(() => AiSettingsWhereInputObjectSchema)]).optional(),
connect: z.lazy(() => AiSettingsWhereUniqueInputObjectSchema).optional(),
update: z.union([z.lazy(() => AiSettingsUpdateToOneWithWhereWithoutUserInputObjectSchema), z.lazy(() => AiSettingsUpdateWithoutUserInputObjectSchema), z.lazy(() => AiSettingsUncheckedUpdateWithoutUserInputObjectSchema)]).optional()
}).strict();
export const AiSettingsUpdateOneWithoutUserNestedInputObjectSchema: z.ZodType<Prisma.AiSettingsUpdateOneWithoutUserNestedInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUpdateOneWithoutUserNestedInput>;
export const AiSettingsUpdateOneWithoutUserNestedInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,12 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { AiSettingsWhereInputObjectSchema as AiSettingsWhereInputObjectSchema } from './AiSettingsWhereInput.schema';
import { AiSettingsUpdateWithoutUserInputObjectSchema as AiSettingsUpdateWithoutUserInputObjectSchema } from './AiSettingsUpdateWithoutUserInput.schema';
import { AiSettingsUncheckedUpdateWithoutUserInputObjectSchema as AiSettingsUncheckedUpdateWithoutUserInputObjectSchema } from './AiSettingsUncheckedUpdateWithoutUserInput.schema'
const makeSchema = () => z.object({
where: z.lazy(() => AiSettingsWhereInputObjectSchema).optional(),
data: z.union([z.lazy(() => AiSettingsUpdateWithoutUserInputObjectSchema), z.lazy(() => AiSettingsUncheckedUpdateWithoutUserInputObjectSchema)])
}).strict();
export const AiSettingsUpdateToOneWithWhereWithoutUserInputObjectSchema: z.ZodType<Prisma.AiSettingsUpdateToOneWithWhereWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUpdateToOneWithWhereWithoutUserInput>;
export const AiSettingsUpdateToOneWithWhereWithoutUserInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,9 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema'
const makeSchema = () => z.object({
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional()
}).strict();
export const AiSettingsUpdateWithoutUserInputObjectSchema: z.ZodType<Prisma.AiSettingsUpdateWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUpdateWithoutUserInput>;
export const AiSettingsUpdateWithoutUserInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,15 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { AiSettingsUpdateWithoutUserInputObjectSchema as AiSettingsUpdateWithoutUserInputObjectSchema } from './AiSettingsUpdateWithoutUserInput.schema';
import { AiSettingsUncheckedUpdateWithoutUserInputObjectSchema as AiSettingsUncheckedUpdateWithoutUserInputObjectSchema } from './AiSettingsUncheckedUpdateWithoutUserInput.schema';
import { AiSettingsCreateWithoutUserInputObjectSchema as AiSettingsCreateWithoutUserInputObjectSchema } from './AiSettingsCreateWithoutUserInput.schema';
import { AiSettingsUncheckedCreateWithoutUserInputObjectSchema as AiSettingsUncheckedCreateWithoutUserInputObjectSchema } from './AiSettingsUncheckedCreateWithoutUserInput.schema';
import { AiSettingsWhereInputObjectSchema as AiSettingsWhereInputObjectSchema } from './AiSettingsWhereInput.schema'
const makeSchema = () => z.object({
update: z.union([z.lazy(() => AiSettingsUpdateWithoutUserInputObjectSchema), z.lazy(() => AiSettingsUncheckedUpdateWithoutUserInputObjectSchema)]),
create: z.union([z.lazy(() => AiSettingsCreateWithoutUserInputObjectSchema), z.lazy(() => AiSettingsUncheckedCreateWithoutUserInputObjectSchema)]),
where: z.lazy(() => AiSettingsWhereInputObjectSchema).optional()
}).strict();
export const AiSettingsUpsertWithoutUserInputObjectSchema: z.ZodType<Prisma.AiSettingsUpsertWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUpsertWithoutUserInput>;
export const AiSettingsUpsertWithoutUserInputObjectZodSchema = makeSchema();

View File

@@ -0,0 +1,18 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { IntFilterObjectSchema as IntFilterObjectSchema } from './IntFilter.schema';
import { StringFilterObjectSchema as StringFilterObjectSchema } from './StringFilter.schema';
import { UserScalarRelationFilterObjectSchema as UserScalarRelationFilterObjectSchema } from './UserScalarRelationFilter.schema';
import { UserWhereInputObjectSchema as UserWhereInputObjectSchema } from './UserWhereInput.schema'
const aisettingswhereinputSchema = z.object({
AND: z.union([z.lazy(() => AiSettingsWhereInputObjectSchema), z.lazy(() => AiSettingsWhereInputObjectSchema).array()]).optional(),
OR: z.lazy(() => AiSettingsWhereInputObjectSchema).array().optional(),
NOT: z.union([z.lazy(() => AiSettingsWhereInputObjectSchema), z.lazy(() => AiSettingsWhereInputObjectSchema).array()]).optional(),
id: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
userId: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
apiKey: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
user: z.union([z.lazy(() => UserScalarRelationFilterObjectSchema), z.lazy(() => UserWhereInputObjectSchema)]).optional()
}).strict();
export const AiSettingsWhereInputObjectSchema: z.ZodType<Prisma.AiSettingsWhereInput> = aisettingswhereinputSchema as unknown as z.ZodType<Prisma.AiSettingsWhereInput>;
export const AiSettingsWhereInputObjectZodSchema = aisettingswhereinputSchema;

View File

@@ -0,0 +1,10 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
const makeSchema = () => z.object({
id: z.number().int().optional(),
userId: z.number().int().optional()
}).strict();
export const AiSettingsWhereUniqueInputObjectSchema: z.ZodType<Prisma.AiSettingsWhereUniqueInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsWhereUniqueInput>;
export const AiSettingsWhereUniqueInputObjectZodSchema = makeSchema();

View File

@@ -1,13 +1,12 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { ProcedureSourceSchema } from '../enums/ProcedureSource.schema';
import { AppointmentCreateNestedOneWithoutProceduresInputObjectSchema as AppointmentCreateNestedOneWithoutProceduresInputObjectSchema } from './AppointmentCreateNestedOneWithoutProceduresInput.schema';
import { PatientCreateNestedOneWithoutProceduresInputObjectSchema as PatientCreateNestedOneWithoutProceduresInputObjectSchema } from './PatientCreateNestedOneWithoutProceduresInput.schema';
import { Prisma } from '../../../generated/prisma';
import Decimal from 'decimal.js';
import { ProcedureSourceSchema } from '../enums/ProcedureSource.schema';
import { AppointmentCreateNestedOneWithoutProceduresInputObjectSchema as AppointmentCreateNestedOneWithoutProceduresInputObjectSchema } from './AppointmentCreateNestedOneWithoutProceduresInput.schema';
import { PatientCreateNestedOneWithoutProceduresInputObjectSchema as PatientCreateNestedOneWithoutProceduresInputObjectSchema } from './PatientCreateNestedOneWithoutProceduresInput.schema';
import { NpiProviderCreateNestedOneWithoutAppointmentProceduresInputObjectSchema as NpiProviderCreateNestedOneWithoutAppointmentProceduresInputObjectSchema } from './NpiProviderCreateNestedOneWithoutAppointmentProceduresInput.schema'
import { DecimalJSLikeSchema, isValidDecimalInput } from '../../helpers/decimal-helpers';
import Decimal from "decimal.js";
const makeSchema = () => z.object({
procedureCode: z.string(),
procedureLabel: z.string().optional().nullable(),
@@ -15,7 +14,7 @@ const makeSchema = () => z.object({
z.number(),
z.string(),
z.instanceof(Decimal),
z.instanceof(Decimal),
z.instanceof(Prisma.Decimal),
DecimalJSLikeSchema,
]).refine((v) => isValidDecimalInput(v), {
message: "Field 'fee' must be a Decimal",

View File

@@ -1,10 +1,9 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { Prisma } from '../../../generated/prisma';
import Decimal from 'decimal.js';
import { ProcedureSourceSchema } from '../enums/ProcedureSource.schema'
import { DecimalJSLikeSchema, isValidDecimalInput } from '../../helpers/decimal-helpers';
import Decimal from "decimal.js";
const makeSchema = () => z.object({
id: z.number().int().optional(),
patientId: z.number().int(),
@@ -15,7 +14,7 @@ const makeSchema = () => z.object({
z.number(),
z.string(),
z.instanceof(Decimal),
z.instanceof(Decimal),
z.instanceof(Prisma.Decimal),
DecimalJSLikeSchema,
]).refine((v) => isValidDecimalInput(v), {
message: "Field 'fee' must be a Decimal",

View File

@@ -1,10 +1,9 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { Prisma } from '../../../generated/prisma';
import Decimal from 'decimal.js';
import { ProcedureSourceSchema } from '../enums/ProcedureSource.schema'
import { DecimalJSLikeSchema, isValidDecimalInput } from '../../helpers/decimal-helpers';
import Decimal from "decimal.js";
const makeSchema = () => z.object({
id: z.number().int().optional(),
appointmentId: z.number().int(),
@@ -16,7 +15,7 @@ const makeSchema = () => z.object({
z.number(),
z.string(),
z.instanceof(Decimal),
z.instanceof(Decimal),
z.instanceof(Prisma.Decimal),
DecimalJSLikeSchema,
]).refine((v) => isValidDecimalInput(v), {
message: "Field 'fee' must be a Decimal",

View File

@@ -1,10 +1,9 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { Prisma } from '../../../generated/prisma';
import Decimal from 'decimal.js';
import { ProcedureSourceSchema } from '../enums/ProcedureSource.schema'
import { DecimalJSLikeSchema, isValidDecimalInput } from '../../helpers/decimal-helpers';
import Decimal from "decimal.js";
const makeSchema = () => z.object({
id: z.number().int().optional(),
appointmentId: z.number().int(),
@@ -15,7 +14,7 @@ const makeSchema = () => z.object({
z.number(),
z.string(),
z.instanceof(Decimal),
z.instanceof(Decimal),
z.instanceof(Prisma.Decimal),
DecimalJSLikeSchema,
]).refine((v) => isValidDecimalInput(v), {
message: "Field 'fee' must be a Decimal",

View File

@@ -1,10 +1,9 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { Prisma } from '../../../generated/prisma';
import Decimal from 'decimal.js';
import { ProcedureSourceSchema } from '../enums/ProcedureSource.schema'
import { DecimalJSLikeSchema, isValidDecimalInput } from '../../helpers/decimal-helpers';
import Decimal from "decimal.js";
const makeSchema = () => z.object({
id: z.number().int().optional(),
appointmentId: z.number().int(),
@@ -15,7 +14,7 @@ const makeSchema = () => z.object({
z.number(),
z.string(),
z.instanceof(Decimal),
z.instanceof(Decimal),
z.instanceof(Prisma.Decimal),
DecimalJSLikeSchema,
]).refine((v) => isValidDecimalInput(v), {
message: "Field 'fee' must be a Decimal",

View File

@@ -1,12 +1,11 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { ProcedureSourceSchema } from '../enums/ProcedureSource.schema';
import { PatientCreateNestedOneWithoutProceduresInputObjectSchema as PatientCreateNestedOneWithoutProceduresInputObjectSchema } from './PatientCreateNestedOneWithoutProceduresInput.schema';
import { Prisma } from '../../../generated/prisma';
import Decimal from 'decimal.js';
import { ProcedureSourceSchema } from '../enums/ProcedureSource.schema';
import { PatientCreateNestedOneWithoutProceduresInputObjectSchema as PatientCreateNestedOneWithoutProceduresInputObjectSchema } from './PatientCreateNestedOneWithoutProceduresInput.schema';
import { NpiProviderCreateNestedOneWithoutAppointmentProceduresInputObjectSchema as NpiProviderCreateNestedOneWithoutAppointmentProceduresInputObjectSchema } from './NpiProviderCreateNestedOneWithoutAppointmentProceduresInput.schema'
import { DecimalJSLikeSchema, isValidDecimalInput } from '../../helpers/decimal-helpers';
import Decimal from "decimal.js";
const makeSchema = () => z.object({
procedureCode: z.string(),
procedureLabel: z.string().optional().nullable(),
@@ -14,7 +13,7 @@ const makeSchema = () => z.object({
z.number(),
z.string(),
z.instanceof(Decimal),
z.instanceof(Decimal),
z.instanceof(Prisma.Decimal),
DecimalJSLikeSchema,
]).refine((v) => isValidDecimalInput(v), {
message: "Field 'fee' must be a Decimal",

View File

@@ -1,12 +1,11 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { ProcedureSourceSchema } from '../enums/ProcedureSource.schema';
import { AppointmentCreateNestedOneWithoutProceduresInputObjectSchema as AppointmentCreateNestedOneWithoutProceduresInputObjectSchema } from './AppointmentCreateNestedOneWithoutProceduresInput.schema';
import { Prisma } from '../../../generated/prisma';
import Decimal from 'decimal.js';
import { ProcedureSourceSchema } from '../enums/ProcedureSource.schema';
import { AppointmentCreateNestedOneWithoutProceduresInputObjectSchema as AppointmentCreateNestedOneWithoutProceduresInputObjectSchema } from './AppointmentCreateNestedOneWithoutProceduresInput.schema';
import { PatientCreateNestedOneWithoutProceduresInputObjectSchema as PatientCreateNestedOneWithoutProceduresInputObjectSchema } from './PatientCreateNestedOneWithoutProceduresInput.schema'
import { DecimalJSLikeSchema, isValidDecimalInput } from '../../helpers/decimal-helpers';
import Decimal from "decimal.js";
const makeSchema = () => z.object({
procedureCode: z.string(),
procedureLabel: z.string().optional().nullable(),
@@ -14,7 +13,7 @@ const makeSchema = () => z.object({
z.number(),
z.string(),
z.instanceof(Decimal),
z.instanceof(Decimal),
z.instanceof(Prisma.Decimal),
DecimalJSLikeSchema,
]).refine((v) => isValidDecimalInput(v), {
message: "Field 'fee' must be a Decimal",

Some files were not shown because too many files have changed in this diff Show More