@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
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import { type AgendaFirstAvailability, type AgendaSlotPage } from "../models.js";
|
|
2
|
+
import { type AgendaResponseMetadata, type AgendaSlotPage } from "../models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -8,13 +7,6 @@ export interface ClientOptions extends BaseClientOptions {
|
|
|
8
7
|
baseUrl: string;
|
|
9
8
|
}
|
|
10
9
|
export interface Client {
|
|
11
|
-
/**
|
|
12
|
-
* Get First Available
|
|
13
|
-
*
|
|
14
|
-
* Find the earliest bookable slots for a service across eligible agendas,
|
|
15
|
-
* with a bounded search horizon and continuation.
|
|
16
|
-
*/
|
|
17
|
-
first(request: FirstRequest, options?: RequestOptions): Promise<FirstResponse>;
|
|
18
10
|
/**
|
|
19
11
|
* Get Availability
|
|
20
12
|
*
|
|
@@ -25,66 +17,7 @@ export interface Client {
|
|
|
25
17
|
}
|
|
26
18
|
export declare function createClient(options: ClientOptions): Client;
|
|
27
19
|
export declare function bind(transport: Transport): Client;
|
|
28
|
-
export interface FirstRequest {
|
|
29
|
-
/**
|
|
30
|
-
* Service identifier within the authenticated organization.
|
|
31
|
-
*/
|
|
32
|
-
serviceId: string;
|
|
33
|
-
/**
|
|
34
|
-
* Maximum number of days to search; omission uses the service booking
|
|
35
|
-
* horizon.
|
|
36
|
-
*/
|
|
37
|
-
days?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Requested visible appointment duration in minutes; admitted only when the
|
|
40
|
-
* organization permits the override.
|
|
41
|
-
*/
|
|
42
|
-
durationMinutes?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Earliest instant to examine; omission starts the availability search at the
|
|
45
|
-
* current time.
|
|
46
|
-
*/
|
|
47
|
-
from?: Temporal.Instant;
|
|
48
|
-
/**
|
|
49
|
-
* A study length in minutes among those its agendas offer; only agendas
|
|
50
|
-
* offering it are searched, at that length.
|
|
51
|
-
*/
|
|
52
|
-
occupationMinutes?: string;
|
|
53
|
-
/**
|
|
54
|
-
* Group first availability globally by time or return a separate
|
|
55
|
-
* earliest-slot set for each offering.
|
|
56
|
-
*/
|
|
57
|
-
group?: "time" | "offering";
|
|
58
|
-
/**
|
|
59
|
-
* Maximum returned slots overall or per offering according to group; defaults
|
|
60
|
-
* to 20 and cannot exceed 50.
|
|
61
|
-
*/
|
|
62
|
-
limit?: number;
|
|
63
|
-
/**
|
|
64
|
-
* Limit appointments to agendas associated with the selected site.
|
|
65
|
-
*/
|
|
66
|
-
locationId?: string;
|
|
67
|
-
/**
|
|
68
|
-
* Agenda identifier within the authenticated organization.
|
|
69
|
-
*/
|
|
70
|
-
resourceId?: string;
|
|
71
|
-
/**
|
|
72
|
-
* IANA timezone used to interpret local dates and agenda working hours.
|
|
73
|
-
*/
|
|
74
|
-
timezone: string;
|
|
75
|
-
}
|
|
76
|
-
export interface FirstResponse {
|
|
77
|
-
data: AgendaFirstAvailability;
|
|
78
|
-
error: null;
|
|
79
|
-
metadata: ResponseMetadata;
|
|
80
|
-
success: true;
|
|
81
|
-
}
|
|
82
20
|
export interface ListRequest {
|
|
83
|
-
/**
|
|
84
|
-
* Required service offering whose available signed slots are searched within
|
|
85
|
-
* the requested interval.
|
|
86
|
-
*/
|
|
87
|
-
offeringId: string;
|
|
88
21
|
/**
|
|
89
22
|
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
90
23
|
*/
|
|
@@ -93,6 +26,11 @@ export interface ListRequest {
|
|
|
93
26
|
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
94
27
|
*/
|
|
95
28
|
direction?: "forward" | "backward";
|
|
29
|
+
/**
|
|
30
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
31
|
+
* another cursor.
|
|
32
|
+
*/
|
|
33
|
+
limit?: number;
|
|
96
34
|
/**
|
|
97
35
|
* Requested visible appointment duration in minutes; admitted only when the
|
|
98
36
|
* organization permits the override.
|
|
@@ -107,17 +45,17 @@ export interface ListRequest {
|
|
|
107
45
|
* Inclusive beginning of the requested instant range.
|
|
108
46
|
*/
|
|
109
47
|
from: Temporal.Instant;
|
|
110
|
-
/**
|
|
111
|
-
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
112
|
-
* another cursor.
|
|
113
|
-
*/
|
|
114
|
-
limit?: number;
|
|
115
48
|
/**
|
|
116
49
|
* A study length in minutes among those the offering offers
|
|
117
50
|
* (occupationMinutes and studyOptions), booked in that length’s arrival
|
|
118
51
|
* hours; absent: its usual length.
|
|
119
52
|
*/
|
|
120
53
|
occupationMinutes?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Required service offering whose available signed slots are searched within
|
|
56
|
+
* the requested interval.
|
|
57
|
+
*/
|
|
58
|
+
offeringId: string;
|
|
121
59
|
/**
|
|
122
60
|
* Preferred agendas considered first while satisfying the offering resource
|
|
123
61
|
* requirements.
|
|
@@ -135,6 +73,6 @@ export interface ListRequest {
|
|
|
135
73
|
export interface ListResponse {
|
|
136
74
|
data: AgendaSlotPage;
|
|
137
75
|
error: null;
|
|
138
|
-
metadata:
|
|
76
|
+
metadata: AgendaResponseMetadata;
|
|
139
77
|
success: true;
|
|
140
78
|
}
|
|
@@ -1,28 +1,19 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
import { Transport,
|
|
4
|
-
import {
|
|
3
|
+
import { Transport, object, } from "../../_/index.js";
|
|
4
|
+
import { AgendaSlotPageCodec, } from "../models.js";
|
|
5
5
|
export function createClient(options) {
|
|
6
6
|
return bind(new Transport(options));
|
|
7
7
|
}
|
|
8
8
|
export function bind(transport) {
|
|
9
9
|
return {
|
|
10
|
-
first: (request, options) => transport.send(FirstOperation, request, options),
|
|
11
10
|
list: (request, options) => transport.send(ListOperation, request, options),
|
|
12
11
|
};
|
|
13
12
|
}
|
|
14
|
-
const FirstOperation = {
|
|
15
|
-
method: "GET",
|
|
16
|
-
route: "/v1/agenda/services/{serviceId}/availability/first",
|
|
17
|
-
query: { days: "days", durationMinutes: "durationMinutes", from: "from", occupationMinutes: "occupationMinutes", group: "group", limit: "limit", locationId: "locationId", resourceId: "resourceId", timezone: "timezone" },
|
|
18
|
-
response: object([["data", null, () => AgendaFirstAvailabilityCodec]]),
|
|
19
|
-
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 },
|
|
20
|
-
};
|
|
21
13
|
const ListOperation = {
|
|
22
|
-
method: "
|
|
23
|
-
route: "/v1/agenda/
|
|
24
|
-
|
|
25
|
-
request: object([["from", null, instant], ["to", null, instant]]),
|
|
14
|
+
method: "GET",
|
|
15
|
+
route: "/v1/agenda/availability",
|
|
16
|
+
query: { cursor: "cursor", direction: "direction", limit: "limit", durationMinutes: "durationMinutes", excludeAppointmentId: "excludeAppointmentId", from: "from", occupationMinutes: "occupationMinutes", offeringId: "offeringId", preferredResourceIds: "preferredResourceIds", timezone: "timezone", to: "to" },
|
|
26
17
|
response: object([["data", null, () => AgendaSlotPageCodec]]),
|
|
27
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 },
|
|
28
19
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { ApiError } from "../../_/index.js";
|
|
2
2
|
export type { RequestOptions } from "../../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
|
-
export type { Client, ClientOptions,
|
|
4
|
+
export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import { type AgendaLocationPage, type AgendaResponseMetadata } 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
|
+
* List sites
|
|
12
|
+
*
|
|
13
|
+
* List the organization's sites (sedes), a page at a time: follow
|
|
14
|
+
* pageInfo.nextCursor for more. Pass a site's id as locationId to
|
|
15
|
+
* find_first_available to search only its agendas.
|
|
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
|
+
* The conversation's channel, set by the platform. It changes nothing in
|
|
37
|
+
* Agenda; omit it.
|
|
38
|
+
*/
|
|
39
|
+
channel?: "voice" | "whatsapp" | "web";
|
|
40
|
+
/**
|
|
41
|
+
* The platform's id for the organization's Agenda, set by the platform. An
|
|
42
|
+
* organization has one Agenda, so it selects nothing; omit it.
|
|
43
|
+
*/
|
|
44
|
+
connectionId?: string;
|
|
45
|
+
}
|
|
46
|
+
export interface ListResponse {
|
|
47
|
+
data: AgendaLocationPage;
|
|
48
|
+
error: null;
|
|
49
|
+
metadata: AgendaResponseMetadata;
|
|
50
|
+
success: true;
|
|
51
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, object, } from "../../_/index.js";
|
|
4
|
+
import { AgendaLocationPageCodec, } 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-locations",
|
|
16
|
+
query: { cursor: "cursor", direction: "direction", limit: "limit", channel: "channel", connectionId: "connectionId" },
|
|
17
|
+
response: object([["data", null, () => AgendaLocationPageCodec]]),
|
|
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
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { AgendaResponseMetadata } from "../models.js";
|
|
3
|
+
import type { AgendaBookableOfferingPage } from "./models.js";
|
|
4
|
+
export interface ClientOptions extends BaseClientOptions {
|
|
5
|
+
/**
|
|
6
|
+
* The URL the paths of the API are relative to.
|
|
7
|
+
*/
|
|
8
|
+
baseUrl: string;
|
|
9
|
+
}
|
|
10
|
+
export interface Client {
|
|
11
|
+
/**
|
|
12
|
+
* Search bookable offerings
|
|
13
|
+
*
|
|
14
|
+
* Search active bookable offerings by q (such as electroencefalograma or
|
|
15
|
+
* neurología), exact serviceId or locationId. Pass the known service name
|
|
16
|
+
* instead of loading the whole catalog. Returns a compact page with
|
|
17
|
+
* offering/service ids, agendas, sites, current bookingChecklist, staff
|
|
18
|
+
* guidance (description), patientInstructions, eligibility (the ages a
|
|
19
|
+
* service takes, in completed years on the appointment day; null for any age)
|
|
20
|
+
* and occupationMinutes (how long the patient stays when longer than the
|
|
21
|
+
* appointment, such as a 12-hour study). Check these requirements against
|
|
22
|
+
* known patient facts before slots or booking; explain patient instructions,
|
|
23
|
+
* and ask only for missing required facts. When eligibility is set, ask the
|
|
24
|
+
* patient's date of birth before booking and pass it as patientBirthDate. If
|
|
25
|
+
* exactly one location applies, use it automatically without asking the
|
|
26
|
+
* patient to choose a site; provide its address for arrival or booking
|
|
27
|
+
* confirmation. Never infer age from a name or document type. A listed
|
|
28
|
+
* service does not establish payer coverage. Follow pageInfo.nextCursor only
|
|
29
|
+
* if needed.
|
|
30
|
+
*/
|
|
31
|
+
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
32
|
+
}
|
|
33
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
34
|
+
export declare function bind(transport: Transport): Client;
|
|
35
|
+
export interface ListRequest {
|
|
36
|
+
/**
|
|
37
|
+
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
38
|
+
*/
|
|
39
|
+
cursor?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
42
|
+
*/
|
|
43
|
+
direction?: "forward" | "backward";
|
|
44
|
+
/**
|
|
45
|
+
* Maximum items returned in one page. Defaults to 10; larger reads require
|
|
46
|
+
* another cursor.
|
|
47
|
+
*/
|
|
48
|
+
limit?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Clinic site associated with this record; null means it is not tied to a
|
|
51
|
+
* site.
|
|
52
|
+
*/
|
|
53
|
+
locationId?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Service whose bookable offerings or appointments are addressed.
|
|
56
|
+
*/
|
|
57
|
+
serviceId?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Free-text filter: a service or offering name, or part of one.
|
|
60
|
+
*/
|
|
61
|
+
q?: string;
|
|
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
|
+
* Deprecated: use `q`. Answered until 2027-01-28.
|
|
74
|
+
*/
|
|
75
|
+
query?: string;
|
|
76
|
+
}
|
|
77
|
+
export interface ListResponse {
|
|
78
|
+
data: AgendaBookableOfferingPage;
|
|
79
|
+
error: null;
|
|
80
|
+
metadata: AgendaResponseMetadata;
|
|
81
|
+
success: true;
|
|
82
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
export function createClient(options) {
|
|
5
|
+
return bind(new Transport(options));
|
|
6
|
+
}
|
|
7
|
+
export function bind(transport) {
|
|
8
|
+
return {
|
|
9
|
+
list: (request, options) => transport.send(ListOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const ListOperation = {
|
|
13
|
+
method: "GET",
|
|
14
|
+
route: "/v1/agenda/booking-offerings",
|
|
15
|
+
query: { cursor: "cursor", direction: "direction", limit: "limit", locationId: "locationId", serviceId: "serviceId", q: "q", channel: "channel", connectionId: "connectionId", query: "query" },
|
|
16
|
+
response: null,
|
|
17
|
+
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 },
|
|
18
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "../../_/index.js";
|
|
2
|
+
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
+
export type { AgendaBookableOffering, AgendaBookableOfferingPage, } from "./models.js";
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { PageInfo } from "../../models.js";
|
|
2
|
+
export interface AgendaBookableOffering {
|
|
3
|
+
/**
|
|
4
|
+
* Bounded agenda projection for this offering; truncatedAgendas indicates
|
|
5
|
+
* that more agendas exist.
|
|
6
|
+
*/
|
|
7
|
+
agendas: {
|
|
8
|
+
id: string;
|
|
9
|
+
kind: "practitioner" | "assistant" | "room" | "chair" | "equipment" | "location" | "team" | "generic";
|
|
10
|
+
locationId: string | null;
|
|
11
|
+
name: string;
|
|
12
|
+
}[];
|
|
13
|
+
/**
|
|
14
|
+
* Booked appointment duration in minutes for this offering.
|
|
15
|
+
*/
|
|
16
|
+
durationMinutes: number;
|
|
17
|
+
/**
|
|
18
|
+
* Bookable offering identifier used when requesting signed availability
|
|
19
|
+
* slots.
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
/**
|
|
23
|
+
* Sites applicable to the offering’s agendas, including addresses for patient
|
|
24
|
+
* arrival.
|
|
25
|
+
*/
|
|
26
|
+
locations: {
|
|
27
|
+
address: string | null;
|
|
28
|
+
city: string | null;
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
timezone: string;
|
|
32
|
+
}[];
|
|
33
|
+
/**
|
|
34
|
+
* Offering display name combining the service and its bookable agenda
|
|
35
|
+
* configuration.
|
|
36
|
+
*/
|
|
37
|
+
name: string;
|
|
38
|
+
/**
|
|
39
|
+
* Patient occupation in minutes when it differs from the appointment
|
|
40
|
+
* duration; null means no separate duration.
|
|
41
|
+
*/
|
|
42
|
+
occupationMinutes: number | null;
|
|
43
|
+
/**
|
|
44
|
+
* Human-readable service hours and closures. Availability remains
|
|
45
|
+
* authoritative.
|
|
46
|
+
*/
|
|
47
|
+
scheduleSummary: string;
|
|
48
|
+
/**
|
|
49
|
+
* IANA timezones of the agendas in this bounded projection; hours are
|
|
50
|
+
* interpreted locally.
|
|
51
|
+
*/
|
|
52
|
+
scheduleTimezones: string[];
|
|
53
|
+
/**
|
|
54
|
+
* Current service policy and patient instructions; this projection does not
|
|
55
|
+
* establish payer coverage.
|
|
56
|
+
*/
|
|
57
|
+
service: {
|
|
58
|
+
arrivalOrder: boolean;
|
|
59
|
+
bookingChecklist: string[];
|
|
60
|
+
description: string | null;
|
|
61
|
+
eligibility: {
|
|
62
|
+
maxAgeYears?: number | null;
|
|
63
|
+
minAgeYears?: number | null;
|
|
64
|
+
} | null;
|
|
65
|
+
id: string;
|
|
66
|
+
name: string;
|
|
67
|
+
patientInstructions: string | null;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Service identifier associated with this offering.
|
|
71
|
+
*/
|
|
72
|
+
serviceId: string;
|
|
73
|
+
/**
|
|
74
|
+
* Whether the bounded agenda projection omits additional agendas for this
|
|
75
|
+
* offering.
|
|
76
|
+
*/
|
|
77
|
+
truncatedAgendas: boolean;
|
|
78
|
+
}
|
|
79
|
+
export interface AgendaBookableOfferingPage {
|
|
80
|
+
/**
|
|
81
|
+
* Items admitted by this resource contract within the verified organization.
|
|
82
|
+
*/
|
|
83
|
+
data: AgendaBookableOffering[];
|
|
84
|
+
/**
|
|
85
|
+
* Discriminator for a resource list response.
|
|
86
|
+
*/
|
|
87
|
+
object: "list";
|
|
88
|
+
/**
|
|
89
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
90
|
+
*/
|
|
91
|
+
pageInfo: PageInfo;
|
|
92
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { AgendaResponseMetadata } 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
|
+
* Get booking intake settings
|
|
12
|
+
*
|
|
13
|
+
* Get required/optional booking fields, document-type codes and active
|
|
14
|
+
* payers. Pass payerQuery when a document already identifies the payer (e.g.
|
|
15
|
+
* the health plan on an insurance card), to omit unrelated payers. Reuse
|
|
16
|
+
* clear patient data from the conversation or documents instead of asking it
|
|
17
|
+
* again; request only missing required or ambiguous values. Each payer
|
|
18
|
+
* includes attended sites and sitesNote: a nonempty sites list restricts
|
|
19
|
+
* which IPS/sede is served; an empty list means all its sites. Each payer
|
|
20
|
+
* also has bookingPolicy: 'staff_only' means only the clinic's team books its
|
|
21
|
+
* patients, so never book them; use add_to_waitlist with reason payer_review
|
|
22
|
+
* instead. An empty payer match does not establish coverage.
|
|
23
|
+
*/
|
|
24
|
+
get(request?: GetRequest, options?: RequestOptions): Promise<GetResponse>;
|
|
25
|
+
}
|
|
26
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
27
|
+
export declare function bind(transport: Transport): Client;
|
|
28
|
+
export interface GetRequest {
|
|
29
|
+
/**
|
|
30
|
+
* Known payer name to narrow the active payer list; an empty match never
|
|
31
|
+
* establishes coverage.
|
|
32
|
+
*/
|
|
33
|
+
payerQuery?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The conversation's channel, set by the platform. It changes nothing in
|
|
36
|
+
* Agenda; omit it.
|
|
37
|
+
*/
|
|
38
|
+
channel?: "voice" | "whatsapp" | "web";
|
|
39
|
+
/**
|
|
40
|
+
* The platform's id for the organization's Agenda, set by the platform. An
|
|
41
|
+
* organization has one Agenda, so it selects nothing; omit it.
|
|
42
|
+
*/
|
|
43
|
+
connectionId?: string;
|
|
44
|
+
}
|
|
45
|
+
export interface GetResponse {
|
|
46
|
+
data: {
|
|
47
|
+
bookingDuration: {
|
|
48
|
+
enabled: boolean;
|
|
49
|
+
maxMinutes: number;
|
|
50
|
+
minMinutes: number;
|
|
51
|
+
stepMinutes: 1 | 5 | 10 | 15 | 20 | 30 | 60;
|
|
52
|
+
};
|
|
53
|
+
customFields: {
|
|
54
|
+
help: string | null;
|
|
55
|
+
key: string;
|
|
56
|
+
label: string;
|
|
57
|
+
options: string[];
|
|
58
|
+
required: boolean;
|
|
59
|
+
status: "active" | "archived";
|
|
60
|
+
type: "text" | "number" | "date" | "select" | "checkbox";
|
|
61
|
+
}[];
|
|
62
|
+
documentTypes: {
|
|
63
|
+
code: string;
|
|
64
|
+
description: string;
|
|
65
|
+
name: string;
|
|
66
|
+
status: "active" | "inactive";
|
|
67
|
+
}[];
|
|
68
|
+
fields: {
|
|
69
|
+
authorization: "off" | "optional" | "required";
|
|
70
|
+
conversationUrl: "off" | "optional";
|
|
71
|
+
document: "optional" | "required";
|
|
72
|
+
email: "off" | "optional" | "required";
|
|
73
|
+
notes: "off" | "optional" | "required";
|
|
74
|
+
payer: "off" | "optional" | "required";
|
|
75
|
+
phone: "off" | "optional" | "required";
|
|
76
|
+
priority: "off" | "on";
|
|
77
|
+
};
|
|
78
|
+
labels: {
|
|
79
|
+
authorization: {
|
|
80
|
+
label: string;
|
|
81
|
+
placeholder: string;
|
|
82
|
+
};
|
|
83
|
+
document: {
|
|
84
|
+
label: string;
|
|
85
|
+
placeholder: string;
|
|
86
|
+
};
|
|
87
|
+
email: {
|
|
88
|
+
label: string;
|
|
89
|
+
placeholder: string;
|
|
90
|
+
};
|
|
91
|
+
name: {
|
|
92
|
+
label: string;
|
|
93
|
+
placeholder: string;
|
|
94
|
+
};
|
|
95
|
+
notes: {
|
|
96
|
+
label: string;
|
|
97
|
+
placeholder: string;
|
|
98
|
+
};
|
|
99
|
+
phone: {
|
|
100
|
+
label: string;
|
|
101
|
+
placeholder: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
object: "scheduling.intake_settings";
|
|
105
|
+
payerLabel: string;
|
|
106
|
+
payers: {
|
|
107
|
+
bookingPolicy: "open" | "staff_only";
|
|
108
|
+
name: string;
|
|
109
|
+
sites: string[];
|
|
110
|
+
sitesNote: string | null;
|
|
111
|
+
}[];
|
|
112
|
+
updatedAt: string | null;
|
|
113
|
+
version: number;
|
|
114
|
+
};
|
|
115
|
+
error: null;
|
|
116
|
+
metadata: AgendaResponseMetadata;
|
|
117
|
+
success: true;
|
|
118
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
export function createClient(options) {
|
|
5
|
+
return bind(new Transport(options));
|
|
6
|
+
}
|
|
7
|
+
export function bind(transport) {
|
|
8
|
+
return {
|
|
9
|
+
get: (request, options) => transport.send(GetOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const GetOperation = {
|
|
13
|
+
method: "GET",
|
|
14
|
+
route: "/v1/agenda/booking-requirements",
|
|
15
|
+
query: { payerQuery: "payerQuery", channel: "channel", connectionId: "connectionId" },
|
|
16
|
+
response: null,
|
|
17
|
+
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 },
|
|
18
|
+
};
|