@arbol-ai/sdk 5.26.0 → 5.28.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 (138) hide show
  1. package/README.md +4 -4
  2. package/dist/agenda/models.d.ts +105 -0
  3. package/dist/client.d.ts +0 -4
  4. package/dist/client.js +0 -10
  5. package/dist/index.d.ts +1 -1
  6. package/dist/models.d.ts +0 -282
  7. package/dist/models.js +1 -5
  8. package/dist/raiz/conversations/client.d.ts +4 -3
  9. package/dist/raiz/organization/client.d.ts +11 -4
  10. package/dist/raiz/organization/models.d.ts +6 -0
  11. package/dist/visoft/appointments/index.d.ts +1 -1
  12. package/dist/visoft/appointments/models.d.ts +32 -6
  13. package/dist/visoft/availability/models.d.ts +4 -4
  14. package/dist/visoft/contracts/index.d.ts +1 -1
  15. package/dist/visoft/contracts/models.d.ts +16 -3
  16. package/dist/visoft/index.d.ts +1 -1
  17. package/dist/visoft/models.d.ts +67 -2
  18. package/dist/visoft/patients/index.d.ts +1 -1
  19. package/dist/visoft/patients/models.d.ts +35 -6
  20. package/dist/visoft/professionals/models.d.ts +4 -4
  21. package/dist/visoft/serviceCatalogs/models.d.ts +4 -4
  22. package/dist/visoft/services/index.d.ts +1 -1
  23. package/dist/visoft/services/models.d.ts +16 -3
  24. package/package.json +3 -3
  25. package/dist/orsovision/agencies/client.d.ts +0 -51
  26. package/dist/orsovision/agencies/client.js +0 -18
  27. package/dist/orsovision/agencies/index.d.ts +0 -5
  28. package/dist/orsovision/agencies/index.js +0 -4
  29. package/dist/orsovision/agencies/models.d.ts +0 -107
  30. package/dist/orsovision/agencies/models.js +0 -3
  31. package/dist/orsovision/appointments/client.d.ts +0 -39
  32. package/dist/orsovision/appointments/client.js +0 -29
  33. package/dist/orsovision/appointments/index.d.ts +0 -5
  34. package/dist/orsovision/appointments/index.js +0 -4
  35. package/dist/orsovision/appointments/models.d.ts +0 -182
  36. package/dist/orsovision/appointments/models.js +0 -9
  37. package/dist/orsovision/availability/client.d.ts +0 -32
  38. package/dist/orsovision/availability/client.js +0 -19
  39. package/dist/orsovision/availability/index.d.ts +0 -5
  40. package/dist/orsovision/availability/index.js +0 -4
  41. package/dist/orsovision/availability/models.d.ts +0 -228
  42. package/dist/orsovision/availability/models.js +0 -15
  43. package/dist/orsovision/client.d.ts +0 -27
  44. package/dist/orsovision/client.js +0 -50
  45. package/dist/orsovision/clinic/client.d.ts +0 -34
  46. package/dist/orsovision/clinic/client.js +0 -18
  47. package/dist/orsovision/clinic/index.d.ts +0 -5
  48. package/dist/orsovision/clinic/index.js +0 -4
  49. package/dist/orsovision/clinic/models.d.ts +0 -90
  50. package/dist/orsovision/clinic/models.js +0 -3
  51. package/dist/orsovision/contracts/client.d.ts +0 -69
  52. package/dist/orsovision/contracts/client.js +0 -18
  53. package/dist/orsovision/contracts/index.d.ts +0 -5
  54. package/dist/orsovision/contracts/index.js +0 -4
  55. package/dist/orsovision/contracts/models.d.ts +0 -84
  56. package/dist/orsovision/contracts/models.js +0 -3
  57. package/dist/orsovision/index.d.ts +0 -5
  58. package/dist/orsovision/index.js +0 -4
  59. package/dist/orsovision/models.d.ts +0 -66
  60. package/dist/orsovision/models.js +0 -3
  61. package/dist/orsovision/patients/client.d.ts +0 -52
  62. package/dist/orsovision/patients/client.js +0 -34
  63. package/dist/orsovision/patients/index.d.ts +0 -5
  64. package/dist/orsovision/patients/index.js +0 -4
  65. package/dist/orsovision/patients/models.d.ts +0 -287
  66. package/dist/orsovision/patients/models.js +0 -3
  67. package/dist/orsovision/services/client.d.ts +0 -74
  68. package/dist/orsovision/services/client.js +0 -18
  69. package/dist/orsovision/services/index.d.ts +0 -5
  70. package/dist/orsovision/services/index.js +0 -4
  71. package/dist/orsovision/services/models.d.ts +0 -81
  72. package/dist/orsovision/services/models.js +0 -3
  73. package/dist/orsovision/tools/client.d.ts +0 -44
  74. package/dist/orsovision/tools/client.js +0 -18
  75. package/dist/orsovision/tools/index.d.ts +0 -5
  76. package/dist/orsovision/tools/index.js +0 -4
  77. package/dist/orsovision/tools/models.d.ts +0 -102
  78. package/dist/orsovision/tools/models.js +0 -3
  79. package/dist/somos/appointments/client.d.ts +0 -40
  80. package/dist/somos/appointments/client.js +0 -29
  81. package/dist/somos/appointments/index.d.ts +0 -5
  82. package/dist/somos/appointments/index.js +0 -4
  83. package/dist/somos/appointments/models.d.ts +0 -303
  84. package/dist/somos/appointments/models.js +0 -9
  85. package/dist/somos/availability/client.d.ts +0 -33
  86. package/dist/somos/availability/client.js +0 -19
  87. package/dist/somos/availability/index.d.ts +0 -5
  88. package/dist/somos/availability/index.js +0 -4
  89. package/dist/somos/availability/models.d.ts +0 -338
  90. package/dist/somos/availability/models.js +0 -15
  91. package/dist/somos/client.d.ts +0 -29
  92. package/dist/somos/client.js +0 -55
  93. package/dist/somos/clinic/client.d.ts +0 -33
  94. package/dist/somos/clinic/client.js +0 -18
  95. package/dist/somos/clinic/index.d.ts +0 -5
  96. package/dist/somos/clinic/index.js +0 -4
  97. package/dist/somos/clinic/models.d.ts +0 -90
  98. package/dist/somos/clinic/models.js +0 -3
  99. package/dist/somos/contracts/client.d.ts +0 -74
  100. package/dist/somos/contracts/client.js +0 -18
  101. package/dist/somos/contracts/index.d.ts +0 -5
  102. package/dist/somos/contracts/index.js +0 -4
  103. package/dist/somos/contracts/models.d.ts +0 -96
  104. package/dist/somos/contracts/models.js +0 -3
  105. package/dist/somos/groups/client.d.ts +0 -67
  106. package/dist/somos/groups/client.js +0 -18
  107. package/dist/somos/groups/index.d.ts +0 -5
  108. package/dist/somos/groups/index.js +0 -4
  109. package/dist/somos/groups/models.d.ts +0 -117
  110. package/dist/somos/groups/models.js +0 -3
  111. package/dist/somos/index.d.ts +0 -5
  112. package/dist/somos/index.js +0 -4
  113. package/dist/somos/models.d.ts +0 -88
  114. package/dist/somos/models.js +0 -3
  115. package/dist/somos/patients/client.d.ts +0 -51
  116. package/dist/somos/patients/client.js +0 -34
  117. package/dist/somos/patients/index.d.ts +0 -5
  118. package/dist/somos/patients/index.js +0 -4
  119. package/dist/somos/patients/models.d.ts +0 -330
  120. package/dist/somos/patients/models.js +0 -3
  121. package/dist/somos/services/client.d.ts +0 -116
  122. package/dist/somos/services/client.js +0 -26
  123. package/dist/somos/services/index.d.ts +0 -5
  124. package/dist/somos/services/index.js +0 -4
  125. package/dist/somos/services/models.d.ts +0 -261
  126. package/dist/somos/services/models.js +0 -3
  127. package/dist/somos/specialtyRules/client.d.ts +0 -44
  128. package/dist/somos/specialtyRules/client.js +0 -18
  129. package/dist/somos/specialtyRules/index.d.ts +0 -5
  130. package/dist/somos/specialtyRules/index.js +0 -4
  131. package/dist/somos/specialtyRules/models.d.ts +0 -54
  132. package/dist/somos/specialtyRules/models.js +0 -3
  133. package/dist/somos/tools/client.d.ts +0 -44
  134. package/dist/somos/tools/client.js +0 -18
  135. package/dist/somos/tools/index.d.ts +0 -5
  136. package/dist/somos/tools/index.js +0 -4
  137. package/dist/somos/tools/models.d.ts +0 -102
  138. package/dist/somos/tools/models.js +0 -3
