@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,76 @@
|
|
|
1
|
+
import type { OutcomeUnknownFailure, ResponseMetadata } from "../../models.js";
|
|
2
|
+
import { type SuraConnectionNotConfiguredFailure, type SuraPatientFound, type SuraPatientNotFound, type SuraPendingResult, type SuraPortalCredentialsRejectedFailure, type SuraPortalSessionConflictFailure, type SuraPortalUnavailableFailure, type SuraRefusal } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface SuraLookupPatientBadGatewayError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: SuraLookupPatientBadGatewayFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type SuraLookupPatientBadGatewayFailure = OutcomeUnknownFailure | SuraPortalCredentialsRejectedFailure | SuraPortalUnavailableFailure;
|
|
16
|
+
export interface SuraLookupPatientBody {
|
|
17
|
+
/**
|
|
18
|
+
* Set agentMode=true when calling this tool for an AI agent. The answer is
|
|
19
|
+
* concise Spanish text instead of JSON. Omit it for structured machine data.
|
|
20
|
+
* This changes presentation only, never authorization, consent or
|
|
21
|
+
* idempotency.
|
|
22
|
+
*/
|
|
23
|
+
agentMode?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The channel the caller is waiting on, which sets how long it waits before
|
|
26
|
+
* an answer comes back pending, and puts a phone call's reads ahead of
|
|
27
|
+
* others. Defaults to web.
|
|
28
|
+
*/
|
|
29
|
+
channel?: "voice" | "whatsapp" | "web";
|
|
30
|
+
/**
|
|
31
|
+
* Which of the organization's SURA connections to run on, by its id. Optional
|
|
32
|
+
* while the organization has one; required when it has several.
|
|
33
|
+
*/
|
|
34
|
+
connectionId?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Complete document number of the patient receiving care, from readable
|
|
37
|
+
* original evidence or their message. Normalize separators without changing
|
|
38
|
+
* digits. Request correction only for missing, illegible or conflicting
|
|
39
|
+
* identity; never guess digits.
|
|
40
|
+
*/
|
|
41
|
+
documentNumber: string;
|
|
42
|
+
/**
|
|
43
|
+
* Patient document type read legibly from the original or explicitly
|
|
44
|
+
* supplied. Ask only if unknown or genuinely conflicting; never infer it from
|
|
45
|
+
* age or number length.
|
|
46
|
+
*/
|
|
47
|
+
documentType: "ASI" | "CC" | "CD" | "CE" | "CN" | "DE" | "IFE" | "MS" | "NIT" | "NUIP" | "PA" | "PC" | "PD" | "PE" | "PF" | "PT" | "RC" | "RCP" | "RES" | "SC" | "TE" | "TI";
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A failed answer.
|
|
51
|
+
*/
|
|
52
|
+
export interface SuraLookupPatientConflictError {
|
|
53
|
+
data: null;
|
|
54
|
+
error: SuraLookupPatientConflictFailure;
|
|
55
|
+
/**
|
|
56
|
+
* What every answer carries besides its data or error.
|
|
57
|
+
*/
|
|
58
|
+
metadata: ResponseMetadata;
|
|
59
|
+
success: false;
|
|
60
|
+
}
|
|
61
|
+
export type SuraLookupPatientConflictFailure = SuraPortalSessionConflictFailure | SuraConnectionNotConfiguredFailure;
|
|
62
|
+
export type SuraLookupPatientResult = SuraPendingResult | SuraRefusal | SuraPatientNotFound | SuraPatientFound;
|
|
63
|
+
/**
|
|
64
|
+
* A successful answer.
|
|
65
|
+
*/
|
|
66
|
+
export interface SuraLookupPatientResultResponse {
|
|
67
|
+
data: SuraLookupPatientResult;
|
|
68
|
+
error: null;
|
|
69
|
+
/**
|
|
70
|
+
* What every answer carries besides its data or error.
|
|
71
|
+
*/
|
|
72
|
+
metadata: ResponseMetadata;
|
|
73
|
+
success: true;
|
|
74
|
+
}
|
|
75
|
+
export declare const SuraLookupPatientResultCodec: import("../../_/codec.js").Codec;
|
|
76
|
+
export declare const SuraLookupPatientResultResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { object, union } from "../../_/index.js";
|
|
4
|
+
import { SuraPatientFoundCodec, SuraPatientNotFoundCodec, SuraPendingResultCodec, SuraRefusalCodec, } from "../models.js";
|
|
5
|
+
export const SuraLookupPatientResultCodec = union([() => SuraPendingResultCodec, () => SuraRefusalCodec, () => SuraPatientNotFoundCodec, () => SuraPatientFoundCodec]);
|
|
6
|
+
export const SuraLookupPatientResultResponseCodec = object([
|
|
7
|
+
["data", null, () => SuraLookupPatientResultCodec],
|
|
8
|
+
]);
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
3
|
-
import { type SuraPendingResult, type SuraRefusal } from "../models.js";
|
|
4
|
-
import type { SuraProfessionalPage } from "./models.js";
|
|
2
|
+
import type { SuraProfessionalPageResponse } from "./models.js";
|
|
5
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
6
4
|
/**
|
|
7
5
|
* The URL the paths of the API are relative to.
|
|
@@ -22,7 +20,11 @@ export interface Client {
|
|
|
22
20
|
* use prepare_appointment with the patient's evidence and the requested
|
|
23
21
|
* professional name to find actual slots. Never substitute another doctor
|
|
24
22
|
* without the patient's agreement. An unreadable or incomplete provider
|
|
25
|
-
* directory is a technical failure, not an empty list.
|
|
23
|
+
* directory is a technical failure, not an empty list. A refusal, or a call
|
|
24
|
+
* still running, is the failure TOOL_REFUSED: data.reason says why,
|
|
25
|
+
* data.guidance what to do next and data.details what it offers instead
|
|
26
|
+
* (OPERATION_PENDING: poll data.details.operationId with operations.get); it
|
|
27
|
+
* is never an outage.
|
|
26
28
|
*/
|
|
27
29
|
list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
28
30
|
}
|
|
@@ -72,9 +74,4 @@ export interface ListRequest {
|
|
|
72
74
|
*/
|
|
73
75
|
channel?: "voice" | "whatsapp" | "web";
|
|
74
76
|
}
|
|
75
|
-
export
|
|
76
|
-
data: SuraPendingResult | SuraRefusal | SuraProfessionalPage;
|
|
77
|
-
error: null;
|
|
78
|
-
metadata: ResponseMetadata;
|
|
79
|
-
success: true;
|
|
80
|
-
}
|
|
77
|
+
export type ListResponse = SuraProfessionalPageResponse;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
import { Transport,
|
|
4
|
-
import { SuraPendingResultCodec, SuraRefusalCodec, } from "../models.js";
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
5
4
|
export function createClient(options) {
|
|
6
5
|
return bind(new Transport(options));
|
|
7
6
|
}
|
|
@@ -14,6 +13,6 @@ const ListOperation = {
|
|
|
14
13
|
method: "GET",
|
|
15
14
|
route: "/v1/sura/professionals",
|
|
16
15
|
query: { areaId: "areaId", serviceId: "serviceId", cursor: "cursor", direction: "direction", limit: "limit", agentMode: "agentMode", connectionId: "connectionId", channel: "channel" },
|
|
17
|
-
response:
|
|
18
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
19
18
|
};
|
|
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
|
|
|
2
2
|
export type { RequestOptions } from "../../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
4
|
export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
-
export type { SuraProfessional, SuraProfessionalPage, } from "./models.js";
|
|
5
|
+
export type { SuraListProfessionalsBadGatewayError, SuraListProfessionalsBadGatewayFailure, SuraListProfessionalsConflictError, SuraListProfessionalsConflictFailure, SuraProfessional, SuraProfessionalPage, SuraProfessionalPageResponse, } from "./models.js";
|
|
@@ -1,4 +1,31 @@
|
|
|
1
|
-
import type { PageInfo } from "../../models.js";
|
|
1
|
+
import type { OutcomeUnknownFailure, PageInfo, ResponseMetadata } from "../../models.js";
|
|
2
|
+
import type { SuraConnectionNotConfiguredFailure, SuraPortalCredentialsRejectedFailure, SuraPortalSessionConflictFailure, SuraPortalUnavailableFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface SuraListProfessionalsBadGatewayError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: SuraListProfessionalsBadGatewayFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type SuraListProfessionalsBadGatewayFailure = OutcomeUnknownFailure | SuraPortalCredentialsRejectedFailure | SuraPortalUnavailableFailure;
|
|
16
|
+
/**
|
|
17
|
+
* A failed answer.
|
|
18
|
+
*/
|
|
19
|
+
export interface SuraListProfessionalsConflictError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: SuraListProfessionalsConflictFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type SuraListProfessionalsConflictFailure = SuraPortalSessionConflictFailure | SuraConnectionNotConfiguredFailure;
|
|
2
29
|
export interface SuraProfessional {
|
|
3
30
|
areaId: string;
|
|
4
31
|
availabilityChecked: false;
|
|
@@ -26,3 +53,15 @@ export interface SuraProfessionalPage {
|
|
|
26
53
|
*/
|
|
27
54
|
pageInfo: PageInfo;
|
|
28
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* A successful answer.
|
|
58
|
+
*/
|
|
59
|
+
export interface SuraProfessionalPageResponse {
|
|
60
|
+
data: SuraProfessionalPage;
|
|
61
|
+
error: null;
|
|
62
|
+
/**
|
|
63
|
+
* What every answer carries besides its data or error.
|
|
64
|
+
*/
|
|
65
|
+
metadata: ResponseMetadata;
|
|
66
|
+
success: true;
|
|
67
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
3
|
-
import { type SuraPendingResult, type SuraRefusal, type SuraServicePage } from "../models.js";
|
|
2
|
+
import type { SuraServicePageResponse } from "./models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -21,7 +20,11 @@ export interface Client {
|
|
|
21
20
|
* consultation. A service missing from the catalog does not mean the clinic
|
|
22
21
|
* does not provide it, or that it does not exist at other sites or channels.
|
|
23
22
|
* The catalog is not filtered by plan or coverage: the portal applies the
|
|
24
|
-
* patient's own coverage when availability is read.
|
|
23
|
+
* patient's own coverage when availability is read. A refusal, or a call
|
|
24
|
+
* still running, is the failure TOOL_REFUSED: data.reason says why,
|
|
25
|
+
* data.guidance what to do next and data.details what it offers instead
|
|
26
|
+
* (OPERATION_PENDING: poll data.details.operationId with operations.get); it
|
|
27
|
+
* is never an outage.
|
|
25
28
|
*/
|
|
26
29
|
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
27
30
|
}
|
|
@@ -66,9 +69,4 @@ export interface ListRequest {
|
|
|
66
69
|
*/
|
|
67
70
|
channel?: "voice" | "whatsapp" | "web";
|
|
68
71
|
}
|
|
69
|
-
export
|
|
70
|
-
data: SuraPendingResult | SuraRefusal | SuraServicePage;
|
|
71
|
-
error: null;
|
|
72
|
-
metadata: ResponseMetadata;
|
|
73
|
-
success: true;
|
|
74
|
-
}
|
|
72
|
+
export type ListResponse = SuraServicePageResponse;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
import { Transport,
|
|
4
|
-
import { SuraPendingResultCodec, SuraRefusalCodec, } from "../models.js";
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
5
4
|
export function createClient(options) {
|
|
6
5
|
return bind(new Transport(options));
|
|
7
6
|
}
|
|
@@ -14,6 +13,6 @@ const ListOperation = {
|
|
|
14
13
|
method: "GET",
|
|
15
14
|
route: "/v1/sura/services",
|
|
16
15
|
query: { areaId: "areaId", cursor: "cursor", direction: "direction", limit: "limit", agentMode: "agentMode", connectionId: "connectionId", channel: "channel" },
|
|
17
|
-
response:
|
|
18
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
19
18
|
};
|
|
@@ -2,3 +2,4 @@ export { ApiError } from "../../_/index.js";
|
|
|
2
2
|
export type { RequestOptions } from "../../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
4
|
export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
+
export type { SuraListServicesBadGatewayError, SuraListServicesBadGatewayFailure, SuraListServicesConflictError, SuraListServicesConflictFailure, SuraServicePageResponse, } from "./models.js";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { OutcomeUnknownFailure, ResponseMetadata } from "../../models.js";
|
|
2
|
+
import type { SuraConnectionNotConfiguredFailure, SuraPortalCredentialsRejectedFailure, SuraPortalSessionConflictFailure, SuraPortalUnavailableFailure, SuraServicePage } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface SuraListServicesBadGatewayError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: SuraListServicesBadGatewayFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type SuraListServicesBadGatewayFailure = OutcomeUnknownFailure | SuraPortalCredentialsRejectedFailure | SuraPortalUnavailableFailure;
|
|
16
|
+
/**
|
|
17
|
+
* A failed answer.
|
|
18
|
+
*/
|
|
19
|
+
export interface SuraListServicesConflictError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: SuraListServicesConflictFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type SuraListServicesConflictFailure = SuraPortalSessionConflictFailure | SuraConnectionNotConfiguredFailure;
|
|
29
|
+
/**
|
|
30
|
+
* A successful answer.
|
|
31
|
+
*/
|
|
32
|
+
export interface SuraServicePageResponse {
|
|
33
|
+
data: SuraServicePage;
|
|
34
|
+
error: null;
|
|
35
|
+
/**
|
|
36
|
+
* What every answer carries besides its data or error.
|
|
37
|
+
*/
|
|
38
|
+
metadata: ResponseMetadata;
|
|
39
|
+
success: true;
|
|
40
|
+
}
|
|
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
|
|
|
2
2
|
export type { RequestOptions } from "../../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
4
|
export type { Client, ClientOptions, CancelRequest, CancelResponse, CreateRequest, CreateResponse, } from "./client.js";
|
|
5
|
-
export type { VisoftAppointmentNotCancellableFailure, VisoftAppointmentReferenceInvalidFailure, VisoftAppointmentRequestExistsFailure, VisoftAppointmentRequestExistsFailureData, VisoftBooking, VisoftBookingRefusedFailure, VisoftBookingRefusedFailureData, VisoftBookingResponse,
|
|
5
|
+
export type { VisoftAppointmentNotCancellableFailure, VisoftAppointmentReferenceInvalidFailure, VisoftAppointmentRequestExistsFailure, VisoftAppointmentRequestExistsFailureData, VisoftBooking, VisoftBookingRefusedFailure, VisoftBookingRefusedFailureData, VisoftBookingResponse, VisoftCancelAppointmentBody, VisoftCancelAppointmentConflictError, VisoftCancelAppointmentConflictFailure, VisoftCancelAppointmentUnprocessableContentError, VisoftCancelAppointmentUnprocessableContentFailure, VisoftCancelNoticeRequiredFailure, VisoftCancelTimeUnverifiedFailure, VisoftCancellation, VisoftCancellationRefusedFailure, VisoftCancellationRefusedFailureData, VisoftCancellationResponse, VisoftCreateAppointmentBody, VisoftCreateAppointmentConflictError, VisoftCreateAppointmentConflictFailure, VisoftCreateAppointmentUnprocessableContentError, VisoftCreateAppointmentUnprocessableContentFailure, } from "./models.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { VisoftAgencyNotServedFailure
|
|
1
|
+
import type { ConnectionNotConfiguredFailure, CredentialsRejectedFailure, Empty, ResponseMetadata } from "../../models.js";
|
|
2
|
+
import type { VisoftAgencyNotServedFailure } from "../models.js";
|
|
3
3
|
/**
|
|
4
4
|
* The appointment is no longer cancellable in the patient's current agenda;
|
|
5
5
|
* read the patient again. Nothing was cancelled.
|
|
@@ -129,21 +129,9 @@ export interface VisoftBookingResponse {
|
|
|
129
129
|
/**
|
|
130
130
|
* What every answer carries besides its data or error.
|
|
131
131
|
*/
|
|
132
|
-
metadata:
|
|
132
|
+
metadata: ResponseMetadata;
|
|
133
133
|
success: true;
|
|
134
134
|
}
|
|
135
|
-
/**
|
|
136
|
-
* A failed answer.
|
|
137
|
-
*/
|
|
138
|
-
export interface VisoftCancelAppointmentBadGatewayError {
|
|
139
|
-
data: null;
|
|
140
|
-
error: CancelAppointmentBadGatewayFailure;
|
|
141
|
-
/**
|
|
142
|
-
* What every answer carries besides its data or error.
|
|
143
|
-
*/
|
|
144
|
-
metadata: VisoftResponseMetadata;
|
|
145
|
-
success: false;
|
|
146
|
-
}
|
|
147
135
|
export interface VisoftCancelAppointmentBody {
|
|
148
136
|
/**
|
|
149
137
|
* The connection to run on. Optional when the organization has one Visoft
|
|
@@ -195,7 +183,7 @@ export interface VisoftCancelAppointmentConflictError {
|
|
|
195
183
|
/**
|
|
196
184
|
* What every answer carries besides its data or error.
|
|
197
185
|
*/
|
|
198
|
-
metadata:
|
|
186
|
+
metadata: ResponseMetadata;
|
|
199
187
|
success: false;
|
|
200
188
|
}
|
|
201
189
|
export type VisoftCancelAppointmentConflictFailure = ConnectionNotConfiguredFailure | VisoftAppointmentNotCancellableFailure | VisoftCancelNoticeRequiredFailure | VisoftCancelTimeUnverifiedFailure;
|
|
@@ -208,7 +196,7 @@ export interface VisoftCancelAppointmentUnprocessableContentError {
|
|
|
208
196
|
/**
|
|
209
197
|
* What every answer carries besides its data or error.
|
|
210
198
|
*/
|
|
211
|
-
metadata:
|
|
199
|
+
metadata: ResponseMetadata;
|
|
212
200
|
success: false;
|
|
213
201
|
}
|
|
214
202
|
export type VisoftCancelAppointmentUnprocessableContentFailure = CredentialsRejectedFailure | VisoftAgencyNotServedFailure | VisoftAppointmentReferenceInvalidFailure | VisoftCancellationRefusedFailure;
|
|
@@ -307,21 +295,9 @@ export interface VisoftCancellationResponse {
|
|
|
307
295
|
/**
|
|
308
296
|
* What every answer carries besides its data or error.
|
|
309
297
|
*/
|
|
310
|
-
metadata:
|
|
298
|
+
metadata: ResponseMetadata;
|
|
311
299
|
success: true;
|
|
312
300
|
}
|
|
313
|
-
/**
|
|
314
|
-
* A failed answer.
|
|
315
|
-
*/
|
|
316
|
-
export interface VisoftCreateAppointmentBadGatewayError {
|
|
317
|
-
data: null;
|
|
318
|
-
error: CreateAppointmentBadGatewayFailure;
|
|
319
|
-
/**
|
|
320
|
-
* What every answer carries besides its data or error.
|
|
321
|
-
*/
|
|
322
|
-
metadata: VisoftResponseMetadata;
|
|
323
|
-
success: false;
|
|
324
|
-
}
|
|
325
301
|
export interface VisoftCreateAppointmentBody {
|
|
326
302
|
/**
|
|
327
303
|
* The connection to run on. Optional when the organization has one Visoft
|
|
@@ -368,7 +344,7 @@ export interface VisoftCreateAppointmentConflictError {
|
|
|
368
344
|
/**
|
|
369
345
|
* What every answer carries besides its data or error.
|
|
370
346
|
*/
|
|
371
|
-
metadata:
|
|
347
|
+
metadata: ResponseMetadata;
|
|
372
348
|
success: false;
|
|
373
349
|
}
|
|
374
350
|
export type VisoftCreateAppointmentConflictFailure = ConnectionNotConfiguredFailure | VisoftAppointmentRequestExistsFailure;
|
|
@@ -381,7 +357,7 @@ export interface VisoftCreateAppointmentUnprocessableContentError {
|
|
|
381
357
|
/**
|
|
382
358
|
* What every answer carries besides its data or error.
|
|
383
359
|
*/
|
|
384
|
-
metadata:
|
|
360
|
+
metadata: ResponseMetadata;
|
|
385
361
|
success: false;
|
|
386
362
|
}
|
|
387
363
|
export type VisoftCreateAppointmentUnprocessableContentFailure = CredentialsRejectedFailure | VisoftAgencyNotServedFailure | VisoftBookingRefusedFailure;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConnectionNotFoundFailure, CredentialsRejectedFailure, Empty, OutcomeUnknownFailure, ProviderUnavailableFailure } from "../../models.js";
|
|
2
|
-
import type { VisoftAgencyNotServedFailure, VisoftProfessional
|
|
1
|
+
import type { ConnectionNotFoundFailure, CredentialsRejectedFailure, Empty, OutcomeUnknownFailure, ProviderUnavailableFailure, ResponseMetadata } from "../../models.js";
|
|
2
|
+
import type { VisoftAgencyNotServedFailure, VisoftProfessional } from "../models.js";
|
|
3
3
|
export interface VisoftAvailability {
|
|
4
4
|
/**
|
|
5
5
|
* The day the search started, in the clinic: YYYY-MM-DD.
|
|
@@ -21,7 +21,7 @@ export interface VisoftAvailabilityResponse {
|
|
|
21
21
|
/**
|
|
22
22
|
* What every answer carries besides its data or error.
|
|
23
23
|
*/
|
|
24
|
-
metadata:
|
|
24
|
+
metadata: ResponseMetadata;
|
|
25
25
|
success: true;
|
|
26
26
|
}
|
|
27
27
|
export interface VisoftAvailableSlot {
|
|
@@ -82,7 +82,7 @@ export interface VisoftLookupAvailabilityBadGatewayError {
|
|
|
82
82
|
/**
|
|
83
83
|
* What every answer carries besides its data or error.
|
|
84
84
|
*/
|
|
85
|
-
metadata:
|
|
85
|
+
metadata: ResponseMetadata;
|
|
86
86
|
success: false;
|
|
87
87
|
}
|
|
88
88
|
export type VisoftLookupAvailabilityBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure;
|
|
@@ -134,7 +134,7 @@ export interface VisoftLookupAvailabilityNotFoundError {
|
|
|
134
134
|
/**
|
|
135
135
|
* What every answer carries besides its data or error.
|
|
136
136
|
*/
|
|
137
|
-
metadata:
|
|
137
|
+
metadata: ResponseMetadata;
|
|
138
138
|
success: false;
|
|
139
139
|
}
|
|
140
140
|
export type VisoftLookupAvailabilityNotFoundFailure = ConnectionNotFoundFailure | VisoftProfessionalNotFoundFailure;
|
|
@@ -147,7 +147,7 @@ export interface VisoftLookupAvailabilityUnprocessableContentError {
|
|
|
147
147
|
/**
|
|
148
148
|
* What every answer carries besides its data or error.
|
|
149
149
|
*/
|
|
150
|
-
metadata:
|
|
150
|
+
metadata: ResponseMetadata;
|
|
151
151
|
success: false;
|
|
152
152
|
}
|
|
153
153
|
export type VisoftLookupAvailabilityUnprocessableContentFailure = CredentialsRejectedFailure | VisoftAgencyNotServedFailure;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ResponseMetadata } from "../../models.js";
|
|
2
|
+
import type { VisoftClinic } from "../models.js";
|
|
2
3
|
/**
|
|
3
4
|
* A successful answer.
|
|
4
5
|
*/
|
|
@@ -8,6 +9,6 @@ export interface VisoftClinicResponse {
|
|
|
8
9
|
/**
|
|
9
10
|
* What every answer carries besides its data or error.
|
|
10
11
|
*/
|
|
11
|
-
metadata:
|
|
12
|
+
metadata: ResponseMetadata;
|
|
12
13
|
success: true;
|
|
13
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PageInfo } from "../../models.js";
|
|
2
|
-
import type { VisoftClinic
|
|
1
|
+
import type { PageInfo, ResponseMetadata } from "../../models.js";
|
|
2
|
+
import type { VisoftClinic } from "../models.js";
|
|
3
3
|
export interface VisoftClinicPage {
|
|
4
4
|
/**
|
|
5
5
|
* Items admitted by this resource contract within the verified organization.
|
|
@@ -23,6 +23,6 @@ export interface VisoftClinicPageResponse {
|
|
|
23
23
|
/**
|
|
24
24
|
* What every answer carries besides its data or error.
|
|
25
25
|
*/
|
|
26
|
-
metadata:
|
|
26
|
+
metadata: ResponseMetadata;
|
|
27
27
|
success: true;
|
|
28
28
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import
|
|
2
|
+
import type { DeletedObjectResponse } from "../../models.js";
|
|
3
|
+
import { type VisoftConnectionPageResponse, type VisoftConnectionResponse, type VisoftVerifyConnectionBody, type VisoftVerifyConnectionResultResponse } from "./models.js";
|
|
3
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
4
5
|
/**
|
|
5
6
|
* The URL the paths of the API are relative to.
|
|
@@ -55,7 +56,7 @@ export interface DeleteRequest {
|
|
|
55
56
|
*/
|
|
56
57
|
connectionId: string;
|
|
57
58
|
}
|
|
58
|
-
export type DeleteResponse =
|
|
59
|
+
export type DeleteResponse = DeletedObjectResponse;
|
|
59
60
|
export interface GetRequest {
|
|
60
61
|
/**
|
|
61
62
|
* The connection's id, as Account lists it (con_…).
|
|
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
|
|
|
2
2
|
export type { RequestOptions } from "../../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
4
|
export type { Client, ClientOptions, DeleteRequest, DeleteResponse, GetRequest, GetResponse, ListRequest, ListResponse, VerifyRequest, VerifyResponse, } from "./client.js";
|
|
5
|
-
export type { VisoftConnection, VisoftConnectionPage, VisoftConnectionPageResponse, VisoftConnectionResponse,
|
|
5
|
+
export type { VisoftConnection, VisoftConnectionPage, VisoftConnectionPageResponse, VisoftConnectionResponse, VisoftVerifyConnectionBody, VisoftVerifyConnectionResult, VisoftVerifyConnectionResultResponse, } from "./models.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { VisoftResponseMetadata } from "../models.js";
|
|
1
|
+
import type { PageInfo, ResponseMetadata } from "../../models.js";
|
|
3
2
|
export interface VisoftConnection {
|
|
4
3
|
/**
|
|
5
4
|
* The clinic's name.
|
|
@@ -75,7 +74,7 @@ export interface VisoftConnectionPageResponse {
|
|
|
75
74
|
/**
|
|
76
75
|
* What every answer carries besides its data or error.
|
|
77
76
|
*/
|
|
78
|
-
metadata:
|
|
77
|
+
metadata: ResponseMetadata;
|
|
79
78
|
success: true;
|
|
80
79
|
}
|
|
81
80
|
/**
|
|
@@ -90,19 +89,7 @@ export interface VisoftConnectionResponse {
|
|
|
90
89
|
/**
|
|
91
90
|
* What every answer carries besides its data or error.
|
|
92
91
|
*/
|
|
93
|
-
metadata:
|
|
94
|
-
success: true;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* A successful answer.
|
|
98
|
-
*/
|
|
99
|
-
export interface VisoftDeletedObjectResponse {
|
|
100
|
-
data: DeletedObject;
|
|
101
|
-
error: null;
|
|
102
|
-
/**
|
|
103
|
-
* What every answer carries besides its data or error.
|
|
104
|
-
*/
|
|
105
|
-
metadata: VisoftResponseMetadata;
|
|
92
|
+
metadata: ResponseMetadata;
|
|
106
93
|
success: true;
|
|
107
94
|
}
|
|
108
95
|
export interface VisoftVerifyConnectionBody {
|
|
@@ -152,7 +139,7 @@ export interface VisoftVerifyConnectionResultResponse {
|
|
|
152
139
|
/**
|
|
153
140
|
* What every answer carries besides its data or error.
|
|
154
141
|
*/
|
|
155
|
-
metadata:
|
|
142
|
+
metadata: ResponseMetadata;
|
|
156
143
|
success: true;
|
|
157
144
|
}
|
|
158
145
|
export declare const VisoftConnectionCodec: import("../../_/codec.js").Codec;
|
|
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
|
|
|
2
2
|
export type { RequestOptions } from "../../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
4
|
export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
-
export type { VisoftContract, VisoftContractPage, VisoftContractPageResponse,
|
|
5
|
+
export type { VisoftContract, VisoftContractPage, VisoftContractPageResponse, VisoftListContractsUnprocessableContentError, VisoftListContractsUnprocessableContentFailure, } from "./models.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CredentialsRejectedFailure,
|
|
2
|
-
import type { VisoftAgencyNotServedFailure
|
|
1
|
+
import type { CredentialsRejectedFailure, PageInfo, ResponseMetadata } from "../../models.js";
|
|
2
|
+
import type { VisoftAgencyNotServedFailure } from "../models.js";
|
|
3
3
|
export interface VisoftContract {
|
|
4
4
|
/**
|
|
5
5
|
* The contract's SIIPS code.
|
|
@@ -37,21 +37,9 @@ export interface VisoftContractPageResponse {
|
|
|
37
37
|
/**
|
|
38
38
|
* What every answer carries besides its data or error.
|
|
39
39
|
*/
|
|
40
|
-
metadata:
|
|
40
|
+
metadata: ResponseMetadata;
|
|
41
41
|
success: true;
|
|
42
42
|
}
|
|
43
|
-
/**
|
|
44
|
-
* A failed answer.
|
|
45
|
-
*/
|
|
46
|
-
export interface VisoftListContractsBadGatewayError {
|
|
47
|
-
data: null;
|
|
48
|
-
error: ListContractsBadGatewayFailure;
|
|
49
|
-
/**
|
|
50
|
-
* What every answer carries besides its data or error.
|
|
51
|
-
*/
|
|
52
|
-
metadata: VisoftResponseMetadata;
|
|
53
|
-
success: false;
|
|
54
|
-
}
|
|
55
43
|
/**
|
|
56
44
|
* A failed answer.
|
|
57
45
|
*/
|
|
@@ -61,7 +49,7 @@ export interface VisoftListContractsUnprocessableContentError {
|
|
|
61
49
|
/**
|
|
62
50
|
* What every answer carries besides its data or error.
|
|
63
51
|
*/
|
|
64
|
-
metadata:
|
|
52
|
+
metadata: ResponseMetadata;
|
|
65
53
|
success: false;
|
|
66
54
|
}
|
|
67
55
|
export type VisoftListContractsUnprocessableContentFailure = CredentialsRejectedFailure | VisoftAgencyNotServedFailure;
|
package/dist/visoft/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ export { ApiError } from "../_/index.js";
|
|
|
2
2
|
export type { RequestOptions } from "../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
4
|
export type { Client, ClientOptions, } from "./client.js";
|
|
5
|
-
export type { VisoftAgencyNotServedFailure, VisoftClinic, VisoftClinicAgency, VisoftConnectionNotConfiguredError,
|
|
5
|
+
export type { VisoftAgencyNotServedFailure, VisoftClinic, VisoftClinicAgency, VisoftConnectionNotConfiguredError, VisoftContractNotFoundFailure, VisoftContractService, VisoftProfessional, } from "./models.js";
|