@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.
Files changed (394) hide show
  1. package/README.md +35 -0
  2. package/dist/account/apiKeys/client.d.ts +15 -47
  3. package/dist/account/apiKeys/client.js +11 -12
  4. package/dist/account/apiKeys/index.d.ts +1 -1
  5. package/dist/account/apiKeys/models.d.ts +164 -1
  6. package/dist/account/apiKeys/models.js +6 -0
  7. package/dist/account/billing/client.d.ts +4 -10
  8. package/dist/account/billing/client.js +7 -7
  9. package/dist/account/billing/index.d.ts +2 -2
  10. package/dist/account/billing/models.d.ts +32 -0
  11. package/dist/account/billing/models.js +5 -2
  12. package/dist/account/billingProfiles/client.d.ts +13 -24
  13. package/dist/account/billingProfiles/client.js +4 -4
  14. package/dist/account/billingProfiles/index.d.ts +1 -1
  15. package/dist/account/billingProfiles/models.d.ts +48 -0
  16. package/dist/account/client.d.ts +6 -0
  17. package/dist/account/client.js +15 -0
  18. package/dist/account/connections/client.d.ts +2 -200
  19. package/dist/account/connections/client.js +1 -25
  20. package/dist/account/connections/index.d.ts +2 -2
  21. package/dist/account/connections/models.d.ts +22 -7
  22. package/dist/account/index.d.ts +1 -1
  23. package/dist/account/invitations/client.d.ts +9 -38
  24. package/dist/account/invitations/client.js +8 -9
  25. package/dist/account/invitations/index.d.ts +1 -1
  26. package/dist/account/invitations/models.d.ts +221 -2
  27. package/dist/account/invitations/models.js +6 -0
  28. package/dist/account/invoiceDocuments/client.d.ts +25 -0
  29. package/dist/account/invoiceDocuments/client.js +17 -0
  30. package/dist/account/invoiceDocuments/index.d.ts +5 -0
  31. package/dist/account/invoiceDocuments/index.js +4 -0
  32. package/dist/account/invoiceDocuments/models.d.ts +35 -0
  33. package/dist/account/invoiceDocuments/models.js +3 -0
  34. package/dist/account/invoices/client.d.ts +7 -34
  35. package/dist/account/invoices/client.js +7 -14
  36. package/dist/account/invoices/index.d.ts +2 -2
  37. package/dist/account/invoices/models.d.ts +66 -1
  38. package/dist/account/invoices/models.js +8 -0
  39. package/dist/account/members/client.d.ts +14 -55
  40. package/dist/account/members/client.js +6 -7
  41. package/dist/account/members/index.d.ts +1 -1
  42. package/dist/account/members/models.d.ts +261 -2
  43. package/dist/account/models.d.ts +210 -259
  44. package/dist/account/organization/client.d.ts +31 -0
  45. package/dist/account/organization/client.js +25 -0
  46. package/dist/account/organization/index.d.ts +5 -0
  47. package/dist/account/organization/index.js +4 -0
  48. package/dist/account/organization/models.d.ts +89 -0
  49. package/dist/account/organization/models.js +3 -0
  50. package/dist/account/organizations/client.d.ts +2 -48
  51. package/dist/account/organizations/client.js +1 -16
  52. package/dist/account/organizations/index.d.ts +2 -2
  53. package/dist/account/organizations/models.d.ts +26 -37
  54. package/dist/account/payments/client.d.ts +2 -8
  55. package/dist/account/payments/client.js +4 -4
  56. package/dist/account/payments/index.d.ts +1 -1
  57. package/dist/account/payments/models.d.ts +28 -1
  58. package/dist/account/payments/models.js +3 -0
  59. package/dist/account/permissions/client.d.ts +2 -8
  60. package/dist/account/permissions/client.js +1 -1
  61. package/dist/account/permissions/index.d.ts +1 -1
  62. package/dist/account/permissions/models.d.ts +27 -1
  63. package/dist/account/roles/client.d.ts +2 -8
  64. package/dist/account/roles/client.js +1 -1
  65. package/dist/account/roles/index.d.ts +1 -1
  66. package/dist/account/roles/models.d.ts +27 -1
  67. package/dist/account/usage/client.d.ts +7 -44
  68. package/dist/account/usage/client.js +5 -13
  69. package/dist/account/usage/index.d.ts +2 -2
  70. package/dist/account/usage/models.d.ts +27 -1
  71. package/dist/account/usageSummary/client.d.ts +26 -0
  72. package/dist/account/usageSummary/client.js +19 -0
  73. package/dist/account/usageSummary/index.d.ts +5 -0
  74. package/dist/account/usageSummary/index.js +4 -0
  75. package/dist/account/usageSummary/models.d.ts +50 -0
  76. package/dist/account/usageSummary/models.js +9 -0
  77. package/dist/account/walletTransactions/client.d.ts +2 -8
  78. package/dist/account/walletTransactions/client.js +4 -4
  79. package/dist/account/walletTransactions/index.d.ts +1 -1
  80. package/dist/account/walletTransactions/models.d.ts +28 -1
  81. package/dist/account/walletTransactions/models.js +3 -0
  82. package/dist/agenda/appointments/client.d.ts +170 -58
  83. package/dist/agenda/appointments/client.js +19 -11
  84. package/dist/agenda/appointments/index.d.ts +1 -1
  85. package/dist/agenda/availability/client.d.ts +12 -74
  86. package/dist/agenda/availability/client.js +5 -14
  87. package/dist/agenda/availability/index.d.ts +1 -1
  88. package/dist/agenda/bookingLocations/client.d.ts +51 -0
  89. package/dist/agenda/bookingLocations/client.js +19 -0
  90. package/dist/agenda/bookingLocations/index.d.ts +4 -0
  91. package/dist/agenda/bookingLocations/index.js +4 -0
  92. package/dist/agenda/bookingOfferings/client.d.ts +82 -0
  93. package/dist/agenda/bookingOfferings/client.js +18 -0
  94. package/dist/agenda/bookingOfferings/index.d.ts +5 -0
  95. package/dist/agenda/bookingOfferings/index.js +4 -0
  96. package/dist/agenda/bookingOfferings/models.d.ts +92 -0
  97. package/dist/agenda/bookingOfferings/models.js +3 -0
  98. package/dist/agenda/bookingRequirements/client.d.ts +118 -0
  99. package/dist/agenda/bookingRequirements/client.js +18 -0
  100. package/dist/agenda/bookingRequirements/index.d.ts +4 -0
  101. package/dist/agenda/bookingRequirements/index.js +4 -0
  102. package/dist/agenda/bookingSlots/client.d.ts +78 -0
  103. package/dist/agenda/bookingSlots/client.js +19 -0
  104. package/dist/agenda/bookingSlots/index.d.ts +4 -0
  105. package/dist/agenda/bookingSlots/index.js +4 -0
  106. package/dist/agenda/bookings/client.d.ts +49 -381
  107. package/dist/agenda/bookings/client.js +10 -52
  108. package/dist/agenda/bookings/index.d.ts +2 -2
  109. package/dist/agenda/bookings/models.d.ts +0 -92
  110. package/dist/agenda/client.d.ts +14 -0
  111. package/dist/agenda/client.js +35 -0
  112. package/dist/agenda/firstAvailability/client.d.ts +74 -0
  113. package/dist/agenda/firstAvailability/client.js +19 -0
  114. package/dist/agenda/firstAvailability/index.d.ts +5 -0
  115. package/dist/agenda/firstAvailability/index.js +4 -0
  116. package/dist/agenda/firstAvailability/models.d.ts +31 -0
  117. package/dist/agenda/firstAvailability/models.js +7 -0
  118. package/dist/agenda/index.d.ts +1 -1
  119. package/dist/agenda/locations/client.d.ts +2 -3
  120. package/dist/agenda/locations/client.js +1 -1
  121. package/dist/agenda/models.d.ts +26 -95
  122. package/dist/agenda/models.js +0 -3
  123. package/dist/agenda/nearestBookingSlots/client.d.ts +93 -0
  124. package/dist/agenda/nearestBookingSlots/client.js +19 -0
  125. package/dist/agenda/nearestBookingSlots/index.d.ts +5 -0
  126. package/dist/agenda/nearestBookingSlots/index.js +4 -0
  127. package/dist/agenda/nearestBookingSlots/models.d.ts +38 -0
  128. package/dist/agenda/nearestBookingSlots/models.js +7 -0
  129. package/dist/agenda/offerings/client.d.ts +6 -6
  130. package/dist/agenda/offerings/client.js +1 -1
  131. package/dist/agenda/resourceSchedules/client.d.ts +75 -0
  132. package/dist/agenda/resourceSchedules/client.js +19 -0
  133. package/dist/agenda/resourceSchedules/index.d.ts +4 -0
  134. package/dist/agenda/resourceSchedules/index.js +4 -0
  135. package/dist/agenda/resources/client.d.ts +6 -6
  136. package/dist/agenda/resources/client.js +1 -1
  137. package/dist/agenda/scheduleRules/client.d.ts +129 -89
  138. package/dist/agenda/scheduleRules/client.js +17 -16
  139. package/dist/agenda/scheduleRules/index.d.ts +2 -1
  140. package/dist/agenda/scheduleRules/models.d.ts +33 -0
  141. package/dist/agenda/scheduleRules/models.js +6 -0
  142. package/dist/agenda/services/client.d.ts +6 -6
  143. package/dist/agenda/services/client.js +1 -1
  144. package/dist/agenda/waitlist/client.d.ts +42 -32
  145. package/dist/agenda/waitlist/client.js +4 -4
  146. package/dist/agenda/waitlist/index.d.ts +1 -1
  147. package/dist/agenda/waitlist/models.d.ts +17 -0
  148. package/dist/agenda/waitlist/models.js +4 -1
  149. package/dist/axxa/authorizations/client.d.ts +3 -35
  150. package/dist/axxa/authorizations/client.js +1 -1
  151. package/dist/axxa/authorizations/index.d.ts +1 -0
  152. package/dist/axxa/authorizations/models.d.ts +112 -0
  153. package/dist/axxa/authorizations/models.js +3 -0
  154. package/dist/axxa/connections/client.d.ts +19 -44
  155. package/dist/axxa/connections/client.js +10 -11
  156. package/dist/axxa/connections/index.d.ts +1 -0
  157. package/dist/axxa/connections/models.d.ts +269 -0
  158. package/dist/axxa/connections/models.js +3 -0
  159. package/dist/axxa/eligibility/client.d.ts +3 -25
  160. package/dist/axxa/eligibility/client.js +1 -1
  161. package/dist/axxa/eligibility/index.d.ts +1 -0
  162. package/dist/axxa/eligibility/models.d.ts +102 -0
  163. package/dist/axxa/eligibility/models.js +3 -0
  164. package/dist/axxa/index.d.ts +1 -1
  165. package/dist/axxa/models.d.ts +245 -164
  166. package/dist/axxa/provider/client.d.ts +5 -11
  167. package/dist/axxa/provider/client.js +1 -1
  168. package/dist/axxa/provider/index.d.ts +1 -0
  169. package/dist/axxa/provider/models.d.ts +87 -0
  170. package/dist/axxa/provider/models.js +3 -0
  171. package/dist/gmedic/agendaServices/client.d.ts +13 -9
  172. package/dist/gmedic/agendaServices/client.js +2 -2
  173. package/dist/gmedic/agendaServices/index.d.ts +1 -1
  174. package/dist/gmedic/agendaServices/models.d.ts +53 -1
  175. package/dist/gmedic/agendas/client.d.ts +16 -9
  176. package/dist/gmedic/agendas/client.js +2 -2
  177. package/dist/gmedic/agendas/index.d.ts +1 -1
  178. package/dist/gmedic/agendas/models.d.ts +53 -1
  179. package/dist/gmedic/appointments/client.d.ts +34 -241
  180. package/dist/gmedic/appointments/client.js +12 -10
  181. package/dist/gmedic/appointments/index.d.ts +1 -1
  182. package/dist/gmedic/appointments/models.d.ts +518 -1
  183. package/dist/gmedic/appointments/models.js +28 -2
  184. package/dist/gmedic/availability/client.d.ts +24 -10
  185. package/dist/gmedic/availability/client.js +4 -3
  186. package/dist/gmedic/availability/index.d.ts +1 -1
  187. package/dist/gmedic/availability/models.d.ts +57 -1
  188. package/dist/gmedic/availability/models.js +7 -1
  189. package/dist/gmedic/availableDays/client.d.ts +11 -8
  190. package/dist/gmedic/availableDays/client.js +1 -1
  191. package/dist/gmedic/availableDays/index.d.ts +1 -1
  192. package/dist/gmedic/availableDays/models.d.ts +53 -1
  193. package/dist/gmedic/branchOffices/client.d.ts +13 -9
  194. package/dist/gmedic/branchOffices/client.js +2 -2
  195. package/dist/gmedic/branchOffices/index.d.ts +1 -1
  196. package/dist/gmedic/branchOffices/models.d.ts +58 -1
  197. package/dist/gmedic/connections/client.d.ts +19 -41
  198. package/dist/gmedic/connections/client.js +10 -11
  199. package/dist/gmedic/connections/index.d.ts +1 -0
  200. package/dist/gmedic/connections/models.d.ts +162 -0
  201. package/dist/gmedic/connections/models.js +3 -0
  202. package/dist/gmedic/dictionaryEntries/client.d.ts +20 -10
  203. package/dist/gmedic/dictionaryEntries/client.js +2 -2
  204. package/dist/gmedic/dictionaryEntries/index.d.ts +1 -1
  205. package/dist/gmedic/dictionaryEntries/models.d.ts +53 -1
  206. package/dist/gmedic/healthPartners/client.d.ts +19 -9
  207. package/dist/gmedic/healthPartners/client.js +2 -2
  208. package/dist/gmedic/healthPartners/index.d.ts +1 -1
  209. package/dist/gmedic/healthPartners/models.d.ts +53 -1
  210. package/dist/gmedic/healthPromotionEntities/client.d.ts +20 -10
  211. package/dist/gmedic/healthPromotionEntities/client.js +2 -2
  212. package/dist/gmedic/healthPromotionEntities/index.d.ts +1 -1
  213. package/dist/gmedic/healthPromotionEntities/models.d.ts +53 -1
  214. package/dist/gmedic/index.d.ts +1 -1
  215. package/dist/gmedic/laboralRiskManagers/client.d.ts +20 -10
  216. package/dist/gmedic/laboralRiskManagers/client.js +2 -2
  217. package/dist/gmedic/laboralRiskManagers/index.d.ts +1 -1
  218. package/dist/gmedic/laboralRiskManagers/models.d.ts +53 -1
  219. package/dist/gmedic/models.d.ts +196 -129
  220. package/dist/gmedic/occupations/client.d.ts +19 -9
  221. package/dist/gmedic/occupations/client.js +2 -2
  222. package/dist/gmedic/occupations/index.d.ts +1 -1
  223. package/dist/gmedic/occupations/models.d.ts +53 -1
  224. package/dist/gmedic/patientNotes/client.d.ts +25 -55
  225. package/dist/gmedic/patientNotes/client.js +5 -5
  226. package/dist/gmedic/patientNotes/index.d.ts +1 -1
  227. package/dist/gmedic/patientNotes/models.d.ts +232 -1
  228. package/dist/gmedic/patients/client.d.ts +40 -359
  229. package/dist/gmedic/patients/client.js +13 -5
  230. package/dist/gmedic/patients/index.d.ts +2 -2
  231. package/dist/gmedic/patients/models.d.ts +795 -1
  232. package/dist/gmedic/services/client.d.ts +22 -16
  233. package/dist/gmedic/services/client.js +2 -2
  234. package/dist/gmedic/services/index.d.ts +1 -1
  235. package/dist/gmedic/services/models.d.ts +53 -3
  236. package/dist/gmedic/sessionPackages/client.d.ts +21 -58
  237. package/dist/gmedic/sessionPackages/client.js +5 -5
  238. package/dist/gmedic/sessionPackages/index.d.ts +1 -1
  239. package/dist/gmedic/sessionPackages/models.d.ts +183 -1
  240. package/dist/index.d.ts +1 -1
  241. package/dist/models.d.ts +354 -5
  242. package/dist/models.js +6 -0
  243. package/dist/nuevaEps/affiliations/client.js +1 -1
  244. package/dist/nuevaEps/affiliations/models.d.ts +11 -9
  245. package/dist/nuevaEps/connections/client.d.ts +10 -9
  246. package/dist/nuevaEps/connections/client.js +9 -9
  247. package/dist/nuevaEps/connections/index.d.ts +1 -1
  248. package/dist/nuevaEps/connections/models.d.ts +22 -80
  249. package/dist/nuevaEps/connections/models.js +1 -8
  250. package/dist/nuevaEps/index.d.ts +1 -1
  251. package/dist/nuevaEps/models.d.ts +2 -101
  252. package/dist/orsovision/agencies/models.d.ts +8 -8
  253. package/dist/orsovision/appointments/client.d.ts +3 -3
  254. package/dist/orsovision/appointments/index.d.ts +1 -1
  255. package/dist/orsovision/appointments/models.d.ts +8 -32
  256. package/dist/orsovision/availability/index.d.ts +1 -1
  257. package/dist/orsovision/availability/models.d.ts +9 -20
  258. package/dist/orsovision/clinic/index.d.ts +1 -1
  259. package/dist/orsovision/clinic/models.d.ts +9 -8
  260. package/dist/orsovision/contracts/index.d.ts +1 -1
  261. package/dist/orsovision/contracts/models.d.ts +6 -30
  262. package/dist/orsovision/index.d.ts +1 -1
  263. package/dist/orsovision/models.d.ts +1 -162
  264. package/dist/orsovision/patients/client.d.ts +4 -4
  265. package/dist/orsovision/patients/index.d.ts +1 -1
  266. package/dist/orsovision/patients/models.d.ts +17 -27
  267. package/dist/orsovision/services/index.d.ts +1 -1
  268. package/dist/orsovision/services/models.d.ts +6 -30
  269. package/dist/orsovision/tools/index.d.ts +1 -1
  270. package/dist/orsovision/tools/models.d.ts +9 -8
  271. package/dist/raiz/agents/client.d.ts +5 -6
  272. package/dist/raiz/bulletins/client.d.ts +7 -6
  273. package/dist/raiz/campaigns/client.d.ts +5 -6
  274. package/dist/raiz/changes/client.d.ts +2 -2
  275. package/dist/raiz/channels/client.d.ts +9 -9
  276. package/dist/raiz/contacts/client.d.ts +7 -8
  277. package/dist/raiz/contacts/client.js +1 -1
  278. package/dist/raiz/conversations/client.d.ts +8 -8
  279. package/dist/raiz/definitions/client.d.ts +5 -5
  280. package/dist/raiz/evalCases/client.d.ts +4 -4
  281. package/dist/raiz/evalRuns/client.d.ts +3 -4
  282. package/dist/raiz/facts/client.d.ts +3 -4
  283. package/dist/raiz/facts/client.js +1 -1
  284. package/dist/raiz/index.d.ts +1 -1
  285. package/dist/raiz/knowledge/client.d.ts +6 -7
  286. package/dist/raiz/models.d.ts +8 -2
  287. package/dist/raiz/organization/client.d.ts +4 -5
  288. package/dist/raiz/profiles/client.d.ts +5 -6
  289. package/dist/raiz/reports/client.d.ts +2 -2
  290. package/dist/raiz/suppressions/client.d.ts +3 -4
  291. package/dist/raiz/tasks/client.d.ts +5 -6
  292. package/dist/raiz/tasks/client.js +1 -1
  293. package/dist/raiz/templates/client.d.ts +3 -4
  294. package/dist/raiz/voices/client.d.ts +2 -2
  295. package/dist/somos/appointments/client.d.ts +3 -3
  296. package/dist/somos/appointments/index.d.ts +1 -1
  297. package/dist/somos/appointments/models.d.ts +14 -12
  298. package/dist/somos/availability/index.d.ts +1 -1
  299. package/dist/somos/availability/models.d.ts +9 -20
  300. package/dist/somos/clinic/index.d.ts +1 -1
  301. package/dist/somos/clinic/models.d.ts +9 -8
  302. package/dist/somos/contracts/index.d.ts +1 -1
  303. package/dist/somos/contracts/models.d.ts +9 -20
  304. package/dist/somos/groups/models.d.ts +9 -9
  305. package/dist/somos/index.d.ts +1 -1
  306. package/dist/somos/models.d.ts +12 -151
  307. package/dist/somos/patients/client.d.ts +4 -4
  308. package/dist/somos/patients/index.d.ts +1 -1
  309. package/dist/somos/patients/models.d.ts +20 -17
  310. package/dist/somos/services/index.d.ts +1 -1
  311. package/dist/somos/services/models.d.ts +15 -26
  312. package/dist/somos/specialtyRules/client.d.ts +2 -2
  313. package/dist/somos/specialtyRules/models.d.ts +7 -7
  314. package/dist/somos/tools/index.d.ts +1 -1
  315. package/dist/somos/tools/models.d.ts +9 -8
  316. package/dist/sura/affiliations/client.d.ts +3 -36
  317. package/dist/sura/affiliations/client.js +6 -6
  318. package/dist/sura/affiliations/index.d.ts +1 -0
  319. package/dist/sura/affiliations/models.d.ts +71 -0
  320. package/dist/sura/affiliations/models.js +8 -0
  321. package/dist/sura/appointments/client.d.ts +27 -328
  322. package/dist/sura/appointments/client.js +15 -21
  323. package/dist/sura/appointments/index.d.ts +2 -1
  324. package/dist/sura/appointments/models.d.ts +310 -0
  325. package/dist/sura/appointments/models.js +22 -0
  326. package/dist/sura/authorizations/client.d.ts +3 -44
  327. package/dist/sura/authorizations/client.js +6 -6
  328. package/dist/sura/authorizations/index.d.ts +1 -0
  329. package/dist/sura/authorizations/models.d.ts +79 -0
  330. package/dist/sura/authorizations/models.js +8 -0
  331. package/dist/sura/availability/client.d.ts +4 -69
  332. package/dist/sura/availability/client.js +9 -9
  333. package/dist/sura/availability/index.d.ts +2 -1
  334. package/dist/sura/availability/models.d.ts +103 -0
  335. package/dist/sura/availability/models.js +8 -0
  336. package/dist/sura/bookingOptions/client.d.ts +35 -0
  337. package/dist/sura/bookingOptions/client.js +19 -0
  338. package/dist/sura/bookingOptions/index.d.ts +5 -0
  339. package/dist/sura/bookingOptions/index.js +4 -0
  340. package/dist/sura/bookingOptions/models.d.ts +143 -0
  341. package/dist/sura/bookingOptions/models.js +8 -0
  342. package/dist/sura/client.d.ts +2 -0
  343. package/dist/sura/client.js +5 -0
  344. package/dist/sura/connections/client.d.ts +20 -97
  345. package/dist/sura/connections/client.js +10 -10
  346. package/dist/sura/connections/index.d.ts +1 -1
  347. package/dist/sura/connections/models.d.ts +102 -1
  348. package/dist/sura/connections/models.js +6 -0
  349. package/dist/sura/copays/client.d.ts +4 -41
  350. package/dist/sura/copays/client.js +9 -9
  351. package/dist/sura/copays/index.d.ts +2 -1
  352. package/dist/sura/copays/models.d.ts +75 -0
  353. package/dist/sura/copays/models.js +8 -0
  354. package/dist/sura/index.d.ts +1 -1
  355. package/dist/sura/models.d.ts +204 -142
  356. package/dist/sura/models.js +20 -1
  357. package/dist/sura/operations/client.d.ts +2 -8
  358. package/dist/sura/operations/client.js +4 -4
  359. package/dist/sura/operations/index.d.ts +1 -0
  360. package/dist/sura/operations/models.d.ts +43 -0
  361. package/dist/sura/operations/models.js +8 -0
  362. package/dist/sura/patients/client.d.ts +3 -41
  363. package/dist/sura/patients/client.js +6 -6
  364. package/dist/sura/patients/index.d.ts +1 -0
  365. package/dist/sura/patients/models.d.ts +76 -0
  366. package/dist/sura/patients/models.js +8 -0
  367. package/dist/sura/professionals/client.d.ts +7 -10
  368. package/dist/sura/professionals/client.js +3 -4
  369. package/dist/sura/professionals/index.d.ts +1 -1
  370. package/dist/sura/professionals/models.d.ts +40 -1
  371. package/dist/sura/services/client.d.ts +7 -9
  372. package/dist/sura/services/client.js +3 -4
  373. package/dist/sura/services/index.d.ts +1 -0
  374. package/dist/sura/services/models.d.ts +40 -0
  375. package/dist/sura/services/models.js +3 -0
  376. package/dist/visoft/appointments/index.d.ts +1 -1
  377. package/dist/visoft/appointments/models.d.ts +8 -32
  378. package/dist/visoft/availability/models.d.ts +6 -6
  379. package/dist/visoft/clinic/models.d.ts +3 -2
  380. package/dist/visoft/clinics/models.d.ts +3 -3
  381. package/dist/visoft/connections/client.d.ts +3 -2
  382. package/dist/visoft/connections/index.d.ts +1 -1
  383. package/dist/visoft/connections/models.d.ts +4 -17
  384. package/dist/visoft/contracts/index.d.ts +1 -1
  385. package/dist/visoft/contracts/models.d.ts +4 -16
  386. package/dist/visoft/index.d.ts +1 -1
  387. package/dist/visoft/models.d.ts +2 -176
  388. package/dist/visoft/patients/index.d.ts +1 -1
  389. package/dist/visoft/patients/models.d.ts +10 -38
  390. package/dist/visoft/professionals/models.d.ts +5 -5
  391. package/dist/visoft/serviceCatalogs/models.d.ts +6 -6
  392. package/dist/visoft/services/index.d.ts +1 -1
  393. package/dist/visoft/services/models.d.ts +5 -17
  394. package/package.json +3 -3
