@arbol-ai/sdk 3.0.1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -0
- package/dist/account/apiKeys/client.d.ts +15 -47
- package/dist/account/apiKeys/client.js +11 -12
- package/dist/account/apiKeys/index.d.ts +1 -1
- package/dist/account/apiKeys/models.d.ts +164 -1
- package/dist/account/apiKeys/models.js +6 -0
- package/dist/account/billing/client.d.ts +4 -10
- package/dist/account/billing/client.js +7 -7
- package/dist/account/billing/index.d.ts +2 -2
- package/dist/account/billing/models.d.ts +32 -0
- package/dist/account/billing/models.js +5 -2
- package/dist/account/billingProfiles/client.d.ts +13 -24
- package/dist/account/billingProfiles/client.js +4 -4
- package/dist/account/billingProfiles/index.d.ts +1 -1
- package/dist/account/billingProfiles/models.d.ts +48 -0
- package/dist/account/client.d.ts +6 -0
- package/dist/account/client.js +15 -0
- package/dist/account/connections/client.d.ts +2 -200
- package/dist/account/connections/client.js +1 -25
- package/dist/account/connections/index.d.ts +2 -2
- package/dist/account/connections/models.d.ts +22 -7
- package/dist/account/index.d.ts +1 -1
- package/dist/account/invitations/client.d.ts +9 -38
- package/dist/account/invitations/client.js +8 -9
- package/dist/account/invitations/index.d.ts +1 -1
- package/dist/account/invitations/models.d.ts +221 -2
- package/dist/account/invitations/models.js +6 -0
- package/dist/account/invoiceDocuments/client.d.ts +25 -0
- package/dist/account/invoiceDocuments/client.js +17 -0
- package/dist/account/invoiceDocuments/index.d.ts +5 -0
- package/dist/account/invoiceDocuments/index.js +4 -0
- package/dist/account/invoiceDocuments/models.d.ts +35 -0
- package/dist/account/invoiceDocuments/models.js +3 -0
- package/dist/account/invoices/client.d.ts +7 -34
- package/dist/account/invoices/client.js +7 -14
- package/dist/account/invoices/index.d.ts +2 -2
- package/dist/account/invoices/models.d.ts +66 -1
- package/dist/account/invoices/models.js +8 -0
- package/dist/account/members/client.d.ts +14 -55
- package/dist/account/members/client.js +6 -7
- package/dist/account/members/index.d.ts +1 -1
- package/dist/account/members/models.d.ts +261 -2
- package/dist/account/models.d.ts +210 -259
- package/dist/account/organization/client.d.ts +31 -0
- package/dist/account/organization/client.js +25 -0
- package/dist/account/organization/index.d.ts +5 -0
- package/dist/account/organization/index.js +4 -0
- package/dist/account/organization/models.d.ts +89 -0
- package/dist/account/organization/models.js +3 -0
- package/dist/account/organizations/client.d.ts +2 -48
- package/dist/account/organizations/client.js +1 -16
- package/dist/account/organizations/index.d.ts +2 -2
- package/dist/account/organizations/models.d.ts +26 -37
- package/dist/account/payments/client.d.ts +2 -8
- package/dist/account/payments/client.js +4 -4
- package/dist/account/payments/index.d.ts +1 -1
- package/dist/account/payments/models.d.ts +28 -1
- package/dist/account/payments/models.js +3 -0
- package/dist/account/permissions/client.d.ts +2 -8
- package/dist/account/permissions/client.js +1 -1
- package/dist/account/permissions/index.d.ts +1 -1
- package/dist/account/permissions/models.d.ts +27 -1
- package/dist/account/roles/client.d.ts +2 -8
- package/dist/account/roles/client.js +1 -1
- package/dist/account/roles/index.d.ts +1 -1
- package/dist/account/roles/models.d.ts +27 -1
- package/dist/account/usage/client.d.ts +7 -44
- package/dist/account/usage/client.js +5 -13
- package/dist/account/usage/index.d.ts +2 -2
- package/dist/account/usage/models.d.ts +27 -1
- package/dist/account/usageSummary/client.d.ts +26 -0
- package/dist/account/usageSummary/client.js +19 -0
- package/dist/account/usageSummary/index.d.ts +5 -0
- package/dist/account/usageSummary/index.js +4 -0
- package/dist/account/usageSummary/models.d.ts +50 -0
- package/dist/account/usageSummary/models.js +9 -0
- package/dist/account/walletTransactions/client.d.ts +2 -8
- package/dist/account/walletTransactions/client.js +4 -4
- package/dist/account/walletTransactions/index.d.ts +1 -1
- package/dist/account/walletTransactions/models.d.ts +28 -1
- package/dist/account/walletTransactions/models.js +3 -0
- package/dist/agenda/appointments/client.d.ts +170 -58
- package/dist/agenda/appointments/client.js +19 -11
- package/dist/agenda/appointments/index.d.ts +1 -1
- package/dist/agenda/availability/client.d.ts +12 -74
- package/dist/agenda/availability/client.js +5 -14
- package/dist/agenda/availability/index.d.ts +1 -1
- package/dist/agenda/bookingLocations/client.d.ts +51 -0
- package/dist/agenda/bookingLocations/client.js +19 -0
- package/dist/agenda/bookingLocations/index.d.ts +4 -0
- package/dist/agenda/bookingLocations/index.js +4 -0
- package/dist/agenda/bookingOfferings/client.d.ts +82 -0
- package/dist/agenda/bookingOfferings/client.js +18 -0
- package/dist/agenda/bookingOfferings/index.d.ts +5 -0
- package/dist/agenda/bookingOfferings/index.js +4 -0
- package/dist/agenda/bookingOfferings/models.d.ts +92 -0
- package/dist/agenda/bookingOfferings/models.js +3 -0
- package/dist/agenda/bookingRequirements/client.d.ts +118 -0
- package/dist/agenda/bookingRequirements/client.js +18 -0
- package/dist/agenda/bookingRequirements/index.d.ts +4 -0
- package/dist/agenda/bookingRequirements/index.js +4 -0
- package/dist/agenda/bookingSlots/client.d.ts +78 -0
- package/dist/agenda/bookingSlots/client.js +19 -0
- package/dist/agenda/bookingSlots/index.d.ts +4 -0
- package/dist/agenda/bookingSlots/index.js +4 -0
- package/dist/agenda/bookings/client.d.ts +49 -381
- package/dist/agenda/bookings/client.js +10 -52
- package/dist/agenda/bookings/index.d.ts +2 -2
- package/dist/agenda/bookings/models.d.ts +0 -92
- package/dist/agenda/client.d.ts +14 -0
- package/dist/agenda/client.js +35 -0
- package/dist/agenda/firstAvailability/client.d.ts +74 -0
- package/dist/agenda/firstAvailability/client.js +19 -0
- package/dist/agenda/firstAvailability/index.d.ts +5 -0
- package/dist/agenda/firstAvailability/index.js +4 -0
- package/dist/agenda/firstAvailability/models.d.ts +31 -0
- package/dist/agenda/firstAvailability/models.js +7 -0
- package/dist/agenda/index.d.ts +1 -1
- package/dist/agenda/locations/client.d.ts +2 -3
- package/dist/agenda/locations/client.js +1 -1
- package/dist/agenda/models.d.ts +26 -95
- package/dist/agenda/models.js +0 -3
- package/dist/agenda/nearestBookingSlots/client.d.ts +93 -0
- package/dist/agenda/nearestBookingSlots/client.js +19 -0
- package/dist/agenda/nearestBookingSlots/index.d.ts +5 -0
- package/dist/agenda/nearestBookingSlots/index.js +4 -0
- package/dist/agenda/nearestBookingSlots/models.d.ts +38 -0
- package/dist/agenda/nearestBookingSlots/models.js +7 -0
- package/dist/agenda/offerings/client.d.ts +6 -6
- package/dist/agenda/offerings/client.js +1 -1
- package/dist/agenda/resourceSchedules/client.d.ts +75 -0
- package/dist/agenda/resourceSchedules/client.js +19 -0
- package/dist/agenda/resourceSchedules/index.d.ts +4 -0
- package/dist/agenda/resourceSchedules/index.js +4 -0
- package/dist/agenda/resources/client.d.ts +6 -6
- package/dist/agenda/resources/client.js +1 -1
- package/dist/agenda/scheduleRules/client.d.ts +129 -89
- package/dist/agenda/scheduleRules/client.js +17 -16
- package/dist/agenda/scheduleRules/index.d.ts +2 -1
- package/dist/agenda/scheduleRules/models.d.ts +33 -0
- package/dist/agenda/scheduleRules/models.js +6 -0
- package/dist/agenda/services/client.d.ts +6 -6
- package/dist/agenda/services/client.js +1 -1
- package/dist/agenda/waitlist/client.d.ts +42 -32
- package/dist/agenda/waitlist/client.js +4 -4
- package/dist/agenda/waitlist/index.d.ts +1 -1
- package/dist/agenda/waitlist/models.d.ts +17 -0
- package/dist/agenda/waitlist/models.js +4 -1
- package/dist/axxa/authorizations/client.d.ts +3 -35
- package/dist/axxa/authorizations/client.js +1 -1
- package/dist/axxa/authorizations/index.d.ts +1 -0
- package/dist/axxa/authorizations/models.d.ts +112 -0
- package/dist/axxa/authorizations/models.js +3 -0
- package/dist/axxa/connections/client.d.ts +19 -44
- package/dist/axxa/connections/client.js +10 -11
- package/dist/axxa/connections/index.d.ts +1 -0
- package/dist/axxa/connections/models.d.ts +269 -0
- package/dist/axxa/connections/models.js +3 -0
- package/dist/axxa/eligibility/client.d.ts +3 -25
- package/dist/axxa/eligibility/client.js +1 -1
- package/dist/axxa/eligibility/index.d.ts +1 -0
- package/dist/axxa/eligibility/models.d.ts +102 -0
- package/dist/axxa/eligibility/models.js +3 -0
- package/dist/axxa/index.d.ts +1 -1
- package/dist/axxa/models.d.ts +245 -164
- package/dist/axxa/provider/client.d.ts +5 -11
- package/dist/axxa/provider/client.js +1 -1
- package/dist/axxa/provider/index.d.ts +1 -0
- package/dist/axxa/provider/models.d.ts +87 -0
- package/dist/axxa/provider/models.js +3 -0
- package/dist/gmedic/agendaServices/client.d.ts +13 -9
- package/dist/gmedic/agendaServices/client.js +2 -2
- package/dist/gmedic/agendaServices/index.d.ts +1 -1
- package/dist/gmedic/agendaServices/models.d.ts +53 -1
- package/dist/gmedic/agendas/client.d.ts +16 -9
- package/dist/gmedic/agendas/client.js +2 -2
- package/dist/gmedic/agendas/index.d.ts +1 -1
- package/dist/gmedic/agendas/models.d.ts +53 -1
- package/dist/gmedic/appointments/client.d.ts +34 -241
- package/dist/gmedic/appointments/client.js +12 -10
- package/dist/gmedic/appointments/index.d.ts +1 -1
- package/dist/gmedic/appointments/models.d.ts +518 -1
- package/dist/gmedic/appointments/models.js +28 -2
- package/dist/gmedic/availability/client.d.ts +24 -10
- package/dist/gmedic/availability/client.js +4 -3
- package/dist/gmedic/availability/index.d.ts +1 -1
- package/dist/gmedic/availability/models.d.ts +57 -1
- package/dist/gmedic/availability/models.js +7 -1
- package/dist/gmedic/availableDays/client.d.ts +11 -8
- package/dist/gmedic/availableDays/client.js +1 -1
- package/dist/gmedic/availableDays/index.d.ts +1 -1
- package/dist/gmedic/availableDays/models.d.ts +53 -1
- package/dist/gmedic/branchOffices/client.d.ts +13 -9
- package/dist/gmedic/branchOffices/client.js +2 -2
- package/dist/gmedic/branchOffices/index.d.ts +1 -1
- package/dist/gmedic/branchOffices/models.d.ts +58 -1
- package/dist/gmedic/connections/client.d.ts +19 -41
- package/dist/gmedic/connections/client.js +10 -11
- package/dist/gmedic/connections/index.d.ts +1 -0
- package/dist/gmedic/connections/models.d.ts +162 -0
- package/dist/gmedic/connections/models.js +3 -0
- package/dist/gmedic/dictionaryEntries/client.d.ts +20 -10
- package/dist/gmedic/dictionaryEntries/client.js +2 -2
- package/dist/gmedic/dictionaryEntries/index.d.ts +1 -1
- package/dist/gmedic/dictionaryEntries/models.d.ts +53 -1
- package/dist/gmedic/healthPartners/client.d.ts +19 -9
- package/dist/gmedic/healthPartners/client.js +2 -2
- package/dist/gmedic/healthPartners/index.d.ts +1 -1
- package/dist/gmedic/healthPartners/models.d.ts +53 -1
- package/dist/gmedic/healthPromotionEntities/client.d.ts +20 -10
- package/dist/gmedic/healthPromotionEntities/client.js +2 -2
- package/dist/gmedic/healthPromotionEntities/index.d.ts +1 -1
- package/dist/gmedic/healthPromotionEntities/models.d.ts +53 -1
- package/dist/gmedic/index.d.ts +1 -1
- package/dist/gmedic/laboralRiskManagers/client.d.ts +20 -10
- package/dist/gmedic/laboralRiskManagers/client.js +2 -2
- package/dist/gmedic/laboralRiskManagers/index.d.ts +1 -1
- package/dist/gmedic/laboralRiskManagers/models.d.ts +53 -1
- package/dist/gmedic/models.d.ts +196 -129
- package/dist/gmedic/occupations/client.d.ts +19 -9
- package/dist/gmedic/occupations/client.js +2 -2
- package/dist/gmedic/occupations/index.d.ts +1 -1
- package/dist/gmedic/occupations/models.d.ts +53 -1
- package/dist/gmedic/patientNotes/client.d.ts +25 -55
- package/dist/gmedic/patientNotes/client.js +5 -5
- package/dist/gmedic/patientNotes/index.d.ts +1 -1
- package/dist/gmedic/patientNotes/models.d.ts +232 -1
- package/dist/gmedic/patients/client.d.ts +40 -359
- package/dist/gmedic/patients/client.js +13 -5
- package/dist/gmedic/patients/index.d.ts +2 -2
- package/dist/gmedic/patients/models.d.ts +795 -1
- package/dist/gmedic/services/client.d.ts +22 -16
- package/dist/gmedic/services/client.js +2 -2
- package/dist/gmedic/services/index.d.ts +1 -1
- package/dist/gmedic/services/models.d.ts +53 -3
- package/dist/gmedic/sessionPackages/client.d.ts +21 -58
- package/dist/gmedic/sessionPackages/client.js +5 -5
- package/dist/gmedic/sessionPackages/index.d.ts +1 -1
- package/dist/gmedic/sessionPackages/models.d.ts +183 -1
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +354 -5
- package/dist/models.js +6 -0
- package/dist/nuevaEps/affiliations/client.js +1 -1
- package/dist/nuevaEps/affiliations/models.d.ts +11 -9
- package/dist/nuevaEps/connections/client.d.ts +10 -9
- package/dist/nuevaEps/connections/client.js +9 -9
- package/dist/nuevaEps/connections/index.d.ts +1 -1
- package/dist/nuevaEps/connections/models.d.ts +22 -80
- package/dist/nuevaEps/connections/models.js +1 -8
- package/dist/nuevaEps/index.d.ts +1 -1
- package/dist/nuevaEps/models.d.ts +2 -101
- package/dist/orsovision/agencies/models.d.ts +8 -8
- package/dist/orsovision/appointments/client.d.ts +3 -3
- package/dist/orsovision/appointments/index.d.ts +1 -1
- package/dist/orsovision/appointments/models.d.ts +8 -32
- package/dist/orsovision/availability/index.d.ts +1 -1
- package/dist/orsovision/availability/models.d.ts +9 -20
- package/dist/orsovision/clinic/index.d.ts +1 -1
- package/dist/orsovision/clinic/models.d.ts +9 -8
- package/dist/orsovision/contracts/index.d.ts +1 -1
- package/dist/orsovision/contracts/models.d.ts +6 -30
- package/dist/orsovision/index.d.ts +1 -1
- package/dist/orsovision/models.d.ts +1 -162
- package/dist/orsovision/patients/client.d.ts +4 -4
- package/dist/orsovision/patients/index.d.ts +1 -1
- package/dist/orsovision/patients/models.d.ts +17 -27
- package/dist/orsovision/services/index.d.ts +1 -1
- package/dist/orsovision/services/models.d.ts +6 -30
- package/dist/orsovision/tools/index.d.ts +1 -1
- package/dist/orsovision/tools/models.d.ts +9 -8
- package/dist/raiz/agents/client.d.ts +5 -6
- package/dist/raiz/bulletins/client.d.ts +7 -6
- package/dist/raiz/campaigns/client.d.ts +5 -6
- package/dist/raiz/changes/client.d.ts +2 -2
- package/dist/raiz/channels/client.d.ts +9 -9
- package/dist/raiz/contacts/client.d.ts +7 -8
- package/dist/raiz/contacts/client.js +1 -1
- package/dist/raiz/conversations/client.d.ts +8 -8
- package/dist/raiz/definitions/client.d.ts +5 -5
- package/dist/raiz/evalCases/client.d.ts +4 -4
- package/dist/raiz/evalRuns/client.d.ts +3 -4
- package/dist/raiz/facts/client.d.ts +3 -4
- package/dist/raiz/facts/client.js +1 -1
- package/dist/raiz/index.d.ts +1 -1
- package/dist/raiz/knowledge/client.d.ts +6 -7
- package/dist/raiz/models.d.ts +8 -2
- package/dist/raiz/organization/client.d.ts +4 -5
- package/dist/raiz/profiles/client.d.ts +5 -6
- package/dist/raiz/reports/client.d.ts +2 -2
- package/dist/raiz/suppressions/client.d.ts +3 -4
- package/dist/raiz/tasks/client.d.ts +5 -6
- package/dist/raiz/tasks/client.js +1 -1
- package/dist/raiz/templates/client.d.ts +3 -4
- package/dist/raiz/voices/client.d.ts +2 -2
- package/dist/somos/appointments/client.d.ts +3 -3
- package/dist/somos/appointments/index.d.ts +1 -1
- package/dist/somos/appointments/models.d.ts +14 -12
- package/dist/somos/availability/index.d.ts +1 -1
- package/dist/somos/availability/models.d.ts +9 -20
- package/dist/somos/clinic/index.d.ts +1 -1
- package/dist/somos/clinic/models.d.ts +9 -8
- package/dist/somos/contracts/index.d.ts +1 -1
- package/dist/somos/contracts/models.d.ts +9 -20
- package/dist/somos/groups/models.d.ts +9 -9
- package/dist/somos/index.d.ts +1 -1
- package/dist/somos/models.d.ts +12 -151
- package/dist/somos/patients/client.d.ts +4 -4
- package/dist/somos/patients/index.d.ts +1 -1
- package/dist/somos/patients/models.d.ts +20 -17
- package/dist/somos/services/index.d.ts +1 -1
- package/dist/somos/services/models.d.ts +15 -26
- package/dist/somos/specialtyRules/client.d.ts +2 -2
- package/dist/somos/specialtyRules/models.d.ts +7 -7
- package/dist/somos/tools/index.d.ts +1 -1
- package/dist/somos/tools/models.d.ts +9 -8
- package/dist/sura/affiliations/client.d.ts +3 -36
- package/dist/sura/affiliations/client.js +6 -6
- package/dist/sura/affiliations/index.d.ts +1 -0
- package/dist/sura/affiliations/models.d.ts +71 -0
- package/dist/sura/affiliations/models.js +8 -0
- package/dist/sura/appointments/client.d.ts +27 -328
- package/dist/sura/appointments/client.js +15 -21
- package/dist/sura/appointments/index.d.ts +2 -1
- package/dist/sura/appointments/models.d.ts +310 -0
- package/dist/sura/appointments/models.js +22 -0
- package/dist/sura/authorizations/client.d.ts +3 -44
- package/dist/sura/authorizations/client.js +6 -6
- package/dist/sura/authorizations/index.d.ts +1 -0
- package/dist/sura/authorizations/models.d.ts +79 -0
- package/dist/sura/authorizations/models.js +8 -0
- package/dist/sura/availability/client.d.ts +4 -69
- package/dist/sura/availability/client.js +9 -9
- package/dist/sura/availability/index.d.ts +2 -1
- package/dist/sura/availability/models.d.ts +103 -0
- package/dist/sura/availability/models.js +8 -0
- package/dist/sura/bookingOptions/client.d.ts +35 -0
- package/dist/sura/bookingOptions/client.js +19 -0
- package/dist/sura/bookingOptions/index.d.ts +5 -0
- package/dist/sura/bookingOptions/index.js +4 -0
- package/dist/sura/bookingOptions/models.d.ts +143 -0
- package/dist/sura/bookingOptions/models.js +8 -0
- package/dist/sura/client.d.ts +2 -0
- package/dist/sura/client.js +5 -0
- package/dist/sura/connections/client.d.ts +20 -97
- package/dist/sura/connections/client.js +10 -10
- package/dist/sura/connections/index.d.ts +1 -1
- package/dist/sura/connections/models.d.ts +102 -1
- package/dist/sura/connections/models.js +6 -0
- package/dist/sura/copays/client.d.ts +4 -41
- package/dist/sura/copays/client.js +9 -9
- package/dist/sura/copays/index.d.ts +2 -1
- package/dist/sura/copays/models.d.ts +75 -0
- package/dist/sura/copays/models.js +8 -0
- package/dist/sura/index.d.ts +1 -1
- package/dist/sura/models.d.ts +204 -142
- package/dist/sura/models.js +20 -1
- package/dist/sura/operations/client.d.ts +2 -8
- package/dist/sura/operations/client.js +4 -4
- package/dist/sura/operations/index.d.ts +1 -0
- package/dist/sura/operations/models.d.ts +43 -0
- package/dist/sura/operations/models.js +8 -0
- package/dist/sura/patients/client.d.ts +3 -41
- package/dist/sura/patients/client.js +6 -6
- package/dist/sura/patients/index.d.ts +1 -0
- package/dist/sura/patients/models.d.ts +76 -0
- package/dist/sura/patients/models.js +8 -0
- package/dist/sura/professionals/client.d.ts +7 -10
- package/dist/sura/professionals/client.js +3 -4
- package/dist/sura/professionals/index.d.ts +1 -1
- package/dist/sura/professionals/models.d.ts +40 -1
- package/dist/sura/services/client.d.ts +7 -9
- package/dist/sura/services/client.js +3 -4
- package/dist/sura/services/index.d.ts +1 -0
- package/dist/sura/services/models.d.ts +40 -0
- package/dist/sura/services/models.js +3 -0
- package/dist/visoft/appointments/index.d.ts +1 -1
- package/dist/visoft/appointments/models.d.ts +8 -32
- package/dist/visoft/availability/models.d.ts +6 -6
- package/dist/visoft/clinic/models.d.ts +3 -2
- package/dist/visoft/clinics/models.d.ts +3 -3
- package/dist/visoft/connections/client.d.ts +3 -2
- package/dist/visoft/connections/index.d.ts +1 -1
- package/dist/visoft/connections/models.d.ts +4 -17
- package/dist/visoft/contracts/index.d.ts +1 -1
- package/dist/visoft/contracts/models.d.ts +4 -16
- package/dist/visoft/index.d.ts +1 -1
- package/dist/visoft/models.d.ts +2 -176
- package/dist/visoft/patients/index.d.ts +1 -1
- package/dist/visoft/patients/models.d.ts +10 -38
- package/dist/visoft/professionals/models.d.ts +5 -5
- package/dist/visoft/serviceCatalogs/models.d.ts +6 -6
- package/dist/visoft/services/index.d.ts +1 -1
- package/dist/visoft/services/models.d.ts +5 -17
- package/package.json +3 -3
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import { type AgendaResponseMetadata, type AgendaSlotPage } from "../models.js";
|
|
3
|
+
export interface ClientOptions extends BaseClientOptions {
|
|
4
|
+
/**
|
|
5
|
+
* The URL the paths of the API are relative to.
|
|
6
|
+
*/
|
|
7
|
+
baseUrl: string;
|
|
8
|
+
}
|
|
9
|
+
export interface Client {
|
|
10
|
+
/**
|
|
11
|
+
* Find scheduling availability
|
|
12
|
+
*
|
|
13
|
+
* Find available slots for one offering, earliest first, a page at a time:
|
|
14
|
+
* follow pageInfo.nextCursor for later ones. The returned slotToken is
|
|
15
|
+
* required to create the appointment.
|
|
16
|
+
*/
|
|
17
|
+
list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
18
|
+
}
|
|
19
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
20
|
+
export declare function bind(transport: Transport): Client;
|
|
21
|
+
export interface ListRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
24
|
+
*/
|
|
25
|
+
cursor?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
28
|
+
*/
|
|
29
|
+
direction?: "forward" | "backward";
|
|
30
|
+
/**
|
|
31
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
32
|
+
* another cursor.
|
|
33
|
+
*/
|
|
34
|
+
limit?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Exclude allocations belonging to this appointment while evaluating a
|
|
37
|
+
* proposed reschedule.
|
|
38
|
+
*/
|
|
39
|
+
excludeAppointmentId?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Inclusive beginning of the requested instant range.
|
|
42
|
+
*/
|
|
43
|
+
from: Temporal.Instant;
|
|
44
|
+
/**
|
|
45
|
+
* Required service offering whose available signed slots are searched within
|
|
46
|
+
* the requested interval.
|
|
47
|
+
*/
|
|
48
|
+
offeringId: string;
|
|
49
|
+
/**
|
|
50
|
+
* Preferred agendas considered first while satisfying the offering resource
|
|
51
|
+
* requirements.
|
|
52
|
+
*/
|
|
53
|
+
preferredResourceIds?: string[];
|
|
54
|
+
/**
|
|
55
|
+
* IANA timezone used to interpret local dates and agenda working hours.
|
|
56
|
+
*/
|
|
57
|
+
timezone: string;
|
|
58
|
+
/**
|
|
59
|
+
* Exclusive end of the requested instant range.
|
|
60
|
+
*/
|
|
61
|
+
to: Temporal.Instant;
|
|
62
|
+
/**
|
|
63
|
+
* The conversation's channel, set by the platform. It changes nothing in
|
|
64
|
+
* Agenda; omit it.
|
|
65
|
+
*/
|
|
66
|
+
channel?: "voice" | "whatsapp" | "web";
|
|
67
|
+
/**
|
|
68
|
+
* The platform's id for the organization's Agenda, set by the platform. An
|
|
69
|
+
* organization has one Agenda, so it selects nothing; omit it.
|
|
70
|
+
*/
|
|
71
|
+
connectionId?: string;
|
|
72
|
+
}
|
|
73
|
+
export interface ListResponse {
|
|
74
|
+
data: AgendaSlotPage;
|
|
75
|
+
error: null;
|
|
76
|
+
metadata: AgendaResponseMetadata;
|
|
77
|
+
success: true;
|
|
78
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, object, } from "../../_/index.js";
|
|
4
|
+
import { AgendaSlotPageCodec, } from "../models.js";
|
|
5
|
+
export function createClient(options) {
|
|
6
|
+
return bind(new Transport(options));
|
|
7
|
+
}
|
|
8
|
+
export function bind(transport) {
|
|
9
|
+
return {
|
|
10
|
+
list: (request, options) => transport.send(ListOperation, request, options),
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
const ListOperation = {
|
|
14
|
+
method: "GET",
|
|
15
|
+
route: "/v1/agenda/booking-slots",
|
|
16
|
+
query: { cursor: "cursor", direction: "direction", limit: "limit", excludeAppointmentId: "excludeAppointmentId", from: "from", offeringId: "offeringId", preferredResourceIds: "preferredResourceIds", timezone: "timezone", to: "to", channel: "channel", connectionId: "connectionId" },
|
|
17
|
+
response: object([["data", null, () => AgendaSlotPageCodec]]),
|
|
18
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "426": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
19
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import { type
|
|
4
|
-
import { type AgendaAppointmentGuidance, type AgendaBookableOfferingPage, type AgendaBooking } from "./models.js";
|
|
2
|
+
import { type AgendaAppointment, type AgendaAppointmentIntakeInput, type AgendaResponseMetadata } from "../models.js";
|
|
3
|
+
import { type AgendaAppointmentGuidance, type AgendaBooking } from "./models.js";
|
|
5
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
6
5
|
/**
|
|
7
6
|
* The URL the paths of the API are relative to.
|
|
@@ -13,17 +12,17 @@ export interface Client {
|
|
|
13
12
|
* Cancel an appointment
|
|
14
13
|
*
|
|
15
14
|
* Cancel one appointment after the person explicitly confirms which one.
|
|
16
|
-
* Frees its slot. Pass the appointment id
|
|
17
|
-
* and the reason the person gave.
|
|
15
|
+
* Frees its slot. Pass the appointment as appointmentId (its id from
|
|
16
|
+
* list_patient_appointments) and the reason the person gave.
|
|
18
17
|
*/
|
|
19
18
|
cancel(request: CancelRequest, options?: RequestOptions): Promise<CancelResponse>;
|
|
20
19
|
/**
|
|
21
20
|
* Create an appointment
|
|
22
21
|
*
|
|
23
22
|
* Book one slot only after the person explicitly confirms it. Pass the exact
|
|
24
|
-
* slotToken returned by find_availability, the patient's name,
|
|
25
|
-
* documentType (one of the organization's documentTypes codes; the first
|
|
26
|
-
* when omitted), and the intake the organization requires (call
|
|
23
|
+
* slotToken returned by find_availability, the patient's name, documentNumber
|
|
24
|
+
* and documentType (one of the organization's documentTypes codes; the first
|
|
25
|
+
* one when omitted), and the intake the organization requires (call
|
|
27
26
|
* get_intake_settings first). When the service has an age rule (eligibility
|
|
28
27
|
* in list_offerings), ask the patient's date of birth and pass
|
|
29
28
|
* patientBirthDate; never infer age from a name or document type. The booking
|
|
@@ -32,107 +31,39 @@ export interface Client {
|
|
|
32
31
|
* printable slip PDF (with the service's indications) to send them as a file.
|
|
33
32
|
*/
|
|
34
33
|
create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
|
|
35
|
-
/**
|
|
36
|
-
* Find the first available times for a service
|
|
37
|
-
*
|
|
38
|
-
* Find the truly nearest bookable times for one service, in ONE call, across
|
|
39
|
-
* every professional, room or equipment that offers it (up to 50 agendas).
|
|
40
|
-
* Leave days out: the search then reaches as far as the service can be booked
|
|
41
|
-
* (its booking horizon, up to a year) and stops at the first `limit` slots,
|
|
42
|
-
* so an opening months away is found at once. Do not page week by week. An
|
|
43
|
-
* empty data list means there is no opening within that reach (searchedUntil
|
|
44
|
-
* says how far it looked); offer the waitlist instead. Pass days only to look
|
|
45
|
-
* at a shorter stretch. group 'time' (default) returns the earliest slots
|
|
46
|
-
* overall, and nextFrom only for more slots after these; group 'offering'
|
|
47
|
-
* returns each agenda's first slots. Use limit 1–3 to quote the nearest time.
|
|
48
|
-
* Each slotToken books with create_appointment.
|
|
49
|
-
*/
|
|
50
|
-
findNearestSlots(request: FindNearestSlotsRequest, options?: RequestOptions): Promise<FindNearestSlotsResponse>;
|
|
51
|
-
/**
|
|
52
|
-
* Find scheduling availability
|
|
53
|
-
*
|
|
54
|
-
* Find available slots for one offering, earliest first, a page at a time:
|
|
55
|
-
* follow pageInfo.nextCursor for later ones. The returned slotToken is
|
|
56
|
-
* required to create the appointment.
|
|
57
|
-
*/
|
|
58
|
-
findSlots(request: FindSlotsRequest, options?: RequestOptions): Promise<FindSlotsResponse>;
|
|
59
34
|
/**
|
|
60
35
|
* Get an appointment
|
|
61
36
|
*
|
|
62
|
-
* Read one appointment by its id: when it starts and ends, its
|
|
63
|
-
* patient, the agendas (resourceIds), the intake and guidance
|
|
64
|
-
* current patientInstructions, arrivalOrder, who attends it
|
|
65
|
-
* its address) to tell the patient, and slip: a link, valid
|
|
66
|
-
* its printable slip PDF to send them as a file.
|
|
37
|
+
* Read one appointment by its id, appointmentId: when it starts and ends, its
|
|
38
|
+
* status, the patient, the agendas (resourceIds), the intake and guidance
|
|
39
|
+
* (the service's current patientInstructions, arrivalOrder, who attends it
|
|
40
|
+
* and the site with its address) to tell the patient, and slip: a link, valid
|
|
41
|
+
* for an hour, to its printable slip PDF to send them as a file.
|
|
67
42
|
*/
|
|
68
43
|
get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
|
|
69
44
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* Get required/optional booking fields, document-type codes and active
|
|
73
|
-
* payers. Pass payerQuery when a document already identifies the payer (e.g.
|
|
74
|
-
* the health plan on an insurance card), to omit unrelated payers. Reuse
|
|
75
|
-
* clear patient data from the conversation or documents instead of asking it
|
|
76
|
-
* again; request only missing required or ambiguous values. Each payer
|
|
77
|
-
* includes attended sites and sitesNote: a nonempty sites list restricts
|
|
78
|
-
* which IPS/sede is served; an empty list means all its sites. Each payer
|
|
79
|
-
* also has bookingPolicy: 'staff_only' means only the clinic's team books its
|
|
80
|
-
* patients, so never book them; use add_to_waitlist with reason payer_review
|
|
81
|
-
* instead. An empty payer match does not establish coverage.
|
|
82
|
-
*/
|
|
83
|
-
getRequirements(request?: GetRequirementsRequest, options?: RequestOptions): Promise<GetRequirementsResponse>;
|
|
84
|
-
/**
|
|
85
|
-
* List a patient's appointments
|
|
86
|
-
*
|
|
87
|
-
* Find a patient by their exact document number (and type, e.g. CC or TI,
|
|
88
|
-
* when known) and list their appointments, newest first, each with id, start,
|
|
89
|
-
* status and agendas; upcoming ones also carry guidance (patientInstructions,
|
|
90
|
-
* arrivalOrder, who attends and the site's address). Use it before cancelling
|
|
91
|
-
* or rescheduling; found=false means no patient has that document. When
|
|
92
|
-
* several patients share the number under different types, patients lists
|
|
93
|
-
* them and appointments is empty: ask which one and call again with
|
|
94
|
-
* documentType.
|
|
95
|
-
*/
|
|
96
|
-
list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
97
|
-
/**
|
|
98
|
-
* List sites
|
|
45
|
+
* Look up a patient's appointments
|
|
99
46
|
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
47
|
+
* Find a patient by their exact documentNumber (and documentType, such as CC
|
|
48
|
+
* or TI, when known) and list their appointments, newest first, each with id,
|
|
49
|
+
* start, status and agendas; upcoming ones also carry guidance
|
|
50
|
+
* (patientInstructions, arrivalOrder, who attends and the site's address).
|
|
51
|
+
* Use it before cancelling or rescheduling; found=false means no patient has
|
|
52
|
+
* that document. When several patients share the number under different
|
|
53
|
+
* types, patients lists them and appointments is empty: ask which one and
|
|
54
|
+
* call again with documentType.
|
|
103
55
|
*/
|
|
104
|
-
|
|
56
|
+
lookup(request?: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
|
|
105
57
|
/**
|
|
106
58
|
* Reschedule an appointment
|
|
107
59
|
*
|
|
108
60
|
* Move one appointment to a new time after the person confirms it. First find
|
|
109
61
|
* the new time with find_availability or find_first_available for the same
|
|
110
62
|
* service (another professional or room of that service is fine), then pass
|
|
111
|
-
* that slotToken and the appointment
|
|
112
|
-
* refused: the appointment keeps its service.
|
|
63
|
+
* that slotToken and the appointment as appointmentId. A slot of another
|
|
64
|
+
* service is refused: the appointment keeps its service.
|
|
113
65
|
*/
|
|
114
66
|
reschedule(request: RescheduleRequest, options?: RequestOptions): Promise<RescheduleResponse>;
|
|
115
|
-
/**
|
|
116
|
-
* Search bookable offerings
|
|
117
|
-
*
|
|
118
|
-
* Search active bookable offerings by query (e.g. electroencefalograma,
|
|
119
|
-
* neurología), exact serviceId or locationId. Pass the known service name
|
|
120
|
-
* instead of loading the whole catalog. Returns a compact page with
|
|
121
|
-
* offering/service ids, agendas, sites, current bookingChecklist, staff
|
|
122
|
-
* guidance (description), patientInstructions, eligibility (the ages a
|
|
123
|
-
* service takes, in completed years on the appointment day; null for any age)
|
|
124
|
-
* and occupationMinutes (how long the patient stays when longer than the
|
|
125
|
-
* appointment, e.g. a 12-hour study). Check these requirements against known
|
|
126
|
-
* patient facts before slots or booking; explain patient instructions, and
|
|
127
|
-
* ask only for missing required facts. When eligibility is set, ask the
|
|
128
|
-
* patient's date of birth before booking and pass it as patientBirthDate. If
|
|
129
|
-
* exactly one location applies, use it automatically without asking the
|
|
130
|
-
* patient to choose a site; provide its address for arrival or booking
|
|
131
|
-
* confirmation. Never infer age from a name or document type. A listed
|
|
132
|
-
* service does not establish payer coverage. Follow pageInfo.nextCursor only
|
|
133
|
-
* if needed.
|
|
134
|
-
*/
|
|
135
|
-
searchOfferings(request?: SearchOfferingsRequest, options?: RequestOptions): Promise<SearchOfferingsResponse>;
|
|
136
67
|
}
|
|
137
68
|
export declare function createClient(options: ClientOptions): Client;
|
|
138
69
|
export declare function bind(transport: Transport): Client;
|
|
@@ -141,7 +72,7 @@ export interface CancelRequest {
|
|
|
141
72
|
* Stable eng-prefixed Scheduling record identifier; ownership is checked in
|
|
142
73
|
* the authenticated organization.
|
|
143
74
|
*/
|
|
144
|
-
|
|
75
|
+
appointmentId: string;
|
|
145
76
|
/**
|
|
146
77
|
* The conversation's channel, set by the platform. It changes nothing in
|
|
147
78
|
* Agenda; omit it.
|
|
@@ -161,7 +92,7 @@ export interface CancelRequest {
|
|
|
161
92
|
export interface CancelResponse {
|
|
162
93
|
data: AgendaAppointment;
|
|
163
94
|
error: null;
|
|
164
|
-
metadata:
|
|
95
|
+
metadata: AgendaResponseMetadata;
|
|
165
96
|
success: true;
|
|
166
97
|
}
|
|
167
98
|
export interface CreateRequest {
|
|
@@ -189,7 +120,12 @@ export interface CreateRequest {
|
|
|
189
120
|
* Patient identity copied into the booking; null when no patient identity was
|
|
190
121
|
* supplied.
|
|
191
122
|
*/
|
|
192
|
-
patient?:
|
|
123
|
+
patient?: {
|
|
124
|
+
document?: string | null;
|
|
125
|
+
documentNumber?: string | null;
|
|
126
|
+
documentType?: string | null;
|
|
127
|
+
name: string;
|
|
128
|
+
} | null;
|
|
193
129
|
/**
|
|
194
130
|
* Patient-supplied date of birth (YYYY-MM-DD), stored on the record and
|
|
195
131
|
* checked against service age eligibility.
|
|
@@ -209,117 +145,7 @@ export interface CreateRequest {
|
|
|
209
145
|
export interface CreateResponse {
|
|
210
146
|
data: AgendaBooking;
|
|
211
147
|
error: null;
|
|
212
|
-
metadata:
|
|
213
|
-
success: true;
|
|
214
|
-
}
|
|
215
|
-
export interface FindNearestSlotsRequest {
|
|
216
|
-
/**
|
|
217
|
-
* The conversation's channel, set by the platform. It changes nothing in
|
|
218
|
-
* Agenda; omit it.
|
|
219
|
-
*/
|
|
220
|
-
channel?: "voice" | "whatsapp" | "web";
|
|
221
|
-
/**
|
|
222
|
-
* The platform's id for the organization's Agenda, set by the platform. An
|
|
223
|
-
* organization has one Agenda, so it selects nothing; omit it.
|
|
224
|
-
*/
|
|
225
|
-
connectionId?: string;
|
|
226
|
-
/**
|
|
227
|
-
* Days to search; absent: as far as the service can be booked.
|
|
228
|
-
*/
|
|
229
|
-
days?: number;
|
|
230
|
-
/**
|
|
231
|
-
* Start of the search; defaults to now.
|
|
232
|
-
*/
|
|
233
|
-
from?: Temporal.Instant;
|
|
234
|
-
/**
|
|
235
|
-
* Group first availability globally by time or return a separate
|
|
236
|
-
* earliest-slot set for each offering.
|
|
237
|
-
*/
|
|
238
|
-
group?: "time" | "offering";
|
|
239
|
-
/**
|
|
240
|
-
* Maximum returned slots overall or per offering according to group; defaults
|
|
241
|
-
* to 20 and cannot exceed 50.
|
|
242
|
-
*/
|
|
243
|
-
limit?: number;
|
|
244
|
-
/**
|
|
245
|
-
* Only agendas at this site (and those not tied to any site).
|
|
246
|
-
*/
|
|
247
|
-
locationId?: string;
|
|
248
|
-
/**
|
|
249
|
-
* Only agendas that can use this professional, room or equipment.
|
|
250
|
-
*/
|
|
251
|
-
resourceId?: string;
|
|
252
|
-
/**
|
|
253
|
-
* Service identifier within the authenticated organization.
|
|
254
|
-
*/
|
|
255
|
-
serviceId: string;
|
|
256
|
-
/**
|
|
257
|
-
* IANA timezone used to interpret local dates and agenda working hours.
|
|
258
|
-
*/
|
|
259
|
-
timezone: string;
|
|
260
|
-
}
|
|
261
|
-
export interface FindNearestSlotsResponse {
|
|
262
|
-
data: AgendaFirstAvailability;
|
|
263
|
-
error: null;
|
|
264
|
-
metadata: ResponseMetadata;
|
|
265
|
-
success: true;
|
|
266
|
-
}
|
|
267
|
-
export interface FindSlotsRequest {
|
|
268
|
-
/**
|
|
269
|
-
* The conversation's channel, set by the platform. It changes nothing in
|
|
270
|
-
* Agenda; omit it.
|
|
271
|
-
*/
|
|
272
|
-
channel?: "voice" | "whatsapp" | "web";
|
|
273
|
-
/**
|
|
274
|
-
* The platform's id for the organization's Agenda, set by the platform. An
|
|
275
|
-
* organization has one Agenda, so it selects nothing; omit it.
|
|
276
|
-
*/
|
|
277
|
-
connectionId?: string;
|
|
278
|
-
/**
|
|
279
|
-
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
280
|
-
*/
|
|
281
|
-
cursor?: string;
|
|
282
|
-
/**
|
|
283
|
-
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
284
|
-
*/
|
|
285
|
-
direction?: "forward" | "backward";
|
|
286
|
-
/**
|
|
287
|
-
* Exclude allocations belonging to this appointment while evaluating a
|
|
288
|
-
* proposed reschedule.
|
|
289
|
-
*/
|
|
290
|
-
excludeAppointmentId?: string;
|
|
291
|
-
/**
|
|
292
|
-
* Inclusive beginning of the requested instant range.
|
|
293
|
-
*/
|
|
294
|
-
from: Temporal.Instant;
|
|
295
|
-
/**
|
|
296
|
-
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
297
|
-
* another cursor.
|
|
298
|
-
*/
|
|
299
|
-
limit?: number;
|
|
300
|
-
/**
|
|
301
|
-
* Required service offering whose available signed slots are searched within
|
|
302
|
-
* the requested interval.
|
|
303
|
-
*/
|
|
304
|
-
offeringId: string;
|
|
305
|
-
/**
|
|
306
|
-
* Preferred agendas considered first while satisfying the offering resource
|
|
307
|
-
* requirements.
|
|
308
|
-
*/
|
|
309
|
-
preferredResourceIds?: string[];
|
|
310
|
-
/**
|
|
311
|
-
* IANA timezone used to interpret local dates and agenda working hours.
|
|
312
|
-
*/
|
|
313
|
-
timezone: string;
|
|
314
|
-
/**
|
|
315
|
-
* Exclusive end of the requested instant range.
|
|
316
|
-
*/
|
|
317
|
-
to: Temporal.Instant;
|
|
318
|
-
}
|
|
319
|
-
export interface FindSlotsResponse {
|
|
320
|
-
data: AgendaSlotPage;
|
|
321
|
-
error: null;
|
|
322
|
-
metadata: ResponseMetadata;
|
|
148
|
+
metadata: AgendaResponseMetadata;
|
|
323
149
|
success: true;
|
|
324
150
|
}
|
|
325
151
|
export interface GetRequest {
|
|
@@ -327,7 +153,7 @@ export interface GetRequest {
|
|
|
327
153
|
* Stable eng-prefixed Scheduling record identifier; ownership is checked in
|
|
328
154
|
* the authenticated organization.
|
|
329
155
|
*/
|
|
330
|
-
|
|
156
|
+
appointmentId: string;
|
|
331
157
|
/**
|
|
332
158
|
* The conversation's channel, set by the platform. It changes nothing in
|
|
333
159
|
* Agenda; omit it.
|
|
@@ -342,15 +168,10 @@ export interface GetRequest {
|
|
|
342
168
|
export interface GetResponse {
|
|
343
169
|
data: AgendaBooking;
|
|
344
170
|
error: null;
|
|
345
|
-
metadata:
|
|
171
|
+
metadata: AgendaResponseMetadata;
|
|
346
172
|
success: true;
|
|
347
173
|
}
|
|
348
|
-
export interface
|
|
349
|
-
/**
|
|
350
|
-
* Known payer name to narrow the active payer list; an empty match never
|
|
351
|
-
* establishes coverage.
|
|
352
|
-
*/
|
|
353
|
-
payerQuery?: string;
|
|
174
|
+
export interface LookupRequest {
|
|
354
175
|
/**
|
|
355
176
|
* The conversation's channel, set by the platform. It changes nothing in
|
|
356
177
|
* Agenda; omit it.
|
|
@@ -361,104 +182,24 @@ export interface GetRequirementsRequest {
|
|
|
361
182
|
* organization has one Agenda, so it selects nothing; omit it.
|
|
362
183
|
*/
|
|
363
184
|
connectionId?: string;
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
minMinutes: number;
|
|
371
|
-
stepMinutes: 1 | 5 | 10 | 15 | 20 | 30 | 60;
|
|
372
|
-
};
|
|
373
|
-
customFields: {
|
|
374
|
-
help: string | null;
|
|
375
|
-
key: string;
|
|
376
|
-
label: string;
|
|
377
|
-
options: string[];
|
|
378
|
-
required: boolean;
|
|
379
|
-
status: "active" | "archived";
|
|
380
|
-
type: "text" | "number" | "date" | "select" | "checkbox";
|
|
381
|
-
}[];
|
|
382
|
-
documentTypes: {
|
|
383
|
-
code: string;
|
|
384
|
-
description: string;
|
|
385
|
-
name: string;
|
|
386
|
-
status: "active" | "inactive";
|
|
387
|
-
}[];
|
|
388
|
-
fields: {
|
|
389
|
-
authorization: "off" | "optional" | "required";
|
|
390
|
-
conversationUrl: "off" | "optional";
|
|
391
|
-
document: "optional" | "required";
|
|
392
|
-
email: "off" | "optional" | "required";
|
|
393
|
-
notes: "off" | "optional" | "required";
|
|
394
|
-
payer: "off" | "optional" | "required";
|
|
395
|
-
phone: "off" | "optional" | "required";
|
|
396
|
-
priority: "off" | "on";
|
|
397
|
-
};
|
|
398
|
-
labels: {
|
|
399
|
-
authorization: {
|
|
400
|
-
label: string;
|
|
401
|
-
placeholder: string;
|
|
402
|
-
};
|
|
403
|
-
document: {
|
|
404
|
-
label: string;
|
|
405
|
-
placeholder: string;
|
|
406
|
-
};
|
|
407
|
-
email: {
|
|
408
|
-
label: string;
|
|
409
|
-
placeholder: string;
|
|
410
|
-
};
|
|
411
|
-
name: {
|
|
412
|
-
label: string;
|
|
413
|
-
placeholder: string;
|
|
414
|
-
};
|
|
415
|
-
notes: {
|
|
416
|
-
label: string;
|
|
417
|
-
placeholder: string;
|
|
418
|
-
};
|
|
419
|
-
phone: {
|
|
420
|
-
label: string;
|
|
421
|
-
placeholder: string;
|
|
422
|
-
};
|
|
423
|
-
};
|
|
424
|
-
object: "scheduling.intake_settings";
|
|
425
|
-
payerLabel: string;
|
|
426
|
-
payers: {
|
|
427
|
-
bookingPolicy: "open" | "staff_only";
|
|
428
|
-
name: string;
|
|
429
|
-
sites: string[];
|
|
430
|
-
sitesNote: string | null;
|
|
431
|
-
}[];
|
|
432
|
-
updatedAt: string | null;
|
|
433
|
-
version: number;
|
|
434
|
-
};
|
|
435
|
-
error: null;
|
|
436
|
-
metadata: ResponseMetadata;
|
|
437
|
-
success: true;
|
|
438
|
-
}
|
|
439
|
-
export interface ListRequest {
|
|
185
|
+
/**
|
|
186
|
+
* Deprecated: use `documentNumber`. Answered until 2027-01-28.
|
|
187
|
+
*
|
|
188
|
+
* @deprecated
|
|
189
|
+
*/
|
|
190
|
+
document?: string;
|
|
440
191
|
/**
|
|
441
192
|
* Exact patient document number; normalized for matching, with documentType
|
|
442
193
|
* needed when multiple types share the number.
|
|
443
194
|
*/
|
|
444
|
-
|
|
195
|
+
documentNumber?: string;
|
|
445
196
|
/**
|
|
446
197
|
* Document-type code from the organization’s configured active types. Input
|
|
447
198
|
* is trimmed and uppercased.
|
|
448
199
|
*/
|
|
449
200
|
documentType?: string;
|
|
450
|
-
/**
|
|
451
|
-
* The conversation's channel, set by the platform. It changes nothing in
|
|
452
|
-
* Agenda; omit it.
|
|
453
|
-
*/
|
|
454
|
-
channel?: "voice" | "whatsapp" | "web";
|
|
455
|
-
/**
|
|
456
|
-
* The platform's id for the organization's Agenda, set by the platform. An
|
|
457
|
-
* organization has one Agenda, so it selects nothing; omit it.
|
|
458
|
-
*/
|
|
459
|
-
connectionId?: string;
|
|
460
201
|
}
|
|
461
|
-
export interface
|
|
202
|
+
export interface LookupResponse {
|
|
462
203
|
data: {
|
|
463
204
|
appointments: {
|
|
464
205
|
endsAt: string;
|
|
@@ -480,6 +221,7 @@ export interface ListResponse {
|
|
|
480
221
|
city: string | null;
|
|
481
222
|
createdAt: string;
|
|
482
223
|
document: string | null;
|
|
224
|
+
documentNumber: string | null;
|
|
483
225
|
documentType: string | null;
|
|
484
226
|
email: string | null;
|
|
485
227
|
entity: string | null;
|
|
@@ -500,44 +242,14 @@ export interface ListResponse {
|
|
|
500
242
|
};
|
|
501
243
|
patients?: {
|
|
502
244
|
document: string | null;
|
|
245
|
+
documentNumber: string | null;
|
|
503
246
|
documentType: string | null;
|
|
504
247
|
id: string;
|
|
505
248
|
name: string;
|
|
506
249
|
}[];
|
|
507
250
|
};
|
|
508
251
|
error: null;
|
|
509
|
-
metadata:
|
|
510
|
-
success: true;
|
|
511
|
-
}
|
|
512
|
-
export interface ListLocationsRequest {
|
|
513
|
-
/**
|
|
514
|
-
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
515
|
-
*/
|
|
516
|
-
cursor?: string;
|
|
517
|
-
/**
|
|
518
|
-
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
519
|
-
*/
|
|
520
|
-
direction?: "forward" | "backward";
|
|
521
|
-
/**
|
|
522
|
-
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
523
|
-
* another cursor.
|
|
524
|
-
*/
|
|
525
|
-
limit?: number;
|
|
526
|
-
/**
|
|
527
|
-
* The conversation's channel, set by the platform. It changes nothing in
|
|
528
|
-
* Agenda; omit it.
|
|
529
|
-
*/
|
|
530
|
-
channel?: "voice" | "whatsapp" | "web";
|
|
531
|
-
/**
|
|
532
|
-
* The platform's id for the organization's Agenda, set by the platform. An
|
|
533
|
-
* organization has one Agenda, so it selects nothing; omit it.
|
|
534
|
-
*/
|
|
535
|
-
connectionId?: string;
|
|
536
|
-
}
|
|
537
|
-
export interface ListLocationsResponse {
|
|
538
|
-
data: AgendaLocationPage;
|
|
539
|
-
error: null;
|
|
540
|
-
metadata: ResponseMetadata;
|
|
252
|
+
metadata: AgendaResponseMetadata;
|
|
541
253
|
success: true;
|
|
542
254
|
}
|
|
543
255
|
export interface RescheduleRequest {
|
|
@@ -545,7 +257,7 @@ export interface RescheduleRequest {
|
|
|
545
257
|
* Stable eng-prefixed Scheduling record identifier; ownership is checked in
|
|
546
258
|
* the authenticated organization.
|
|
547
259
|
*/
|
|
548
|
-
|
|
260
|
+
appointmentId: string;
|
|
549
261
|
/**
|
|
550
262
|
* The conversation's channel, set by the platform. It changes nothing in
|
|
551
263
|
* Agenda; omit it.
|
|
@@ -565,50 +277,6 @@ export interface RescheduleRequest {
|
|
|
565
277
|
export interface RescheduleResponse {
|
|
566
278
|
data: AgendaBooking;
|
|
567
279
|
error: null;
|
|
568
|
-
metadata:
|
|
569
|
-
success: true;
|
|
570
|
-
}
|
|
571
|
-
export interface SearchOfferingsRequest {
|
|
572
|
-
/**
|
|
573
|
-
* The conversation's channel, set by the platform. It changes nothing in
|
|
574
|
-
* Agenda; omit it.
|
|
575
|
-
*/
|
|
576
|
-
channel?: "voice" | "whatsapp" | "web";
|
|
577
|
-
/**
|
|
578
|
-
* The platform's id for the organization's Agenda, set by the platform. An
|
|
579
|
-
* organization has one Agenda, so it selects nothing; omit it.
|
|
580
|
-
*/
|
|
581
|
-
connectionId?: string;
|
|
582
|
-
/**
|
|
583
|
-
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
584
|
-
*/
|
|
585
|
-
cursor?: string;
|
|
586
|
-
/**
|
|
587
|
-
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
588
|
-
*/
|
|
589
|
-
direction?: "forward" | "backward";
|
|
590
|
-
/**
|
|
591
|
-
* Maximum items returned in one page. Defaults to 10; larger reads require
|
|
592
|
-
* another cursor.
|
|
593
|
-
*/
|
|
594
|
-
limit?: number;
|
|
595
|
-
/**
|
|
596
|
-
* Clinic site associated with this record; null means it is not tied to a
|
|
597
|
-
* site.
|
|
598
|
-
*/
|
|
599
|
-
locationId?: string;
|
|
600
|
-
/**
|
|
601
|
-
* Free-text filter applied to this collection.
|
|
602
|
-
*/
|
|
603
|
-
query?: string;
|
|
604
|
-
/**
|
|
605
|
-
* Service whose bookable offerings or appointments are addressed.
|
|
606
|
-
*/
|
|
607
|
-
serviceId?: string;
|
|
608
|
-
}
|
|
609
|
-
export interface SearchOfferingsResponse {
|
|
610
|
-
data: AgendaBookableOfferingPage;
|
|
611
|
-
error: null;
|
|
612
|
-
metadata: ResponseMetadata;
|
|
280
|
+
metadata: AgendaResponseMetadata;
|
|
613
281
|
success: true;
|
|
614
282
|
}
|