feat: add Office Contact settings page and reorder Advanced sidebar

- Add OfficeContact Prisma model with receptionist name, dentist name, phone, email, fax fields
- Create GET/PUT /api/office-contact backend route and storage
- Add OfficeContactCard frontend component under Settings > Advanced
- Reorder Advanced sidebar: Office Hours → Office Contact → Twilio Settings → Google AI Settings

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Gitead
2026-05-05 21:19:30 -04:00
parent 2312ad66ca
commit 800008792a
188 changed files with 3780 additions and 173 deletions

View File

@@ -1,7 +1,7 @@
{
"version": "1.0",
"generatorVersion": "1.0.0",
"generatedAt": "2026-05-05T02:21:32.341Z",
"generatedAt": "2026-05-06T01:11:22.105Z",
"outputPath": "/home/ee/Desktop/DentalManagementMH05/packages/db/shared",
"files": [
"schemas/enums/TransactionIsolationLevel.schema.ts",
@@ -32,6 +32,7 @@
"schemas/enums/TwilioSettingsScalarFieldEnum.schema.ts",
"schemas/enums/AiSettingsScalarFieldEnum.schema.ts",
"schemas/enums/OfficeHoursScalarFieldEnum.schema.ts",
"schemas/enums/OfficeContactScalarFieldEnum.schema.ts",
"schemas/enums/SortOrder.schema.ts",
"schemas/enums/NullableJsonNullValueInput.schema.ts",
"schemas/enums/JsonNullValueInput.schema.ts",
@@ -185,6 +186,11 @@
"schemas/objects/OfficeHoursWhereUniqueInput.schema.ts",
"schemas/objects/OfficeHoursOrderByWithAggregationInput.schema.ts",
"schemas/objects/OfficeHoursScalarWhereWithAggregatesInput.schema.ts",
"schemas/objects/OfficeContactWhereInput.schema.ts",
"schemas/objects/OfficeContactOrderByWithRelationInput.schema.ts",
"schemas/objects/OfficeContactWhereUniqueInput.schema.ts",
"schemas/objects/OfficeContactOrderByWithAggregationInput.schema.ts",
"schemas/objects/OfficeContactScalarWhereWithAggregatesInput.schema.ts",
"schemas/objects/UserCreateInput.schema.ts",
"schemas/objects/UserUncheckedCreateInput.schema.ts",
"schemas/objects/UserUpdateInput.schema.ts",
@@ -374,6 +380,13 @@
"schemas/objects/OfficeHoursCreateManyInput.schema.ts",
"schemas/objects/OfficeHoursUpdateManyMutationInput.schema.ts",
"schemas/objects/OfficeHoursUncheckedUpdateManyInput.schema.ts",
"schemas/objects/OfficeContactCreateInput.schema.ts",
"schemas/objects/OfficeContactUncheckedCreateInput.schema.ts",
"schemas/objects/OfficeContactUpdateInput.schema.ts",
"schemas/objects/OfficeContactUncheckedUpdateInput.schema.ts",
"schemas/objects/OfficeContactCreateManyInput.schema.ts",
"schemas/objects/OfficeContactUpdateManyMutationInput.schema.ts",
"schemas/objects/OfficeContactUncheckedUpdateManyInput.schema.ts",
"schemas/objects/IntFilter.schema.ts",
"schemas/objects/StringFilter.schema.ts",
"schemas/objects/BoolFilter.schema.ts",
@@ -393,6 +406,7 @@
"schemas/objects/TwilioSettingsNullableScalarRelationFilter.schema.ts",
"schemas/objects/AiSettingsNullableScalarRelationFilter.schema.ts",
"schemas/objects/OfficeHoursNullableScalarRelationFilter.schema.ts",
"schemas/objects/OfficeContactNullableScalarRelationFilter.schema.ts",
"schemas/objects/PatientOrderByRelationAggregateInput.schema.ts",
"schemas/objects/AppointmentOrderByRelationAggregateInput.schema.ts",
"schemas/objects/StaffOrderByRelationAggregateInput.schema.ts",
@@ -625,6 +639,11 @@
"schemas/objects/OfficeHoursMinOrderByAggregateInput.schema.ts",
"schemas/objects/OfficeHoursSumOrderByAggregateInput.schema.ts",
"schemas/objects/JsonWithAggregatesFilter.schema.ts",
"schemas/objects/OfficeContactCountOrderByAggregateInput.schema.ts",
"schemas/objects/OfficeContactAvgOrderByAggregateInput.schema.ts",
"schemas/objects/OfficeContactMaxOrderByAggregateInput.schema.ts",
"schemas/objects/OfficeContactMinOrderByAggregateInput.schema.ts",
"schemas/objects/OfficeContactSumOrderByAggregateInput.schema.ts",
"schemas/objects/PatientCreateNestedManyWithoutUserInput.schema.ts",
"schemas/objects/AppointmentCreateNestedManyWithoutUserInput.schema.ts",
"schemas/objects/StaffCreateNestedManyWithoutUserInput.schema.ts",
@@ -641,6 +660,7 @@
"schemas/objects/TwilioSettingsCreateNestedOneWithoutUserInput.schema.ts",
"schemas/objects/AiSettingsCreateNestedOneWithoutUserInput.schema.ts",
"schemas/objects/OfficeHoursCreateNestedOneWithoutUserInput.schema.ts",
"schemas/objects/OfficeContactCreateNestedOneWithoutUserInput.schema.ts",
"schemas/objects/PatientUncheckedCreateNestedManyWithoutUserInput.schema.ts",
"schemas/objects/AppointmentUncheckedCreateNestedManyWithoutUserInput.schema.ts",
"schemas/objects/StaffUncheckedCreateNestedManyWithoutUserInput.schema.ts",
@@ -657,6 +677,7 @@
"schemas/objects/TwilioSettingsUncheckedCreateNestedOneWithoutUserInput.schema.ts",
"schemas/objects/AiSettingsUncheckedCreateNestedOneWithoutUserInput.schema.ts",
"schemas/objects/OfficeHoursUncheckedCreateNestedOneWithoutUserInput.schema.ts",
"schemas/objects/OfficeContactUncheckedCreateNestedOneWithoutUserInput.schema.ts",
"schemas/objects/StringFieldUpdateOperationsInput.schema.ts",
"schemas/objects/BoolFieldUpdateOperationsInput.schema.ts",
"schemas/objects/PatientUpdateManyWithoutUserNestedInput.schema.ts",
@@ -675,6 +696,7 @@
"schemas/objects/TwilioSettingsUpdateOneWithoutUserNestedInput.schema.ts",
"schemas/objects/AiSettingsUpdateOneWithoutUserNestedInput.schema.ts",
"schemas/objects/OfficeHoursUpdateOneWithoutUserNestedInput.schema.ts",
"schemas/objects/OfficeContactUpdateOneWithoutUserNestedInput.schema.ts",
"schemas/objects/IntFieldUpdateOperationsInput.schema.ts",
"schemas/objects/PatientUncheckedUpdateManyWithoutUserNestedInput.schema.ts",
"schemas/objects/AppointmentUncheckedUpdateManyWithoutUserNestedInput.schema.ts",
@@ -692,6 +714,7 @@
"schemas/objects/TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput.schema.ts",
"schemas/objects/AiSettingsUncheckedUpdateOneWithoutUserNestedInput.schema.ts",
"schemas/objects/OfficeHoursUncheckedUpdateOneWithoutUserNestedInput.schema.ts",
"schemas/objects/OfficeContactUncheckedUpdateOneWithoutUserNestedInput.schema.ts",
"schemas/objects/UserCreateNestedOneWithoutPatientsInput.schema.ts",
"schemas/objects/AppointmentCreateNestedManyWithoutPatientInput.schema.ts",
"schemas/objects/AppointmentProcedureCreateNestedManyWithoutPatientInput.schema.ts",
@@ -888,6 +911,8 @@
"schemas/objects/UserUpdateOneRequiredWithoutAiSettingsNestedInput.schema.ts",
"schemas/objects/UserCreateNestedOneWithoutOfficeHoursInput.schema.ts",
"schemas/objects/UserUpdateOneRequiredWithoutOfficeHoursNestedInput.schema.ts",
"schemas/objects/UserCreateNestedOneWithoutOfficeContactInput.schema.ts",
"schemas/objects/UserUpdateOneRequiredWithoutOfficeContactNestedInput.schema.ts",
"schemas/objects/NestedIntFilter.schema.ts",
"schemas/objects/NestedStringFilter.schema.ts",
"schemas/objects/NestedBoolFilter.schema.ts",
@@ -999,6 +1024,9 @@
"schemas/objects/OfficeHoursCreateWithoutUserInput.schema.ts",
"schemas/objects/OfficeHoursUncheckedCreateWithoutUserInput.schema.ts",
"schemas/objects/OfficeHoursCreateOrConnectWithoutUserInput.schema.ts",
"schemas/objects/OfficeContactCreateWithoutUserInput.schema.ts",
"schemas/objects/OfficeContactUncheckedCreateWithoutUserInput.schema.ts",
"schemas/objects/OfficeContactCreateOrConnectWithoutUserInput.schema.ts",
"schemas/objects/PatientUpsertWithWhereUniqueWithoutUserInput.schema.ts",
"schemas/objects/PatientUpdateWithWhereUniqueWithoutUserInput.schema.ts",
"schemas/objects/PatientUpdateManyWithWhereWithoutUserInput.schema.ts",
@@ -1063,6 +1091,10 @@
"schemas/objects/OfficeHoursUpdateToOneWithWhereWithoutUserInput.schema.ts",
"schemas/objects/OfficeHoursUpdateWithoutUserInput.schema.ts",
"schemas/objects/OfficeHoursUncheckedUpdateWithoutUserInput.schema.ts",
"schemas/objects/OfficeContactUpsertWithoutUserInput.schema.ts",
"schemas/objects/OfficeContactUpdateToOneWithWhereWithoutUserInput.schema.ts",
"schemas/objects/OfficeContactUpdateWithoutUserInput.schema.ts",
"schemas/objects/OfficeContactUncheckedUpdateWithoutUserInput.schema.ts",
"schemas/objects/UserCreateWithoutPatientsInput.schema.ts",
"schemas/objects/UserUncheckedCreateWithoutPatientsInput.schema.ts",
"schemas/objects/UserCreateOrConnectWithoutPatientsInput.schema.ts",
@@ -1520,6 +1552,13 @@
"schemas/objects/UserUpdateToOneWithWhereWithoutOfficeHoursInput.schema.ts",
"schemas/objects/UserUpdateWithoutOfficeHoursInput.schema.ts",
"schemas/objects/UserUncheckedUpdateWithoutOfficeHoursInput.schema.ts",
"schemas/objects/UserCreateWithoutOfficeContactInput.schema.ts",
"schemas/objects/UserUncheckedCreateWithoutOfficeContactInput.schema.ts",
"schemas/objects/UserCreateOrConnectWithoutOfficeContactInput.schema.ts",
"schemas/objects/UserUpsertWithoutOfficeContactInput.schema.ts",
"schemas/objects/UserUpdateToOneWithWhereWithoutOfficeContactInput.schema.ts",
"schemas/objects/UserUpdateWithoutOfficeContactInput.schema.ts",
"schemas/objects/UserUncheckedUpdateWithoutOfficeContactInput.schema.ts",
"schemas/objects/PatientCreateManyUserInput.schema.ts",
"schemas/objects/AppointmentCreateManyUserInput.schema.ts",
"schemas/objects/StaffCreateManyUserInput.schema.ts",
@@ -1799,6 +1838,11 @@
"schemas/objects/OfficeHoursSumAggregateInput.schema.ts",
"schemas/objects/OfficeHoursMinAggregateInput.schema.ts",
"schemas/objects/OfficeHoursMaxAggregateInput.schema.ts",
"schemas/objects/OfficeContactCountAggregateInput.schema.ts",
"schemas/objects/OfficeContactAvgAggregateInput.schema.ts",
"schemas/objects/OfficeContactSumAggregateInput.schema.ts",
"schemas/objects/OfficeContactMinAggregateInput.schema.ts",
"schemas/objects/OfficeContactMaxAggregateInput.schema.ts",
"schemas/objects/UserCountOutputTypeSelect.schema.ts",
"schemas/objects/PatientCountOutputTypeSelect.schema.ts",
"schemas/objects/AppointmentCountOutputTypeSelect.schema.ts",
@@ -1884,6 +1928,7 @@
"schemas/objects/TwilioSettingsSelect.schema.ts",
"schemas/objects/AiSettingsSelect.schema.ts",
"schemas/objects/OfficeHoursSelect.schema.ts",
"schemas/objects/OfficeContactSelect.schema.ts",
"schemas/objects/UserArgs.schema.ts",
"schemas/objects/PatientArgs.schema.ts",
"schemas/objects/AppointmentArgs.schema.ts",
@@ -1911,6 +1956,7 @@
"schemas/objects/TwilioSettingsArgs.schema.ts",
"schemas/objects/AiSettingsArgs.schema.ts",
"schemas/objects/OfficeHoursArgs.schema.ts",
"schemas/objects/OfficeContactArgs.schema.ts",
"schemas/objects/UserInclude.schema.ts",
"schemas/objects/PatientInclude.schema.ts",
"schemas/objects/AppointmentInclude.schema.ts",
@@ -1937,6 +1983,7 @@
"schemas/objects/TwilioSettingsInclude.schema.ts",
"schemas/objects/AiSettingsInclude.schema.ts",
"schemas/objects/OfficeHoursInclude.schema.ts",
"schemas/objects/OfficeContactInclude.schema.ts",
"schemas/findUniqueUser.schema.ts",
"schemas/findUniqueOrThrowUser.schema.ts",
"schemas/findFirstUser.schema.ts",
@@ -2396,6 +2443,23 @@
"schemas/upsertOneOfficeHours.schema.ts",
"schemas/aggregateOfficeHours.schema.ts",
"schemas/groupByOfficeHours.schema.ts",
"schemas/findUniqueOfficeContact.schema.ts",
"schemas/findUniqueOrThrowOfficeContact.schema.ts",
"schemas/findFirstOfficeContact.schema.ts",
"schemas/findFirstOrThrowOfficeContact.schema.ts",
"schemas/findManyOfficeContact.schema.ts",
"schemas/countOfficeContact.schema.ts",
"schemas/createOneOfficeContact.schema.ts",
"schemas/createManyOfficeContact.schema.ts",
"schemas/createManyAndReturnOfficeContact.schema.ts",
"schemas/deleteOneOfficeContact.schema.ts",
"schemas/deleteManyOfficeContact.schema.ts",
"schemas/updateOneOfficeContact.schema.ts",
"schemas/updateManyOfficeContact.schema.ts",
"schemas/updateManyAndReturnOfficeContact.schema.ts",
"schemas/upsertOneOfficeContact.schema.ts",
"schemas/aggregateOfficeContact.schema.ts",
"schemas/groupByOfficeContact.schema.ts",
"schemas/results/UserFindUniqueResult.schema.ts",
"schemas/results/UserFindFirstResult.schema.ts",
"schemas/results/UserFindManyResult.schema.ts",
@@ -2747,6 +2811,19 @@
"schemas/results/OfficeHoursAggregateResult.schema.ts",
"schemas/results/OfficeHoursGroupByResult.schema.ts",
"schemas/results/OfficeHoursCountResult.schema.ts",
"schemas/results/OfficeContactFindUniqueResult.schema.ts",
"schemas/results/OfficeContactFindFirstResult.schema.ts",
"schemas/results/OfficeContactFindManyResult.schema.ts",
"schemas/results/OfficeContactCreateResult.schema.ts",
"schemas/results/OfficeContactCreateManyResult.schema.ts",
"schemas/results/OfficeContactUpdateResult.schema.ts",
"schemas/results/OfficeContactUpdateManyResult.schema.ts",
"schemas/results/OfficeContactUpsertResult.schema.ts",
"schemas/results/OfficeContactDeleteResult.schema.ts",
"schemas/results/OfficeContactDeleteManyResult.schema.ts",
"schemas/results/OfficeContactAggregateResult.schema.ts",
"schemas/results/OfficeContactGroupByResult.schema.ts",
"schemas/results/OfficeContactCountResult.schema.ts",
"schemas/results/index.ts",
"schemas/index.ts",
"schemas/variants/pure/User.pure.ts",
@@ -2776,6 +2853,7 @@
"schemas/variants/pure/TwilioSettings.pure.ts",
"schemas/variants/pure/AiSettings.pure.ts",
"schemas/variants/pure/OfficeHours.pure.ts",
"schemas/variants/pure/OfficeContact.pure.ts",
"schemas/variants/pure/index.ts",
"schemas/variants/input/User.input.ts",
"schemas/variants/input/Patient.input.ts",
@@ -2804,6 +2882,7 @@
"schemas/variants/input/TwilioSettings.input.ts",
"schemas/variants/input/AiSettings.input.ts",
"schemas/variants/input/OfficeHours.input.ts",
"schemas/variants/input/OfficeContact.input.ts",
"schemas/variants/input/index.ts",
"schemas/variants/result/User.result.ts",
"schemas/variants/result/Patient.result.ts",
@@ -2832,6 +2911,7 @@
"schemas/variants/result/TwilioSettings.result.ts",
"schemas/variants/result/AiSettings.result.ts",
"schemas/variants/result/OfficeHours.result.ts",
"schemas/variants/result/OfficeContact.result.ts",
"schemas/variants/result/index.ts",
"schemas/variants/index.ts"
],