@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.
- package/README.md +4 -4
- package/dist/agenda/models.d.ts +105 -0
- package/dist/client.d.ts +0 -4
- package/dist/client.js +0 -10
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +0 -282
- package/dist/models.js +1 -5
- package/dist/raiz/conversations/client.d.ts +4 -3
- package/dist/raiz/organization/client.d.ts +11 -4
- package/dist/raiz/organization/models.d.ts +6 -0
- package/dist/visoft/appointments/index.d.ts +1 -1
- package/dist/visoft/appointments/models.d.ts +32 -6
- package/dist/visoft/availability/models.d.ts +4 -4
- package/dist/visoft/contracts/index.d.ts +1 -1
- package/dist/visoft/contracts/models.d.ts +16 -3
- package/dist/visoft/index.d.ts +1 -1
- package/dist/visoft/models.d.ts +67 -2
- package/dist/visoft/patients/index.d.ts +1 -1
- package/dist/visoft/patients/models.d.ts +35 -6
- package/dist/visoft/professionals/models.d.ts +4 -4
- package/dist/visoft/serviceCatalogs/models.d.ts +4 -4
- package/dist/visoft/services/index.d.ts +1 -1
- package/dist/visoft/services/models.d.ts +16 -3
- package/package.json +3 -3
- package/dist/orsovision/agencies/client.d.ts +0 -51
- package/dist/orsovision/agencies/client.js +0 -18
- package/dist/orsovision/agencies/index.d.ts +0 -5
- package/dist/orsovision/agencies/index.js +0 -4
- package/dist/orsovision/agencies/models.d.ts +0 -107
- package/dist/orsovision/agencies/models.js +0 -3
- package/dist/orsovision/appointments/client.d.ts +0 -39
- package/dist/orsovision/appointments/client.js +0 -29
- package/dist/orsovision/appointments/index.d.ts +0 -5
- package/dist/orsovision/appointments/index.js +0 -4
- package/dist/orsovision/appointments/models.d.ts +0 -182
- package/dist/orsovision/appointments/models.js +0 -9
- package/dist/orsovision/availability/client.d.ts +0 -32
- package/dist/orsovision/availability/client.js +0 -19
- package/dist/orsovision/availability/index.d.ts +0 -5
- package/dist/orsovision/availability/index.js +0 -4
- package/dist/orsovision/availability/models.d.ts +0 -228
- package/dist/orsovision/availability/models.js +0 -15
- package/dist/orsovision/client.d.ts +0 -27
- package/dist/orsovision/client.js +0 -50
- package/dist/orsovision/clinic/client.d.ts +0 -34
- package/dist/orsovision/clinic/client.js +0 -18
- package/dist/orsovision/clinic/index.d.ts +0 -5
- package/dist/orsovision/clinic/index.js +0 -4
- package/dist/orsovision/clinic/models.d.ts +0 -90
- package/dist/orsovision/clinic/models.js +0 -3
- package/dist/orsovision/contracts/client.d.ts +0 -69
- package/dist/orsovision/contracts/client.js +0 -18
- package/dist/orsovision/contracts/index.d.ts +0 -5
- package/dist/orsovision/contracts/index.js +0 -4
- package/dist/orsovision/contracts/models.d.ts +0 -84
- package/dist/orsovision/contracts/models.js +0 -3
- package/dist/orsovision/index.d.ts +0 -5
- package/dist/orsovision/index.js +0 -4
- package/dist/orsovision/models.d.ts +0 -66
- package/dist/orsovision/models.js +0 -3
- package/dist/orsovision/patients/client.d.ts +0 -52
- package/dist/orsovision/patients/client.js +0 -34
- package/dist/orsovision/patients/index.d.ts +0 -5
- package/dist/orsovision/patients/index.js +0 -4
- package/dist/orsovision/patients/models.d.ts +0 -287
- package/dist/orsovision/patients/models.js +0 -3
- package/dist/orsovision/services/client.d.ts +0 -74
- package/dist/orsovision/services/client.js +0 -18
- package/dist/orsovision/services/index.d.ts +0 -5
- package/dist/orsovision/services/index.js +0 -4
- package/dist/orsovision/services/models.d.ts +0 -81
- package/dist/orsovision/services/models.js +0 -3
- package/dist/orsovision/tools/client.d.ts +0 -44
- package/dist/orsovision/tools/client.js +0 -18
- package/dist/orsovision/tools/index.d.ts +0 -5
- package/dist/orsovision/tools/index.js +0 -4
- package/dist/orsovision/tools/models.d.ts +0 -102
- package/dist/orsovision/tools/models.js +0 -3
- package/dist/somos/appointments/client.d.ts +0 -40
- package/dist/somos/appointments/client.js +0 -29
- package/dist/somos/appointments/index.d.ts +0 -5
- package/dist/somos/appointments/index.js +0 -4
- package/dist/somos/appointments/models.d.ts +0 -303
- package/dist/somos/appointments/models.js +0 -9
- package/dist/somos/availability/client.d.ts +0 -33
- package/dist/somos/availability/client.js +0 -19
- package/dist/somos/availability/index.d.ts +0 -5
- package/dist/somos/availability/index.js +0 -4
- package/dist/somos/availability/models.d.ts +0 -338
- package/dist/somos/availability/models.js +0 -15
- package/dist/somos/client.d.ts +0 -29
- package/dist/somos/client.js +0 -55
- package/dist/somos/clinic/client.d.ts +0 -33
- package/dist/somos/clinic/client.js +0 -18
- package/dist/somos/clinic/index.d.ts +0 -5
- package/dist/somos/clinic/index.js +0 -4
- package/dist/somos/clinic/models.d.ts +0 -90
- package/dist/somos/clinic/models.js +0 -3
- package/dist/somos/contracts/client.d.ts +0 -74
- package/dist/somos/contracts/client.js +0 -18
- package/dist/somos/contracts/index.d.ts +0 -5
- package/dist/somos/contracts/index.js +0 -4
- package/dist/somos/contracts/models.d.ts +0 -96
- package/dist/somos/contracts/models.js +0 -3
- package/dist/somos/groups/client.d.ts +0 -67
- package/dist/somos/groups/client.js +0 -18
- package/dist/somos/groups/index.d.ts +0 -5
- package/dist/somos/groups/index.js +0 -4
- package/dist/somos/groups/models.d.ts +0 -117
- package/dist/somos/groups/models.js +0 -3
- package/dist/somos/index.d.ts +0 -5
- package/dist/somos/index.js +0 -4
- package/dist/somos/models.d.ts +0 -88
- package/dist/somos/models.js +0 -3
- package/dist/somos/patients/client.d.ts +0 -51
- package/dist/somos/patients/client.js +0 -34
- package/dist/somos/patients/index.d.ts +0 -5
- package/dist/somos/patients/index.js +0 -4
- package/dist/somos/patients/models.d.ts +0 -330
- package/dist/somos/patients/models.js +0 -3
- package/dist/somos/services/client.d.ts +0 -116
- package/dist/somos/services/client.js +0 -26
- package/dist/somos/services/index.d.ts +0 -5
- package/dist/somos/services/index.js +0 -4
- package/dist/somos/services/models.d.ts +0 -261
- package/dist/somos/services/models.js +0 -3
- package/dist/somos/specialtyRules/client.d.ts +0 -44
- package/dist/somos/specialtyRules/client.js +0 -18
- package/dist/somos/specialtyRules/index.d.ts +0 -5
- package/dist/somos/specialtyRules/index.js +0 -4
- package/dist/somos/specialtyRules/models.d.ts +0 -54
- package/dist/somos/specialtyRules/models.js +0 -3
- package/dist/somos/tools/client.d.ts +0 -44
- package/dist/somos/tools/client.js +0 -18
- package/dist/somos/tools/index.d.ts +0 -5
- package/dist/somos/tools/index.js +0 -4
- package/dist/somos/tools/models.d.ts +0 -102
- package/dist/somos/tools/models.js +0 -3
|
@@ -1,287 +0,0 @@
|
|
|
1
|
-
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, OutcomeUnknownFailure, ProviderUnavailableFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
-
import type { OrsovisionClinicNotServedFailure, OrsovisionOrsovisionNotConfiguredFailure, OrsovisionToolNotAvailableFailure } from "../models.js";
|
|
3
|
-
/**
|
|
4
|
-
* A failed answer.
|
|
5
|
-
*/
|
|
6
|
-
export interface OrsovisionCorrectPatientBadGatewayError {
|
|
7
|
-
data: null;
|
|
8
|
-
error: OrsovisionCorrectPatientBadGatewayFailure;
|
|
9
|
-
/**
|
|
10
|
-
* What every answer carries besides its data or error.
|
|
11
|
-
*/
|
|
12
|
-
metadata: ResponseMetadata;
|
|
13
|
-
success: false;
|
|
14
|
-
}
|
|
15
|
-
export type OrsovisionCorrectPatientBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure;
|
|
16
|
-
export interface OrsovisionCorrectPatientBody {
|
|
17
|
-
/**
|
|
18
|
-
* Dirección corregida; omítela si no cambió.
|
|
19
|
-
*/
|
|
20
|
-
address?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Sede usada para enviar el formulario del paciente.
|
|
23
|
-
*/
|
|
24
|
-
agency: string;
|
|
25
|
-
/**
|
|
26
|
-
* The channel the conversation happens on: voice, whatsapp or web (the
|
|
27
|
-
* default).
|
|
28
|
-
*/
|
|
29
|
-
channel?: "voice" | "web" | "whatsapp";
|
|
30
|
-
/**
|
|
31
|
-
* The Visoft connection to run on, as Account lists it (con_…). Optional when
|
|
32
|
-
* the organization has one; required when it has several. Another
|
|
33
|
-
* organization's connection is CONNECTION_NOT_FOUND.
|
|
34
|
-
*/
|
|
35
|
-
connectionId?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Documento del paciente existente.
|
|
38
|
-
*/
|
|
39
|
-
documentNumber: string;
|
|
40
|
-
/**
|
|
41
|
-
* Correo corregido; omítelo si no cambió.
|
|
42
|
-
*/
|
|
43
|
-
email?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Celular corregido; omítelo si no cambió.
|
|
46
|
-
*/
|
|
47
|
-
phoneMobile?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Teléfono fijo corregido; omítelo si no cambió.
|
|
50
|
-
*/
|
|
51
|
-
phoneOffice?: string;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* A failed answer.
|
|
55
|
-
*/
|
|
56
|
-
export interface OrsovisionCorrectPatientConflictError {
|
|
57
|
-
data: null;
|
|
58
|
-
error: OrsovisionCorrectPatientConflictFailure;
|
|
59
|
-
/**
|
|
60
|
-
* What every answer carries besides its data or error.
|
|
61
|
-
*/
|
|
62
|
-
metadata: ResponseMetadata;
|
|
63
|
-
success: false;
|
|
64
|
-
}
|
|
65
|
-
export type OrsovisionCorrectPatientConflictFailure = ConnectionNotConfiguredFailure | OrsovisionClinicNotServedFailure;
|
|
66
|
-
/**
|
|
67
|
-
* A failed answer.
|
|
68
|
-
*/
|
|
69
|
-
export interface OrsovisionCorrectPatientNotFoundError {
|
|
70
|
-
data: null;
|
|
71
|
-
error: OrsovisionCorrectPatientNotFoundFailure;
|
|
72
|
-
/**
|
|
73
|
-
* What every answer carries besides its data or error.
|
|
74
|
-
*/
|
|
75
|
-
metadata: ResponseMetadata;
|
|
76
|
-
success: false;
|
|
77
|
-
}
|
|
78
|
-
export type OrsovisionCorrectPatientNotFoundFailure = ConnectionNotFoundFailure | OrsovisionToolNotAvailableFailure;
|
|
79
|
-
/**
|
|
80
|
-
* A failed answer.
|
|
81
|
-
*/
|
|
82
|
-
export interface OrsovisionCorrectPatientServiceUnavailableError {
|
|
83
|
-
data: null;
|
|
84
|
-
error: OrsovisionCorrectPatientServiceUnavailableFailure;
|
|
85
|
-
/**
|
|
86
|
-
* What every answer carries besides its data or error.
|
|
87
|
-
*/
|
|
88
|
-
metadata: ResponseMetadata;
|
|
89
|
-
success: false;
|
|
90
|
-
}
|
|
91
|
-
export type OrsovisionCorrectPatientServiceUnavailableFailure = UpstreamUnavailableFailure | OrsovisionOrsovisionNotConfiguredFailure;
|
|
92
|
-
/**
|
|
93
|
-
* A failed answer.
|
|
94
|
-
*/
|
|
95
|
-
export interface OrsovisionCreatePatientBadGatewayError {
|
|
96
|
-
data: null;
|
|
97
|
-
error: OrsovisionCreatePatientBadGatewayFailure;
|
|
98
|
-
/**
|
|
99
|
-
* What every answer carries besides its data or error.
|
|
100
|
-
*/
|
|
101
|
-
metadata: ResponseMetadata;
|
|
102
|
-
success: false;
|
|
103
|
-
}
|
|
104
|
-
export type OrsovisionCreatePatientBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure;
|
|
105
|
-
export interface OrsovisionCreatePatientBody {
|
|
106
|
-
/**
|
|
107
|
-
* Dirección de residencia del paciente. Confírmala; no sustituyas la
|
|
108
|
-
* dirección de la clínica.
|
|
109
|
-
*/
|
|
110
|
-
address: string;
|
|
111
|
-
/**
|
|
112
|
-
* Sede elegida de list_agencies. Solo envía el formulario de registro; NO
|
|
113
|
-
* implica la residencia del paciente.
|
|
114
|
-
*/
|
|
115
|
-
agency: string;
|
|
116
|
-
/**
|
|
117
|
-
* Nacimiento YYYY-MM-DD; léelo de vuelta antes de crear el registro.
|
|
118
|
-
*/
|
|
119
|
-
birthDate: string;
|
|
120
|
-
/**
|
|
121
|
-
* The channel the conversation happens on: voice, whatsapp or web (the
|
|
122
|
-
* default).
|
|
123
|
-
*/
|
|
124
|
-
channel?: "voice" | "web" | "whatsapp";
|
|
125
|
-
/**
|
|
126
|
-
* The Visoft connection to run on, as Account lists it (con_…). Optional when
|
|
127
|
-
* the organization has one; required when it has several. Another
|
|
128
|
-
* organization's connection is CONNECTION_NOT_FOUND.
|
|
129
|
-
*/
|
|
130
|
-
connectionId?: string;
|
|
131
|
-
/**
|
|
132
|
-
* Código del país de residencia, normalmente COL cuando se confirma.
|
|
133
|
-
*/
|
|
134
|
-
country: string;
|
|
135
|
-
/**
|
|
136
|
-
* Código DANE del departamento de RESIDENCIA del paciente. No lo deduzcas de
|
|
137
|
-
* la sede elegida.
|
|
138
|
-
*/
|
|
139
|
-
departmentCode: string;
|
|
140
|
-
/**
|
|
141
|
-
* Documento confirmado sin espacios, puntos ni guiones.
|
|
142
|
-
*/
|
|
143
|
-
documentNumber: string;
|
|
144
|
-
/**
|
|
145
|
-
* Tipo exacto tal como aparece en el documento; nunca lo infieras.
|
|
146
|
-
*/
|
|
147
|
-
documentType: string;
|
|
148
|
-
/**
|
|
149
|
-
* Correo válido. Omítelo si no hay; nunca lo inventes.
|
|
150
|
-
*/
|
|
151
|
-
email?: string;
|
|
152
|
-
/**
|
|
153
|
-
* Primer nombre confirmado.
|
|
154
|
-
*/
|
|
155
|
-
firstName1: string;
|
|
156
|
-
/**
|
|
157
|
-
* Primer apellido confirmado.
|
|
158
|
-
*/
|
|
159
|
-
lastName1: string;
|
|
160
|
-
/**
|
|
161
|
-
* Código DANE del municipio de RESIDENCIA del paciente. No lo deduzcas de la
|
|
162
|
-
* sede elegida.
|
|
163
|
-
*/
|
|
164
|
-
municipalityCode: string;
|
|
165
|
-
/**
|
|
166
|
-
* Celular, solo dígitos. Omítelo si la persona se niega a darlo.
|
|
167
|
-
*/
|
|
168
|
-
phoneMobile?: string;
|
|
169
|
-
/**
|
|
170
|
-
* M o F confirmado; nunca lo infieras del nombre ni de la voz.
|
|
171
|
-
*/
|
|
172
|
-
sex: string;
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* A failed answer.
|
|
176
|
-
*/
|
|
177
|
-
export interface OrsovisionCreatePatientConflictError {
|
|
178
|
-
data: null;
|
|
179
|
-
error: OrsovisionCreatePatientConflictFailure;
|
|
180
|
-
/**
|
|
181
|
-
* What every answer carries besides its data or error.
|
|
182
|
-
*/
|
|
183
|
-
metadata: ResponseMetadata;
|
|
184
|
-
success: false;
|
|
185
|
-
}
|
|
186
|
-
export type OrsovisionCreatePatientConflictFailure = ConnectionNotConfiguredFailure | OrsovisionClinicNotServedFailure;
|
|
187
|
-
/**
|
|
188
|
-
* A failed answer.
|
|
189
|
-
*/
|
|
190
|
-
export interface OrsovisionCreatePatientNotFoundError {
|
|
191
|
-
data: null;
|
|
192
|
-
error: OrsovisionCreatePatientNotFoundFailure;
|
|
193
|
-
/**
|
|
194
|
-
* What every answer carries besides its data or error.
|
|
195
|
-
*/
|
|
196
|
-
metadata: ResponseMetadata;
|
|
197
|
-
success: false;
|
|
198
|
-
}
|
|
199
|
-
export type OrsovisionCreatePatientNotFoundFailure = ConnectionNotFoundFailure | OrsovisionToolNotAvailableFailure;
|
|
200
|
-
/**
|
|
201
|
-
* A failed answer.
|
|
202
|
-
*/
|
|
203
|
-
export interface OrsovisionCreatePatientServiceUnavailableError {
|
|
204
|
-
data: null;
|
|
205
|
-
error: OrsovisionCreatePatientServiceUnavailableFailure;
|
|
206
|
-
/**
|
|
207
|
-
* What every answer carries besides its data or error.
|
|
208
|
-
*/
|
|
209
|
-
metadata: ResponseMetadata;
|
|
210
|
-
success: false;
|
|
211
|
-
}
|
|
212
|
-
export type OrsovisionCreatePatientServiceUnavailableFailure = UpstreamUnavailableFailure | OrsovisionOrsovisionNotConfiguredFailure;
|
|
213
|
-
export interface OrsovisionLookupPatientBody {
|
|
214
|
-
/**
|
|
215
|
-
* Código de sede de list_agencies. Pásalo cuando se conozca para que el
|
|
216
|
-
* contexto de contrato y servicio quede en la misma sede.
|
|
217
|
-
*/
|
|
218
|
-
agency?: string;
|
|
219
|
-
/**
|
|
220
|
-
* The channel the conversation happens on: voice, whatsapp or web (the
|
|
221
|
-
* default).
|
|
222
|
-
*/
|
|
223
|
-
channel?: "voice" | "web" | "whatsapp";
|
|
224
|
-
/**
|
|
225
|
-
* The Visoft connection to run on, as Account lists it (con_…). Optional when
|
|
226
|
-
* the organization has one; required when it has several. Another
|
|
227
|
-
* organization's connection is CONNECTION_NOT_FOUND.
|
|
228
|
-
*/
|
|
229
|
-
connectionId?: string;
|
|
230
|
-
/**
|
|
231
|
-
* Documento de quien recibirá la atención. Quita internamente espacios,
|
|
232
|
-
* puntos y guiones. Para confirmar en voz alta repite solo los últimos cuatro
|
|
233
|
-
* dígitos y espera un sí explícito antes de llamar; nunca leas el documento
|
|
234
|
-
* completo.
|
|
235
|
-
*/
|
|
236
|
-
documentNumber: string;
|
|
237
|
-
/**
|
|
238
|
-
* true agrega lo que ya pasó: pastAppointments (la más reciente primero, con
|
|
239
|
-
* attended) y las admisiones del paciente. Responde '¿asistió a su última
|
|
240
|
-
* cita?' desde el registro, no desde la memoria de la persona.
|
|
241
|
-
*/
|
|
242
|
-
includePast?: boolean;
|
|
243
|
-
/**
|
|
244
|
-
* Con includePast, limita pastAppointments a los últimos N días (p. ej. 3
|
|
245
|
-
* para '¿vine esta semana?'). Omítelo para el historial completo.
|
|
246
|
-
*/
|
|
247
|
-
pastDays?: number;
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* A failed answer.
|
|
251
|
-
*/
|
|
252
|
-
export interface OrsovisionLookupPatientConflictError {
|
|
253
|
-
data: null;
|
|
254
|
-
error: OrsovisionLookupPatientConflictFailure;
|
|
255
|
-
/**
|
|
256
|
-
* What every answer carries besides its data or error.
|
|
257
|
-
*/
|
|
258
|
-
metadata: ResponseMetadata;
|
|
259
|
-
success: false;
|
|
260
|
-
}
|
|
261
|
-
export type OrsovisionLookupPatientConflictFailure = ConnectionNotConfiguredFailure | OrsovisionClinicNotServedFailure;
|
|
262
|
-
/**
|
|
263
|
-
* A failed answer.
|
|
264
|
-
*/
|
|
265
|
-
export interface OrsovisionLookupPatientNotFoundError {
|
|
266
|
-
data: null;
|
|
267
|
-
error: OrsovisionLookupPatientNotFoundFailure;
|
|
268
|
-
/**
|
|
269
|
-
* What every answer carries besides its data or error.
|
|
270
|
-
*/
|
|
271
|
-
metadata: ResponseMetadata;
|
|
272
|
-
success: false;
|
|
273
|
-
}
|
|
274
|
-
export type OrsovisionLookupPatientNotFoundFailure = ConnectionNotFoundFailure | OrsovisionToolNotAvailableFailure;
|
|
275
|
-
/**
|
|
276
|
-
* A failed answer.
|
|
277
|
-
*/
|
|
278
|
-
export interface OrsovisionLookupPatientServiceUnavailableError {
|
|
279
|
-
data: null;
|
|
280
|
-
error: OrsovisionLookupPatientServiceUnavailableFailure;
|
|
281
|
-
/**
|
|
282
|
-
* What every answer carries besides its data or error.
|
|
283
|
-
*/
|
|
284
|
-
metadata: ResponseMetadata;
|
|
285
|
-
success: false;
|
|
286
|
-
}
|
|
287
|
-
export type OrsovisionLookupPatientServiceUnavailableFailure = UpstreamUnavailableFailure | OrsovisionOrsovisionNotConfiguredFailure;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type { OrsovisionContractServicePageResponse } 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 a contract's services
|
|
12
|
-
*
|
|
13
|
-
* The services of one of the chain's agreements (code) at one of its
|
|
14
|
-
* locations, in ascending code order; with q, only those whose code or name
|
|
15
|
-
* contains it. Catalog items that cannot be booked are not appointment
|
|
16
|
-
* availability. A refusal is TOOL_REFUSED: data.reason says why,
|
|
17
|
-
* data.guidance what to do next and data.details what it offers instead; it
|
|
18
|
-
* is never an outage. Orsovision's tool pack sets this tool's rules,
|
|
19
|
-
* parameters and accepted values (orsovision.tools.list answers them), and
|
|
20
|
-
* every call is checked against them.
|
|
21
|
-
*/
|
|
22
|
-
list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
23
|
-
}
|
|
24
|
-
export declare function createClient(options: ClientOptions): Client;
|
|
25
|
-
export declare function bind(transport: Transport): Client;
|
|
26
|
-
export interface ListRequest {
|
|
27
|
-
/**
|
|
28
|
-
* Código de contrato devuelto por list_contracts para la misma sede.
|
|
29
|
-
*/
|
|
30
|
-
code: string;
|
|
31
|
-
/**
|
|
32
|
-
* El mismo código de sede usado en list_contracts.
|
|
33
|
-
*/
|
|
34
|
-
agency: string;
|
|
35
|
-
/**
|
|
36
|
-
* Texto opcional del servicio: optometria, tamizaje, montura, lentes o el
|
|
37
|
-
* nombre del procedimiento.
|
|
38
|
-
*/
|
|
39
|
-
q?: string;
|
|
40
|
-
/**
|
|
41
|
-
* true solo si la persona afirma que un servicio falta o acaba de
|
|
42
|
-
* habilitarse; relee el catálogo en vez del caché de 6 h.
|
|
43
|
-
*/
|
|
44
|
-
refresh?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
47
|
-
*/
|
|
48
|
-
cursor?: string;
|
|
49
|
-
/**
|
|
50
|
-
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
51
|
-
*/
|
|
52
|
-
direction?: "forward" | "backward";
|
|
53
|
-
/**
|
|
54
|
-
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
55
|
-
* another cursor.
|
|
56
|
-
*/
|
|
57
|
-
limit?: number;
|
|
58
|
-
/**
|
|
59
|
-
* The Visoft connection to run on, as Account lists it (con_…). Optional when
|
|
60
|
-
* the organization has one; required when it has several. Another
|
|
61
|
-
* organization's connection is CONNECTION_NOT_FOUND.
|
|
62
|
-
*/
|
|
63
|
-
connectionId?: string;
|
|
64
|
-
/**
|
|
65
|
-
* The channel the conversation happens on: voice, whatsapp or web (the
|
|
66
|
-
* default).
|
|
67
|
-
*/
|
|
68
|
-
channel?: "voice" | "web" | "whatsapp";
|
|
69
|
-
/**
|
|
70
|
-
* Deprecated: use `q`. Answered until 2027-01-28.
|
|
71
|
-
*/
|
|
72
|
-
search?: string;
|
|
73
|
-
}
|
|
74
|
-
export type ListResponse = OrsovisionContractServicePageResponse;
|
|
@@ -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
|
-
list: (request, options) => transport.send(ListOperation, request, options),
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
const ListOperation = {
|
|
13
|
-
method: "GET",
|
|
14
|
-
route: "/v1/orsovision/services",
|
|
15
|
-
query: { code: "code", agency: "agency", q: "q", refresh: "refresh", cursor: "cursor", direction: "direction", limit: "limit", connectionId: "connectionId", channel: "channel", search: "search" },
|
|
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, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
-
export type { OrsovisionContractService, OrsovisionContractServicePage, OrsovisionContractServicePageResponse, OrsovisionListServicesConflictError, OrsovisionListServicesConflictFailure, OrsovisionListServicesNotFoundError, OrsovisionListServicesNotFoundFailure, OrsovisionListServicesServiceUnavailableError, OrsovisionListServicesServiceUnavailableFailure, } from "./models.js";
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
-
import type { OrsovisionClinicNotServedFailure, OrsovisionOrsovisionNotConfiguredFailure, OrsovisionToolNotAvailableFailure } from "../models.js";
|
|
3
|
-
export interface OrsovisionContractService {
|
|
4
|
-
/**
|
|
5
|
-
* The service, as orsovision.availability.lookup takes it.
|
|
6
|
-
*/
|
|
7
|
-
code: string;
|
|
8
|
-
/**
|
|
9
|
-
* The service's name in the clinic's catalog.
|
|
10
|
-
*/
|
|
11
|
-
name: string;
|
|
12
|
-
/**
|
|
13
|
-
* The contract's price, when the catalog states one.
|
|
14
|
-
*/
|
|
15
|
-
price: number | null;
|
|
16
|
-
}
|
|
17
|
-
export interface OrsovisionContractServicePage {
|
|
18
|
-
/**
|
|
19
|
-
* Items admitted by this resource contract within the verified organization.
|
|
20
|
-
*/
|
|
21
|
-
data: OrsovisionContractService[];
|
|
22
|
-
/**
|
|
23
|
-
* Discriminator for a resource list response.
|
|
24
|
-
*/
|
|
25
|
-
object: "list";
|
|
26
|
-
/**
|
|
27
|
-
* Opaque navigation cursors for this page’s stable keyset order.
|
|
28
|
-
*/
|
|
29
|
-
pageInfo: PageInfo;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* A successful answer.
|
|
33
|
-
*/
|
|
34
|
-
export interface OrsovisionContractServicePageResponse {
|
|
35
|
-
data: OrsovisionContractServicePage;
|
|
36
|
-
error: null;
|
|
37
|
-
/**
|
|
38
|
-
* What every answer carries besides its data or error.
|
|
39
|
-
*/
|
|
40
|
-
metadata: ResponseMetadata;
|
|
41
|
-
success: true;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* A failed answer.
|
|
45
|
-
*/
|
|
46
|
-
export interface OrsovisionListServicesConflictError {
|
|
47
|
-
data: null;
|
|
48
|
-
error: OrsovisionListServicesConflictFailure;
|
|
49
|
-
/**
|
|
50
|
-
* What every answer carries besides its data or error.
|
|
51
|
-
*/
|
|
52
|
-
metadata: ResponseMetadata;
|
|
53
|
-
success: false;
|
|
54
|
-
}
|
|
55
|
-
export type OrsovisionListServicesConflictFailure = ConnectionNotConfiguredFailure | OrsovisionClinicNotServedFailure;
|
|
56
|
-
/**
|
|
57
|
-
* A failed answer.
|
|
58
|
-
*/
|
|
59
|
-
export interface OrsovisionListServicesNotFoundError {
|
|
60
|
-
data: null;
|
|
61
|
-
error: OrsovisionListServicesNotFoundFailure;
|
|
62
|
-
/**
|
|
63
|
-
* What every answer carries besides its data or error.
|
|
64
|
-
*/
|
|
65
|
-
metadata: ResponseMetadata;
|
|
66
|
-
success: false;
|
|
67
|
-
}
|
|
68
|
-
export type OrsovisionListServicesNotFoundFailure = ConnectionNotFoundFailure | OrsovisionToolNotAvailableFailure;
|
|
69
|
-
/**
|
|
70
|
-
* A failed answer.
|
|
71
|
-
*/
|
|
72
|
-
export interface OrsovisionListServicesServiceUnavailableError {
|
|
73
|
-
data: null;
|
|
74
|
-
error: OrsovisionListServicesServiceUnavailableFailure;
|
|
75
|
-
/**
|
|
76
|
-
* What every answer carries besides its data or error.
|
|
77
|
-
*/
|
|
78
|
-
metadata: ResponseMetadata;
|
|
79
|
-
success: false;
|
|
80
|
-
}
|
|
81
|
-
export type OrsovisionListServicesServiceUnavailableFailure = UpstreamUnavailableFailure | OrsovisionOrsovisionNotConfiguredFailure;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type { OrsovisionClinicToolPageResponse } 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 tools
|
|
12
|
-
*
|
|
13
|
-
* Every tool Orsovision's agents may call, in ascending name order, with the
|
|
14
|
-
* clinic's exact parameters and instructions, each naming the operation that
|
|
15
|
-
* runs it; a list's tool declares the page fields too. The clinic itself, its
|
|
16
|
-
* timezone and the version of these definitions are orsovision.clinic.get's.
|
|
17
|
-
* Contains no patient data and performs no clinical login.
|
|
18
|
-
*/
|
|
19
|
-
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
20
|
-
}
|
|
21
|
-
export declare function createClient(options: ClientOptions): Client;
|
|
22
|
-
export declare function bind(transport: Transport): Client;
|
|
23
|
-
export interface ListRequest {
|
|
24
|
-
/**
|
|
25
|
-
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
26
|
-
*/
|
|
27
|
-
cursor?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
30
|
-
*/
|
|
31
|
-
direction?: "forward" | "backward";
|
|
32
|
-
/**
|
|
33
|
-
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
34
|
-
* another cursor.
|
|
35
|
-
*/
|
|
36
|
-
limit?: number;
|
|
37
|
-
/**
|
|
38
|
-
* The Visoft connection to run on, as Account lists it (con_…). Optional when
|
|
39
|
-
* the organization has one; required when it has several. Another
|
|
40
|
-
* organization's connection is CONNECTION_NOT_FOUND.
|
|
41
|
-
*/
|
|
42
|
-
connectionId?: string;
|
|
43
|
-
}
|
|
44
|
-
export type ListResponse = OrsovisionClinicToolPageResponse;
|
|
@@ -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
|
-
list: (request, options) => transport.send(ListOperation, request, options),
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
const ListOperation = {
|
|
13
|
-
method: "GET",
|
|
14
|
-
route: "/v1/orsovision/tools",
|
|
15
|
-
query: { cursor: "cursor", direction: "direction", limit: "limit", 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, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
-
export type { OrsovisionClinicTool, OrsovisionClinicToolPage, OrsovisionClinicToolPageResponse, OrsovisionListToolsBadGatewayError, OrsovisionListToolsBadGatewayFailure, OrsovisionListToolsConflictError, OrsovisionListToolsConflictFailure, OrsovisionListToolsNotFoundError, OrsovisionListToolsNotFoundFailure, OrsovisionListToolsServiceUnavailableError, OrsovisionListToolsServiceUnavailableFailure, } from "./models.js";
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, OutcomeUnknownFailure, PageInfo, ProviderUnavailableFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
-
import type { OrsovisionClinicNotServedFailure, OrsovisionOrsovisionNotConfiguredFailure, OrsovisionToolNotAvailableFailure } from "../models.js";
|
|
3
|
-
export interface OrsovisionClinicTool {
|
|
4
|
-
/**
|
|
5
|
-
* The clinic's instructions for this tool.
|
|
6
|
-
*/
|
|
7
|
-
description: string;
|
|
8
|
-
displayName: string;
|
|
9
|
-
/**
|
|
10
|
-
* JSON Schema of the clinic's exact parameters for this tool.
|
|
11
|
-
*/
|
|
12
|
-
inputSchema: {
|
|
13
|
-
[key: string]: unknown;
|
|
14
|
-
};
|
|
15
|
-
mutates: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* The tool's name, as the clinic's instructions name it.
|
|
18
|
-
*/
|
|
19
|
-
name: string;
|
|
20
|
-
/**
|
|
21
|
-
* The operation that runs this tool, such as orsovision.patients.lookup.
|
|
22
|
-
*/
|
|
23
|
-
operation: string | null;
|
|
24
|
-
}
|
|
25
|
-
export interface OrsovisionClinicToolPage {
|
|
26
|
-
/**
|
|
27
|
-
* Items admitted by this resource contract within the verified organization.
|
|
28
|
-
*/
|
|
29
|
-
data: OrsovisionClinicTool[];
|
|
30
|
-
/**
|
|
31
|
-
* Discriminator for a resource list response.
|
|
32
|
-
*/
|
|
33
|
-
object: "list";
|
|
34
|
-
/**
|
|
35
|
-
* Opaque navigation cursors for this page’s stable keyset order.
|
|
36
|
-
*/
|
|
37
|
-
pageInfo: PageInfo;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* A successful answer.
|
|
41
|
-
*/
|
|
42
|
-
export interface OrsovisionClinicToolPageResponse {
|
|
43
|
-
data: OrsovisionClinicToolPage;
|
|
44
|
-
error: null;
|
|
45
|
-
/**
|
|
46
|
-
* What every answer carries besides its data or error.
|
|
47
|
-
*/
|
|
48
|
-
metadata: ResponseMetadata;
|
|
49
|
-
success: true;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* A failed answer.
|
|
53
|
-
*/
|
|
54
|
-
export interface OrsovisionListToolsBadGatewayError {
|
|
55
|
-
data: null;
|
|
56
|
-
error: OrsovisionListToolsBadGatewayFailure;
|
|
57
|
-
/**
|
|
58
|
-
* What every answer carries besides its data or error.
|
|
59
|
-
*/
|
|
60
|
-
metadata: ResponseMetadata;
|
|
61
|
-
success: false;
|
|
62
|
-
}
|
|
63
|
-
export type OrsovisionListToolsBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure;
|
|
64
|
-
/**
|
|
65
|
-
* A failed answer.
|
|
66
|
-
*/
|
|
67
|
-
export interface OrsovisionListToolsConflictError {
|
|
68
|
-
data: null;
|
|
69
|
-
error: OrsovisionListToolsConflictFailure;
|
|
70
|
-
/**
|
|
71
|
-
* What every answer carries besides its data or error.
|
|
72
|
-
*/
|
|
73
|
-
metadata: ResponseMetadata;
|
|
74
|
-
success: false;
|
|
75
|
-
}
|
|
76
|
-
export type OrsovisionListToolsConflictFailure = ConnectionNotConfiguredFailure | OrsovisionClinicNotServedFailure;
|
|
77
|
-
/**
|
|
78
|
-
* A failed answer.
|
|
79
|
-
*/
|
|
80
|
-
export interface OrsovisionListToolsNotFoundError {
|
|
81
|
-
data: null;
|
|
82
|
-
error: OrsovisionListToolsNotFoundFailure;
|
|
83
|
-
/**
|
|
84
|
-
* What every answer carries besides its data or error.
|
|
85
|
-
*/
|
|
86
|
-
metadata: ResponseMetadata;
|
|
87
|
-
success: false;
|
|
88
|
-
}
|
|
89
|
-
export type OrsovisionListToolsNotFoundFailure = ConnectionNotFoundFailure | OrsovisionToolNotAvailableFailure;
|
|
90
|
-
/**
|
|
91
|
-
* A failed answer.
|
|
92
|
-
*/
|
|
93
|
-
export interface OrsovisionListToolsServiceUnavailableError {
|
|
94
|
-
data: null;
|
|
95
|
-
error: OrsovisionListToolsServiceUnavailableFailure;
|
|
96
|
-
/**
|
|
97
|
-
* What every answer carries besides its data or error.
|
|
98
|
-
*/
|
|
99
|
-
metadata: ResponseMetadata;
|
|
100
|
-
success: false;
|
|
101
|
-
}
|
|
102
|
-
export type OrsovisionListToolsServiceUnavailableFailure = UpstreamUnavailableFailure | OrsovisionOrsovisionNotConfiguredFailure;
|