@@ -1,7 +1,7 @@
1
1
  // Code generated by forge. DO NOT EDIT.
2
2
  /* eslint-disable */
3
- import { Transport, object, union, } from "../../_/index.js";
4
- import { SuraAffiliationCodec, SuraNoContractCodec, SuraPendingResultCodec, SuraRefusalCodec, } from "../models.js";
3
+ import { Transport, } from "../../_/index.js";
4
+ import { SuraLookupEligibilityResultResponseCodec, } from "./models.js";
5
5
  export function createClient(options) {
6
6
  return bind(new Transport(options));
7
7
  }
@@ -11,9 +11,9 @@ export function bind(transport) {
11
11
  };
12
12
  }
13
13
  const LookupOperation = {
14
- method: "GET",
14
+ method: "POST",
15
15
  route: "/v1/sura/affiliations/lookup",
16
- query: { documentNumber: "documentNumber", documentType: "documentType", agentMode: "agentMode", connectionId: "connectionId", channel: "channel" },
17
- response: object([["data", null, union([() => SuraPendingResultCodec, () => SuraRefusalCodec, () => SuraAffiliationCodec, () => SuraNoContractCodec])]]),
18
- errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
16
+ body: "flat",
17
+ response: SuraLookupEligibilityResultResponseCodec,
18
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
19
19
  };
