@arbol-ai/sdk 2.18.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/agents/models.d.ts +1 -0
- package/dist/raiz/client.d.ts +0 -4
- package/dist/raiz/client.js +0 -10
- package/dist/raiz/conversations/client.d.ts +7 -3
- package/dist/raiz/conversations/index.d.ts +1 -1
- package/dist/raiz/conversations/models.d.ts +22 -0
- 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,239 @@
|
|
|
1
|
+
import { type AvailabilityBookingInput, type ConnectionNotConfiguredFailure, type ConnectionNotFoundFailure, type ListAvailabilityBadGatewayFailure, type ListAvailabilityUnprocessableContentFailure, type PageInfo, type UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { OrsovisionClinicNotServedFailure, OrsovisionOrsovisionNotConfiguredFailure, OrsovisionResponseMetadata, OrsovisionToolNotAvailableFailure } from "../models.js";
|
|
3
|
+
export interface OrsovisionAvailabilitySlot {
|
|
4
|
+
/**
|
|
5
|
+
* The professional's agenda, when they run several.
|
|
6
|
+
*/
|
|
7
|
+
agenda?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Copy these exact arguments to orsovision.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
|
|
50
|
+
* orsovision.appointments.create 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 orsovision.appointments.create takes, unchanged; null
|
|
62
|
+
* when 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 OrsovisionAvailabilitySlotPage {
|
|
77
|
+
/**
|
|
78
|
+
* Items admitted by this resource contract within the verified organization.
|
|
79
|
+
*/
|
|
80
|
+
data: OrsovisionAvailabilitySlot[];
|
|
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 OrsovisionAvailabilitySlotPageResponse {
|
|
94
|
+
data: OrsovisionAvailabilitySlotPage;
|
|
95
|
+
error: null;
|
|
96
|
+
/**
|
|
97
|
+
* What every answer carries besides its data or error.
|
|
98
|
+
*/
|
|
99
|
+
metadata: OrsovisionResponseMetadata;
|
|
100
|
+
success: true;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* A failed answer.
|
|
104
|
+
*/
|
|
105
|
+
export interface OrsovisionListAvailabilityBadGatewayError {
|
|
106
|
+
data: null;
|
|
107
|
+
error: ListAvailabilityBadGatewayFailure;
|
|
108
|
+
/**
|
|
109
|
+
* What every answer carries besides its data or error.
|
|
110
|
+
*/
|
|
111
|
+
metadata: OrsovisionResponseMetadata;
|
|
112
|
+
success: false;
|
|
113
|
+
}
|
|
114
|
+
export interface OrsovisionListAvailabilityBody {
|
|
115
|
+
/**
|
|
116
|
+
* Código de sede elegido y confirmado con la persona.
|
|
117
|
+
*/
|
|
118
|
+
agency: string;
|
|
119
|
+
/**
|
|
120
|
+
* The channel the conversation happens on: voice, whatsapp or web (the
|
|
121
|
+
* default).
|
|
122
|
+
*/
|
|
123
|
+
channel?: "voice" | "web" | "whatsapp";
|
|
124
|
+
/**
|
|
125
|
+
* The Visoft connection to run on, as Account lists it (con_…). Optional when
|
|
126
|
+
* the organization has one; required when it has several. Another
|
|
127
|
+
* organization's connection is CONNECTION_NOT_FOUND.
|
|
128
|
+
*/
|
|
129
|
+
connectionId?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Código de contrato de list_contracts para esta misma sede.
|
|
132
|
+
*/
|
|
133
|
+
contract: string;
|
|
134
|
+
/**
|
|
135
|
+
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
136
|
+
*/
|
|
137
|
+
cursor?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Un día exacto YYYY-MM-DD cuando la persona nombró la fecha. Omítelo para
|
|
140
|
+
* buscar con from/to; nunca uses una ventana de un día en su lugar.
|
|
141
|
+
*/
|
|
142
|
+
date?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
145
|
+
*/
|
|
146
|
+
direction?: "forward" | "backward";
|
|
147
|
+
/**
|
|
148
|
+
* Opcional. Envíalo para que el servidor resuelva contrato y servicio desde
|
|
149
|
+
* el historial del paciente; omítelo si ya pasas contract y service. Leer la
|
|
150
|
+
* agenda no necesita paciente.
|
|
151
|
+
*/
|
|
152
|
+
documentNumber?: string;
|
|
153
|
+
/**
|
|
154
|
+
* Inicio de la ventana YYYY-MM-DD (mañana por defecto). Usa from/to cuando la
|
|
155
|
+
* persona no dio fecha exacta.
|
|
156
|
+
*/
|
|
157
|
+
from?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
160
|
+
* another cursor.
|
|
161
|
+
*/
|
|
162
|
+
limit?: number;
|
|
163
|
+
/**
|
|
164
|
+
* Id del profesional devuelto por una disponibilidad anterior. Omítelo si la
|
|
165
|
+
* persona acepta cualquier profesional; si pidió uno, consérvalo en TODAS las
|
|
166
|
+
* búsquedas siguientes y no lo quites sin su aceptación.
|
|
167
|
+
*/
|
|
168
|
+
medic?: string;
|
|
169
|
+
/**
|
|
170
|
+
* true solo si un profesional recién agregado no aparece; relee el directorio
|
|
171
|
+
* (caché de 1 h). Los cupos libres SIEMPRE se leen en vivo: refresh no
|
|
172
|
+
* 'actualiza' horarios.
|
|
173
|
+
*/
|
|
174
|
+
refresh?: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* Código de servicio AGENDABLE de get_contract_services para esta misma sede
|
|
177
|
+
* y contrato; nunca un producto óptico.
|
|
178
|
+
*/
|
|
179
|
+
service: string;
|
|
180
|
+
/**
|
|
181
|
+
* Fin de la ventana YYYY-MM-DD (from + 30 días por defecto). Para una fecha
|
|
182
|
+
* exacta pasa date, nunca una ventana de un día.
|
|
183
|
+
*/
|
|
184
|
+
to?: string;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* A failed answer.
|
|
188
|
+
*/
|
|
189
|
+
export interface OrsovisionListAvailabilityConflictError {
|
|
190
|
+
data: null;
|
|
191
|
+
error: OrsovisionListAvailabilityConflictFailure;
|
|
192
|
+
/**
|
|
193
|
+
* What every answer carries besides its data or error.
|
|
194
|
+
*/
|
|
195
|
+
metadata: OrsovisionResponseMetadata;
|
|
196
|
+
success: false;
|
|
197
|
+
}
|
|
198
|
+
export type OrsovisionListAvailabilityConflictFailure = ConnectionNotConfiguredFailure | OrsovisionClinicNotServedFailure;
|
|
199
|
+
/**
|
|
200
|
+
* A failed answer.
|
|
201
|
+
*/
|
|
202
|
+
export interface OrsovisionListAvailabilityNotFoundError {
|
|
203
|
+
data: null;
|
|
204
|
+
error: OrsovisionListAvailabilityNotFoundFailure;
|
|
205
|
+
/**
|
|
206
|
+
* What every answer carries besides its data or error.
|
|
207
|
+
*/
|
|
208
|
+
metadata: OrsovisionResponseMetadata;
|
|
209
|
+
success: false;
|
|
210
|
+
}
|
|
211
|
+
export type OrsovisionListAvailabilityNotFoundFailure = ConnectionNotFoundFailure | OrsovisionToolNotAvailableFailure;
|
|
212
|
+
/**
|
|
213
|
+
* A failed answer.
|
|
214
|
+
*/
|
|
215
|
+
export interface OrsovisionListAvailabilityServiceUnavailableError {
|
|
216
|
+
data: null;
|
|
217
|
+
error: OrsovisionListAvailabilityServiceUnavailableFailure;
|
|
218
|
+
/**
|
|
219
|
+
* What every answer carries besides its data or error.
|
|
220
|
+
*/
|
|
221
|
+
metadata: OrsovisionResponseMetadata;
|
|
222
|
+
success: false;
|
|
223
|
+
}
|
|
224
|
+
export type OrsovisionListAvailabilityServiceUnavailableFailure = UpstreamUnavailableFailure | OrsovisionOrsovisionNotConfiguredFailure;
|
|
225
|
+
/**
|
|
226
|
+
* A failed answer.
|
|
227
|
+
*/
|
|
228
|
+
export interface OrsovisionListAvailabilityUnprocessableContentError {
|
|
229
|
+
data: null;
|
|
230
|
+
error: ListAvailabilityUnprocessableContentFailure;
|
|
231
|
+
/**
|
|
232
|
+
* What every answer carries besides its data or error.
|
|
233
|
+
*/
|
|
234
|
+
metadata: OrsovisionResponseMetadata;
|
|
235
|
+
success: false;
|
|
236
|
+
}
|
|
237
|
+
export declare const OrsovisionAvailabilitySlotCodec: import("../../_/codec.js").Codec;
|
|
238
|
+
export declare const OrsovisionAvailabilitySlotPageCodec: import("../../_/codec.js").Codec;
|
|
239
|
+
export declare const OrsovisionAvailabilitySlotPageResponseCodec: 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 OrsovisionAvailabilitySlotCodec = object([
|
|
6
|
+
["bookingInput", null, () => AvailabilityBookingInputCodec],
|
|
7
|
+
["date", null, date],
|
|
8
|
+
["startsAt", null, instant],
|
|
9
|
+
]);
|
|
10
|
+
export const OrsovisionAvailabilitySlotPageCodec = object([
|
|
11
|
+
["data", null, array(() => OrsovisionAvailabilitySlotCodec)],
|
|
12
|
+
]);
|
|
13
|
+
export const OrsovisionAvailabilitySlotPageResponseCodec = object([
|
|
14
|
+
["data", null, () => OrsovisionAvailabilitySlotPageCodec],
|
|
15
|
+
]);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type BaseClientOptions, Transport } from "../_/index.js";
|
|
2
|
+
import { type Client as AgenciesClient } from "./agencies/client.js";
|
|
3
|
+
import { type Client as AppointmentsClient } from "./appointments/client.js";
|
|
4
|
+
import { type Client as AvailabilityClient } from "./availability/client.js";
|
|
5
|
+
import { type Client as ClinicClient } from "./clinic/client.js";
|
|
6
|
+
import { type Client as ContractsClient } from "./contracts/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 ToolsClient } from "./tools/client.js";
|
|
10
|
+
export interface ClientOptions extends BaseClientOptions {
|
|
11
|
+
/**
|
|
12
|
+
* The URL the paths of the API are relative to.
|
|
13
|
+
*/
|
|
14
|
+
baseUrl: string;
|
|
15
|
+
}
|
|
16
|
+
export interface Client {
|
|
17
|
+
readonly agencies: AgenciesClient;
|
|
18
|
+
readonly appointments: AppointmentsClient;
|
|
19
|
+
readonly availability: AvailabilityClient;
|
|
20
|
+
readonly clinic: ClinicClient;
|
|
21
|
+
readonly contracts: ContractsClient;
|
|
22
|
+
readonly patients: PatientsClient;
|
|
23
|
+
readonly services: ServicesClient;
|
|
24
|
+
readonly tools: ToolsClient;
|
|
25
|
+
}
|
|
26
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
27
|
+
export declare function bind(transport: Transport): Client;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport } from "../_/index.js";
|
|
4
|
+
import { bind as bindAgencies, } from "./agencies/client.js";
|
|
5
|
+
import { bind as bindAppointments, } from "./appointments/client.js";
|
|
6
|
+
import { bind as bindAvailability, } from "./availability/client.js";
|
|
7
|
+
import { bind as bindClinic, } from "./clinic/client.js";
|
|
8
|
+
import { bind as bindContracts, } from "./contracts/client.js";
|
|
9
|
+
import { bind as bindPatients, } from "./patients/client.js";
|
|
10
|
+
import { bind as bindServices, } from "./services/client.js";
|
|
11
|
+
import { bind as bindTools, } from "./tools/client.js";
|
|
12
|
+
export function createClient(options) {
|
|
13
|
+
return bind(new Transport(options));
|
|
14
|
+
}
|
|
15
|
+
export function bind(transport) {
|
|
16
|
+
let agenciesClient;
|
|
17
|
+
let appointmentsClient;
|
|
18
|
+
let availabilityClient;
|
|
19
|
+
let clinicClient;
|
|
20
|
+
let contractsClient;
|
|
21
|
+
let patientsClient;
|
|
22
|
+
let servicesClient;
|
|
23
|
+
let toolsClient;
|
|
24
|
+
return {
|
|
25
|
+
get agencies() {
|
|
26
|
+
return (agenciesClient ??= bindAgencies(transport));
|
|
27
|
+
},
|
|
28
|
+
get appointments() {
|
|
29
|
+
return (appointmentsClient ??= bindAppointments(transport));
|
|
30
|
+
},
|
|
31
|
+
get availability() {
|
|
32
|
+
return (availabilityClient ??= bindAvailability(transport));
|
|
33
|
+
},
|
|
34
|
+
get clinic() {
|
|
35
|
+
return (clinicClient ??= bindClinic(transport));
|
|
36
|
+
},
|
|
37
|
+
get contracts() {
|
|
38
|
+
return (contractsClient ??= bindContracts(transport));
|
|
39
|
+
},
|
|
40
|
+
get patients() {
|
|
41
|
+
return (patientsClient ??= bindPatients(transport));
|
|
42
|
+
},
|
|
43
|
+
get services() {
|
|
44
|
+
return (servicesClient ??= bindServices(transport));
|
|
45
|
+
},
|
|
46
|
+
get tools() {
|
|
47
|
+
return (toolsClient ??= bindTools(transport));
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { OrsovisionClinicResponse } 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 (orsovision.tools.list). An Agent reads it first in a
|
|
17
|
+
* conversation, to know the clinic and its time. A connection of another
|
|
18
|
+
* clinic is CLINIC_NOT_SERVED; another organization's is
|
|
19
|
+
* CONNECTION_NOT_FOUND. Contains no patient data and performs no clinical
|
|
20
|
+
* login.
|
|
21
|
+
*/
|
|
22
|
+
get(request?: GetRequest, options?: RequestOptions): Promise<GetResponse>;
|
|
23
|
+
}
|
|
24
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
25
|
+
export declare function bind(transport: Transport): Client;
|
|
26
|
+
export interface GetRequest {
|
|
27
|
+
/**
|
|
28
|
+
* The Visoft connection to run on, as Account lists it (con_…). Optional when
|
|
29
|
+
* the organization has one; required when it has several. Another
|
|
30
|
+
* organization's connection is CONNECTION_NOT_FOUND.
|
|
31
|
+
*/
|
|
32
|
+
connectionId?: string;
|
|
33
|
+
}
|
|
34
|
+
export type GetResponse = OrsovisionClinicResponse;
|
|
@@ -11,8 +11,8 @@ export function bind(transport) {
|
|
|
11
11
|
}
|
|
12
12
|
const GetOperation = {
|
|
13
13
|
method: "GET",
|
|
14
|
-
route: "/v1/
|
|
15
|
-
query: { connectionId: "connectionId"
|
|
14
|
+
route: "/v1/orsovision/clinic",
|
|
15
|
+
query: { connectionId: "connectionId" },
|
|
16
16
|
response: null,
|
|
17
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
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
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 { OrsovisionClinic, OrsovisionClinicResponse, OrsovisionGetClinicBadGatewayError, OrsovisionGetClinicConflictError, OrsovisionGetClinicConflictFailure, OrsovisionGetClinicNotFoundError, OrsovisionGetClinicNotFoundFailure, OrsovisionGetClinicServiceUnavailableError, OrsovisionGetClinicServiceUnavailableFailure, } from "./models.js";
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, GetClinicBadGatewayFailure, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { OrsovisionClinicNotServedFailure, OrsovisionOrsovisionNotConfiguredFailure, OrsovisionResponseMetadata, OrsovisionToolNotAvailableFailure } from "../models.js";
|
|
3
|
+
export interface OrsovisionClinic {
|
|
4
|
+
/**
|
|
5
|
+
* The clinic's SIIPS address.
|
|
6
|
+
*/
|
|
7
|
+
clinicalSystem: string;
|
|
8
|
+
/**
|
|
9
|
+
* The clinic, as the connection names it: orsovision.
|
|
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 (orsovision.tools.list): it
|
|
23
|
+
* changes whenever a tool's parameters or instructions do.
|
|
24
|
+
*/
|
|
25
|
+
toolsVersion: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A successful answer.
|
|
29
|
+
*/
|
|
30
|
+
export interface OrsovisionClinicResponse {
|
|
31
|
+
data: OrsovisionClinic;
|
|
32
|
+
error: null;
|
|
33
|
+
/**
|
|
34
|
+
* What every answer carries besides its data or error.
|
|
35
|
+
*/
|
|
36
|
+
metadata: OrsovisionResponseMetadata;
|
|
37
|
+
success: true;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A failed answer.
|
|
41
|
+
*/
|
|
42
|
+
export interface OrsovisionGetClinicBadGatewayError {
|
|
43
|
+
data: null;
|
|
44
|
+
error: GetClinicBadGatewayFailure;
|
|
45
|
+
/**
|
|
46
|
+
* What every answer carries besides its data or error.
|
|
47
|
+
*/
|
|
48
|
+
metadata: OrsovisionResponseMetadata;
|
|
49
|
+
success: false;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* A failed answer.
|
|
53
|
+
*/
|
|
54
|
+
export interface OrsovisionGetClinicConflictError {
|
|
55
|
+
data: null;
|
|
56
|
+
error: OrsovisionGetClinicConflictFailure;
|
|
57
|
+
/**
|
|
58
|
+
* What every answer carries besides its data or error.
|
|
59
|
+
*/
|
|
60
|
+
metadata: OrsovisionResponseMetadata;
|
|
61
|
+
success: false;
|
|
62
|
+
}
|
|
63
|
+
export type OrsovisionGetClinicConflictFailure = ConnectionNotConfiguredFailure | OrsovisionClinicNotServedFailure;
|
|
64
|
+
/**
|
|
65
|
+
* A failed answer.
|
|
66
|
+
*/
|
|
67
|
+
export interface OrsovisionGetClinicNotFoundError {
|
|
68
|
+
data: null;
|
|
69
|
+
error: OrsovisionGetClinicNotFoundFailure;
|
|
70
|
+
/**
|
|
71
|
+
* What every answer carries besides its data or error.
|
|
72
|
+
*/
|
|
73
|
+
metadata: OrsovisionResponseMetadata;
|
|
74
|
+
success: false;
|
|
75
|
+
}
|
|
76
|
+
export type OrsovisionGetClinicNotFoundFailure = ConnectionNotFoundFailure | OrsovisionToolNotAvailableFailure;
|
|
77
|
+
/**
|
|
78
|
+
* A failed answer.
|
|
79
|
+
*/
|
|
80
|
+
export interface OrsovisionGetClinicServiceUnavailableError {
|
|
81
|
+
data: null;
|
|
82
|
+
error: OrsovisionGetClinicServiceUnavailableFailure;
|
|
83
|
+
/**
|
|
84
|
+
* What every answer carries besides its data or error.
|
|
85
|
+
*/
|
|
86
|
+
metadata: OrsovisionResponseMetadata;
|
|
87
|
+
success: false;
|
|
88
|
+
}
|
|
89
|
+
export type OrsovisionGetClinicServiceUnavailableFailure = UpstreamUnavailableFailure | OrsovisionOrsovisionNotConfiguredFailure;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { OrsovisionContractPageResponse } 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 chain's current agreements (plans and payers) at one of its locations,
|
|
14
|
+
* in ascending code order. A name that matches no agreement is TOOL_REFUSED
|
|
15
|
+
* (CONTRACT_NOT_FOUND) with the closest names in details.didYouMean, to offer
|
|
16
|
+
* the person. Preserve the returned identifiers; a failed lookup never proves
|
|
17
|
+
* a patient lacks coverage. A refusal is TOOL_REFUSED: data.reason says why,
|
|
18
|
+
* data.guidance what to do next and data.details what it offers instead; it
|
|
19
|
+
* is never an outage. Orsovision's tool pack sets this tool's rules,
|
|
20
|
+
* parameters and accepted values (orsovision.tools.list answers them), and
|
|
21
|
+
* every call is checked against them.
|
|
22
|
+
*/
|
|
23
|
+
list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
24
|
+
}
|
|
25
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
26
|
+
export declare function bind(transport: Transport): Client;
|
|
27
|
+
export interface ListRequest {
|
|
28
|
+
/**
|
|
29
|
+
* Código de sede elegido en list_agencies. Los códigos de contrato no son
|
|
30
|
+
* portables entre sedes.
|
|
31
|
+
*/
|
|
32
|
+
agency: string;
|
|
33
|
+
/**
|
|
34
|
+
* Texto opcional de plan, aseguradora, convenio o pago particular para acotar
|
|
35
|
+
* el catálogo de la sede.
|
|
36
|
+
*/
|
|
37
|
+
q?: string;
|
|
38
|
+
/**
|
|
39
|
+
* true solo si la persona afirma que un convenio falta o acaba de
|
|
40
|
+
* habilitarse; relee el catálogo del sistema clínico en vez del caché de 12
|
|
41
|
+
* h.
|
|
42
|
+
*/
|
|
43
|
+
refresh?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
46
|
+
*/
|
|
47
|
+
cursor?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
50
|
+
*/
|
|
51
|
+
direction?: "forward" | "backward";
|
|
52
|
+
/**
|
|
53
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
54
|
+
* another cursor.
|
|
55
|
+
*/
|
|
56
|
+
limit?: number;
|
|
57
|
+
/**
|
|
58
|
+
* The Visoft connection to run on, as Account lists it (con_…). Optional when
|
|
59
|
+
* the organization has one; required when it has several. Another
|
|
60
|
+
* organization's connection is CONNECTION_NOT_FOUND.
|
|
61
|
+
*/
|
|
62
|
+
connectionId?: string;
|
|
63
|
+
/**
|
|
64
|
+
* The channel the conversation happens on: voice, whatsapp or web (the
|
|
65
|
+
* default).
|
|
66
|
+
*/
|
|
67
|
+
channel?: "voice" | "web" | "whatsapp";
|
|
68
|
+
}
|
|
69
|
+
export type ListResponse = OrsovisionContractPageResponse;
|
|
@@ -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
|
+
list: (request, options) => transport.send(ListOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const ListOperation = {
|
|
13
|
+
method: "GET",
|
|
14
|
+
route: "/v1/orsovision/contracts",
|
|
15
|
+
query: { agency: "agency", q: "q", refresh: "refresh", cursor: "cursor", direction: "direction", limit: "limit", connectionId: "connectionId", channel: "channel" },
|
|
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, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
+
export type { OrsovisionContract, OrsovisionContractPage, OrsovisionContractPageResponse, OrsovisionListContractsBadGatewayError, OrsovisionListContractsConflictError, OrsovisionListContractsConflictFailure, OrsovisionListContractsNotFoundError, OrsovisionListContractsNotFoundFailure, OrsovisionListContractsServiceUnavailableError, OrsovisionListContractsServiceUnavailableFailure, OrsovisionListContractsUnprocessableContentError, } from "./models.js";
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, ListContractsBadGatewayFailure, ListContractsUnprocessableContentFailure, PageInfo, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { OrsovisionClinicNotServedFailure, OrsovisionOrsovisionNotConfiguredFailure, OrsovisionResponseMetadata, OrsovisionToolNotAvailableFailure } from "../models.js";
|
|
3
|
+
export interface OrsovisionContract {
|
|
4
|
+
/**
|
|
5
|
+
* The contract, as orsovision.services.list and
|
|
6
|
+
* orsovision.availability.lookup take it.
|
|
7
|
+
*/
|
|
8
|
+
code: string;
|
|
9
|
+
/**
|
|
10
|
+
* The only specialties this contract schedules, when the clinic splits a
|
|
11
|
+
* payer into several contracts: another specialty is in a sibling contract of
|
|
12
|
+
* the same payer.
|
|
13
|
+
*/
|
|
14
|
+
covers?: string[];
|
|
15
|
+
/**
|
|
16
|
+
* The contract's name: the payer or plan, to say to the person.
|
|
17
|
+
*/
|
|
18
|
+
name: string;
|
|
19
|
+
}
|
|
20
|
+
export interface OrsovisionContractPage {
|
|
21
|
+
/**
|
|
22
|
+
* Items admitted by this resource contract within the verified organization.
|
|
23
|
+
*/
|
|
24
|
+
data: OrsovisionContract[];
|
|
25
|
+
/**
|
|
26
|
+
* Discriminator for a resource list response.
|
|
27
|
+
*/
|
|
28
|
+
object: "list";
|
|
29
|
+
/**
|
|
30
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
31
|
+
*/
|
|
32
|
+
pageInfo: PageInfo;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A successful answer.
|
|
36
|
+
*/
|
|
37
|
+
export interface OrsovisionContractPageResponse {
|
|
38
|
+
data: OrsovisionContractPage;
|
|
39
|
+
error: null;
|
|
40
|
+
/**
|
|
41
|
+
* What every answer carries besides its data or error.
|
|
42
|
+
*/
|
|
43
|
+
metadata: OrsovisionResponseMetadata;
|
|
44
|
+
success: true;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* A failed answer.
|
|
48
|
+
*/
|
|
49
|
+
export interface OrsovisionListContractsBadGatewayError {
|
|
50
|
+
data: null;
|
|
51
|
+
error: ListContractsBadGatewayFailure;
|
|
52
|
+
/**
|
|
53
|
+
* What every answer carries besides its data or error.
|
|
54
|
+
*/
|
|
55
|
+
metadata: OrsovisionResponseMetadata;
|
|
56
|
+
success: false;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* A failed answer.
|
|
60
|
+
*/
|
|
61
|
+
export interface OrsovisionListContractsConflictError {
|
|
62
|
+
data: null;
|
|
63
|
+
error: OrsovisionListContractsConflictFailure;
|
|
64
|
+
/**
|
|
65
|
+
* What every answer carries besides its data or error.
|
|
66
|
+
*/
|
|
67
|
+
metadata: OrsovisionResponseMetadata;
|
|
68
|
+
success: false;
|
|
69
|
+
}
|
|
70
|
+
export type OrsovisionListContractsConflictFailure = ConnectionNotConfiguredFailure | OrsovisionClinicNotServedFailure;
|
|
71
|
+
/**
|
|
72
|
+
* A failed answer.
|
|
73
|
+
*/
|
|
74
|
+
export interface OrsovisionListContractsNotFoundError {
|
|
75
|
+
data: null;
|
|
76
|
+
error: OrsovisionListContractsNotFoundFailure;
|
|
77
|
+
/**
|
|
78
|
+
* What every answer carries besides its data or error.
|
|
79
|
+
*/
|
|
80
|
+
metadata: OrsovisionResponseMetadata;
|
|
81
|
+
success: false;
|
|
82
|
+
}
|
|
83
|
+
export type OrsovisionListContractsNotFoundFailure = ConnectionNotFoundFailure | OrsovisionToolNotAvailableFailure;
|
|
84
|
+
/**
|
|
85
|
+
* A failed answer.
|
|
86
|
+
*/
|
|
87
|
+
export interface OrsovisionListContractsServiceUnavailableError {
|
|
88
|
+
data: null;
|
|
89
|
+
error: OrsovisionListContractsServiceUnavailableFailure;
|
|
90
|
+
/**
|
|
91
|
+
* What every answer carries besides its data or error.
|
|
92
|
+
*/
|
|
93
|
+
metadata: OrsovisionResponseMetadata;
|
|
94
|
+
success: false;
|
|
95
|
+
}
|
|
96
|
+
export type OrsovisionListContractsServiceUnavailableFailure = UpstreamUnavailableFailure | OrsovisionOrsovisionNotConfiguredFailure;
|
|
97
|
+
/**
|
|
98
|
+
* A failed answer.
|
|
99
|
+
*/
|
|
100
|
+
export interface OrsovisionListContractsUnprocessableContentError {
|
|
101
|
+
data: null;
|
|
102
|
+
error: ListContractsUnprocessableContentFailure;
|
|
103
|
+
/**
|
|
104
|
+
* What every answer carries besides its data or error.
|
|
105
|
+
*/
|
|
106
|
+
metadata: OrsovisionResponseMetadata;
|
|
107
|
+
success: false;
|
|
108
|
+
}
|