@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,50 @@
|
|
|
1
|
+
import type { ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { AccountBillingUnavailableFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface AccountGetUsageSummaryServiceUnavailableError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: AccountGetUsageSummaryServiceUnavailableFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type AccountGetUsageSummaryServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingUnavailableFailure;
|
|
16
|
+
export interface AccountUsageSummary {
|
|
17
|
+
byMeter: {
|
|
18
|
+
billable: number;
|
|
19
|
+
fromGrants: number;
|
|
20
|
+
meter: string;
|
|
21
|
+
priceMicros: number;
|
|
22
|
+
quantity: number;
|
|
23
|
+
unit: string | null;
|
|
24
|
+
}[];
|
|
25
|
+
period: {
|
|
26
|
+
current: boolean;
|
|
27
|
+
end: Temporal.Instant;
|
|
28
|
+
endsAt: Temporal.Instant;
|
|
29
|
+
start: Temporal.Instant;
|
|
30
|
+
startsAt: Temporal.Instant;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Micros of the currency named with it.
|
|
34
|
+
*/
|
|
35
|
+
priceMicros: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A successful answer.
|
|
39
|
+
*/
|
|
40
|
+
export interface AccountUsageSummaryResponse {
|
|
41
|
+
data: AccountUsageSummary;
|
|
42
|
+
error: null;
|
|
43
|
+
/**
|
|
44
|
+
* What every answer carries besides its data or error.
|
|
45
|
+
*/
|
|
46
|
+
metadata: ResponseMetadata;
|
|
47
|
+
success: true;
|
|
48
|
+
}
|
|
49
|
+
export declare const AccountUsageSummaryCodec: import("../../_/codec.js").Codec;
|
|
50
|
+
export declare const AccountUsageSummaryResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { instant, object } from "../../_/index.js";
|
|
4
|
+
export const AccountUsageSummaryCodec = object([
|
|
5
|
+
["period", null, object([["end", null, instant], ["endsAt", null, instant], ["start", null, instant], ["startsAt", null, instant]])],
|
|
6
|
+
]);
|
|
7
|
+
export const AccountUsageSummaryResponseCodec = object([
|
|
8
|
+
["data", null, () => AccountUsageSummaryCodec],
|
|
9
|
+
]);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import { type AccountWalletTransactionPage } from "./models.js";
|
|
2
|
+
import { type AccountWalletTransactionPageResponse } from "./models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -32,9 +31,4 @@ export interface ListRequest {
|
|
|
32
31
|
*/
|
|
33
32
|
limit?: number;
|
|
34
33
|
}
|
|
35
|
-
export
|
|
36
|
-
data: AccountWalletTransactionPage;
|
|
37
|
-
error: null;
|
|
38
|
-
metadata: ResponseMetadata;
|
|
39
|
-
success: true;
|
|
40
|
-
}
|
|
34
|
+
export type ListResponse = AccountWalletTransactionPageResponse;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
import { Transport,
|
|
4
|
-
import {
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { AccountWalletTransactionPageResponseCodec, } from "./models.js";
|
|
5
5
|
export function createClient(options) {
|
|
6
6
|
return bind(new Transport(options));
|
|
7
7
|
}
|
|
@@ -14,6 +14,6 @@ const ListOperation = {
|
|
|
14
14
|
method: "GET",
|
|
15
15
|
route: "/v1/account/wallet-transactions",
|
|
16
16
|
query: { cursor: "cursor", direction: "direction", limit: "limit" },
|
|
17
|
-
response:
|
|
18
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
17
|
+
response: AccountWalletTransactionPageResponseCodec,
|
|
18
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
19
19
|
};
|
|
@@ -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 { AccountWalletTransaction, AccountWalletTransactionPage, } from "./models.js";
|
|
5
|
+
export type { AccountListWalletTransactionsServiceUnavailableError, AccountListWalletTransactionsServiceUnavailableFailure, AccountWalletTransaction, AccountWalletTransactionPage, AccountWalletTransactionPageResponse, } from "./models.js";
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
import type { PageInfo } from "../../models.js";
|
|
1
|
+
import type { PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { AccountBillingUnavailableFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface AccountListWalletTransactionsServiceUnavailableError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: AccountListWalletTransactionsServiceUnavailableFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type AccountListWalletTransactionsServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingUnavailableFailure;
|
|
2
16
|
export interface AccountWalletTransaction {
|
|
3
17
|
/**
|
|
4
18
|
* Micros of the currency named with it.
|
|
@@ -27,5 +41,18 @@ export interface AccountWalletTransactionPage {
|
|
|
27
41
|
*/
|
|
28
42
|
pageInfo: PageInfo;
|
|
29
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* A successful answer.
|
|
46
|
+
*/
|
|
47
|
+
export interface AccountWalletTransactionPageResponse {
|
|
48
|
+
data: AccountWalletTransactionPage;
|
|
49
|
+
error: null;
|
|
50
|
+
/**
|
|
51
|
+
* What every answer carries besides its data or error.
|
|
52
|
+
*/
|
|
53
|
+
metadata: ResponseMetadata;
|
|
54
|
+
success: true;
|
|
55
|
+
}
|
|
30
56
|
export declare const AccountWalletTransactionCodec: import("../../_/codec.js").Codec;
|
|
31
57
|
export declare const AccountWalletTransactionPageCodec: import("../../_/codec.js").Codec;
|
|
58
|
+
export declare const AccountWalletTransactionPageResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -7,3 +7,6 @@ export const AccountWalletTransactionCodec = object([
|
|
|
7
7
|
export const AccountWalletTransactionPageCodec = object([
|
|
8
8
|
["data", null, array(() => AccountWalletTransactionCodec)],
|
|
9
9
|
]);
|
|
10
|
+
export const AccountWalletTransactionPageResponseCodec = object([
|
|
11
|
+
["data", null, () => AccountWalletTransactionPageCodec],
|
|
12
|
+
]);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import { type AgendaAppointment, type AgendaAppointmentIntakeInput, type AgendaPatientIdentityInput } from "../models.js";
|
|
2
|
+
import { type AgendaAppointment, type AgendaAppointmentIntakeInput, type AgendaResponseMetadata } from "../models.js";
|
|
4
3
|
import { type AgendaAppointmentPage } from "./models.js";
|
|
5
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
6
5
|
/**
|
|
@@ -9,6 +8,13 @@ export interface ClientOptions extends BaseClientOptions {
|
|
|
9
8
|
baseUrl: string;
|
|
10
9
|
}
|
|
11
10
|
export interface Client {
|
|
11
|
+
/**
|
|
12
|
+
* Change Appointment Status
|
|
13
|
+
*
|
|
14
|
+
* Apply an allowed appointment status transition using the expected version
|
|
15
|
+
* and record its attributed history.
|
|
16
|
+
*/
|
|
17
|
+
changeStatus(request: ChangeStatusRequest, options?: RequestOptions): Promise<ChangeStatusResponse>;
|
|
12
18
|
/**
|
|
13
19
|
* Create Appointment
|
|
14
20
|
*
|
|
@@ -26,8 +32,9 @@ export interface Client {
|
|
|
26
32
|
/**
|
|
27
33
|
* List Appointments
|
|
28
34
|
*
|
|
29
|
-
*
|
|
30
|
-
* keyset pagination.
|
|
35
|
+
* List the appointments in an appointment or creation window, filtered by the
|
|
36
|
+
* fields they match, using stable keyset pagination. To find a patient by
|
|
37
|
+
* name or document, search instead.
|
|
31
38
|
*/
|
|
32
39
|
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
33
40
|
/**
|
|
@@ -38,15 +45,41 @@ export interface Client {
|
|
|
38
45
|
*/
|
|
39
46
|
reschedule(request: RescheduleRequest, options?: RequestOptions): Promise<RescheduleResponse>;
|
|
40
47
|
/**
|
|
41
|
-
*
|
|
48
|
+
* Search Appointments
|
|
42
49
|
*
|
|
43
|
-
*
|
|
44
|
-
* and
|
|
50
|
+
* Search appointments by patient name or document (q), or within the
|
|
51
|
+
* requested window and filters, using stable keyset pagination.
|
|
45
52
|
*/
|
|
46
|
-
|
|
53
|
+
search(request?: SearchRequest, options?: RequestOptions): Promise<SearchResponse>;
|
|
47
54
|
}
|
|
48
55
|
export declare function createClient(options: ClientOptions): Client;
|
|
49
56
|
export declare function bind(transport: Transport): Client;
|
|
57
|
+
export interface ChangeStatusRequest {
|
|
58
|
+
/**
|
|
59
|
+
* Organization-owned appointment identifier.
|
|
60
|
+
*/
|
|
61
|
+
appointmentId: string;
|
|
62
|
+
/**
|
|
63
|
+
* Version last read by the caller. The mutation fails if another writer has
|
|
64
|
+
* changed this record.
|
|
65
|
+
*/
|
|
66
|
+
expectedVersion: number;
|
|
67
|
+
/**
|
|
68
|
+
* Why: kept for a cancellation or a no-show, ignored otherwise.
|
|
69
|
+
*/
|
|
70
|
+
reason?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Current appointment lifecycle state; cancelled and completed appointments
|
|
73
|
+
* cannot regain capacity through a status change.
|
|
74
|
+
*/
|
|
75
|
+
status: "tentative" | "scheduled" | "confirmed" | "checked_in" | "completed" | "cancelled" | "no_show" | "unknown";
|
|
76
|
+
}
|
|
77
|
+
export interface ChangeStatusResponse {
|
|
78
|
+
data: AgendaAppointment;
|
|
79
|
+
error: null;
|
|
80
|
+
metadata: AgendaResponseMetadata;
|
|
81
|
+
success: true;
|
|
82
|
+
}
|
|
50
83
|
export interface CreateRequest {
|
|
51
84
|
/**
|
|
52
85
|
* Booking source recorded on the appointment; null when no channel was
|
|
@@ -77,7 +110,12 @@ export interface CreateRequest {
|
|
|
77
110
|
* Patient identity copied into the booking; null when no patient identity was
|
|
78
111
|
* supplied.
|
|
79
112
|
*/
|
|
80
|
-
patient?:
|
|
113
|
+
patient?: {
|
|
114
|
+
document?: string | null;
|
|
115
|
+
documentNumber?: string | null;
|
|
116
|
+
documentType?: string | null;
|
|
117
|
+
name: string;
|
|
118
|
+
} | null;
|
|
81
119
|
/**
|
|
82
120
|
* Patient-supplied date of birth (YYYY-MM-DD), stored on the record and
|
|
83
121
|
* checked against service age eligibility.
|
|
@@ -102,27 +140,39 @@ export interface CreateRequest {
|
|
|
102
140
|
export interface CreateResponse {
|
|
103
141
|
data: AgendaAppointment;
|
|
104
142
|
error: null;
|
|
105
|
-
metadata:
|
|
143
|
+
metadata: AgendaResponseMetadata;
|
|
106
144
|
success: true;
|
|
107
145
|
}
|
|
108
146
|
export interface GetRequest {
|
|
109
147
|
/**
|
|
110
148
|
* Organization-owned appointment identifier.
|
|
111
149
|
*/
|
|
112
|
-
|
|
150
|
+
appointmentId: string;
|
|
113
151
|
}
|
|
114
152
|
export interface GetResponse {
|
|
115
153
|
data: AgendaAppointment;
|
|
116
154
|
error: null;
|
|
117
|
-
metadata:
|
|
155
|
+
metadata: AgendaResponseMetadata;
|
|
118
156
|
success: true;
|
|
119
157
|
}
|
|
120
158
|
export interface ListRequest {
|
|
121
159
|
/**
|
|
122
|
-
*
|
|
123
|
-
* channel was never recorded.
|
|
160
|
+
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
124
161
|
*/
|
|
125
|
-
|
|
162
|
+
cursor?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
165
|
+
*/
|
|
166
|
+
direction?: "forward" | "backward";
|
|
167
|
+
/**
|
|
168
|
+
* Maximum number of appointment records returned by one page; defaults to 25
|
|
169
|
+
* and cannot exceed 500.
|
|
170
|
+
*/
|
|
171
|
+
limit?: number;
|
|
172
|
+
/**
|
|
173
|
+
* Only appointments booked through this recorded channel.
|
|
174
|
+
*/
|
|
175
|
+
bookingChannel?: string;
|
|
126
176
|
/**
|
|
127
177
|
* Inclusive creation instant, independent of the appointment date. Pair with
|
|
128
178
|
* createdBefore; at most 93 days.
|
|
@@ -134,27 +184,14 @@ export interface ListRequest {
|
|
|
134
184
|
*/
|
|
135
185
|
createdBefore?: Temporal.Instant;
|
|
136
186
|
/**
|
|
137
|
-
*
|
|
138
|
-
*/
|
|
139
|
-
createdBy?: string | null;
|
|
140
|
-
/**
|
|
141
|
-
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
142
|
-
*/
|
|
143
|
-
cursor?: string;
|
|
144
|
-
/**
|
|
145
|
-
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
187
|
+
* Only appointments booked by this principal reference.
|
|
146
188
|
*/
|
|
147
|
-
|
|
189
|
+
createdBy?: string;
|
|
148
190
|
/**
|
|
149
191
|
* Beginning of the appointment range; must be paired with to unless a patient
|
|
150
192
|
* search is supplied.
|
|
151
193
|
*/
|
|
152
194
|
from?: Temporal.Instant;
|
|
153
|
-
/**
|
|
154
|
-
* Maximum number of appointment records returned by one page; defaults to 25
|
|
155
|
-
* and cannot exceed 500.
|
|
156
|
-
*/
|
|
157
|
-
limit?: number;
|
|
158
195
|
/**
|
|
159
196
|
* Held on an agenda of this site, like `appointmentReport`.
|
|
160
197
|
*/
|
|
@@ -164,22 +201,17 @@ export interface ListRequest {
|
|
|
164
201
|
*/
|
|
165
202
|
order?: "desc" | "asc";
|
|
166
203
|
/**
|
|
167
|
-
*
|
|
204
|
+
* Only appointments whose intake names this payer.
|
|
168
205
|
*/
|
|
169
|
-
payer?: string
|
|
206
|
+
payer?: string;
|
|
170
207
|
/**
|
|
171
208
|
* Only appointments marked priority ("urgent"), or only the rest.
|
|
172
209
|
*/
|
|
173
210
|
priority?: "normal" | "urgent";
|
|
174
211
|
/**
|
|
175
|
-
*
|
|
176
|
-
* range.
|
|
212
|
+
* Only appointments cancelled or missed for this recorded reason.
|
|
177
213
|
*/
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* The reason given for a cancellation or no-show.
|
|
181
|
-
*/
|
|
182
|
-
reason?: string | null;
|
|
214
|
+
reason?: string;
|
|
183
215
|
/**
|
|
184
216
|
* Only appointments assigned to this agenda in the authenticated
|
|
185
217
|
* organization.
|
|
@@ -203,9 +235,9 @@ export interface ListRequest {
|
|
|
203
235
|
*/
|
|
204
236
|
status?: ("tentative" | "scheduled" | "confirmed" | "checked_in" | "completed" | "cancelled" | "no_show" | "unknown")[] | "tentative" | "scheduled" | "confirmed" | "checked_in" | "completed" | "cancelled" | "no_show" | "unknown";
|
|
205
237
|
/**
|
|
206
|
-
*
|
|
238
|
+
* Only appointments whose latest status change this principal made.
|
|
207
239
|
*/
|
|
208
|
-
statusChangedBy?: string
|
|
240
|
+
statusChangedBy?: string;
|
|
209
241
|
/**
|
|
210
242
|
* End of the appointment range; must be paired with from.
|
|
211
243
|
*/
|
|
@@ -214,14 +246,14 @@ export interface ListRequest {
|
|
|
214
246
|
export interface ListResponse {
|
|
215
247
|
data: AgendaAppointmentPage;
|
|
216
248
|
error: null;
|
|
217
|
-
metadata:
|
|
249
|
+
metadata: AgendaResponseMetadata;
|
|
218
250
|
success: true;
|
|
219
251
|
}
|
|
220
252
|
export interface RescheduleRequest {
|
|
221
253
|
/**
|
|
222
254
|
* Organization-owned appointment identifier.
|
|
223
255
|
*/
|
|
224
|
-
|
|
256
|
+
appointmentId: string;
|
|
225
257
|
/**
|
|
226
258
|
* Who moves it, as when booking: "agent" (the WhatsApp agent) may not move an
|
|
227
259
|
* appointment of a payer only the team books (`payer_staff_only`).
|
|
@@ -256,32 +288,112 @@ export interface RescheduleRequest {
|
|
|
256
288
|
export interface RescheduleResponse {
|
|
257
289
|
data: AgendaAppointment;
|
|
258
290
|
error: null;
|
|
259
|
-
metadata:
|
|
291
|
+
metadata: AgendaResponseMetadata;
|
|
260
292
|
success: true;
|
|
261
293
|
}
|
|
262
|
-
export interface
|
|
294
|
+
export interface SearchRequest {
|
|
263
295
|
/**
|
|
264
|
-
*
|
|
296
|
+
* Filter the recorded booking channel; null selects appointments whose
|
|
297
|
+
* channel was never recorded.
|
|
265
298
|
*/
|
|
266
|
-
|
|
299
|
+
bookingChannel?: string | null;
|
|
267
300
|
/**
|
|
268
|
-
*
|
|
269
|
-
*
|
|
301
|
+
* Inclusive creation instant, independent of the appointment date. Pair with
|
|
302
|
+
* createdBefore; at most 93 days.
|
|
270
303
|
*/
|
|
271
|
-
|
|
304
|
+
createdAfter?: Temporal.Instant;
|
|
272
305
|
/**
|
|
273
|
-
*
|
|
306
|
+
* Exclusive creation instant. Use for appointments generated during a period,
|
|
307
|
+
* including future appointments.
|
|
274
308
|
*/
|
|
275
|
-
|
|
309
|
+
createdBefore?: Temporal.Instant;
|
|
276
310
|
/**
|
|
277
|
-
*
|
|
278
|
-
* cannot regain capacity through a status change.
|
|
311
|
+
* Principal reference of whoever booked it.
|
|
279
312
|
*/
|
|
280
|
-
|
|
313
|
+
createdBy?: string | null;
|
|
314
|
+
/**
|
|
315
|
+
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
316
|
+
*/
|
|
317
|
+
cursor?: string;
|
|
318
|
+
/**
|
|
319
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
320
|
+
*/
|
|
321
|
+
direction?: "forward" | "backward";
|
|
322
|
+
/**
|
|
323
|
+
* Beginning of the appointment range; must be paired with to unless a patient
|
|
324
|
+
* search is supplied.
|
|
325
|
+
*/
|
|
326
|
+
from?: Temporal.Instant;
|
|
327
|
+
/**
|
|
328
|
+
* Maximum number of appointment records returned by one page; defaults to 25
|
|
329
|
+
* and cannot exceed 500.
|
|
330
|
+
*/
|
|
331
|
+
limit?: number;
|
|
332
|
+
/**
|
|
333
|
+
* Held on an agenda of this site, like `appointmentReport`.
|
|
334
|
+
*/
|
|
335
|
+
locationId?: string;
|
|
336
|
+
/**
|
|
337
|
+
* Ascending or descending order within the selected appointment sort key.
|
|
338
|
+
*/
|
|
339
|
+
order?: "desc" | "asc";
|
|
340
|
+
/**
|
|
341
|
+
* The payer's name as recorded in the intake.
|
|
342
|
+
*/
|
|
343
|
+
payer?: string | null;
|
|
344
|
+
/**
|
|
345
|
+
* Only appointments marked priority ("urgent"), or only the rest.
|
|
346
|
+
*/
|
|
347
|
+
priority?: "normal" | "urgent";
|
|
348
|
+
/**
|
|
349
|
+
* Patient name or document search text; provide this or a complete instant
|
|
350
|
+
* range.
|
|
351
|
+
*/
|
|
352
|
+
q?: string;
|
|
353
|
+
/**
|
|
354
|
+
* Deprecated: use `q`. Answered until 2027-01-28.
|
|
355
|
+
*
|
|
356
|
+
* @deprecated
|
|
357
|
+
*/
|
|
358
|
+
query?: string;
|
|
359
|
+
/**
|
|
360
|
+
* The reason given for a cancellation or no-show.
|
|
361
|
+
*/
|
|
362
|
+
reason?: string | null;
|
|
363
|
+
/**
|
|
364
|
+
* Only appointments assigned to this agenda in the authenticated
|
|
365
|
+
* organization.
|
|
366
|
+
*/
|
|
367
|
+
resourceId?: string;
|
|
368
|
+
/**
|
|
369
|
+
* Held on any of these agendas (at most 200).
|
|
370
|
+
*/
|
|
371
|
+
resourceIds?: string[];
|
|
372
|
+
/**
|
|
373
|
+
* Service identifier within the authenticated organization.
|
|
374
|
+
*/
|
|
375
|
+
serviceId?: string;
|
|
376
|
+
/**
|
|
377
|
+
* createdAt uses agenda overlap semantics; startsAt selects appointments
|
|
378
|
+
* beginning inside the report window.
|
|
379
|
+
*/
|
|
380
|
+
sort?: "createdAt" | "startsAt";
|
|
381
|
+
/**
|
|
382
|
+
* One status, or any of several.
|
|
383
|
+
*/
|
|
384
|
+
status?: ("tentative" | "scheduled" | "confirmed" | "checked_in" | "completed" | "cancelled" | "no_show" | "unknown")[] | "tentative" | "scheduled" | "confirmed" | "checked_in" | "completed" | "cancelled" | "no_show" | "unknown";
|
|
385
|
+
/**
|
|
386
|
+
* Principal reference of whoever made the latest status change.
|
|
387
|
+
*/
|
|
388
|
+
statusChangedBy?: string | null;
|
|
389
|
+
/**
|
|
390
|
+
* End of the appointment range; must be paired with from.
|
|
391
|
+
*/
|
|
392
|
+
to?: Temporal.Instant;
|
|
281
393
|
}
|
|
282
|
-
export interface
|
|
283
|
-
data:
|
|
394
|
+
export interface SearchResponse {
|
|
395
|
+
data: AgendaAppointmentPage;
|
|
284
396
|
error: null;
|
|
285
|
-
metadata:
|
|
397
|
+
metadata: AgendaResponseMetadata;
|
|
286
398
|
success: true;
|
|
287
399
|
}
|
|
@@ -8,13 +8,21 @@ export function createClient(options) {
|
|
|
8
8
|
}
|
|
9
9
|
export function bind(transport) {
|
|
10
10
|
return {
|
|
11
|
+
changeStatus: (request, options) => transport.send(ChangeStatusOperation, request, options),
|
|
11
12
|
create: (request, options) => transport.send(CreateOperation, request, options),
|
|
12
13
|
get: (request, options) => transport.send(GetOperation, request, options),
|
|
13
14
|
list: (request, options) => transport.send(ListOperation, request, options),
|
|
14
15
|
reschedule: (request, options) => transport.send(RescheduleOperation, request, options),
|
|
15
|
-
|
|
16
|
+
search: (request, options) => transport.send(SearchOperation, request, options),
|
|
16
17
|
};
|
|
17
18
|
}
|
|
19
|
+
const ChangeStatusOperation = {
|
|
20
|
+
method: "POST",
|
|
21
|
+
route: "/v1/agenda/appointments/{appointmentId}/change-status",
|
|
22
|
+
body: "flat",
|
|
23
|
+
response: object([["data", null, () => AgendaAppointmentCodec]]),
|
|
24
|
+
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 },
|
|
25
|
+
};
|
|
18
26
|
const CreateOperation = {
|
|
19
27
|
method: "POST",
|
|
20
28
|
route: "/v1/agenda/appointments",
|
|
@@ -25,29 +33,29 @@ const CreateOperation = {
|
|
|
25
33
|
};
|
|
26
34
|
const GetOperation = {
|
|
27
35
|
method: "GET",
|
|
28
|
-
route: "/v1/agenda/appointments/{
|
|
36
|
+
route: "/v1/agenda/appointments/{appointmentId}",
|
|
29
37
|
response: object([["data", null, () => AgendaAppointmentCodec]]),
|
|
30
38
|
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 },
|
|
31
39
|
};
|
|
32
40
|
const ListOperation = {
|
|
33
|
-
method: "
|
|
34
|
-
route: "/v1/agenda/appointments
|
|
35
|
-
|
|
36
|
-
request: object([["createdAfter", null, instant], ["createdBefore", null, instant], ["from", null, instant], ["to", null, instant]]),
|
|
41
|
+
method: "GET",
|
|
42
|
+
route: "/v1/agenda/appointments",
|
|
43
|
+
query: { cursor: "cursor", direction: "direction", limit: "limit", bookingChannel: "bookingChannel", createdAfter: "createdAfter", createdBefore: "createdBefore", createdBy: "createdBy", from: "from", locationId: "locationId", order: "order", payer: "payer", priority: "priority", reason: "reason", resourceId: "resourceId", resourceIds: "resourceIds", serviceId: "serviceId", sort: "sort", status: "status", statusChangedBy: "statusChangedBy", to: "to" },
|
|
37
44
|
response: object([["data", null, () => AgendaAppointmentPageCodec]]),
|
|
38
45
|
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 },
|
|
39
46
|
};
|
|
40
47
|
const RescheduleOperation = {
|
|
41
48
|
method: "POST",
|
|
42
|
-
route: "/v1/agenda/appointments/{
|
|
49
|
+
route: "/v1/agenda/appointments/{appointmentId}/reschedule",
|
|
43
50
|
body: "flat",
|
|
44
51
|
response: object([["data", null, () => AgendaAppointmentCodec]]),
|
|
45
52
|
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 },
|
|
46
53
|
};
|
|
47
|
-
const
|
|
48
|
-
method: "
|
|
49
|
-
route: "/v1/agenda/appointments/
|
|
54
|
+
const SearchOperation = {
|
|
55
|
+
method: "POST",
|
|
56
|
+
route: "/v1/agenda/appointments/search",
|
|
50
57
|
body: "flat",
|
|
51
|
-
|
|
58
|
+
request: object([["createdAfter", null, instant], ["createdBefore", null, instant], ["from", null, instant], ["to", null, instant]]),
|
|
59
|
+
response: object([["data", null, () => AgendaAppointmentPageCodec]]),
|
|
52
60
|
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 },
|
|
53
61
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
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, CreateRequest, CreateResponse, GetRequest, GetResponse, ListRequest, ListResponse, RescheduleRequest, RescheduleResponse,
|
|
4
|
+
export type { Client, ClientOptions, ChangeStatusRequest, ChangeStatusResponse, CreateRequest, CreateResponse, GetRequest, GetResponse, ListRequest, ListResponse, RescheduleRequest, RescheduleResponse, SearchRequest, SearchResponse, } from "./client.js";
|
|
5
5
|
export type { AgendaAppointmentPage } from "./models.js";
|