@@ -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, LookupRequest, LookupResponse, } from "./client.js";
5
+ export type { SuraLookupEligibilityBadGatewayError, SuraLookupEligibilityBadGatewayFailure, SuraLookupEligibilityBody, SuraLookupEligibilityConflictError, SuraLookupEligibilityConflictFailure, SuraLookupEligibilityResult, SuraLookupEligibilityResultResponse, } from "./models.js";
@@ -0,0 +1,71 @@
1
+ import type { OutcomeUnknownFailure, ResponseMetadata } from "../../models.js";
2
+ import { type SuraAffiliation, type SuraConnectionNotConfiguredFailure, type SuraNoContract, type SuraPendingResult, type SuraPortalCredentialsRejectedFailure, type SuraPortalSessionConflictFailure, type SuraPortalUnavailableFailure, type SuraRefusal } from "../models.js";
3
+ /**
4
+ * A failed answer.
5
+ */
6
+ export interface SuraLookupEligibilityBadGatewayError {
7
+ data: null;
8
+ error: SuraLookupEligibilityBadGatewayFailure;
9
+ /**
10
+ * What every answer carries besides its data or error.
11
+ */
12
+ metadata: ResponseMetadata;
13
+ success: false;
14
+ }
15
+ export type SuraLookupEligibilityBadGatewayFailure = OutcomeUnknownFailure | SuraPortalCredentialsRejectedFailure | SuraPortalUnavailableFailure;
16
+ export interface SuraLookupEligibilityBody {
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
+ * Exact document number.
37
+ */
38
+ documentNumber: string;
39
+ /**
40
+ * Document type. Defaults to CC.
41
+ */
42
+ documentType?: "CC" | null;
43
+ }
44
+ /**
45
+ * A failed answer.
46
+ */
47
+ export interface SuraLookupEligibilityConflictError {
48
+ data: null;
49
+ error: SuraLookupEligibilityConflictFailure;
50
+ /**
51
+ * What every answer carries besides its data or error.
52
+ */
53
+ metadata: ResponseMetadata;
54
+ success: false;
55
+ }
56
+ export type SuraLookupEligibilityConflictFailure = SuraPortalSessionConflictFailure | SuraConnectionNotConfiguredFailure;
57
+ export type SuraLookupEligibilityResult = SuraPendingResult | SuraRefusal | SuraAffiliation | SuraNoContract;
58
+ /**
59
+ * A successful answer.
60
+ */
61
+ export interface SuraLookupEligibilityResultResponse {
62
+ data: SuraLookupEligibilityResult;
63
+ error: null;
64
+ /**
65
+ * What every answer carries besides its data or error.
66
+ */
67
+ metadata: ResponseMetadata;
68
+ success: true;
69
+ }
70
+ export declare const SuraLookupEligibilityResultCodec: import("../../_/codec.js").Codec;
71
+ export declare const SuraLookupEligibilityResultResponseCodec: 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 { SuraAffiliationCodec, SuraNoContractCodec, SuraPendingResultCodec, SuraRefusalCodec, } from "../models.js";
5
+ export const SuraLookupEligibilityResultCodec = union([() => SuraPendingResultCodec, () => SuraRefusalCodec, () => SuraAffiliationCodec, () => SuraNoContractCodec]);
6
+ export const SuraLookupEligibilityResultResponseCodec = object([
7
+ ["data", null, () => SuraLookupEligibilityResultCodec],
8
+ ]);
@@ -1,6 +1,5 @@
1
1
  import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { ResponseMetadata } from "../../models.js";
