@arbol-ai/sdk 2.19.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -1
- package/dist/client.d.ts +4 -0
- package/dist/client.js +10 -0
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +396 -0
- package/dist/models.js +5 -1
- package/dist/nuevaEps/affiliations/models.d.ts +6 -5
- package/dist/nuevaEps/connections/models.d.ts +18 -18
- package/dist/nuevaEps/index.d.ts +1 -1
- package/dist/nuevaEps/models.d.ts +16 -232
- package/dist/{visoft/tools → orsovision/agencies}/client.d.ts +13 -19
- package/dist/{visoft/tools → orsovision/agencies}/client.js +2 -2
- package/dist/orsovision/agencies/index.d.ts +5 -0
- package/dist/orsovision/agencies/models.d.ts +107 -0
- package/dist/orsovision/appointments/client.d.ts +39 -0
- package/dist/orsovision/appointments/client.js +29 -0
- package/dist/orsovision/appointments/index.d.ts +5 -0
- package/dist/orsovision/appointments/models.d.ts +206 -0
- package/dist/orsovision/appointments/models.js +9 -0
- package/dist/orsovision/availability/client.d.ts +32 -0
- package/dist/orsovision/availability/client.js +19 -0
- package/dist/orsovision/availability/index.d.ts +5 -0
- package/dist/orsovision/availability/models.d.ts +239 -0
- package/dist/orsovision/availability/models.js +15 -0
- package/dist/orsovision/client.d.ts +27 -0
- package/dist/orsovision/client.js +50 -0
- package/dist/orsovision/clinic/client.d.ts +34 -0
- package/dist/{visoft/specialtyRules → orsovision/clinic}/client.js +3 -3
- package/dist/orsovision/clinic/index.d.ts +5 -0
- package/dist/orsovision/clinic/models.d.ts +89 -0
- package/dist/orsovision/contracts/client.d.ts +69 -0
- package/dist/orsovision/contracts/client.js +18 -0
- package/dist/orsovision/contracts/index.d.ts +5 -0
- package/dist/orsovision/contracts/models.d.ts +108 -0
- package/dist/orsovision/index.d.ts +5 -0
- package/dist/orsovision/index.js +4 -0
- package/dist/orsovision/models.d.ts +227 -0
- package/dist/orsovision/patients/client.d.ts +52 -0
- package/dist/orsovision/patients/client.js +34 -0
- package/dist/orsovision/patients/index.d.ts +5 -0
- package/dist/orsovision/patients/models.d.ts +297 -0
- package/dist/orsovision/patients/models.js +3 -0
- package/dist/orsovision/services/client.d.ts +74 -0
- package/dist/orsovision/services/client.js +18 -0
- package/dist/orsovision/services/index.d.ts +5 -0
- package/dist/orsovision/services/index.js +4 -0
- package/dist/orsovision/services/models.d.ts +105 -0
- package/dist/orsovision/services/models.js +3 -0
- package/dist/orsovision/tools/client.d.ts +44 -0
- package/dist/{raiz/roles → orsovision/tools}/client.js +3 -3
- package/dist/orsovision/tools/index.d.ts +5 -0
- package/dist/orsovision/tools/index.js +4 -0
- package/dist/orsovision/tools/models.d.ts +101 -0
- package/dist/orsovision/tools/models.js +3 -0
- package/dist/raiz/client.d.ts +0 -4
- package/dist/raiz/client.js +0 -10
- package/dist/raiz/organization/client.d.ts +40 -40
- package/dist/raiz/organization/client.js +10 -10
- package/dist/raiz/organization/index.d.ts +1 -1
- package/dist/raiz/reports/client.d.ts +3 -3
- package/dist/raiz/reports/client.js +2 -2
- package/dist/raiz/reports/index.d.ts +1 -1
- package/dist/somos/appointments/client.d.ts +40 -0
- package/dist/somos/appointments/client.js +29 -0
- package/dist/somos/appointments/index.d.ts +5 -0
- package/dist/somos/appointments/index.js +4 -0
- package/dist/somos/appointments/models.d.ts +301 -0
- package/dist/somos/appointments/models.js +9 -0
- package/dist/somos/availability/client.d.ts +33 -0
- package/dist/somos/availability/client.js +19 -0
- package/dist/somos/availability/index.d.ts +5 -0
- package/dist/somos/availability/index.js +4 -0
- package/dist/somos/availability/models.d.ts +340 -0
- package/dist/somos/availability/models.js +15 -0
- package/dist/somos/client.d.ts +29 -0
- package/dist/somos/client.js +55 -0
- package/dist/somos/clinic/client.d.ts +33 -0
- package/dist/somos/clinic/client.js +18 -0
- package/dist/somos/clinic/index.d.ts +5 -0
- package/dist/somos/clinic/index.js +4 -0
- package/dist/somos/clinic/models.d.ts +89 -0
- package/dist/somos/clinic/models.js +3 -0
- package/dist/somos/contracts/client.d.ts +74 -0
- package/dist/somos/contracts/client.js +18 -0
- package/dist/somos/contracts/index.d.ts +5 -0
- package/dist/somos/contracts/index.js +4 -0
- package/dist/somos/contracts/models.d.ts +107 -0
- package/dist/somos/contracts/models.js +3 -0
- package/dist/somos/groups/client.d.ts +67 -0
- package/dist/{visoft → somos}/groups/client.js +2 -2
- package/dist/somos/groups/index.d.ts +5 -0
- package/dist/somos/groups/index.js +4 -0
- package/dist/somos/groups/models.d.ts +117 -0
- package/dist/somos/groups/models.js +3 -0
- package/dist/somos/index.d.ts +5 -0
- package/dist/somos/index.js +4 -0
- package/dist/somos/models.d.ts +227 -0
- package/dist/somos/models.js +3 -0
- package/dist/somos/patients/client.d.ts +51 -0
- package/dist/somos/patients/client.js +34 -0
- package/dist/somos/patients/index.d.ts +5 -0
- package/dist/somos/patients/index.js +4 -0
- package/dist/somos/patients/models.d.ts +327 -0
- package/dist/somos/patients/models.js +3 -0
- package/dist/somos/services/client.d.ts +117 -0
- package/dist/somos/services/client.js +26 -0
- package/dist/somos/services/index.d.ts +5 -0
- package/dist/somos/services/index.js +4 -0
- package/dist/somos/services/models.d.ts +272 -0
- package/dist/somos/services/models.js +3 -0
- package/dist/somos/specialtyRules/client.d.ts +44 -0
- package/dist/somos/specialtyRules/client.js +18 -0
- package/dist/somos/specialtyRules/index.d.ts +5 -0
- package/dist/somos/specialtyRules/index.js +4 -0
- package/dist/somos/specialtyRules/models.d.ts +54 -0
- package/dist/somos/specialtyRules/models.js +3 -0
- package/dist/{raiz/roles → somos/tools}/client.d.ts +14 -12
- package/dist/{visoft/agencies → somos/tools}/client.js +3 -3
- package/dist/somos/tools/index.d.ts +5 -0
- package/dist/somos/tools/index.js +4 -0
- package/dist/somos/tools/models.d.ts +101 -0
- package/dist/somos/tools/models.js +3 -0
- package/dist/visoft/appointments/client.d.ts +20 -194
- package/dist/visoft/appointments/client.js +5 -4
- package/dist/visoft/appointments/index.d.ts +1 -0
- package/dist/visoft/appointments/models.d.ts +391 -0
- package/dist/visoft/appointments/models.js +15 -0
- package/dist/visoft/availability/client.d.ts +10 -164
- package/dist/visoft/availability/client.js +9 -9
- package/dist/visoft/availability/index.d.ts +2 -2
- package/dist/visoft/availability/models.d.ts +154 -64
- package/dist/visoft/availability/models.js +10 -8
- package/dist/visoft/client.d.ts +6 -8
- package/dist/visoft/client.js +15 -20
- package/dist/visoft/clinic/client.d.ts +30 -0
- package/dist/visoft/clinic/client.js +18 -0
- package/dist/visoft/{specialtyRules → clinic}/index.d.ts +1 -0
- package/dist/visoft/clinic/index.js +4 -0
- package/dist/visoft/clinic/models.d.ts +13 -0
- package/dist/visoft/clinic/models.js +3 -0
- package/dist/visoft/clinics/client.d.ts +2 -31
- package/dist/visoft/clinics/client.js +1 -8
- package/dist/visoft/clinics/index.d.ts +2 -2
- package/dist/visoft/clinics/models.d.ts +13 -24
- package/dist/visoft/connections/client.d.ts +17 -74
- package/dist/visoft/connections/client.js +10 -11
- package/dist/visoft/connections/index.d.ts +1 -1
- package/dist/visoft/connections/models.d.ts +93 -1
- package/dist/visoft/connections/models.js +6 -0
- package/dist/visoft/contracts/client.d.ts +14 -49
- package/dist/visoft/contracts/client.js +2 -2
- package/dist/visoft/contracts/index.d.ts +1 -1
- package/dist/visoft/contracts/models.d.ts +43 -7
- package/dist/visoft/index.d.ts +1 -1
- package/dist/visoft/models.d.ts +311 -139
- package/dist/visoft/patients/client.d.ts +24 -264
- package/dist/visoft/patients/client.js +7 -6
- package/dist/visoft/patients/index.d.ts +1 -0
- package/dist/visoft/patients/models.d.ts +737 -0
- package/dist/visoft/patients/models.js +15 -0
- package/dist/visoft/professionals/client.d.ts +56 -0
- package/dist/visoft/professionals/client.js +18 -0
- package/dist/visoft/professionals/index.d.ts +5 -0
- package/dist/visoft/professionals/index.js +4 -0
- package/dist/visoft/professionals/models.d.ts +54 -0
- package/dist/visoft/professionals/models.js +3 -0
- package/dist/visoft/serviceCatalogs/client.d.ts +45 -0
- package/dist/visoft/serviceCatalogs/client.js +18 -0
- package/dist/visoft/serviceCatalogs/index.d.ts +5 -0
- package/dist/visoft/serviceCatalogs/index.js +4 -0
- package/dist/visoft/serviceCatalogs/models.d.ts +68 -0
- package/dist/visoft/serviceCatalogs/models.js +3 -0
- package/dist/visoft/services/client.d.ts +25 -61
- package/dist/visoft/services/client.js +2 -2
- package/dist/visoft/services/index.d.ts +1 -1
- package/dist/visoft/services/models.d.ts +52 -15
- package/package.json +9 -3
- package/dist/raiz/members/client.d.ts +0 -102
- package/dist/raiz/members/client.js +0 -35
- package/dist/raiz/members/index.d.ts +0 -5
- package/dist/raiz/members/models.d.ts +0 -48
- package/dist/raiz/members/models.js +0 -10
- package/dist/raiz/roles/index.d.ts +0 -5
- package/dist/raiz/roles/models.d.ts +0 -32
- package/dist/visoft/agencies/client.d.ts +0 -58
- package/dist/visoft/agencies/index.d.ts +0 -5
- package/dist/visoft/agencies/models.d.ts +0 -29
- package/dist/visoft/groups/client.d.ts +0 -69
- package/dist/visoft/groups/index.d.ts +0 -5
- package/dist/visoft/groups/models.d.ts +0 -39
- package/dist/visoft/specialtyRules/client.d.ts +0 -50
- package/dist/visoft/tools/index.d.ts +0 -5
- package/dist/visoft/tools/models.d.ts +0 -37
- /package/dist/{raiz/members → orsovision/agencies}/index.js +0 -0
- /package/dist/{raiz/roles → orsovision/agencies}/models.js +0 -0
- /package/dist/{raiz/roles → orsovision/appointments}/index.js +0 -0
- /package/dist/{visoft/agencies → orsovision/availability}/index.js +0 -0
- /package/dist/{visoft/groups → orsovision/clinic}/index.js +0 -0
- /package/dist/{visoft/agencies → orsovision/clinic}/models.js +0 -0
- /package/dist/{visoft/specialtyRules → orsovision/contracts}/index.js +0 -0
- /package/dist/{visoft/groups → orsovision/contracts}/models.js +0 -0
- /package/dist/{visoft/tools → orsovision}/models.js +0 -0
- /package/dist/{visoft/tools → orsovision/patients}/index.js +0 -0
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
import { type AvailabilityBookingInput, type ConnectionNotConfiguredFailure, type ConnectionNotFoundFailure, type ListAvailabilityBadGatewayFailure, type ListAvailabilityUnprocessableContentFailure, type PageInfo, type UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { SomosClinicNotServedFailure, SomosResponseMetadata, 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 professional, as a later search names them (medic).
|
|
28
|
+
*/
|
|
29
|
+
medicId: string;
|
|
30
|
+
/**
|
|
31
|
+
* The professional's name: this slot is theirs and no one else's.
|
|
32
|
+
*/
|
|
33
|
+
medicName: string;
|
|
34
|
+
modality?: string;
|
|
35
|
+
/**
|
|
36
|
+
* For a pair of consecutive exams: whether the next slot with the same
|
|
37
|
+
* professional is free too.
|
|
38
|
+
*/
|
|
39
|
+
pairable?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* The room, when the clinic schedules by room.
|
|
42
|
+
*/
|
|
43
|
+
sala?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The slot's specialty, as the clinic's agenda names it.
|
|
46
|
+
*/
|
|
47
|
+
specialty: string;
|
|
48
|
+
/**
|
|
49
|
+
* The slot's moment, with the clinic's offset: what somos.appointments.create
|
|
50
|
+
* books.
|
|
51
|
+
*/
|
|
52
|
+
startsAt: Temporal.Instant;
|
|
53
|
+
/**
|
|
54
|
+
* Deprecated: use `startsAt`. Answered until 2027-01-28.
|
|
55
|
+
*
|
|
56
|
+
* @deprecated
|
|
57
|
+
*/
|
|
58
|
+
time: string;
|
|
59
|
+
toGroup?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The booking reference somos.appointments.create takes, unchanged; null when
|
|
62
|
+
* the slot cannot be booked by reference.
|
|
63
|
+
*/
|
|
64
|
+
token: string | null;
|
|
65
|
+
/**
|
|
66
|
+
* The day's weekday.
|
|
67
|
+
*/
|
|
68
|
+
weekday: string;
|
|
69
|
+
/**
|
|
70
|
+
* requested: inside the dates and times asked for. extended: the dates asked
|
|
71
|
+
* for had none, so the search went on to the nearest. alternative: inside
|
|
72
|
+
* those dates but outside the time preference, which had none.
|
|
73
|
+
*/
|
|
74
|
+
window: "requested" | "extended" | "alternative";
|
|
75
|
+
}
|
|
76
|
+
export interface SomosAvailabilitySlotPage {
|
|
77
|
+
/**
|
|
78
|
+
* Items admitted by this resource contract within the verified organization.
|
|
79
|
+
*/
|
|
80
|
+
data: SomosAvailabilitySlot[];
|
|
81
|
+
/**
|
|
82
|
+
* Discriminator for a resource list response.
|
|
83
|
+
*/
|
|
84
|
+
object: "list";
|
|
85
|
+
/**
|
|
86
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
87
|
+
*/
|
|
88
|
+
pageInfo: PageInfo;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* A successful answer.
|
|
92
|
+
*/
|
|
93
|
+
export interface SomosAvailabilitySlotPageResponse {
|
|
94
|
+
data: SomosAvailabilitySlotPage;
|
|
95
|
+
error: null;
|
|
96
|
+
/**
|
|
97
|
+
* What every answer carries besides its data or error.
|
|
98
|
+
*/
|
|
99
|
+
metadata: SomosResponseMetadata;
|
|
100
|
+
success: true;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* A failed answer.
|
|
104
|
+
*/
|
|
105
|
+
export interface SomosListAvailabilityBadGatewayError {
|
|
106
|
+
data: null;
|
|
107
|
+
error: ListAvailabilityBadGatewayFailure;
|
|
108
|
+
/**
|
|
109
|
+
* What every answer carries besides its data or error.
|
|
110
|
+
*/
|
|
111
|
+
metadata: SomosResponseMetadata;
|
|
112
|
+
success: false;
|
|
113
|
+
}
|
|
114
|
+
export interface SomosListAvailabilityBody {
|
|
115
|
+
/**
|
|
116
|
+
* Solo para specialty=fisio: frase real del servicio en la autorización EPS
|
|
117
|
+
* cuando la modalidad la requiera. Para cualquier otra especialidad, omite
|
|
118
|
+
* este campo. Omite el campo en valoración/control de fisioterapia común.
|
|
119
|
+
* Nunca envíes x, NO, vacío ni otro relleno. Para biofeedback se requiere la
|
|
120
|
+
* frase exacta; no infieras el servicio de piso pélvico.
|
|
121
|
+
*/
|
|
122
|
+
authorizationService?: string;
|
|
123
|
+
/**
|
|
124
|
+
* The channel the conversation happens on: voice, whatsapp or web (the
|
|
125
|
+
* default).
|
|
126
|
+
*/
|
|
127
|
+
channel?: "voice" | "web" | "whatsapp";
|
|
128
|
+
/**
|
|
129
|
+
* The Visoft connection to run on, as Account lists it (con_…). Optional when
|
|
130
|
+
* the organization has one; required when it has several. Another
|
|
131
|
+
* organization's connection is CONNECTION_NOT_FOUND.
|
|
132
|
+
*/
|
|
133
|
+
connectionId?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Código exacto de respaldo, solo tras CONTRACT_SERVICE_UNRESOLVED y siempre
|
|
136
|
+
* junto a service.
|
|
137
|
+
*/
|
|
138
|
+
contract?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
141
|
+
*/
|
|
142
|
+
cursor?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Un día exacto YYYY-MM-DD cuando la persona nombró la fecha. Si ese día no
|
|
145
|
+
* tiene cupo, la respuesta ya trae los días más cercanos (window=extended):
|
|
146
|
+
* no vuelvas a consultar. Omítelo para buscar con from/to.
|
|
147
|
+
*/
|
|
148
|
+
date?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
151
|
+
*/
|
|
152
|
+
direction?: "forward" | "backward";
|
|
153
|
+
/**
|
|
154
|
+
* Obligatorio también con contract y service: documento confirmado de quien
|
|
155
|
+
* recibirá la cita. Reutiliza el documento ya escrito; permite conservar para
|
|
156
|
+
* ese paciente los códigos exactos del horario y reservar sin reconstruirlos
|
|
157
|
+
* desde su historial. No exige que el paciente ya esté registrado.
|
|
158
|
+
*/
|
|
159
|
+
documentNumber: string;
|
|
160
|
+
/**
|
|
161
|
+
* Obligatoria para paciente nuevo, sin historial útil para la especialidad o
|
|
162
|
+
* con cobertura cambiada; acepta el nombre oído porque el servidor normaliza
|
|
163
|
+
* aliases auditados. Con historial de la misma especialidad puede omitirse.
|
|
164
|
+
*/
|
|
165
|
+
eps?: string;
|
|
166
|
+
/**
|
|
167
|
+
* Grupo de control de Fono exacto, confirmado y validado con list_groups; el
|
|
168
|
+
* servidor verifica la edad registrada y requiere
|
|
169
|
+
* therapyHistory.fono.hasPriorVisit=true de un patient_context con
|
|
170
|
+
* therapyHistory.complete=true (sin evidencia completa es valoracion:
|
|
171
|
+
* THERAPY_VALUATION_REQUIRED).
|
|
172
|
+
*/
|
|
173
|
+
fonoGroup?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Inicio de la ventana YYYY-MM-DD (mañana por defecto). Usa from/to cuando la
|
|
176
|
+
* persona no dio fecha exacta.
|
|
177
|
+
*/
|
|
178
|
+
from?: string;
|
|
179
|
+
/**
|
|
180
|
+
* Confirmed intent for supported services. Audiometry and logoaudiometry use
|
|
181
|
+
* audio; inmitancia is external at MR. pruebas is only neuropsi cognitive
|
|
182
|
+
* testing; modalidad is only fisio and requires modality.
|
|
183
|
+
*/
|
|
184
|
+
intent: string;
|
|
185
|
+
/**
|
|
186
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
187
|
+
* another cursor.
|
|
188
|
+
*/
|
|
189
|
+
limit?: number;
|
|
190
|
+
/**
|
|
191
|
+
* Es válido consultar por nombre completo o parcial inequívoco del
|
|
192
|
+
* profesional; también acepta un identificador devuelto por el sistema. No
|
|
193
|
+
* hace falta pedir un ID a la persona. Conserva los filtros de la
|
|
194
|
+
* especialidad y aclara nombres ambiguos con los candidatos devueltos.
|
|
195
|
+
* Psicología conserva patient_context.psychologyContinuity; si omites medic,
|
|
196
|
+
* el servidor resuelve al profesional anterior. Cambiarlo exige aceptación
|
|
197
|
+
* explícita del nuevo nombre y professionalChangeConfirmed=true. Nunca
|
|
198
|
+
* elimines una preferencia de profesional sin aceptación.
|
|
199
|
+
*/
|
|
200
|
+
medic?: string;
|
|
201
|
+
/**
|
|
202
|
+
* Obligatoria cuando specialty=fisio e intent=modalidad: copia presoterapia,
|
|
203
|
+
* espirometria o pisopelvico-electroestim según lo confirmado. Biofeedback
|
|
204
|
+
* exige además authorizationService. Omítela en valoración/control común.
|
|
205
|
+
*/
|
|
206
|
+
modality?: string;
|
|
207
|
+
/**
|
|
208
|
+
* true para audiometría y logoaudiometría solicitadas juntas: buscar dos
|
|
209
|
+
* servicios distintos consecutivos y ofrecer solo inicios pairable. false u
|
|
210
|
+
* omitido para una audiometría sola. La logoaudiometría nunca es un examen
|
|
211
|
+
* solo: con su código el servidor busca la pareja aunque pairWithNext sea
|
|
212
|
+
* false.
|
|
213
|
+
*/
|
|
214
|
+
pairWithNext?: boolean;
|
|
215
|
+
/**
|
|
216
|
+
* Opcional: el servidor calcula los meses cumplidos con el nacimiento
|
|
217
|
+
* registrado y la fecha de la cita. Omítelo si ya hay documento; si lo envías
|
|
218
|
+
* y contradice el registro se rechaza (PATIENT_AGE_MISMATCH). Nunca determina
|
|
219
|
+
* el grupo.
|
|
220
|
+
*/
|
|
221
|
+
patientAgeMonths?: string;
|
|
222
|
+
/**
|
|
223
|
+
* Psychology only. true ONLY after explaining the previous treating
|
|
224
|
+
* professional and the proposed replacement and receiving explicit caller
|
|
225
|
+
* acceptance. Send the selected medic. Never infer consent from an upcoming
|
|
226
|
+
* booking, thanks, or agreement to a date. Omit to preserve attended-care
|
|
227
|
+
* continuity automatically. If the previous professional cannot be
|
|
228
|
+
* identified, explain that limitation instead of inventing their name;
|
|
229
|
+
* explicit acceptance of a real returned professionalCandidate permits the
|
|
230
|
+
* change.
|
|
231
|
+
*/
|
|
232
|
+
professionalChangeConfirmed?: boolean;
|
|
233
|
+
/**
|
|
234
|
+
* true solo si un profesional recién agregado no aparece; relee el directorio
|
|
235
|
+
* (caché de 1 h). Los cupos libres SIEMPRE se leen en vivo: refresh no
|
|
236
|
+
* 'actualiza' horarios.
|
|
237
|
+
*/
|
|
238
|
+
refresh?: boolean;
|
|
239
|
+
/**
|
|
240
|
+
* Solo para cobertura nueva o cambiada; omítelo para particular, Ecopetrol o
|
|
241
|
+
* FOMAG.
|
|
242
|
+
*/
|
|
243
|
+
regimen?: string;
|
|
244
|
+
/**
|
|
245
|
+
* Solo fisio control: la sala tal como la dijo la persona ('piso 1', '01',
|
|
246
|
+
* 'C1', 'segundo piso', 'neurodesarrollo'); el servidor la normaliza a
|
|
247
|
+
* piso-1, piso-2 o neurodesarrollo. Dedúcela del historial de fisio o
|
|
248
|
+
* pregúntala una vez: '¿piso uno, piso dos o neurodesarrollo?'. 'Piso
|
|
249
|
+
* pélvico' genérico = control en piso-1, nunca biofeedback. Omítela en
|
|
250
|
+
* valoracion y en las demás especialidades.
|
|
251
|
+
*/
|
|
252
|
+
sala?: string;
|
|
253
|
+
/**
|
|
254
|
+
* Código exacto de respaldo, solo tras CONTRACT_SERVICE_UNRESOLVED y siempre
|
|
255
|
+
* junto a contract.
|
|
256
|
+
*/
|
|
257
|
+
service?: string;
|
|
258
|
+
/**
|
|
259
|
+
* La especialidad pedida HOY por la persona, nunca deducida del historial.
|
|
260
|
+
* Acepta el nombre clínico o el código y lo normaliza al código interno.
|
|
261
|
+
*/
|
|
262
|
+
specialty: string;
|
|
263
|
+
/**
|
|
264
|
+
* Hora mínima inclusiva HH:MM, p. ej. 16:00 si la persona solo puede de 4 p.
|
|
265
|
+
* m. en adelante. Si con la franja no hay, la respuesta ya trae los cupos
|
|
266
|
+
* fuera de ella (window=alternative): ofrécelos sin consultar de nuevo.
|
|
267
|
+
*/
|
|
268
|
+
timeFrom?: string;
|
|
269
|
+
/**
|
|
270
|
+
* Hora máxima inclusiva HH:MM; omítela si no hay tope.
|
|
271
|
+
*/
|
|
272
|
+
timeTo?: string;
|
|
273
|
+
/**
|
|
274
|
+
* Fin de la ventana YYYY-MM-DD (from + 30 días por defecto). Si la ventana da
|
|
275
|
+
* cero, el servidor la amplía solo hasta 90 días; no la repitas más larga.
|
|
276
|
+
*/
|
|
277
|
+
to?: string;
|
|
278
|
+
/**
|
|
279
|
+
* Grupo de control de TO exacto, confirmado y validado con list_groups; el
|
|
280
|
+
* servidor verifica la edad registrada y requiere
|
|
281
|
+
* therapyHistory.to.hasPriorVisit=true de un patient_context con
|
|
282
|
+
* therapyHistory.complete=true. Solo valen los grupos vigentes para el mes de
|
|
283
|
+
* la cita.
|
|
284
|
+
*/
|
|
285
|
+
toGroup?: string;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* A failed answer.
|
|
289
|
+
*/
|
|
290
|
+
export interface SomosListAvailabilityConflictError {
|
|
291
|
+
data: null;
|
|
292
|
+
error: SomosListAvailabilityConflictFailure;
|
|
293
|
+
/**
|
|
294
|
+
* What every answer carries besides its data or error.
|
|
295
|
+
*/
|
|
296
|
+
metadata: SomosResponseMetadata;
|
|
297
|
+
success: false;
|
|
298
|
+
}
|
|
299
|
+
export type SomosListAvailabilityConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
|
|
300
|
+
/**
|
|
301
|
+
* A failed answer.
|
|
302
|
+
*/
|
|
303
|
+
export interface SomosListAvailabilityNotFoundError {
|
|
304
|
+
data: null;
|
|
305
|
+
error: SomosListAvailabilityNotFoundFailure;
|
|
306
|
+
/**
|
|
307
|
+
* What every answer carries besides its data or error.
|
|
308
|
+
*/
|
|
309
|
+
metadata: SomosResponseMetadata;
|
|
310
|
+
success: false;
|
|
311
|
+
}
|
|
312
|
+
export type SomosListAvailabilityNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
|
|
313
|
+
/**
|
|
314
|
+
* A failed answer.
|
|
315
|
+
*/
|
|
316
|
+
export interface SomosListAvailabilityServiceUnavailableError {
|
|
317
|
+
data: null;
|
|
318
|
+
error: SomosListAvailabilityServiceUnavailableFailure;
|
|
319
|
+
/**
|
|
320
|
+
* What every answer carries besides its data or error.
|
|
321
|
+
*/
|
|
322
|
+
metadata: SomosResponseMetadata;
|
|
323
|
+
success: false;
|
|
324
|
+
}
|
|
325
|
+
export type SomosListAvailabilityServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
|
|
326
|
+
/**
|
|
327
|
+
* A failed answer.
|
|
328
|
+
*/
|
|
329
|
+
export interface SomosListAvailabilityUnprocessableContentError {
|
|
330
|
+
data: null;
|
|
331
|
+
error: ListAvailabilityUnprocessableContentFailure;
|
|
332
|
+
/**
|
|
333
|
+
* What every answer carries besides its data or error.
|
|
334
|
+
*/
|
|
335
|
+
metadata: SomosResponseMetadata;
|
|
336
|
+
success: false;
|
|
337
|
+
}
|
|
338
|
+
export declare const SomosAvailabilitySlotCodec: import("../../_/codec.js").Codec;
|
|
339
|
+
export declare const SomosAvailabilitySlotPageCodec: import("../../_/codec.js").Codec;
|
|
340
|
+
export declare const SomosAvailabilitySlotPageResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
]);
|
|
@@ -0,0 +1,29 @@
|
|
|
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;
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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;
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "../../_/index.js";
|
|
2
|
+
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, GetRequest, GetResponse, } from "./client.js";
|
|
5
|
+
export type { SomosClinic, SomosClinicResponse, SomosGetClinicBadGatewayError, SomosGetClinicConflictError, SomosGetClinicConflictFailure, SomosGetClinicNotFoundError, SomosGetClinicNotFoundFailure, SomosGetClinicServiceUnavailableError, SomosGetClinicServiceUnavailableFailure, } from "./models.js";
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, GetClinicBadGatewayFailure, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { SomosClinicNotServedFailure, SomosResponseMetadata, 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: SomosResponseMetadata;
|
|
37
|
+
success: true;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A failed answer.
|
|
41
|
+
*/
|
|
42
|
+
export interface SomosGetClinicBadGatewayError {
|
|
43
|
+
data: null;
|
|
44
|
+
error: GetClinicBadGatewayFailure;
|
|
45
|
+
/**
|
|
46
|
+
* What every answer carries besides its data or error.
|
|
47
|
+
*/
|
|
48
|
+
metadata: SomosResponseMetadata;
|
|
49
|
+
success: false;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* A failed answer.
|
|
53
|
+
*/
|
|
54
|
+
export interface SomosGetClinicConflictError {
|
|
55
|
+
data: null;
|
|
56
|
+
error: SomosGetClinicConflictFailure;
|
|
57
|
+
/**
|
|
58
|
+
* What every answer carries besides its data or error.
|
|
59
|
+
*/
|
|
60
|
+
metadata: SomosResponseMetadata;
|
|
61
|
+
success: false;
|
|
62
|
+
}
|
|
63
|
+
export type SomosGetClinicConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
|
|
64
|
+
/**
|
|
65
|
+
* A failed answer.
|
|
66
|
+
*/
|
|
67
|
+
export interface SomosGetClinicNotFoundError {
|
|
68
|
+
data: null;
|
|
69
|
+
error: SomosGetClinicNotFoundFailure;
|
|
70
|
+
/**
|
|
71
|
+
* What every answer carries besides its data or error.
|
|
72
|
+
*/
|
|
73
|
+
metadata: SomosResponseMetadata;
|
|
74
|
+
success: false;
|
|
75
|
+
}
|
|
76
|
+
export type SomosGetClinicNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
|
|
77
|
+
/**
|
|
78
|
+
* A failed answer.
|
|
79
|
+
*/
|
|
80
|
+
export interface SomosGetClinicServiceUnavailableError {
|
|
81
|
+
data: null;
|
|
82
|
+
error: SomosGetClinicServiceUnavailableFailure;
|
|
83
|
+
/**
|
|
84
|
+
* What every answer carries besides its data or error.
|
|
85
|
+
*/
|
|
86
|
+
metadata: SomosResponseMetadata;
|
|
87
|
+
success: false;
|
|
88
|
+
}
|
|
89
|
+
export type SomosGetClinicServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
|
|
@@ -0,0 +1,74 @@
|
|
|
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;
|