@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
package/dist/visoft/models.d.ts
CHANGED
|
@@ -1,142 +1,314 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, Empty, ForbiddenFailure, InternalFailure, InvalidInputFailure, OutcomeUnknownFailure, RateLimitedFailure, RequestTooLargeFailure, UnauthorizedFailure, UnsupportedMediaTypeFailure, UpstreamTimeoutFailure, UpstreamUnavailableFailure } from "../models.js";
|
|
2
|
+
/**
|
|
3
|
+
* The cost centre is not one of the connection's clinic: use one
|
|
4
|
+
* visoft.clinic.get lists.
|
|
5
|
+
*/
|
|
6
|
+
export interface VisoftAgencyNotServedFailure {
|
|
7
|
+
/**
|
|
8
|
+
* The failure code, stable across releases.
|
|
9
|
+
*/
|
|
10
|
+
code: "AGENCY_NOT_SERVED";
|
|
11
|
+
/**
|
|
12
|
+
* No fields.
|
|
13
|
+
*/
|
|
14
|
+
data: Empty;
|
|
15
|
+
/**
|
|
16
|
+
* What went wrong, for people; it never contains input values.
|
|
17
|
+
*/
|
|
18
|
+
message: string;
|
|
19
|
+
/**
|
|
20
|
+
* Whether repeating the same request may succeed.
|
|
21
|
+
*/
|
|
22
|
+
retryable: false;
|
|
23
|
+
}
|
|
24
|
+
export interface VisoftClinic {
|
|
25
|
+
/**
|
|
26
|
+
* The clinic's cost centres, in the order SIIPS lists them: contracts,
|
|
27
|
+
* services, agendas and cancellations belong to one of them.
|
|
28
|
+
*/
|
|
29
|
+
agencies: VisoftClinicAgency[];
|
|
30
|
+
/**
|
|
31
|
+
* The clinic's SIIPS address.
|
|
32
|
+
*/
|
|
33
|
+
clinicalSystem: string;
|
|
34
|
+
/**
|
|
35
|
+
* The cost centre a clinical call that names no agencyCode runs at; null when
|
|
36
|
+
* every call must name one.
|
|
37
|
+
*/
|
|
38
|
+
defaultAgencyCode: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* The clinic, as a connection names it (`clinicId`).
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* The clinic's name.
|
|
45
|
+
*/
|
|
46
|
+
name: string;
|
|
47
|
+
/**
|
|
48
|
+
* The clinic's IANA timezone: SIIPS writes every agenda in its wall time, and
|
|
49
|
+
* every startsAt the clinical operations answer carries its offset.
|
|
50
|
+
*/
|
|
51
|
+
timezone: string;
|
|
52
|
+
}
|
|
53
|
+
export interface VisoftClinicAgency {
|
|
54
|
+
/**
|
|
55
|
+
* The cost centre's SIIPS code.
|
|
56
|
+
*/
|
|
57
|
+
code: string;
|
|
58
|
+
/**
|
|
59
|
+
* The cost centre's name.
|
|
60
|
+
*/
|
|
61
|
+
label: string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* A failed answer.
|
|
65
|
+
*/
|
|
66
|
+
export interface VisoftConnectionNotConfiguredError {
|
|
67
|
+
data: null;
|
|
68
|
+
/**
|
|
69
|
+
* The organization has no active Visoft connection for this call; an
|
|
70
|
+
* administrator connects Visoft in Account.
|
|
71
|
+
*/
|
|
72
|
+
error: ConnectionNotConfiguredFailure;
|
|
73
|
+
/**
|
|
74
|
+
* What every answer carries besides its data or error.
|
|
75
|
+
*/
|
|
76
|
+
metadata: VisoftResponseMetadata;
|
|
77
|
+
success: false;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* A failed answer.
|
|
81
|
+
*/
|
|
82
|
+
export interface VisoftConnectionNotFoundError {
|
|
83
|
+
data: null;
|
|
84
|
+
/**
|
|
85
|
+
* The organization has no such connection.
|
|
86
|
+
*/
|
|
87
|
+
error: ConnectionNotFoundFailure;
|
|
88
|
+
/**
|
|
89
|
+
* What every answer carries besides its data or error.
|
|
90
|
+
*/
|
|
91
|
+
metadata: VisoftResponseMetadata;
|
|
92
|
+
success: false;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* The clinic's cost centre has no current contract with that code.
|
|
96
|
+
*/
|
|
97
|
+
export interface VisoftContractNotFoundFailure {
|
|
98
|
+
/**
|
|
99
|
+
* The failure code, stable across releases.
|
|
100
|
+
*/
|
|
101
|
+
code: "CONTRACT_NOT_FOUND";
|
|
102
|
+
/**
|
|
103
|
+
* No fields.
|
|
104
|
+
*/
|
|
105
|
+
data: Empty;
|
|
106
|
+
/**
|
|
107
|
+
* What went wrong, for people; it never contains input values.
|
|
108
|
+
*/
|
|
109
|
+
message: string;
|
|
110
|
+
/**
|
|
111
|
+
* Whether repeating the same request may succeed.
|
|
112
|
+
*/
|
|
113
|
+
retryable: false;
|
|
114
|
+
}
|
|
115
|
+
export interface VisoftContractService {
|
|
116
|
+
/**
|
|
117
|
+
* The full service code: its code system, a hyphen and its value.
|
|
118
|
+
*/
|
|
119
|
+
code: string;
|
|
120
|
+
/**
|
|
121
|
+
* The code system: CUPS, PROPIO…
|
|
122
|
+
*/
|
|
123
|
+
codeSystem: string;
|
|
124
|
+
/**
|
|
125
|
+
* The code within its system.
|
|
126
|
+
*/
|
|
127
|
+
codeValue: string;
|
|
128
|
+
/**
|
|
129
|
+
* The service's name, as SIIPS spells it.
|
|
130
|
+
*/
|
|
131
|
+
name: string;
|
|
132
|
+
/**
|
|
133
|
+
* The price SIIPS lists, when it lists one.
|
|
134
|
+
*/
|
|
135
|
+
price: number | null;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* A failed answer.
|
|
139
|
+
*/
|
|
140
|
+
export interface VisoftForbiddenError {
|
|
141
|
+
data: null;
|
|
142
|
+
/**
|
|
143
|
+
* The token does not authorize this operation.
|
|
144
|
+
*/
|
|
145
|
+
error: ForbiddenFailure;
|
|
146
|
+
/**
|
|
147
|
+
* What every answer carries besides its data or error.
|
|
148
|
+
*/
|
|
149
|
+
metadata: VisoftResponseMetadata;
|
|
150
|
+
success: false;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* A failed answer.
|
|
154
|
+
*/
|
|
155
|
+
export interface VisoftInternalError {
|
|
156
|
+
data: null;
|
|
157
|
+
/**
|
|
158
|
+
* The service could not complete the operation.
|
|
159
|
+
*/
|
|
160
|
+
error: InternalFailure;
|
|
161
|
+
/**
|
|
162
|
+
* What every answer carries besides its data or error.
|
|
163
|
+
*/
|
|
164
|
+
metadata: VisoftResponseMetadata;
|
|
165
|
+
success: false;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* A failed answer.
|
|
169
|
+
*/
|
|
170
|
+
export interface VisoftInvalidInputError {
|
|
171
|
+
data: null;
|
|
172
|
+
/**
|
|
173
|
+
* The request does not match the published schema.
|
|
174
|
+
*/
|
|
175
|
+
error: InvalidInputFailure;
|
|
176
|
+
/**
|
|
177
|
+
* What every answer carries besides its data or error.
|
|
178
|
+
*/
|
|
179
|
+
metadata: VisoftResponseMetadata;
|
|
180
|
+
success: false;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* A failed answer.
|
|
184
|
+
*/
|
|
185
|
+
export interface VisoftOutcomeUnknownError {
|
|
186
|
+
data: null;
|
|
187
|
+
/**
|
|
188
|
+
* The operation may have been applied; check its result before repeating it.
|
|
189
|
+
*/
|
|
190
|
+
error: OutcomeUnknownFailure;
|
|
191
|
+
/**
|
|
192
|
+
* What every answer carries besides its data or error.
|
|
193
|
+
*/
|
|
194
|
+
metadata: VisoftResponseMetadata;
|
|
195
|
+
success: false;
|
|
196
|
+
}
|
|
197
|
+
export interface VisoftProfessional {
|
|
198
|
+
/**
|
|
199
|
+
* The professional's SIIPS id. Empty only in an availability answer of an
|
|
200
|
+
* agenda SIIPS lists without its professionals.
|
|
201
|
+
*/
|
|
202
|
+
id: string;
|
|
203
|
+
/**
|
|
204
|
+
* Their name as SIIPS labels it.
|
|
205
|
+
*/
|
|
206
|
+
label: string;
|
|
207
|
+
/**
|
|
208
|
+
* Their name, without the specialty SIIPS appends.
|
|
209
|
+
*/
|
|
210
|
+
name: string;
|
|
211
|
+
/**
|
|
212
|
+
* The specialty SIIPS appends to the label; empty when none.
|
|
213
|
+
*/
|
|
214
|
+
specialty: string;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* A failed answer.
|
|
218
|
+
*/
|
|
219
|
+
export interface VisoftRateLimitedError {
|
|
220
|
+
data: null;
|
|
221
|
+
/**
|
|
222
|
+
* The request rate limit was exceeded. Try again later.
|
|
223
|
+
*/
|
|
224
|
+
error: RateLimitedFailure;
|
|
225
|
+
/**
|
|
226
|
+
* What every answer carries besides its data or error.
|
|
227
|
+
*/
|
|
228
|
+
metadata: VisoftResponseMetadata;
|
|
229
|
+
success: false;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* A failed answer.
|
|
233
|
+
*/
|
|
234
|
+
export interface VisoftRequestTooLargeError {
|
|
235
|
+
data: null;
|
|
236
|
+
/**
|
|
237
|
+
* The request exceeds the allowed size.
|
|
238
|
+
*/
|
|
239
|
+
error: RequestTooLargeFailure;
|
|
240
|
+
/**
|
|
241
|
+
* What every answer carries besides its data or error.
|
|
242
|
+
*/
|
|
243
|
+
metadata: VisoftResponseMetadata;
|
|
244
|
+
success: false;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* What every answer carries besides its data or error.
|
|
248
|
+
*/
|
|
249
|
+
export interface VisoftResponseMetadata {
|
|
250
|
+
/**
|
|
251
|
+
* Request correlation identifier, also sent as X-Request-Id.
|
|
252
|
+
*/
|
|
253
|
+
requestId: string;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* A failed answer.
|
|
257
|
+
*/
|
|
258
|
+
export interface VisoftUnauthorizedError {
|
|
259
|
+
data: null;
|
|
260
|
+
/**
|
|
261
|
+
* A valid access token is required.
|
|
262
|
+
*/
|
|
263
|
+
error: UnauthorizedFailure;
|
|
264
|
+
/**
|
|
265
|
+
* What every answer carries besides its data or error.
|
|
266
|
+
*/
|
|
267
|
+
metadata: VisoftResponseMetadata;
|
|
268
|
+
success: false;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* A failed answer.
|
|
272
|
+
*/
|
|
273
|
+
export interface VisoftUnsupportedMediaTypeError {
|
|
274
|
+
data: null;
|
|
275
|
+
/**
|
|
276
|
+
* The request content type is not supported.
|
|
277
|
+
*/
|
|
278
|
+
error: UnsupportedMediaTypeFailure;
|
|
279
|
+
/**
|
|
280
|
+
* What every answer carries besides its data or error.
|
|
281
|
+
*/
|
|
282
|
+
metadata: VisoftResponseMetadata;
|
|
283
|
+
success: false;
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* A failed answer.
|
|
287
|
+
*/
|
|
288
|
+
export interface VisoftUpstreamTimeoutError {
|
|
289
|
+
data: null;
|
|
290
|
+
/**
|
|
291
|
+
* The upstream service did not respond before its deadline.
|
|
292
|
+
*/
|
|
293
|
+
error: UpstreamTimeoutFailure;
|
|
294
|
+
/**
|
|
295
|
+
* What every answer carries besides its data or error.
|
|
296
|
+
*/
|
|
297
|
+
metadata: VisoftResponseMetadata;
|
|
298
|
+
success: false;
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* A failed answer.
|
|
302
|
+
*/
|
|
303
|
+
export interface VisoftUpstreamUnavailableError {
|
|
3
304
|
data: null;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
code: "UNAUTHORIZED";
|
|
13
|
-
data: {
|
|
14
|
-
[key: string]: unknown;
|
|
15
|
-
};
|
|
16
|
-
message: "A valid access token is required.";
|
|
17
|
-
retryable: false;
|
|
18
|
-
} | {
|
|
19
|
-
code: "FORBIDDEN";
|
|
20
|
-
data: {
|
|
21
|
-
[key: string]: unknown;
|
|
22
|
-
};
|
|
23
|
-
message: "The token does not authorize this operation.";
|
|
24
|
-
retryable: false;
|
|
25
|
-
} | {
|
|
26
|
-
code: "NOT_FOUND";
|
|
27
|
-
data: {
|
|
28
|
-
[key: string]: unknown;
|
|
29
|
-
};
|
|
30
|
-
message: "The requested operation does not exist.";
|
|
31
|
-
retryable: false;
|
|
32
|
-
} | {
|
|
33
|
-
code: "HTTP_METHOD_NOT_ALLOWED";
|
|
34
|
-
data: {
|
|
35
|
-
[key: string]: unknown;
|
|
36
|
-
};
|
|
37
|
-
message: "The HTTP method is not supported for this resource.";
|
|
38
|
-
retryable: false;
|
|
39
|
-
} | {
|
|
40
|
-
code: "REQUEST_TOO_LARGE";
|
|
41
|
-
data: {
|
|
42
|
-
[key: string]: unknown;
|
|
43
|
-
};
|
|
44
|
-
message: "The request exceeds the allowed size.";
|
|
45
|
-
retryable: false;
|
|
46
|
-
} | {
|
|
47
|
-
code: "UNSUPPORTED_MEDIA_TYPE";
|
|
48
|
-
data: {
|
|
49
|
-
[key: string]: unknown;
|
|
50
|
-
};
|
|
51
|
-
message: "The request content type is not supported.";
|
|
52
|
-
retryable: false;
|
|
53
|
-
} | {
|
|
54
|
-
code: "RATE_LIMITED";
|
|
55
|
-
data: {
|
|
56
|
-
[key: string]: unknown;
|
|
57
|
-
};
|
|
58
|
-
message: "The request rate limit was exceeded. Try again later.";
|
|
59
|
-
retryable: true;
|
|
60
|
-
} | {
|
|
61
|
-
code: "INTERNAL_ERROR";
|
|
62
|
-
data: {
|
|
63
|
-
[key: string]: unknown;
|
|
64
|
-
};
|
|
65
|
-
message: "The service could not complete the operation.";
|
|
66
|
-
retryable: false;
|
|
67
|
-
} | {
|
|
68
|
-
code: "UPSTREAM_UNAVAILABLE";
|
|
69
|
-
data: {
|
|
70
|
-
[key: string]: unknown;
|
|
71
|
-
};
|
|
72
|
-
message: "The upstream service could not complete the request.";
|
|
73
|
-
retryable: true;
|
|
74
|
-
} | {
|
|
75
|
-
code: "UPSTREAM_TIMEOUT";
|
|
76
|
-
data: {
|
|
77
|
-
[key: string]: unknown;
|
|
78
|
-
};
|
|
79
|
-
message: "The upstream service did not respond before its deadline.";
|
|
80
|
-
retryable: true;
|
|
81
|
-
} | {
|
|
82
|
-
code: "OUTCOME_UNKNOWN";
|
|
83
|
-
data: {
|
|
84
|
-
[key: string]: unknown;
|
|
85
|
-
};
|
|
86
|
-
message: "The operation may have been applied; check its result before repeating it.";
|
|
87
|
-
retryable: false;
|
|
88
|
-
} | {
|
|
89
|
-
code: "CONNECTION_NOT_CONFIGURED";
|
|
90
|
-
data: {
|
|
91
|
-
[key: string]: unknown;
|
|
92
|
-
};
|
|
93
|
-
message: "The organization has no active Visoft connection for this call; an administrator connects Visoft in Account.";
|
|
94
|
-
retryable: false;
|
|
95
|
-
} | {
|
|
96
|
-
code: "CREDENTIALS_REJECTED";
|
|
97
|
-
data: {
|
|
98
|
-
[key: string]: unknown;
|
|
99
|
-
};
|
|
100
|
-
message: "The clinical system rejected the username or password, or the user is blocked.";
|
|
101
|
-
retryable: false;
|
|
102
|
-
} | {
|
|
103
|
-
code: "PROVIDER_UNAVAILABLE";
|
|
104
|
-
data: {
|
|
105
|
-
[key: string]: unknown;
|
|
106
|
-
};
|
|
107
|
-
message: "The clinical system did not answer or could not complete the request.";
|
|
108
|
-
retryable: true;
|
|
109
|
-
} | {
|
|
110
|
-
code: "TOOL_NOT_AVAILABLE";
|
|
111
|
-
data: {
|
|
112
|
-
[key: string]: unknown;
|
|
113
|
-
};
|
|
114
|
-
message: "This tool is unavailable for the organization's clinic; use only the tools its context lists.";
|
|
115
|
-
retryable: false;
|
|
116
|
-
} | {
|
|
117
|
-
code: "VISOFT_NOT_CONFIGURED";
|
|
118
|
-
data: {
|
|
119
|
-
[key: string]: unknown;
|
|
120
|
-
};
|
|
121
|
-
message: "Visoft is not configured to store or open clinic credentials.";
|
|
122
|
-
retryable: false;
|
|
123
|
-
} | {
|
|
124
|
-
code: "TOOL_REFUSED";
|
|
125
|
-
data: {
|
|
126
|
-
detail: string;
|
|
127
|
-
details: {
|
|
128
|
-
[key: string]: unknown;
|
|
129
|
-
};
|
|
130
|
-
guidance?: string;
|
|
131
|
-
reason: string;
|
|
132
|
-
say?: string;
|
|
133
|
-
};
|
|
134
|
-
message: "The clinic's rules did not answer the request as asked: data.reason says why and data.guidance what to do next. Nothing was changed.";
|
|
135
|
-
retryable: false;
|
|
136
|
-
});
|
|
137
|
-
metadata: ResponseMetadata;
|
|
305
|
+
/**
|
|
306
|
+
* The upstream service could not complete the request.
|
|
307
|
+
*/
|
|
308
|
+
error: UpstreamUnavailableFailure;
|
|
309
|
+
/**
|
|
310
|
+
* What every answer carries besides its data or error.
|
|
311
|
+
*/
|
|
312
|
+
metadata: VisoftResponseMetadata;
|
|
138
313
|
success: false;
|
|
139
314
|
}
|
|
140
|
-
export type VisoftToolResult = {
|
|
141
|
-
[key: string]: unknown;
|
|
142
|
-
};
|