3
- import { type SuraAppointmentPage, type SuraBookedAppointment, type SuraCancelledAppointment, type SuraPatientNotFound, type SuraPendingResult, type SuraPreparationAvailable, type SuraPreparationExistingAppointment, type SuraPreparationNoSlots, type SuraPreparationPatientNotFound, type SuraRefusal } from "../models.js";
2
+ import { type SuraBookAppointmentBody, type SuraBookAppointmentResultResponse, type SuraCancelAppointmentBody, type SuraCancelAppointmentResultResponse, type SuraListAppointmentsBody, type SuraListAppointmentsResultResponse } from "./models.js";
4
3
  export interface ClientOptions extends BaseClientOptions {
5
4
  /**
6
5
  * The URL the paths of the API are relative to.
@@ -11,21 +10,24 @@ export interface Client {
11
10
  /**
12
11
  * Cancel an appointment
13
12
  *
14
- * Cancel one appointment the patient already has, identified by its date and
15
- * time. Confirm with the caller which appointment, in their own words, before
16
- * calling. Only appointments at this clinic can be cancelled here. ok:true
17
- * with cancelled:true means it is gone; anything else means it is not, so
18
- * never tell the caller it was cancelled without that.
13
+ * Cancel one appointment the patient already has, identified by its moment:
14
+ * startsAt, exactly as list_appointments answered it (or the former date and
15
+ * time). Confirm with the caller which appointment, in their own words,
16
+ * before calling. Only appointments at this clinic can be cancelled here.
17
+ * ok:true with cancelled:true means it is gone; anything else means it is
18
+ * not, so never tell the caller it was cancelled without that.
19
19
  */
20
20
  cancel(request: CancelRequest, options?: RequestOptions): Promise<CancelResponse>;
21
21
  /**
22
22
  * Book an appointment
23
23
  *
24
- * Book one appointment at an exact date and time for one patient. Only call
25
- * it after the caller has confirmed the day, the hour and the service out
26
- * loud. The time must be one that find_availability just returned; the tool
27
- * re-checks it against the live agenda and refuses if it was taken in the
28
- * meantime. ok:true with booked:true means the appointment exists.
24
+ * Book one appointment at an exact moment for one patient: startsAt, exactly
25
+ * as an option or the ready booking arguments answered it (or the former date
26
+ * and time). Only call it after the caller has confirmed the day, the hour
27
+ * and the service out loud. The moment must be one that find_availability
28
+ * just returned; the tool re-checks it against the live agenda and refuses if
29
+ * it was taken in the meantime. ok:true with booked:true means the
30
+ * appointment exists.
29
31
  */
30
32
  create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
31
33
  /**
@@ -37,323 +39,20 @@ export interface Client {
37
39
  * pageInfo.nextCursor to read the rest before telling the caller what they
38
40
  * have. Use it before cancelling, and whenever the caller asks what they
39
41
  * have. Read out only the date, the hour and the service; to cancel one, pass
40
- * that same date and hour to cancel_appointment. Entries with
41
- * cancellable:false belong to a different clinic and cannot be cancelled from
42
- * this line — read them out, but send the caller to that clinic to change
43
- * them. An empty page means the patient has nothing pending (offer to book:
44
- * ask which service and use find_availability); a document the portal does
45
- * not know answers found:false instead, never an empty page.
42
+ * its startsAt to cancel_appointment. Entries with cancellable:false belong
43
+ * to a different clinic and cannot be cancelled from this line — read them
44
+ * out, but send the caller to that clinic to change them. An empty page means
45
+ * the patient has nothing pending (offer to book: ask which service and use
46
+ * find_availability); a document the portal does not know answers found:false
47
+ * instead, never an empty page.
46
48
  */
47
- list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
48
- /**
49
- * Prepare an appointment
50
- *
51
- * Prepare a SURA appointment in ONE read-only call. With patient identity and
52
- * the ordered service, first checks existing appointments; if one matches,
53
- * returns it and stops. Otherwise resolves patient, live service/area and
54
- * professional names internally and reads availability, checking bounded date
55
- * and professional alternatives while preserving explicit doctor/date/expiry
56
- * constraints. Returns patient.primaryIps, actual service/professional, times
57
- * and ready booking arguments. Use after the required document review,
58
- * instead of chaining list_appointments, lookup_patient, list_services and
59
- * find_availability. It NEVER books, cancels, changes an appointment or
60
- * verifies the documents for you. Apply clinic eligibility to the result,
61
- * offer up to three chronological verified options from options; nextDates
62
- * are calendar hints that require an hour lookup, never confirmed slots. Use
63
- * fromDate for later alternatives and preserve explicit date, doctor and time
64
- * preferences. Propose an actual slot and obtain one confirmation before the
65
- * separate book_appointment call. Existing-appointment-only questions still
66
- * use list_appointments.
67
- */
68
- prepare(request: PrepareRequest, options?: RequestOptions): Promise<PrepareResponse>;
49
+ lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
69
50
  }
