@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
package/dist/agenda/models.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Failure, PageInfo,
|
|
1
|
+
import type { Failure, PageInfo, ValidationIssue } from "../models.js";
|
|
2
2
|
export interface AgendaAppointment {
|
|
3
3
|
/**
|
|
4
4
|
* Booking source recorded on the appointment; null when no channel was
|
|
@@ -447,13 +447,6 @@ export interface AgendaFailureResponse {
|
|
|
447
447
|
};
|
|
448
448
|
message: "Provide a positive time window within the supported range.";
|
|
449
449
|
retryable: false;
|
|
450
|
-
} | {
|
|
451
|
-
code: "LAST_ADMIN";
|
|
452
|
-
data: {
|
|
453
|
-
[key: string]: unknown;
|
|
454
|
-
};
|
|
455
|
-
message: "Keep at least one organization administrator.";
|
|
456
|
-
retryable: false;
|
|
457
450
|
} | {
|
|
458
451
|
code: "UPGRADE_REQUIRED";
|
|
459
452
|
data: {
|
|
@@ -482,34 +475,6 @@ export interface AgendaFailureResponse {
|
|
|
482
475
|
};
|
|
483
476
|
message: "This request origin is not allowed.";
|
|
484
477
|
retryable: false;
|
|
485
|
-
} | {
|
|
486
|
-
code: "ROLE_MISSING";
|
|
487
|
-
data: {
|
|
488
|
-
[key: string]: unknown;
|
|
489
|
-
};
|
|
490
|
-
message: "Configure the required organization role before inviting a member.";
|
|
491
|
-
retryable: false;
|
|
492
|
-
} | {
|
|
493
|
-
code: "SELF_DEMOTION";
|
|
494
|
-
data: {
|
|
495
|
-
[key: string]: unknown;
|
|
496
|
-
};
|
|
497
|
-
message: "Ask another administrator to change your administrator role.";
|
|
498
|
-
retryable: false;
|
|
499
|
-
} | {
|
|
500
|
-
code: "TEAM_MEMBER_EXISTS";
|
|
501
|
-
data: {
|
|
502
|
-
[key: string]: unknown;
|
|
503
|
-
};
|
|
504
|
-
message: "This person is already a team member.";
|
|
505
|
-
retryable: false;
|
|
506
|
-
} | {
|
|
507
|
-
code: "TEAM_NOT_CONFIGURED";
|
|
508
|
-
data: {
|
|
509
|
-
[key: string]: unknown;
|
|
510
|
-
};
|
|
511
|
-
message: "Team management is not configured for this organization.";
|
|
512
|
-
retryable: false;
|
|
513
478
|
} | {
|
|
514
479
|
code: "UNEXPECTED_QUERY_PARAMETERS";
|
|
515
480
|
data: {
|
|
@@ -636,6 +601,13 @@ export interface AgendaFailureResponse {
|
|
|
636
601
|
};
|
|
637
602
|
message: "No active agenda can take this appointment.";
|
|
638
603
|
retryable: false;
|
|
604
|
+
} | {
|
|
605
|
+
code: "STUDY_OVERBOOKING_NOT_ALLOWED";
|
|
606
|
+
data: {
|
|
607
|
+
[key: string]: unknown;
|
|
608
|
+
};
|
|
609
|
+
message: "This study has an explicit capacity limit and requires an available ordinary slot.";
|
|
610
|
+
retryable: false;
|
|
639
611
|
} | {
|
|
640
612
|
code: "INVALID_SLOT_TOKEN";
|
|
641
613
|
data: {
|
|
@@ -713,6 +685,13 @@ export interface AgendaFailureResponse {
|
|
|
713
685
|
};
|
|
714
686
|
message: "The resource changed after it was loaded.";
|
|
715
687
|
retryable: false;
|
|
688
|
+
} | {
|
|
689
|
+
code: "SCHEDULE_RULE_AGENDA_MISMATCH";
|
|
690
|
+
data: {
|
|
691
|
+
[key: string]: unknown;
|
|
692
|
+
};
|
|
693
|
+
message: "The schedule rule belongs to another agenda.";
|
|
694
|
+
retryable: false;
|
|
716
695
|
} | {
|
|
717
696
|
code: "SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED";
|
|
718
697
|
data: {
|
|
@@ -860,53 +839,10 @@ export interface AgendaFailureResponse {
|
|
|
860
839
|
};
|
|
861
840
|
message: "The integration service rejected this request. Review its configuration.";
|
|
862
841
|
retryable: false;
|
|
863
|
-
} | {
|
|
864
|
-
code: "IDENTITY_UNAVAILABLE";
|
|
865
|
-
data: {
|
|
866
|
-
[key: string]: unknown;
|
|
867
|
-
};
|
|
868
|
-
message: "The identity provider is temporarily unavailable. Retry later.";
|
|
869
|
-
retryable: true;
|
|
870
|
-
} | {
|
|
871
|
-
code: "IDENTITY_REJECTED";
|
|
872
|
-
data: {
|
|
873
|
-
[key: string]: unknown;
|
|
874
|
-
};
|
|
875
|
-
message: "The identity provider rejected this team change. Refresh the team before retrying.";
|
|
876
|
-
retryable: false;
|
|
877
842
|
});
|
|
878
|
-
metadata:
|
|
843
|
+
metadata: AgendaResponseMetadata;
|
|
879
844
|
success: false;
|
|
880
845
|
}
|
|
881
|
-
export interface AgendaFirstAvailability {
|
|
882
|
-
/**
|
|
883
|
-
* Earliest signed slots in global time order or grouped by offering,
|
|
884
|
-
* according to the requested grouping.
|
|
885
|
-
*/
|
|
886
|
-
data: AgendaSlot[];
|
|
887
|
-
/**
|
|
888
|
-
* Instant when this response was assembled; not a validity guarantee for
|
|
889
|
-
* returned capacity.
|
|
890
|
-
*/
|
|
891
|
-
generatedAt: string;
|
|
892
|
-
/**
|
|
893
|
-
* Continue first-availability search from this instant; null when the
|
|
894
|
-
* returned search has no continuation.
|
|
895
|
-
*/
|
|
896
|
-
nextFrom: string | null;
|
|
897
|
-
/**
|
|
898
|
-
* Stable discriminator identifying the shape of this scheduling response.
|
|
899
|
-
*/
|
|
900
|
-
object: "list";
|
|
901
|
-
/**
|
|
902
|
-
* End instant of the availability window actually examined by this request.
|
|
903
|
-
*/
|
|
904
|
-
searchedUntil: string;
|
|
905
|
-
/**
|
|
906
|
-
* True when the bounded search left eligible offerings or agendas unexamined.
|
|
907
|
-
*/
|
|
908
|
-
truncatedOfferings: boolean;
|
|
909
|
-
}
|
|
910
846
|
export interface AgendaLocation {
|
|
911
847
|
/**
|
|
912
848
|
* Street address displayed with this clinic site; null when not configured.
|
|
@@ -971,11 +907,17 @@ export interface AgendaLocationPage {
|
|
|
971
907
|
pageInfo: PageInfo;
|
|
972
908
|
}
|
|
973
909
|
export interface AgendaPatientIdentity {
|
|
910
|
+
/**
|
|
911
|
+
* Deprecated: use `documentNumber`. Answered until 2027-01-28.
|
|
912
|
+
*
|
|
913
|
+
* @deprecated
|
|
914
|
+
*/
|
|
915
|
+
document: string | null;
|
|
974
916
|
/**
|
|
975
917
|
* Normalized patient document number; null when no document is recorded.
|
|
976
918
|
* Identity combines its type and number.
|
|
977
919
|
*/
|
|
978
|
-
|
|
920
|
+
documentNumber: string | null;
|
|
979
921
|
/**
|
|
980
922
|
* Organization-configured document type code. A number without a supplied
|
|
981
923
|
* type uses the configured first type; no number means no stored type.
|
|
@@ -986,21 +928,11 @@ export interface AgendaPatientIdentity {
|
|
|
986
928
|
*/
|
|
987
929
|
name: string;
|
|
988
930
|
}
|
|
989
|
-
export interface
|
|
990
|
-
/**
|
|
991
|
-
* Normalized patient document number; null when no document is recorded.
|
|
992
|
-
* Identity combines its type and number.
|
|
993
|
-
*/
|
|
994
|
-
document: string | null;
|
|
931
|
+
export interface AgendaResponseMetadata {
|
|
995
932
|
/**
|
|
996
|
-
*
|
|
997
|
-
* type uses the configured first type; no number means no stored type.
|
|
933
|
+
* Request correlation identifier, also sent as X-Request-Id.
|
|
998
934
|
*/
|
|
999
|
-
|
|
1000
|
-
/**
|
|
1001
|
-
* Patient display name with surrounding whitespace removed.
|
|
1002
|
-
*/
|
|
1003
|
-
name: string;
|
|
935
|
+
requestId: string;
|
|
1004
936
|
}
|
|
1005
937
|
export interface AgendaSlot {
|
|
1006
938
|
/**
|
|
@@ -1053,7 +985,6 @@ export interface AgendaSlotPage {
|
|
|
1053
985
|
}
|
|
1054
986
|
export declare const AgendaAppointmentCodec: import("../_/codec.js").Codec;
|
|
1055
987
|
export declare const AgendaAppointmentStatusChangeCodec: import("../_/codec.js").Codec;
|
|
1056
|
-
export declare const AgendaFirstAvailabilityCodec: import("../_/codec.js").Codec;
|
|
1057
988
|
export declare const AgendaLocationCodec: import("../_/codec.js").Codec;
|
|
1058
989
|
export declare const AgendaLocationPageCodec: import("../_/codec.js").Codec;
|
|
1059
990
|
export declare const AgendaSlotCodec: import("../_/codec.js").Codec;
|
package/dist/agenda/models.js
CHANGED
|
@@ -11,9 +11,6 @@ export const AgendaAppointmentCodec = object([
|
|
|
11
11
|
export const AgendaAppointmentStatusChangeCodec = object([
|
|
12
12
|
["at", null, instant],
|
|
13
13
|
]);
|
|
14
|
-
export const AgendaFirstAvailabilityCodec = object([
|
|
15
|
-
["data", null, array(() => AgendaSlotCodec)],
|
|
16
|
-
]);
|
|
17
14
|
export const AgendaLocationCodec = object([
|
|
18
15
|
["updatedAt", null, instant],
|
|
19
16
|
]);
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { AgendaResponseMetadata } from "../models.js";
|
|
3
|
+
import { type AgendaNearestSlotPage } from "./models.js";
|
|
4
|
+
export interface ClientOptions extends BaseClientOptions {
|
|
5
|
+
/**
|
|
6
|
+
* The URL the paths of the API are relative to.
|
|
7
|
+
*/
|
|
8
|
+
baseUrl: string;
|
|
9
|
+
}
|
|
10
|
+
export interface Client {
|
|
11
|
+
/**
|
|
12
|
+
* Find the first available times for a service
|
|
13
|
+
*
|
|
14
|
+
* Find the truly nearest bookable times for one service, in ONE call, across
|
|
15
|
+
* every professional, room or equipment that offers it (up to 50 agendas).
|
|
16
|
+
* Leave days out: the search then reaches as far as the service can be booked
|
|
17
|
+
* (its booking horizon, up to a year) and stops at the first `limit` slots,
|
|
18
|
+
* so an opening months away is found at once. Do not page week by week. An
|
|
19
|
+
* empty data list means there is no opening within that reach (searchedUntil
|
|
20
|
+
* says how far it looked); offer the waitlist instead. Pass days only to look
|
|
21
|
+
* at a shorter stretch. group 'time' (default) returns the earliest slots
|
|
22
|
+
* overall, a page at a time: pageInfo.nextCursor reads the slots after these,
|
|
23
|
+
* and pageInfo.previousCursor with direction backward the ones before; group
|
|
24
|
+
* 'offering' returns each agenda's first slots as one page. Use limit 1–3 to
|
|
25
|
+
* quote the nearest time. Each slotToken books with create_appointment.
|
|
26
|
+
*/
|
|
27
|
+
list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
28
|
+
}
|
|
29
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
30
|
+
export declare function bind(transport: Transport): Client;
|
|
31
|
+
export interface ListRequest {
|
|
32
|
+
/**
|
|
33
|
+
* Days to search; absent: as far as the service can be booked.
|
|
34
|
+
*/
|
|
35
|
+
days?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Start of the search; defaults to now.
|
|
38
|
+
*/
|
|
39
|
+
from?: Temporal.Instant;
|
|
40
|
+
/**
|
|
41
|
+
* Group first availability globally by time or return a separate
|
|
42
|
+
* earliest-slot set for each offering.
|
|
43
|
+
*/
|
|
44
|
+
group?: "time" | "offering";
|
|
45
|
+
/**
|
|
46
|
+
* Maximum returned slots overall or per offering according to group; defaults
|
|
47
|
+
* to 20 and cannot exceed 50.
|
|
48
|
+
*/
|
|
49
|
+
limit?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Only agendas at this site (and those not tied to any site).
|
|
52
|
+
*/
|
|
53
|
+
locationId?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Only agendas that can use this professional, room or equipment.
|
|
56
|
+
*/
|
|
57
|
+
resourceId?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Service identifier within the authenticated organization.
|
|
60
|
+
*/
|
|
61
|
+
serviceId: string;
|
|
62
|
+
/**
|
|
63
|
+
* IANA timezone used to interpret local dates and agenda working hours.
|
|
64
|
+
*/
|
|
65
|
+
timezone: string;
|
|
66
|
+
/**
|
|
67
|
+
* A slot's place in the nearest times' order, from pageInfo. Omit it for the
|
|
68
|
+
* first page, or with direction backward for the last page within the
|
|
69
|
+
* search's reach.
|
|
70
|
+
*/
|
|
71
|
+
cursor?: string;
|
|
72
|
+
/**
|
|
73
|
+
* forward reads the slots after the cursor; backward reads the ones before
|
|
74
|
+
* it.
|
|
75
|
+
*/
|
|
76
|
+
direction?: "forward" | "backward";
|
|
77
|
+
/**
|
|
78
|
+
* The conversation's channel, set by the platform. It changes nothing in
|
|
79
|
+
* Agenda; omit it.
|
|
80
|
+
*/
|
|
81
|
+
channel?: "voice" | "whatsapp" | "web";
|
|
82
|
+
/**
|
|
83
|
+
* The platform's id for the organization's Agenda, set by the platform. An
|
|
84
|
+
* organization has one Agenda, so it selects nothing; omit it.
|
|
85
|
+
*/
|
|
86
|
+
connectionId?: string;
|
|
87
|
+
}
|
|
88
|
+
export interface ListResponse {
|
|
89
|
+
data: AgendaNearestSlotPage;
|
|
90
|
+
error: null;
|
|
91
|
+
metadata: AgendaResponseMetadata;
|
|
92
|
+
success: true;
|
|
93
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, object, } from "../../_/index.js";
|
|
4
|
+
import { AgendaNearestSlotPageCodec, } from "./models.js";
|
|
5
|
+
export function createClient(options) {
|
|
6
|
+
return bind(new Transport(options));
|
|
7
|
+
}
|
|
8
|
+
export function bind(transport) {
|
|
9
|
+
return {
|
|
10
|
+
list: (request, options) => transport.send(ListOperation, request, options),
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
const ListOperation = {
|
|
14
|
+
method: "GET",
|
|
15
|
+
route: "/v1/agenda/nearest-booking-slots",
|
|
16
|
+
query: { days: "days", from: "from", group: "group", limit: "limit", locationId: "locationId", resourceId: "resourceId", serviceId: "serviceId", timezone: "timezone", cursor: "cursor", direction: "direction", channel: "channel", connectionId: "connectionId" },
|
|
17
|
+
response: object([["data", null, () => AgendaNearestSlotPageCodec]]),
|
|
18
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "426": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
19
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "../../_/index.js";
|
|
2
|
+
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
+
export type { AgendaNearestSlotPage } from "./models.js";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { PageInfo } from "../../models.js";
|
|
2
|
+
import { type AgendaSlot } from "../models.js";
|
|
3
|
+
export interface AgendaNearestSlotPage {
|
|
4
|
+
/**
|
|
5
|
+
* Earliest signed slots in global time order or grouped by offering,
|
|
6
|
+
* according to the requested grouping.
|
|
7
|
+
*/
|
|
8
|
+
data: AgendaSlot[];
|
|
9
|
+
/**
|
|
10
|
+
* Instant when this response was assembled; not a validity guarantee for
|
|
11
|
+
* returned capacity.
|
|
12
|
+
*/
|
|
13
|
+
generatedAt: string;
|
|
14
|
+
/**
|
|
15
|
+
* Continue first-availability search from this instant; null when the
|
|
16
|
+
* returned search has no continuation.
|
|
17
|
+
*/
|
|
18
|
+
nextFrom: string | null;
|
|
19
|
+
/**
|
|
20
|
+
* Stable discriminator identifying the shape of this scheduling response.
|
|
21
|
+
*/
|
|
22
|
+
object: "list";
|
|
23
|
+
/**
|
|
24
|
+
* Cursors at this page's first and last slot: nextCursor reads the slots
|
|
25
|
+
* after it, previousCursor (with direction backward) the ones before it.
|
|
26
|
+
* group offering answers one page.
|
|
27
|
+
*/
|
|
28
|
+
pageInfo: PageInfo;
|
|
29
|
+
/**
|
|
30
|
+
* End instant of the availability window actually examined by this request.
|
|
31
|
+
*/
|
|
32
|
+
searchedUntil: string;
|
|
33
|
+
/**
|
|
34
|
+
* True when the bounded search left eligible offerings or agendas unexamined.
|
|
35
|
+
*/
|
|
36
|
+
truncatedOfferings: boolean;
|
|
37
|
+
}
|
|
38
|
+
export declare const AgendaNearestSlotPageCodec: import("../../_/codec.js").Codec;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { array, object } from "../../_/index.js";
|
|
4
|
+
import { AgendaSlotCodec } from "../models.js";
|
|
5
|
+
export const AgendaNearestSlotPageCodec = object([
|
|
6
|
+
["data", null, array(() => AgendaSlotCodec)],
|
|
7
|
+
]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { AgendaResponseMetadata } from "../models.js";
|
|
3
3
|
import { type AgendaOffering, type AgendaOfferingPage } from "./models.js";
|
|
4
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
5
|
/**
|
|
@@ -25,7 +25,7 @@ export interface Client {
|
|
|
25
25
|
/**
|
|
26
26
|
* Update Offering
|
|
27
27
|
*
|
|
28
|
-
* Update the offering named
|
|
28
|
+
* Update the offering named by offeringId using its expected version.
|
|
29
29
|
*/
|
|
30
30
|
update(request: UpdateRequest, options?: RequestOptions): Promise<UpdateResponse>;
|
|
31
31
|
}
|
|
@@ -97,7 +97,7 @@ export interface CreateRequest {
|
|
|
97
97
|
export interface CreateResponse {
|
|
98
98
|
data: AgendaOffering;
|
|
99
99
|
error: null;
|
|
100
|
-
metadata:
|
|
100
|
+
metadata: AgendaResponseMetadata;
|
|
101
101
|
success: true;
|
|
102
102
|
}
|
|
103
103
|
export interface ListRequest {
|
|
@@ -128,7 +128,7 @@ export interface ListRequest {
|
|
|
128
128
|
export interface ListResponse {
|
|
129
129
|
data: AgendaOfferingPage;
|
|
130
130
|
error: null;
|
|
131
|
-
metadata:
|
|
131
|
+
metadata: AgendaResponseMetadata;
|
|
132
132
|
success: true;
|
|
133
133
|
}
|
|
134
134
|
export interface UpdateRequest {
|
|
@@ -136,7 +136,7 @@ export interface UpdateRequest {
|
|
|
136
136
|
* Stable off-prefixed Scheduling record identifier; ownership is checked in
|
|
137
137
|
* the authenticated organization.
|
|
138
138
|
*/
|
|
139
|
-
|
|
139
|
+
offeringId: string;
|
|
140
140
|
/**
|
|
141
141
|
* Farthest number of days ahead that this offering can be booked.
|
|
142
142
|
*/
|
|
@@ -202,6 +202,6 @@ export interface UpdateRequest {
|
|
|
202
202
|
export interface UpdateResponse {
|
|
203
203
|
data: AgendaOffering;
|
|
204
204
|
error: null;
|
|
205
|
-
metadata:
|
|
205
|
+
metadata: AgendaResponseMetadata;
|
|
206
206
|
success: true;
|
|
207
207
|
}
|
|
@@ -28,7 +28,7 @@ const ListOperation = {
|
|
|
28
28
|
};
|
|
29
29
|
const UpdateOperation = {
|
|
30
30
|
method: "PATCH",
|
|
31
|
-
route: "/v1/agenda/offerings/{
|
|
31
|
+
route: "/v1/agenda/offerings/{offeringId}",
|
|
32
32
|
body: "flat",
|
|
33
33
|
response: object([["data", null, () => AgendaOfferingCodec]]),
|
|
34
34
|
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 },
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { AgendaResponseMetadata } from "../models.js";
|
|
3
|
+
export interface ClientOptions extends BaseClientOptions {
|
|
4
|
+
/**
|
|
5
|
+
* The URL the paths of the API are relative to.
|
|
6
|
+
*/
|
|
7
|
+
baseUrl: string;
|
|
8
|
+
}
|
|
9
|
+
export interface Client {
|
|
10
|
+
/**
|
|
11
|
+
* Update Resource Schedule
|
|
12
|
+
*
|
|
13
|
+
* Update an agenda’s hours as one complete set of working rules, replaced
|
|
14
|
+
* atomically, naming the rules last read (expectedRules); a rule left out of
|
|
15
|
+
* the set is removed.
|
|
16
|
+
*/
|
|
17
|
+
update(request: UpdateRequest, options?: RequestOptions): Promise<UpdateResponse>;
|
|
18
|
+
}
|
|
19
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
20
|
+
export declare function bind(transport: Transport): Client;
|
|
21
|
+
export interface UpdateRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Stable srs-prefixed Scheduling record identifier; ownership is checked in
|
|
24
|
+
* the authenticated organization.
|
|
25
|
+
*/
|
|
26
|
+
resourceId: string;
|
|
27
|
+
/**
|
|
28
|
+
* Identifiers and versions of the complete schedule loaded by the editor;
|
|
29
|
+
* concurrent changes reject the replacement.
|
|
30
|
+
*/
|
|
31
|
+
expectedRules: {
|
|
32
|
+
id: string;
|
|
33
|
+
version: number;
|
|
34
|
+
}[];
|
|
35
|
+
/**
|
|
36
|
+
* Schedule bands or profile policy rules owned by this configuration.
|
|
37
|
+
*/
|
|
38
|
+
rules: {
|
|
39
|
+
date?: Temporal.PlainDate | null;
|
|
40
|
+
effectiveFrom?: Temporal.PlainDate | null;
|
|
41
|
+
effectiveTo?: Temporal.PlainDate | null;
|
|
42
|
+
endTime?: string;
|
|
43
|
+
from?: string;
|
|
44
|
+
kind: "weekly" | "date_override" | "time_off" | "block";
|
|
45
|
+
startTime?: string;
|
|
46
|
+
to?: string;
|
|
47
|
+
weekdays?: number[];
|
|
48
|
+
}[];
|
|
49
|
+
}
|
|
50
|
+
export interface UpdateResponse {
|
|
51
|
+
data: {
|
|
52
|
+
data: {
|
|
53
|
+
date: Temporal.PlainDate | null;
|
|
54
|
+
effectiveFrom: Temporal.PlainDate | null;
|
|
55
|
+
effectiveTo: Temporal.PlainDate | null;
|
|
56
|
+
endTime: string;
|
|
57
|
+
from: string;
|
|
58
|
+
id: string;
|
|
59
|
+
kind: "weekly" | "date_override" | "time_off" | "block";
|
|
60
|
+
object: "scheduling.schedule_rule";
|
|
61
|
+
resourceId: string;
|
|
62
|
+
schemaVersion: 1;
|
|
63
|
+
startTime: string;
|
|
64
|
+
timezone: string;
|
|
65
|
+
to: string;
|
|
66
|
+
updatedAt: Temporal.Instant;
|
|
67
|
+
version: number;
|
|
68
|
+
weekdays: number[];
|
|
69
|
+
}[];
|
|
70
|
+
object: "list";
|
|
71
|
+
};
|
|
72
|
+
error: null;
|
|
73
|
+
metadata: AgendaResponseMetadata;
|
|
74
|
+
success: true;
|
|
75
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, array, date, instant, object, } from "../../_/index.js";
|
|
4
|
+
export function createClient(options) {
|
|
5
|
+
return bind(new Transport(options));
|
|
6
|
+
}
|
|
7
|
+
export function bind(transport) {
|
|
8
|
+
return {
|
|
9
|
+
update: (request, options) => transport.send(UpdateOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const UpdateOperation = {
|
|
13
|
+
method: "PATCH",
|
|
14
|
+
route: "/v1/agenda/resource-schedules/{resourceId}",
|
|
15
|
+
body: "flat",
|
|
16
|
+
request: object([["rules", null, array(object([["date", null, date], ["effectiveFrom", null, date], ["effectiveTo", null, date]]))]]),
|
|
17
|
+
response: object([["data", null, object([["data", null, array(object([["date", null, date], ["effectiveFrom", null, date], ["effectiveTo", null, date], ["updatedAt", null, instant]]))]])]]),
|
|
18
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "426": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
19
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { AgendaResponseMetadata } from "../models.js";
|
|
3
3
|
import { type AgendaResource, type AgendaResourcePage } from "./models.js";
|
|
4
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
5
|
/**
|
|
@@ -25,7 +25,7 @@ export interface Client {
|
|
|
25
25
|
/**
|
|
26
26
|
* Update Resource
|
|
27
27
|
*
|
|
28
|
-
* Update the agenda named
|
|
28
|
+
* Update the agenda named by resourceId using its expected version.
|
|
29
29
|
*/
|
|
30
30
|
update(request: UpdateRequest, options?: RequestOptions): Promise<UpdateResponse>;
|
|
31
31
|
}
|
|
@@ -71,7 +71,7 @@ export interface CreateRequest {
|
|
|
71
71
|
export interface CreateResponse {
|
|
72
72
|
data: AgendaResource;
|
|
73
73
|
error: null;
|
|
74
|
-
metadata:
|
|
74
|
+
metadata: AgendaResponseMetadata;
|
|
75
75
|
success: true;
|
|
76
76
|
}
|
|
77
77
|
export interface ListRequest {
|
|
@@ -101,7 +101,7 @@ export interface ListRequest {
|
|
|
101
101
|
export interface ListResponse {
|
|
102
102
|
data: AgendaResourcePage;
|
|
103
103
|
error: null;
|
|
104
|
-
metadata:
|
|
104
|
+
metadata: AgendaResponseMetadata;
|
|
105
105
|
success: true;
|
|
106
106
|
}
|
|
107
107
|
export interface UpdateRequest {
|
|
@@ -109,7 +109,7 @@ export interface UpdateRequest {
|
|
|
109
109
|
* Stable srs-prefixed Scheduling record identifier; ownership is checked in
|
|
110
110
|
* the authenticated organization.
|
|
111
111
|
*/
|
|
112
|
-
|
|
112
|
+
resourceId: string;
|
|
113
113
|
/**
|
|
114
114
|
* Maximum simultaneous capacity units available on this resource; each
|
|
115
115
|
* booking consumes its declared share.
|
|
@@ -154,6 +154,6 @@ export interface UpdateRequest {
|
|
|
154
154
|
export interface UpdateResponse {
|
|
155
155
|
data: AgendaResource;
|
|
156
156
|
error: null;
|
|
157
|
-
metadata:
|
|
157
|
+
metadata: AgendaResponseMetadata;
|
|
158
158
|
success: true;
|
|
159
159
|
}
|
|
@@ -28,7 +28,7 @@ const ListOperation = {
|
|
|
28
28
|
};
|
|
29
29
|
const UpdateOperation = {
|
|
30
30
|
method: "PATCH",
|
|
31
|
-
route: "/v1/agenda/resources/{
|
|
31
|
+
route: "/v1/agenda/resources/{resourceId}",
|
|
32
32
|
body: "flat",
|
|
33
33
|
response: object([["data", null, () => AgendaResourceCodec]]),
|
|
34
34
|
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 },
|