@@ -1,338 +0,0 @@
1
- import { type AvailabilityBookingInput, type ConnectionNotConfiguredFailure, type ConnectionNotFoundFailure, type OutcomeUnknownFailure, type PageInfo, type ProviderUnavailableFailure, type ResponseMetadata, type UpstreamUnavailableFailure } from "../../models.js";
2
- import type { SomosClinicNotServedFailure, SomosProviderRequestRefusedFailure, SomosSomosNotConfiguredFailure, SomosToolNotAvailableFailure } from "../models.js";
3
- export interface SomosAvailabilitySlot {
4
- /**
5
- * The professional's agenda, when they run several.
6
- */
7
- agenda?: string;
8
- /**
9
- * Copy these exact arguments to somos.appointments.create only after the
10
- * person confirms this slot and service; add the confirmed documentNumber.
11
- * Retain separately confirmed consent. Never replace the service or contract
12
- * with a fresh EPS guess.
13
- */
14
- bookingInput?: AvailabilityBookingInput;
15
- /**
16
- * Deprecated: use `startsAt`. Answered until 2027-01-28.
17
- *
18
- * @deprecated
19
- */
20
- date: Temporal.PlainDate;
21
- /**
22
- * The day as it is said to the person.
23
- */
24
- dateSpoken: string;
25
- fonoGroup?: string;
26
- /**
27
- * The two verified exam times on this slot's local date, with its
28
- * professional. This is an offer, not a booking.
29
- */
30
- hearingPair?: {
31
- audiometryTime: string;
32
- logoaudiometryTime: string;
33
- minutesPerExam: 10;
34
- };
35
- /**
36
- * The professional, as a later search names them (medic).
37
- */
38
- medicId: string;
39
- /**
40
- * The professional's name: this slot is theirs and no one else's.
41
- */
42
- medicName: string;
43
- modality?: string;
44
- /**
45
- * For a pair of consecutive exams: whether the next slot with the same
46
- * professional is free too.
47
- */
48
- pairable?: boolean;
49
- /**
50
- * The room, when the clinic schedules by room.
51
- */
52
- sala?: string;
53
- /**
54
- * The slot's specialty, as the clinic's agenda names it.
55
- */
56
- specialty: string;
57
- /**
58
- * The slot's moment, with the clinic's offset: what somos.appointments.create
59
- * books.
60
- */
61
- startsAt: Temporal.Instant;
62
- /**
63
- * Deprecated: use `startsAt`. Answered until 2027-01-28.
64
- *
65
- * @deprecated
66
- */
67
- time: string;
68
- toGroup?: string;
69
- /**
70
- * The booking reference somos.appointments.create takes, unchanged; null when
71
- * the slot cannot be booked by reference.
72
- */
73
- token: string | null;
74
- /**
75
- * The day's weekday.
76
- */
77
- weekday: string;
78
- /**
79
- * requested: inside the dates and times asked for. extended: the dates asked
80
- * for had none, so the search went on to the nearest. alternative: inside
81
- * those dates but outside the time preference, which had none.
82
- */
83
- window: "requested" | "extended" | "alternative";
84
- }
85
- export interface SomosAvailabilitySlotPage {
86
- /**
87
- * Items admitted by this resource contract within the verified organization.
88
- */
89
- data: SomosAvailabilitySlot[];
90
- /**
91
- * Discriminator for a resource list response.
92
- */
93
- object: "list";
94
- /**
95
- * Opaque navigation cursors for this page’s stable keyset order.
96
- */
97
- pageInfo: PageInfo;
98
- }
99
- /**
100
- * A successful answer.
101
- */
102
- export interface SomosAvailabilitySlotPageResponse {
103
- data: SomosAvailabilitySlotPage;
104
- error: null;
105
- /**
106
- * What every answer carries besides its data or error.
107
- */
108
- metadata: ResponseMetadata;
109
- success: true;
110
- }
111
- /**
112
- * A failed answer.
113
- */
114
- export interface SomosListAvailabilityBadGatewayError {
115
- data: null;
116
- error: SomosListAvailabilityBadGatewayFailure;
117
- /**
118
- * What every answer carries besides its data or error.
119
- */
120
- metadata: ResponseMetadata;
121
- success: false;
122
- }
123
- export type SomosListAvailabilityBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
124
- export interface SomosListAvailabilityBody {
125
- /**
126
- * Solo para specialty=fisio: frase real del servicio en la autorización EPS
127
- * cuando la modalidad la requiera. Para cualquier otra especialidad, omite
128
- * este campo. Omite el campo en valoración/control de fisioterapia común.
129
- * Nunca envíes x, NO, vacío ni otro relleno. Para biofeedback se requiere la
130
- * frase exacta; no infieras el servicio de piso pélvico.
131
- */
132
- authorizationService?: string;
133
- /**
134
- * The channel the conversation happens on: voice, whatsapp or web (the
135
- * default).
136
- */
137
- channel?: "voice" | "web" | "whatsapp";
138
- /**
139
- * The Visoft connection to run on, as Account lists it (con_…). Optional when
140
- * the organization has one; required when it has several. Another
141
- * organization's connection is CONNECTION_NOT_FOUND.
142
- */
143
- connectionId?: string;
144
- /**
145
- * Código exacto de respaldo, solo tras CONTRACT_SERVICE_UNRESOLVED y siempre
146
- * junto a service.
147
- */
148
- contract?: string;
149
- /**
150
- * Opaque cursor returned by pageInfo; omit it to request the first page.
151
- */
152
- cursor?: string;
153
- /**
154
- * Un día exacto YYYY-MM-DD cuando la persona nombró la fecha. Si ese día no
155
- * tiene cupo, la respuesta ya trae los días más cercanos (window=extended):
156
- * no vuelvas a consultar. Omítelo para buscar con from/to.
157
- */
158
- date?: string;
159
- /**
160
- * Direction to traverse the stable keyset ordering from the supplied cursor.
161
- */
162
- direction?: "forward" | "backward";
163
- /**
164
- * Obligatorio también con contract y service: documento confirmado de quien
165
- * recibirá la cita. Reutiliza el documento ya escrito; permite conservar para
166
- * ese paciente los códigos exactos del horario y reservar sin reconstruirlos
167
- * desde su historial. No exige que el paciente ya esté registrado.
168
- */
169
- documentNumber: string;
170
- /**
171
- * Obligatoria para paciente nuevo, sin historial útil para la especialidad o
172
- * con cobertura cambiada; acepta el nombre oído porque el servidor normaliza
173
- * aliases auditados. Con historial de la misma especialidad puede omitirse.
174
- */
175
- eps?: string;
176
- /**
177
- * Grupo de control de Fono exacto, confirmado y validado con list_groups; el
178
- * servidor verifica la edad registrada y requiere
179
- * therapyHistory.fono.hasPriorVisit=true de un patient_context con
180
- * therapyHistory.complete=true (sin evidencia completa es valoracion:
181
- * THERAPY_VALUATION_REQUIRED).
182
- */
183
- fonoGroup?: string;
184
- /**
185
- * Inicio de la ventana YYYY-MM-DD (mañana por defecto). Usa from/to cuando la
186
- * persona no dio fecha exacta.
187
- */
188
- from?: string;
189
- /**
190
- * Confirmed intent for supported services. Audiometry and logoaudiometry use
191
- * audio; inmitancia is external at MR. pruebas is only neuropsi cognitive
192
- * testing; modalidad is only fisio and requires modality.
193
- */
194
- intent: string;
195
- /**
196
- * Maximum items returned in one page. Defaults to 25; larger reads require
197
- * another cursor.
198
- */
199
- limit?: number;
200
- /**
201
- * Es válido consultar por nombre completo o parcial inequívoco del
202
- * profesional; también acepta un identificador devuelto por el sistema. No
203
- * hace falta pedir un ID a la persona. Conserva los filtros de la
204
- * especialidad y aclara nombres ambiguos con los candidatos devueltos.
205
- * Psicología conserva patient_context.psychologyContinuity; si omites medic,
206
- * el servidor resuelve al profesional anterior. Cambiarlo exige aceptación
207
- * explícita del nuevo nombre y professionalChangeConfirmed=true. Nunca
208
- * elimines una preferencia de profesional sin aceptación.
209
- */
210
- medic?: string;
211
- /**
212
- * Obligatoria cuando specialty=fisio e intent=modalidad: copia presoterapia,
213
- * espirometria o pisopelvico-electroestim según lo confirmado. Biofeedback
214
- * exige además authorizationService. Omítela en valoración/control común.
215
- */
216
- modality?: string;
217
- /**
218
- * true para audiometría y logoaudiometría solicitadas juntas: buscar dos
219
- * servicios distintos consecutivos y ofrecer solo inicios pairable. false u
220
- * omitido para una audiometría sola. La logoaudiometría nunca es un examen
221
- * solo: con su código el servidor busca la pareja aunque pairWithNext sea
222
- * false.
223
- */
224
- pairWithNext?: boolean;
225
- /**
226
- * Opcional: el servidor calcula los meses cumplidos con el nacimiento
227
- * registrado y la fecha de la cita. Omítelo si ya hay documento; si lo envías
228
- * y contradice el registro se rechaza (PATIENT_AGE_MISMATCH). Nunca determina
229
- * el grupo.
230
- */
231
- patientAgeMonths?: string;
232
- /**
233
- * Psychology only. true ONLY after explaining the previous treating
234
- * professional and the proposed replacement and receiving explicit caller
235
- * acceptance. Send the selected medic. Never infer consent from an upcoming
236
- * booking, thanks, or agreement to a date. Omit to preserve attended-care
237
- * continuity automatically. If the previous professional cannot be
238
- * identified, explain that limitation instead of inventing their name;
239
- * explicit acceptance of a real returned professionalCandidate permits the
240
- * change.
241
- */
242
- professionalChangeConfirmed?: boolean;
243
- /**
244
- * true solo si un profesional recién agregado no aparece; relee el directorio
245
- * (caché de 1 h). Los cupos libres SIEMPRE se leen en vivo: refresh no
246
- * 'actualiza' horarios.
247
- */
248
- refresh?: boolean;
249
- /**
250
- * Solo para cobertura nueva o cambiada; omítelo para particular, Ecopetrol o
251
- * FOMAG.
252
- */
253
- regimen?: string;
254
- /**
255
- * Solo fisio control: la sala tal como la dijo la persona ('piso 1', '01',
256
- * 'C1', 'segundo piso', 'neurodesarrollo'); el servidor la normaliza a
257
- * piso-1, piso-2 o neurodesarrollo. Dedúcela del historial de fisio o
258
- * pregúntala una vez: '¿piso uno, piso dos o neurodesarrollo?'. 'Piso
259
- * pélvico' genérico = control en piso-1, nunca biofeedback. Omítela en
260
- * valoracion y en las demás especialidades.
261
- */
262
- sala?: string;
263
- /**
264
- * Código exacto de respaldo, solo tras CONTRACT_SERVICE_UNRESOLVED y siempre
265
- * junto a contract.
266
- */
267
- service?: string;
268
- /**
269
- * La especialidad pedida HOY por la persona, nunca deducida del historial.
270
- * Acepta el nombre clínico o el código y lo normaliza al código interno.
271
- */
272
- specialty: string;
273
- /**
274
- * Hora mínima inclusiva HH:MM, p. ej. 16:00 si la persona solo puede de 4 p.
275
- * m. en adelante. Si con la franja no hay, la respuesta ya trae los cupos
276
- * fuera de ella (window=alternative): ofrécelos sin consultar de nuevo.
277
- */
278
- timeFrom?: string;
279
- /**
280
- * Hora máxima inclusiva HH:MM; omítela si no hay tope.
281
- */
282
- timeTo?: string;
283
- /**
284
- * Fin de la ventana YYYY-MM-DD (from + 30 días por defecto). Si la ventana da
285
- * cero, el servidor la amplía solo hasta 90 días; no la repitas más larga.
286
- */
287
- to?: string;
288
- /**
289
- * Grupo de control de TO exacto, confirmado y validado con list_groups; el
290
- * servidor verifica la edad registrada y requiere
291
- * therapyHistory.to.hasPriorVisit=true de un patient_context con
292
- * therapyHistory.complete=true. Solo valen los grupos vigentes para el mes de
293
- * la cita.
294
- */
295
- toGroup?: string;
296
- }
297
- /**
298
- * A failed answer.
299
- */
300
- export interface SomosListAvailabilityConflictError {
301
- data: null;
302
- error: SomosListAvailabilityConflictFailure;
303
- /**
304
- * What every answer carries besides its data or error.
305
- */
306
- metadata: ResponseMetadata;
307
- success: false;
308
- }
309
- export type SomosListAvailabilityConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
310
- /**
311
- * A failed answer.
312
- */
313
- export interface SomosListAvailabilityNotFoundError {
314
- data: null;
315
- error: SomosListAvailabilityNotFoundFailure;
316
- /**
317
- * What every answer carries besides its data or error.
318
- */
319
- metadata: ResponseMetadata;
320
- success: false;
321
- }
322
- export type SomosListAvailabilityNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
323
- /**
324
- * A failed answer.
325
- */
326
- export interface SomosListAvailabilityServiceUnavailableError {
327
- data: null;
328
- error: SomosListAvailabilityServiceUnavailableFailure;
329
- /**
330
- * What every answer carries besides its data or error.
331
- */
332
- metadata: ResponseMetadata;
333
- success: false;
334
- }
335
- export type SomosListAvailabilityServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
336
- export declare const SomosAvailabilitySlotCodec: import("../../_/codec.js").Codec;
337
- export declare const SomosAvailabilitySlotPageCodec: import("../../_/codec.js").Codec;
338
- export declare const SomosAvailabilitySlotPageResponseCodec: import("../../_/codec.js").Codec;
@@ -1,15 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- import { array, date, instant, object } from "../../_/index.js";
4
- import { AvailabilityBookingInputCodec, } from "../../models.js";
5
- export const SomosAvailabilitySlotCodec = object([
6
- ["bookingInput", null, () => AvailabilityBookingInputCodec],
7
- ["date", null, date],
8
- ["startsAt", null, instant],
9
- ]);
10
- export const SomosAvailabilitySlotPageCodec = object([
11
- ["data", null, array(() => SomosAvailabilitySlotCodec)],
12
- ]);
13
- export const SomosAvailabilitySlotPageResponseCodec = object([
14
- ["data", null, () => SomosAvailabilitySlotPageCodec],
15
- ]);
@@ -1,29 +0,0 @@
1
- import { type BaseClientOptions, Transport } from "../_/index.js";
2
- import { type Client as AppointmentsClient } from "./appointments/client.js";
3
- import { type Client as AvailabilityClient } from "./availability/client.js";
4
- import { type Client as ClinicClient } from "./clinic/client.js";
5
- import { type Client as ContractsClient } from "./contracts/client.js";
6
- import { type Client as GroupsClient } from "./groups/client.js";
7
- import { type Client as PatientsClient } from "./patients/client.js";
8
- import { type Client as ServicesClient } from "./services/client.js";
9
- import { type Client as SpecialtyRulesClient } from "./specialtyRules/client.js";
10
- import { type Client as ToolsClient } from "./tools/client.js";
11
- export interface ClientOptions extends BaseClientOptions {
12
- /**
13
- * The URL the paths of the API are relative to.
14
- */
15
- baseUrl: string;
16
- }
17
- export interface Client {
18
- readonly appointments: AppointmentsClient;
19
- readonly availability: AvailabilityClient;
20
- readonly clinic: ClinicClient;
21
- readonly contracts: ContractsClient;
22
- readonly groups: GroupsClient;
23
- readonly patients: PatientsClient;
24
- readonly services: ServicesClient;
25
- readonly specialtyRules: SpecialtyRulesClient;
26
- readonly tools: ToolsClient;
27
- }
28
- export declare function createClient(options: ClientOptions): Client;
29
- export declare function bind(transport: Transport): Client;
@@ -1,55 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- import { Transport } from "../_/index.js";
4
- import { bind as bindAppointments, } from "./appointments/client.js";
5
- import { bind as bindAvailability, } from "./availability/client.js";
6
- import { bind as bindClinic, } from "./clinic/client.js";
7
- import { bind as bindContracts, } from "./contracts/client.js";
8
- import { bind as bindGroups, } from "./groups/client.js";
9
- import { bind as bindPatients, } from "./patients/client.js";
10
- import { bind as bindServices, } from "./services/client.js";
11
- import { bind as bindSpecialtyRules, } from "./specialtyRules/client.js";
12
- import { bind as bindTools, } from "./tools/client.js";
13
- export function createClient(options) {
14
- return bind(new Transport(options));
15
- }
16
- export function bind(transport) {
17
- let appointmentsClient;
18
- let availabilityClient;
19
- let clinicClient;
20
- let contractsClient;
21
- let groupsClient;
22
- let patientsClient;
23
- let servicesClient;
24
- let specialtyRulesClient;
25
- let toolsClient;
26
- return {
27
- get appointments() {
28
- return (appointmentsClient ??= bindAppointments(transport));
29
- },
30
- get availability() {
31
- return (availabilityClient ??= bindAvailability(transport));
32
- },
33
- get clinic() {
34
- return (clinicClient ??= bindClinic(transport));
35
- },
36
- get contracts() {
37
- return (contractsClient ??= bindContracts(transport));
38
- },
39
- get groups() {
40
- return (groupsClient ??= bindGroups(transport));
41
- },
42
- get patients() {
43
- return (patientsClient ??= bindPatients(transport));
44
- },
45
- get services() {
46
- return (servicesClient ??= bindServices(transport));
47
- },
48
- get specialtyRules() {
49
- return (specialtyRulesClient ??= bindSpecialtyRules(transport));
50
- },
51
- get tools() {
52
- return (toolsClient ??= bindTools(transport));
53
- },
54
- };
55
- }
@@ -1,33 +0,0 @@
1
- import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { SomosClinicResponse } from "./models.js";
3
- export interface ClientOptions extends BaseClientOptions {
4
- /**
5
- * The URL the paths of the API are relative to.
6
- */
7
- baseUrl: string;
8
- }
9
- export interface Client {
10
- /**
11
- * Get the clinic
12
- *
13
- * The clinic of the connection a call names, or of the organization's only
14
- * one: its name, its SIIPS address, its timezone (every date and time the
15
- * clinical operations answer is local to it) and the version of its tool
16
- * definitions (somos.tools.list). An Agent reads it first in a conversation,
17
- * to know the clinic and its time. A connection of another clinic is
18
- * CLINIC_NOT_SERVED; another organization's is CONNECTION_NOT_FOUND. Contains
19
- * no patient data and performs no clinical login.
20
- */
21
- get(request?: GetRequest, options?: RequestOptions): Promise<GetResponse>;
22
- }
23
- export declare function createClient(options: ClientOptions): Client;
24
- export declare function bind(transport: Transport): Client;
25
- export interface GetRequest {
26
- /**
27
- * The Visoft connection to run on, as Account lists it (con_…). Optional when
28
- * the organization has one; required when it has several. Another
29
- * organization's connection is CONNECTION_NOT_FOUND.
30
- */
31
- connectionId?: string;
32
- }
33
- export type GetResponse = SomosClinicResponse;
@@ -1,18 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- import { Transport, } from "../../_/index.js";
4
- export function createClient(options) {
5
- return bind(new Transport(options));
6
- }
7
- export function bind(transport) {
8
- return {
9
- get: (request, options) => transport.send(GetOperation, request, options),
10
- };
11
- }
12
- const GetOperation = {
13
- method: "GET",
14
- route: "/v1/somos/clinic",
15
- query: { connectionId: "connectionId" },
16
- response: null,
17
- errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
18
- };
@@ -1,5 +0,0 @@
1
- export { ApiError } from "../../_/index.js";
2
- export type { RequestOptions } from "../../_/index.js";
3
- export { createClient } from "./client.js";
4
- export type { Client, ClientOptions, GetRequest, GetResponse, } from "./client.js";
5
- export type { SomosClinic, SomosClinicResponse, SomosGetClinicBadGatewayError, SomosGetClinicBadGatewayFailure, SomosGetClinicConflictError, SomosGetClinicConflictFailure, SomosGetClinicNotFoundError, SomosGetClinicNotFoundFailure, SomosGetClinicServiceUnavailableError, SomosGetClinicServiceUnavailableFailure, } from "./models.js";
@@ -1,4 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- export { ApiError } from "../../_/index.js";
4
- export { createClient } from "./client.js";
@@ -1,90 +0,0 @@
1
- import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, OutcomeUnknownFailure, ProviderUnavailableFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
- import type { SomosClinicNotServedFailure, SomosProviderRequestRefusedFailure, SomosSomosNotConfiguredFailure, SomosToolNotAvailableFailure } from "../models.js";
3
- export interface SomosClinic {
4
- /**
5
- * The clinic's SIIPS address.
6
- */
7
- clinicalSystem: string;
8
- /**
9
- * The clinic, as the connection names it: somos-salud.
10
- */
11
- id: string;
12
- /**
13
- * The clinic's name.
14
- */
15
- name: string;
16
- /**
17
- * The clinic's IANA timezone: every date and time the clinical operations
18
- * answer is local to it.
19
- */
20
- timezone: string;
21
- /**
22
- * The version of the clinic's tool definitions (somos.tools.list): it changes
23
- * whenever a tool's parameters or instructions do.
24
- */
25
- toolsVersion: number;
26
- }
27
- /**
28
- * A successful answer.
29
- */
30
- export interface SomosClinicResponse {
31
- data: SomosClinic;
32
- error: null;
33
- /**
34
- * What every answer carries besides its data or error.
35
- */
36
- metadata: ResponseMetadata;
37
- success: true;
38
- }
39
- /**
40
- * A failed answer.
41
- */
42
- export interface SomosGetClinicBadGatewayError {
43
- data: null;
44
- error: SomosGetClinicBadGatewayFailure;
45
- /**
46
- * What every answer carries besides its data or error.
47
- */
48
- metadata: ResponseMetadata;
49
- success: false;
50
- }
51
- export type SomosGetClinicBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
52
- /**
53
- * A failed answer.
54
- */
55
- export interface SomosGetClinicConflictError {
56
- data: null;
57
- error: SomosGetClinicConflictFailure;
58
- /**
59
- * What every answer carries besides its data or error.
60
- */
61
- metadata: ResponseMetadata;
62
- success: false;
63
- }
64
- export type SomosGetClinicConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
65
- /**
66
- * A failed answer.
67
- */
68
- export interface SomosGetClinicNotFoundError {
69
- data: null;
70
- error: SomosGetClinicNotFoundFailure;
71
- /**
72
- * What every answer carries besides its data or error.
73
- */
74
- metadata: ResponseMetadata;
75
- success: false;
76
- }
77
- export type SomosGetClinicNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
78
- /**
79
- * A failed answer.
80
- */
81
- export interface SomosGetClinicServiceUnavailableError {
82
- data: null;
83
- error: SomosGetClinicServiceUnavailableFailure;
84
- /**
85
- * What every answer carries besides its data or error.
86
- */
87
- metadata: ResponseMetadata;
88
- success: false;
89
- }
90
- export type SomosGetClinicServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
@@ -1,3 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- export {};
@@ -1,74 +0,0 @@
1
- import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { SomosContractPageResponse } from "./models.js";
3
- export interface ClientOptions extends BaseClientOptions {
4
- /**
5
- * The URL the paths of the API are relative to.
6
- */
7
- baseUrl: string;
8
- }
9
- export interface Client {
10
- /**
11
- * List the clinic's contracts
12
- *
13
- * The clinic's current contracts and agreements, in ascending code order. A
14
- * contract with covers schedules only those specialties: another one is in a
15
- * sibling contract of the same payer. A payer name that matches no contract,
16
- * or several, is TOOL_REFUSED (CONTRACT_NOT_FOUND, CONTRACT_AMBIGUOUS) with
17
- * the closest names in details.didYouMean, to offer the person. Preserve the
18
- * returned identifiers; a failed lookup never proves a patient lacks
19
- * coverage. A refusal is TOOL_REFUSED: data.reason says why, data.guidance
20
- * what to do next and data.details what it offers instead; it is never an
21
- * outage. Somos Salud's tool pack sets this tool's rules, parameters and
22
- * accepted values (somos.tools.list answers them), and every call is checked
23
- * against them.
24
- */
25
- list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
26
- }
27
- export declare function createClient(options: ClientOptions): Client;
28
- export declare function bind(transport: Transport): Client;
29
- export interface ListRequest {
30
- /**
31
- * Nombre de la EPS tal como la dijo la persona; el servidor entiende aliases
32
- * auditados de Salud Total, Famisanar, Asmet Salud, Pijaos Salud y Ecopetrol.
33
- * Omítelo para listar todos los convenios.
34
- */
35
- eps?: string;
36
- /**
37
- * Régimen confirmado por la persona ('subsidiada' se normaliza a subsidiado);
38
- * pac solo para planes complementarios. Omítelo para particular, Ecopetrol o
39
- * FOMAG. Cotizante/beneficiario o la categoría NO indican el régimen:
40
- * pregúntalo.
41
- */
42
- regimen?: string;
43
- /**
44
- * true solo si la persona afirma que un convenio falta o acaba de
45
- * habilitarse; relee el catálogo del sistema clínico en vez del caché de 12
46
- * h.
47
- */
48
- refresh?: boolean;
49
- /**
50
- * Opaque cursor returned by pageInfo; omit it to request the first page.
51
- */
52
- cursor?: string;
53
- /**
54
- * Direction to traverse the stable keyset ordering from the supplied cursor.
55
- */
56
- direction?: "forward" | "backward";
57
- /**
58
- * Maximum items returned in one page. Defaults to 25; larger reads require
59
- * another cursor.
60
- */
61
- limit?: number;
62
- /**
63
- * The Visoft connection to run on, as Account lists it (con_…). Optional when
64
- * the organization has one; required when it has several. Another
65
- * organization's connection is CONNECTION_NOT_FOUND.
66
- */
67
- connectionId?: string;
68
- /**
69
- * The channel the conversation happens on: voice, whatsapp or web (the
70
- * default).
71
- */
72
- channel?: "voice" | "web" | "whatsapp";
73
- }
74
- export type ListResponse = SomosContractPageResponse;