70
51
  export declare function createClient(options: ClientOptions): Client;
71
52
  export declare function bind(transport: Transport): Client;
72
- export interface CancelRequest {
73
- /**
74
- * Set agentMode=true when calling this tool for an AI agent. The answer is
75
- * concise Spanish text instead of JSON. Omit it for structured machine data.
76
- * This changes presentation only, never authorization, consent or
77
- * idempotency.
78
- */
79
- agentMode?: boolean;
80
- /**
81
- * The channel the caller is waiting on, which sets how long it waits before
82
- * an answer comes back pending, and puts a phone call's reads ahead of
83
- * others. Defaults to web.
84
- */
85
- channel?: "voice" | "whatsapp" | "web";
86
- /**
87
- * Which of the organization's SURA connections to run on, by its id. Optional
88
- * while the organization has one; required when it has several.
89
- */
90
- connectionId?: string;
91
- /**
92
- * The appointment's day as YYYY-MM-DD, exactly as list_appointments returned
93
- * it.
94
- */
95
- date: string;
96
- /**
97
- * Complete document number of the patient receiving care, from readable
98
- * original evidence or their message. Normalize separators without changing
99
- * digits. Request correction only for missing, illegible or conflicting
100
- * identity; never guess digits.
101
- */
102
- documentNumber: string;
103
- /**
104
- * Patient document type read legibly from the original or explicitly
105
- * supplied. Ask only if unknown or genuinely conflicting; never infer it from
106
- * age or number length.
107
- */
108
- documentType: "ASI" | "CC" | "CD" | "CE" | "CN" | "DE" | "IFE" | "MS" | "NIT" | "NUIP" | "PA" | "PC" | "PD" | "PE" | "PF" | "PT" | "RC" | "RCP" | "RES" | "SC" | "TE" | "TI";
109
- /**
110
- * Why it is being cancelled. Defaults to patient_request. Use reschedule when
111
- * the caller wants a different time and you are about to book another one.
112
- */
113
- reason?: "patient_request" | "reschedule" | "provider_request" | null;
114
- /**
115
- * Only needed when the patient has more than one appointment at that exact
116
- * date and time, which the tool will tell you.
117
- */
118
- serviceId?: string | null;
119
- /**
120
- * The appointment's hour as HH:MM, exactly as list_appointments returned it.
121
- */
122
- time: string;
123
- }
124
- export interface CancelResponse {
125
- data: SuraPendingResult | SuraRefusal | SuraPatientNotFound | SuraCancelledAppointment;
126
- error: null;
127
- metadata: ResponseMetadata;
128
- success: true;
129
- }
130
- export interface CreateRequest {
131
- /**
132
- * Set agentMode=true when calling this tool for an AI agent. The answer is
133
- * concise Spanish text instead of JSON. Omit it for structured machine data.
134
- * This changes presentation only, never authorization, consent or
135
- * idempotency.
136
- */
137
- agentMode?: boolean;
138
- /**
139
- * The areaId list_services returned beside that service. Pass it with an
140
- * exact serviceId to skip a catalog lookup; omit it whenever you are naming
141
- * the service in words.
142
- */
143
- areaId?: string | null;
144
- /**
145
- * The channel the caller is waiting on, which sets how long it waits before
146
- * an answer comes back pending, and puts a phone call's reads ahead of
147
- * others. Defaults to web.
148
- */
149
- channel?: "voice" | "whatsapp" | "web";
150
- /**
151
- * Which of the organization's SURA connections to run on, by its id. Optional
152
- * while the organization has one; required when it has several.
153
- */
154
- connectionId?: string;
155
- /**
156
- * The day the caller agreed to, as YYYY-MM-DD, exactly as find_availability
157
- * returned it.
158
- */
159
- date: string;
160
- /**
161
- * Complete document number of the patient receiving care, from readable
162
- * original evidence or their message. Normalize separators without changing
163
- * digits. Request correction only for missing, illegible or conflicting
164
- * identity; never guess digits.
165
- */
166
- documentNumber: string;
167
- /**
168
- * Patient document type read legibly from the original or explicitly
169
- * supplied. Ask only if unknown or genuinely conflicting; never infer it from
170
- * age or number length.
171
- */
172
- documentType: "ASI" | "CC" | "CD" | "CE" | "CN" | "DE" | "IFE" | "MS" | "NIT" | "NUIP" | "PA" | "PC" | "PD" | "PE" | "PF" | "PT" | "RC" | "RCP" | "RES" | "SC" | "TE" | "TI";
173
- /**
174
- * Stable 32-character lowercase hexadecimal command key supplied by a trusted
175
- * coordinator. Reuse it only for the same accepted offer.
176
- */
177
- idempotencyKey?: string | null;
178
- /**
179
- * Doctor's name when the caller chose one. Pass the same value used in
180
- * find_availability, so the hour booked is that doctor's.
181
- */
182
- professional?: string | null;
183
- /**
184
- * What the appointment is for: either an id from list_services or the
185
- * service's own name, in the caller's words ("neurología", "control"). A name
186
- * that matches more than one service is answered with the choices, so you can
187
- * ask which one instead of guessing.
188
- */
189
- serviceId: string;
190
- /**
191
- * The hour the caller agreed to, as HH:MM on a 24-hour clock, exactly as it
192
- * appeared in find_availability's times[].
193
- */
194
- time: string;
195
- }
196
- export interface CreateResponse {
197
- data: SuraPendingResult | SuraRefusal | SuraPatientNotFound | SuraBookedAppointment;
198
- error: null;
199
- metadata: ResponseMetadata;
200
- success: true;
201
- }
202
- export interface ListRequest {
203
- /**
204
- * Complete document number of the patient receiving care, from readable
205
- * original evidence or their message. Normalize separators without changing
206
- * digits. Request correction only for missing, illegible or conflicting
207
- * identity; never guess digits.
208
- */
209
- documentNumber: string;
210
- /**
211
- * Patient document type read legibly from the original or explicitly
212
- * supplied. Ask only if unknown or genuinely conflicting; never infer it from
213
- * age or number length.
214
- */
215
- documentType: "ASI" | "CC" | "CD" | "CE" | "CN" | "DE" | "IFE" | "MS" | "NIT" | "NUIP" | "PA" | "PC" | "PD" | "PE" | "PF" | "PT" | "RC" | "RCP" | "RES" | "SC" | "TE" | "TI";
216
- /**
217
- * Opaque cursor returned by pageInfo; omit it to request the first page.
218
- */
219
- cursor?: string;
220
- /**
221
- * Direction to traverse the stable keyset ordering from the supplied cursor.
222
- */
223
- direction?: "forward" | "backward";
224
- /**
225
- * Maximum items returned in one page. Defaults to 25; larger reads require
226
- * another cursor.
227
- */
228
- limit?: number;
229
- /**
230
- * Set agentMode=true when calling this tool for an AI agent. The answer is
231
- * concise Spanish text instead of JSON. Omit it for structured machine data.
232
- * This changes presentation only, never authorization, consent or
233
- * idempotency.
234
- */
235
- agentMode?: boolean;
236
- /**
237
- * Which of the organization's SURA connections to run on, by its id. Optional
238
- * while the organization has one; required when it has several.
239
- */
240
- connectionId?: string;
241
- /**
242
- * The channel the caller is waiting on, which sets how long it waits before
243
- * an answer comes back pending, and puts a phone call's reads ahead of
244
- * others. Defaults to web.
245
- */
246
- channel?: "voice" | "whatsapp" | "web";
247
- }
248
- export interface ListResponse {
249
- data: SuraPendingResult | SuraRefusal | SuraPatientNotFound | SuraAppointmentPage;
250
- error: null;
251
- metadata: ResponseMetadata;
252
- success: true;
253
- }
254
- export interface PrepareRequest {
255
- /**
256
- * The areaId list_services returned beside that service. Pass it with an
257
- * exact serviceId to skip a catalog lookup; omit it whenever you are naming
258
- * the service in words.
259
- */
260
- areaId?: string | null;
261
- /**
262
- * A day the person asked for, as YYYY-MM-DD. Its openings come first; when it
263
- * has none, the openings nearest to it on either side are offered instead and
264
- * requestedDateAvailable is false. Omit it for the soonest openings. Resolve
265
- * relative dates like "mañana" against the clinic's own timezone before
266
- * calling.
267
- */
268
- date?: string | null;
269
- /**
270
- * Complete document number of the patient receiving care, from readable
271
- * original evidence or their message. Normalize separators without changing
272
- * digits. Request correction only for missing, illegible or conflicting
273
- * identity; never guess digits.
274
- */
275
- documentNumber: string;
276
- /**
277
- * Patient document type read legibly from the original or explicitly
278
- * supplied. Ask only if unknown or genuinely conflicting; never infer it from
279
- * age or number length.
280
- */
281
- documentType: "ASI" | "CC" | "CD" | "CE" | "CN" | "DE" | "IFE" | "MS" | "NIT" | "NUIP" | "PA" | "PC" | "PD" | "PE" | "PF" | "PT" | "RC" | "RCP" | "RES" | "SC" | "TE" | "TI";
282
- /**
283
- * Whether other doctors of this service may be offered when the named doctor
284
- * has no opening in the searched window. Defaults to true: the named doctor's
285
- * openings come first, and only when that doctor has none are the other
286
- * doctors' nearest openings returned, with requestedProfessionalAvailable
287
- * false. Name the actual doctor of each option and obtain consent before
288
- * booking. False keeps the named doctor as a strict filter.
289
- */
290
- allowOtherProfessionals?: "true" | "false" | null;
291
- /**
292
- * Search from this day onward (YYYY-MM-DD), using the live calendar. Omit for
293
- * today. Use date for a specific day.
294
- */
295
- fromDate?: string | null;
296
- /**
297
- * Earliest acceptable time, HH:mm, inclusive.
298
- */
299
- timeFrom?: string | null;
300
- /**
301
- * Latest acceptable time, HH:mm, inclusive.
302
- */
303
- timeUntil?: string | null;
304
- /**
305
- * Number of chronological verified slots to return, defaults to 3. Proposals
306
- * never hold capacity.
307
- */
308
- limit?: "1" | "2" | "3" | null;
309
- /**
310
- * Explicit authorization expiry or latest date the person accepts,
311
- * YYYY-MM-DD. Returned slots cannot exceed this date.
312
- */
313
- latestDate?: string | null;
314
- /**
315
- * Defaults to schedule: stop if a matching appointment exists. Use reschedule
316
- * only when the person explicitly requests another date; returns alternatives
317
- * without changing the existing appointment.
318
- */
319
- mode?: "schedule" | "reschedule" | null;
320
- /**
321
- * Doctor's name, or part of it, when the caller asked for someone specific.
322
- * Use list_professionals to check the service's registered doctors
323
- * independently of available slots; absence from an open-agenda selector does
324
- * not mean the doctor does not exist. Omit it to see whoever has room
325
- * soonest.
326
- */
327
- professional?: string | null;
328
- /**
329
- * Exact service in the order or a previously returned service ID. Names are
330
- * resolved internally against the live catalog; do not call list_services
331
- * first or invent IDs. Preserve consultation/control and pediatric
332
- * qualifiers.
333
- */
334
- serviceId: string;
335
- /**
336
- * Set agentMode=true when calling this tool for an AI agent. The answer is
337
- * concise Spanish text instead of JSON. Omit it for structured machine data.
338
- * This changes presentation only, never authorization, consent or
339
- * idempotency.
340
- */
341
- agentMode?: boolean;
342
- /**
343
- * Which of the organization's SURA connections to run on, by its id. Optional
344
- * while the organization has one; required when it has several.
345
- */
346
- connectionId?: string;
347
- /**
348
- * The channel the caller is waiting on, which sets how long it waits before
349
- * an answer comes back pending, and puts a phone call's reads ahead of
350
- * others. Defaults to web.
351
- */
352
- channel?: "voice" | "whatsapp" | "web";
353
- }
354
- export interface PrepareResponse {
355
- data: SuraPendingResult | SuraRefusal | SuraPreparationPatientNotFound | SuraPatientNotFound | SuraPreparationExistingAppointment | SuraPreparationAvailable | SuraPreparationNoSlots;
356
- error: null;
357
- metadata: ResponseMetadata;
358
- success: true;
359
- }
53
+ export type CancelRequest = SuraCancelAppointmentBody;
54
+ export type CancelResponse = SuraCancelAppointmentResultResponse;
55
+ export type CreateRequest = SuraBookAppointmentBody;
56
+ export type CreateResponse = SuraBookAppointmentResultResponse;
57
+ export type LookupRequest = SuraListAppointmentsBody;
58
+ export type LookupResponse = SuraListAppointmentsResultResponse;
@@ -1,7 +1,7 @@
1
1
  // Code generated by forge. DO NOT EDIT.
2
2
  /* eslint-disable */
3
- import { Transport, object, union, } from "../../_/index.js";
4
- import { SuraBookedAppointmentCodec, SuraCancelledAppointmentCodec, SuraPatientNotFoundCodec, SuraPendingResultCodec, SuraPreparationAvailableCodec, SuraPreparationExistingAppointmentCodec, SuraPreparationNoSlotsCodec, SuraPreparationPatientNotFoundCodec, SuraRefusalCodec, } from "../models.js";
3
+ import { Transport, } from "../../_/index.js";
4
+ import { SuraBookAppointmentBodyCodec, SuraBookAppointmentResultResponseCodec, SuraCancelAppointmentBodyCodec, SuraCancelAppointmentResultResponseCodec, SuraListAppointmentsResultResponseCodec, } from "./models.js";
5
5
  export function createClient(options) {
6
6
  return bind(new Transport(options));
7
7
  }
@@ -9,35 +9,29 @@ export function bind(transport) {
9
9
  return {
10
10
  cancel: (request, options) => transport.send(CancelOperation, request, options),
11
11
  create: (request, options) => transport.send(CreateOperation, request, options),
12
- list: (request, options) => transport.send(ListOperation, request, options),
13
- prepare: (request, options) => transport.send(PrepareOperation, request, options),
12
+ lookup: (request, options) => transport.send(LookupOperation, request, options),
14
13
  };
15
14
  }
16
15
  const CancelOperation = {
17
16
  method: "POST",
18
17
  route: "/v1/sura/appointments/cancel",
19
18
  body: "flat",
20
- response: object([["data", null, union([() => SuraPendingResultCodec, () => SuraRefusalCodec, () => SuraPatientNotFoundCodec, () => SuraCancelledAppointmentCodec])]]),
21
- errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
19
+ request: SuraCancelAppointmentBodyCodec,
20
+ response: SuraCancelAppointmentResultResponseCodec,
21
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
22
22
  };
23
23
  const CreateOperation = {
24
24
  method: "POST",
25
25
  route: "/v1/sura/appointments",
26
26
  body: "flat",
27
- response: object([["data", null, union([() => SuraPendingResultCodec, () => SuraRefusalCodec, () => SuraPatientNotFoundCodec, () => SuraBookedAppointmentCodec])]]),
28
- errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
27
+ request: SuraBookAppointmentBodyCodec,
28
+ response: SuraBookAppointmentResultResponseCodec,
29
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
29
30
  };
30
- const ListOperation = {
31
- method: "GET",
32
- route: "/v1/sura/appointments",
33
- query: { documentNumber: "documentNumber", documentType: "documentType", cursor: "cursor", direction: "direction", limit: "limit", agentMode: "agentMode", connectionId: "connectionId", channel: "channel" },
34
- response: object([["data", null, union([() => SuraPendingResultCodec, () => SuraRefusalCodec, () => SuraPatientNotFoundCodec])]]),
35
- errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
36
- };
37
- const PrepareOperation = {
38
- method: "GET",
39
- route: "/v1/sura/appointments/prepare",
40
- query: { areaId: "areaId", date: "date", documentNumber: "documentNumber", documentType: "documentType", allowOtherProfessionals: "allowOtherProfessionals", fromDate: "fromDate", timeFrom: "timeFrom", timeUntil: "timeUntil", limit: "limit", latestDate: "latestDate", mode: "mode", professional: "professional", serviceId: "serviceId", agentMode: "agentMode", connectionId: "connectionId", channel: "channel" },
41
- response: object([["data", null, union([() => SuraPendingResultCodec, () => SuraRefusalCodec, () => SuraPreparationPatientNotFoundCodec, () => SuraPatientNotFoundCodec, () => SuraPreparationExistingAppointmentCodec, () => SuraPreparationAvailableCodec, () => SuraPreparationNoSlotsCodec])]]),
42
- errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
31
+ const LookupOperation = {
32
+ method: "POST",
33
+ route: "/v1/sura/appointments/lookup",
34
+ body: "flat",
35
+ response: SuraListAppointmentsResultResponseCodec,
36
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
43
37
  };
@@ -1,4 +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, CancelRequest, CancelResponse, CreateRequest, CreateResponse, ListRequest, ListResponse, PrepareRequest, PrepareResponse, } from "./client.js";
4
+ export type { Client, ClientOptions, CancelRequest, CancelResponse, CreateRequest, CreateResponse, LookupRequest, LookupResponse, } from "./client.js";
5
+ export type { SuraBookAppointmentBadGatewayError, SuraBookAppointmentBadGatewayFailure, SuraBookAppointmentBody, SuraBookAppointmentConflictError, SuraBookAppointmentConflictFailure, SuraBookAppointmentResult, SuraBookAppointmentResultResponse, SuraCancelAppointmentBadGatewayError, SuraCancelAppointmentBadGatewayFailure, SuraCancelAppointmentBody, SuraCancelAppointmentConflictError, SuraCancelAppointmentConflictFailure, SuraCancelAppointmentResult, SuraCancelAppointmentResultResponse, SuraListAppointmentsBadGatewayError, SuraListAppointmentsBadGatewayFailure, SuraListAppointmentsBody, SuraListAppointmentsConflictError, SuraListAppointmentsConflictFailure, SuraListAppointmentsResult, SuraListAppointmentsResultResponse, } from "./models.js";