@arbol-ai/sdk 5.36.0 → 5.38.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/dist/client.d.ts +4 -0
- package/dist/client.js +10 -0
- package/dist/comfachoco/affiliations/client.d.ts +3 -1
- package/dist/comfachoco/affiliations/index.d.ts +1 -1
- package/dist/comfachoco/affiliations/models.d.ts +13 -6
- package/dist/comfachoco/connections/models.d.ts +11 -11
- package/dist/comfachoco/index.d.ts +1 -1
- package/dist/comfachoco/models.d.ts +0 -63
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +63 -0
- package/dist/oficlinic/affiliateTypes/client.d.ts +55 -0
- package/dist/oficlinic/affiliateTypes/client.js +18 -0
- package/dist/oficlinic/affiliateTypes/index.d.ts +5 -0
- package/dist/oficlinic/affiliateTypes/index.js +4 -0
- package/dist/oficlinic/affiliateTypes/models.d.ts +135 -0
- package/dist/oficlinic/affiliateTypes/models.js +3 -0
- package/dist/oficlinic/appointments/client.d.ts +91 -0
- package/dist/oficlinic/appointments/client.js +35 -0
- package/dist/oficlinic/appointments/index.d.ts +5 -0
- package/dist/oficlinic/appointments/index.js +4 -0
- package/dist/oficlinic/appointments/models.d.ts +777 -0
- package/dist/oficlinic/appointments/models.js +15 -0
- package/dist/oficlinic/bookingDays/client.d.ts +64 -0
- package/dist/oficlinic/bookingDays/client.js +18 -0
- package/dist/oficlinic/bookingDays/index.d.ts +5 -0
- package/dist/oficlinic/bookingDays/index.js +4 -0
- package/dist/oficlinic/bookingDays/models.d.ts +142 -0
- package/dist/oficlinic/bookingDays/models.js +3 -0
- package/dist/oficlinic/bookingProfessionals/client.d.ts +76 -0
- package/dist/oficlinic/bookingProfessionals/client.js +19 -0
- package/dist/oficlinic/bookingProfessionals/index.d.ts +5 -0
- package/dist/oficlinic/bookingProfessionals/index.js +4 -0
- package/dist/oficlinic/bookingProfessionals/models.d.ts +159 -0
- package/dist/oficlinic/bookingProfessionals/models.js +12 -0
- package/dist/oficlinic/bookingRooms/client.d.ts +60 -0
- package/dist/oficlinic/bookingRooms/client.js +18 -0
- package/dist/oficlinic/bookingRooms/index.d.ts +5 -0
- package/dist/oficlinic/bookingRooms/index.js +4 -0
- package/dist/oficlinic/bookingRooms/models.d.ts +136 -0
- package/dist/oficlinic/bookingRooms/models.js +3 -0
- package/dist/oficlinic/bookingSlots/client.d.ts +63 -0
- package/dist/oficlinic/bookingSlots/client.js +19 -0
- package/dist/oficlinic/bookingSlots/index.d.ts +5 -0
- package/dist/oficlinic/bookingSlots/index.js +4 -0
- package/dist/oficlinic/bookingSlots/models.d.ts +167 -0
- package/dist/oficlinic/bookingSlots/models.js +13 -0
- package/dist/oficlinic/cancellationReasons/client.d.ts +49 -0
- package/dist/oficlinic/cancellationReasons/client.js +18 -0
- package/dist/oficlinic/cancellationReasons/index.d.ts +5 -0
- package/dist/oficlinic/cancellationReasons/index.js +4 -0
- package/dist/oficlinic/cancellationReasons/models.d.ts +114 -0
- package/dist/oficlinic/cancellationReasons/models.js +3 -0
- package/dist/oficlinic/client.d.ts +49 -0
- package/dist/oficlinic/client.js +105 -0
- package/dist/oficlinic/connections/client.d.ts +45 -0
- package/dist/oficlinic/connections/client.js +25 -0
- package/dist/oficlinic/connections/index.d.ts +5 -0
- package/dist/oficlinic/connections/index.js +4 -0
- package/dist/oficlinic/connections/models.d.ts +40 -0
- package/dist/oficlinic/connections/models.js +10 -0
- package/dist/oficlinic/index.d.ts +5 -0
- package/dist/oficlinic/index.js +4 -0
- package/dist/oficlinic/models.d.ts +403 -0
- package/dist/oficlinic/models.js +3 -0
- package/dist/oficlinic/patients/client.d.ts +27 -0
- package/dist/oficlinic/patients/client.js +19 -0
- package/dist/oficlinic/patients/index.d.ts +5 -0
- package/dist/oficlinic/patients/index.js +4 -0
- package/dist/oficlinic/patients/models.d.ts +134 -0
- package/dist/oficlinic/patients/models.js +13 -0
- package/dist/oficlinic/payerContracts/client.d.ts +55 -0
- package/dist/oficlinic/payerContracts/client.js +18 -0
- package/dist/oficlinic/payerContracts/index.d.ts +5 -0
- package/dist/oficlinic/payerContracts/index.js +4 -0
- package/dist/oficlinic/payerContracts/models.d.ts +154 -0
- package/dist/oficlinic/payerContracts/models.js +3 -0
- package/dist/oficlinic/payerPlans/client.d.ts +54 -0
- package/dist/oficlinic/payerPlans/client.js +18 -0
- package/dist/oficlinic/payerPlans/index.d.ts +5 -0
- package/dist/oficlinic/payerPlans/index.js +4 -0
- package/dist/oficlinic/payerPlans/models.d.ts +138 -0
- package/dist/oficlinic/payerPlans/models.js +3 -0
- package/dist/oficlinic/payerSubplans/client.d.ts +58 -0
- package/dist/oficlinic/payerSubplans/client.js +18 -0
- package/dist/oficlinic/payerSubplans/index.d.ts +5 -0
- package/dist/oficlinic/payerSubplans/index.js +4 -0
- package/dist/oficlinic/payerSubplans/models.d.ts +150 -0
- package/dist/oficlinic/payerSubplans/models.js +3 -0
- package/dist/oficlinic/payers/client.d.ts +50 -0
- package/dist/oficlinic/payers/client.js +18 -0
- package/dist/oficlinic/payers/index.d.ts +5 -0
- package/dist/oficlinic/payers/index.js +4 -0
- package/dist/oficlinic/payers/models.d.ts +139 -0
- package/dist/oficlinic/payers/models.js +3 -0
- package/dist/oficlinic/professionals/client.d.ts +51 -0
- package/dist/oficlinic/professionals/client.js +18 -0
- package/dist/oficlinic/professionals/index.d.ts +5 -0
- package/dist/oficlinic/professionals/index.js +4 -0
- package/dist/oficlinic/professionals/models.d.ts +125 -0
- package/dist/oficlinic/professionals/models.js +3 -0
- package/dist/oficlinic/programs/client.d.ts +54 -0
- package/dist/oficlinic/programs/client.js +18 -0
- package/dist/oficlinic/programs/index.d.ts +5 -0
- package/dist/oficlinic/programs/index.js +4 -0
- package/dist/oficlinic/programs/models.d.ts +133 -0
- package/dist/oficlinic/programs/models.js +3 -0
- package/dist/oficlinic/regimes/client.d.ts +50 -0
- package/dist/oficlinic/regimes/client.js +18 -0
- package/dist/oficlinic/regimes/index.d.ts +5 -0
- package/dist/oficlinic/regimes/index.js +4 -0
- package/dist/oficlinic/regimes/models.d.ts +117 -0
- package/dist/oficlinic/regimes/models.js +3 -0
- package/dist/oficlinic/relationships/client.d.ts +49 -0
- package/dist/oficlinic/relationships/client.js +18 -0
- package/dist/oficlinic/relationships/index.d.ts +5 -0
- package/dist/oficlinic/relationships/index.js +4 -0
- package/dist/oficlinic/relationships/models.d.ts +118 -0
- package/dist/oficlinic/relationships/models.js +3 -0
- package/dist/oficlinic/serviceCatalog/client.d.ts +50 -0
- package/dist/oficlinic/serviceCatalog/client.js +27 -0
- package/dist/oficlinic/serviceCatalog/index.d.ts +5 -0
- package/dist/oficlinic/serviceCatalog/index.js +4 -0
- package/dist/oficlinic/serviceCatalog/models.d.ts +126 -0
- package/dist/oficlinic/serviceCatalog/models.js +13 -0
- package/dist/oficlinic/services/client.d.ts +84 -0
- package/dist/oficlinic/services/client.js +27 -0
- package/dist/oficlinic/services/index.d.ts +5 -0
- package/dist/oficlinic/services/index.js +4 -0
- package/dist/oficlinic/services/models.d.ts +437 -0
- package/dist/oficlinic/services/models.js +12 -0
- package/dist/sanitas/affiliations/client.d.ts +22 -0
- package/dist/sanitas/affiliations/client.js +19 -0
- package/dist/sanitas/affiliations/index.d.ts +5 -0
- package/dist/sanitas/affiliations/index.js +4 -0
- package/dist/sanitas/affiliations/models.d.ts +86 -0
- package/dist/sanitas/affiliations/models.js +9 -0
- package/dist/sanitas/client.d.ts +15 -0
- package/dist/sanitas/client.js +20 -0
- package/dist/sanitas/connections/client.d.ts +25 -0
- package/dist/sanitas/connections/client.js +18 -0
- package/dist/sanitas/connections/index.d.ts +5 -0
- package/dist/sanitas/connections/index.js +4 -0
- package/dist/sanitas/connections/models.d.ts +74 -0
- package/dist/sanitas/connections/models.js +9 -0
- package/dist/sanitas/index.d.ts +5 -0
- package/dist/sanitas/index.js +4 -0
- package/dist/sanitas/models.d.ts +220 -0
- package/dist/sanitas/models.js +3 -0
- package/package.json +3 -3
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
import type { CredentialsRejectedFailure, Empty, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { OficlinicAgentText, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionNotFoundFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* The connection's service index is being built. Try again shortly.
|
|
5
|
+
*/
|
|
6
|
+
export interface OficlinicIndexNotReadyFailure {
|
|
7
|
+
/**
|
|
8
|
+
* The failure code, stable across releases.
|
|
9
|
+
*/
|
|
10
|
+
code: "INDEX_NOT_READY";
|
|
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: true;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The connection's service index could not be built. Staff must check the
|
|
26
|
+
* connection and sync the catalog.
|
|
27
|
+
*/
|
|
28
|
+
export interface OficlinicIndexUnavailableFailure {
|
|
29
|
+
/**
|
|
30
|
+
* The failure code, stable across releases.
|
|
31
|
+
*/
|
|
32
|
+
code: "INDEX_UNAVAILABLE";
|
|
33
|
+
/**
|
|
34
|
+
* No fields.
|
|
35
|
+
*/
|
|
36
|
+
data: Empty;
|
|
37
|
+
/**
|
|
38
|
+
* What went wrong, for people; it never contains input values.
|
|
39
|
+
*/
|
|
40
|
+
message: string;
|
|
41
|
+
/**
|
|
42
|
+
* Whether repeating the same request may succeed.
|
|
43
|
+
*/
|
|
44
|
+
retryable: false;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* A failed answer.
|
|
48
|
+
*/
|
|
49
|
+
export interface OficlinicListServicesBadGatewayError {
|
|
50
|
+
data: null;
|
|
51
|
+
error: OficlinicListServicesBadGatewayFailure;
|
|
52
|
+
/**
|
|
53
|
+
* What every answer carries besides its data or error.
|
|
54
|
+
*/
|
|
55
|
+
metadata: ResponseMetadata;
|
|
56
|
+
success: false;
|
|
57
|
+
}
|
|
58
|
+
export type OficlinicListServicesBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure;
|
|
59
|
+
/**
|
|
60
|
+
* A failed answer.
|
|
61
|
+
*/
|
|
62
|
+
export interface OficlinicListServicesBadRequestError {
|
|
63
|
+
data: null;
|
|
64
|
+
error: OficlinicListServicesBadRequestFailure;
|
|
65
|
+
/**
|
|
66
|
+
* What every answer carries besides its data or error.
|
|
67
|
+
*/
|
|
68
|
+
metadata: ResponseMetadata;
|
|
69
|
+
success: false;
|
|
70
|
+
}
|
|
71
|
+
export type OficlinicListServicesBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
|
|
72
|
+
/**
|
|
73
|
+
* A failed answer.
|
|
74
|
+
*/
|
|
75
|
+
export interface OficlinicListServicesConflictError {
|
|
76
|
+
data: null;
|
|
77
|
+
error: OficlinicListServicesConflictFailure;
|
|
78
|
+
/**
|
|
79
|
+
* What every answer carries besides its data or error.
|
|
80
|
+
*/
|
|
81
|
+
metadata: ResponseMetadata;
|
|
82
|
+
success: false;
|
|
83
|
+
}
|
|
84
|
+
export type OficlinicListServicesConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
|
|
85
|
+
export type OficlinicListServicesResult = OficlinicServiceCatalogPage | OficlinicAgentText;
|
|
86
|
+
/**
|
|
87
|
+
* A successful answer.
|
|
88
|
+
*/
|
|
89
|
+
export interface OficlinicListServicesResultResponse {
|
|
90
|
+
data: OficlinicListServicesResult;
|
|
91
|
+
error: null;
|
|
92
|
+
/**
|
|
93
|
+
* What every answer carries besides its data or error.
|
|
94
|
+
*/
|
|
95
|
+
metadata: ResponseMetadata;
|
|
96
|
+
success: true;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* A failed answer.
|
|
100
|
+
*/
|
|
101
|
+
export interface OficlinicListServicesServiceUnavailableError {
|
|
102
|
+
data: null;
|
|
103
|
+
error: OficlinicListServicesServiceUnavailableFailure;
|
|
104
|
+
/**
|
|
105
|
+
* What every answer carries besides its data or error.
|
|
106
|
+
*/
|
|
107
|
+
metadata: ResponseMetadata;
|
|
108
|
+
success: false;
|
|
109
|
+
}
|
|
110
|
+
export type OficlinicListServicesServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
|
|
111
|
+
/**
|
|
112
|
+
* A failed answer.
|
|
113
|
+
*/
|
|
114
|
+
export interface OficlinicListServicesTooManyRequestsError {
|
|
115
|
+
data: null;
|
|
116
|
+
error: OficlinicListServicesTooManyRequestsFailure;
|
|
117
|
+
/**
|
|
118
|
+
* What every answer carries besides its data or error.
|
|
119
|
+
*/
|
|
120
|
+
metadata: ResponseMetadata;
|
|
121
|
+
success: false;
|
|
122
|
+
}
|
|
123
|
+
export type OficlinicListServicesTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
|
|
124
|
+
/**
|
|
125
|
+
* A failed answer.
|
|
126
|
+
*/
|
|
127
|
+
export interface OficlinicListServicesUnprocessableContentError {
|
|
128
|
+
data: null;
|
|
129
|
+
error: OficlinicListServicesUnprocessableContentFailure;
|
|
130
|
+
/**
|
|
131
|
+
* What every answer carries besides its data or error.
|
|
132
|
+
*/
|
|
133
|
+
metadata: ResponseMetadata;
|
|
134
|
+
success: false;
|
|
135
|
+
}
|
|
136
|
+
export type OficlinicListServicesUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
|
|
137
|
+
/**
|
|
138
|
+
* The professional is not an active professional of the connection's indexed
|
|
139
|
+
* directory.
|
|
140
|
+
*/
|
|
141
|
+
export interface OficlinicProfessionalNotFoundFailure {
|
|
142
|
+
/**
|
|
143
|
+
* The failure code, stable across releases.
|
|
144
|
+
*/
|
|
145
|
+
code: "PROFESSIONAL_NOT_FOUND";
|
|
146
|
+
/**
|
|
147
|
+
* No fields.
|
|
148
|
+
*/
|
|
149
|
+
data: Empty;
|
|
150
|
+
/**
|
|
151
|
+
* What went wrong, for people; it never contains input values.
|
|
152
|
+
*/
|
|
153
|
+
message: string;
|
|
154
|
+
/**
|
|
155
|
+
* Whether repeating the same request may succeed.
|
|
156
|
+
*/
|
|
157
|
+
retryable: false;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* A failed answer.
|
|
161
|
+
*/
|
|
162
|
+
export interface OficlinicSearchServicesBadGatewayError {
|
|
163
|
+
data: null;
|
|
164
|
+
error: OficlinicSearchServicesBadGatewayFailure;
|
|
165
|
+
/**
|
|
166
|
+
* What every answer carries besides its data or error.
|
|
167
|
+
*/
|
|
168
|
+
metadata: ResponseMetadata;
|
|
169
|
+
success: false;
|
|
170
|
+
}
|
|
171
|
+
export type OficlinicSearchServicesBadGatewayFailure = OutcomeUnknownFailure | ProviderProtocolChangedFailure;
|
|
172
|
+
/**
|
|
173
|
+
* A failed answer.
|
|
174
|
+
*/
|
|
175
|
+
export interface OficlinicSearchServicesBadRequestError {
|
|
176
|
+
data: null;
|
|
177
|
+
error: OficlinicSearchServicesBadRequestFailure;
|
|
178
|
+
/**
|
|
179
|
+
* What every answer carries besides its data or error.
|
|
180
|
+
*/
|
|
181
|
+
metadata: ResponseMetadata;
|
|
182
|
+
success: false;
|
|
183
|
+
}
|
|
184
|
+
export type OficlinicSearchServicesBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
|
|
185
|
+
export interface OficlinicSearchServicesBody {
|
|
186
|
+
/**
|
|
187
|
+
* Only services whose master-catalog active flag is this value.
|
|
188
|
+
*/
|
|
189
|
+
active?: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* true answers { text }: concise Spanish facts for a messaging or voice
|
|
192
|
+
* agent, with the short ids and the cursor needed to continue. false, the
|
|
193
|
+
* default, answers the structured object.
|
|
194
|
+
*/
|
|
195
|
+
agentMode?: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* true (the default) keeps services configured for at least one active
|
|
198
|
+
* professional; false searches the whole master catalog.
|
|
199
|
+
*/
|
|
200
|
+
configuredOnly?: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* An Account connection id of the caller's organization.
|
|
203
|
+
*/
|
|
204
|
+
connectionId?: string;
|
|
205
|
+
/**
|
|
206
|
+
* An opaque cursor from a previous page's pageInfo.nextCursor or
|
|
207
|
+
* pageInfo.previousCursor.
|
|
208
|
+
*/
|
|
209
|
+
cursor?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
212
|
+
*/
|
|
213
|
+
direction?: "forward" | "backward";
|
|
214
|
+
/**
|
|
215
|
+
* Hard exclusions by service id.
|
|
216
|
+
*/
|
|
217
|
+
excludeServiceIds?: string[];
|
|
218
|
+
/**
|
|
219
|
+
* Hard exclusions: a service whose name or CUPS description has a word
|
|
220
|
+
* starting with any of these terms (accents ignored) is never answered.
|
|
221
|
+
*/
|
|
222
|
+
excludeTerms?: string[];
|
|
223
|
+
/**
|
|
224
|
+
* Also answer, below every direct match, services configured for active
|
|
225
|
+
* professionals whose specialty matches q, marked related_specialty. Not a
|
|
226
|
+
* claim of clinical equivalence.
|
|
227
|
+
*/
|
|
228
|
+
includeRelated?: boolean;
|
|
229
|
+
/**
|
|
230
|
+
* Maximum items returned in one page. Defaults to 10; larger reads require
|
|
231
|
+
* another cursor.
|
|
232
|
+
*/
|
|
233
|
+
limit?: number;
|
|
234
|
+
/**
|
|
235
|
+
* Only services configured for this active professional
|
|
236
|
+
* (GRID_PROCEDIMIENTOS); PROFESSIONAL_NOT_FOUND when the index holds no such
|
|
237
|
+
* active professional.
|
|
238
|
+
*/
|
|
239
|
+
professionalId?: string;
|
|
240
|
+
/**
|
|
241
|
+
* Free text: a service name in Spanish, words of it, or a provider id, code
|
|
242
|
+
* or CUPS code. Without it, the filtered services are listed in the
|
|
243
|
+
* provider's order.
|
|
244
|
+
*/
|
|
245
|
+
q?: string;
|
|
246
|
+
/**
|
|
247
|
+
* Only services configured for an active professional whose specialty
|
|
248
|
+
* contains these words (accents ignored).
|
|
249
|
+
*/
|
|
250
|
+
specialty?: string;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* A failed answer.
|
|
254
|
+
*/
|
|
255
|
+
export interface OficlinicSearchServicesConflictError {
|
|
256
|
+
data: null;
|
|
257
|
+
error: OficlinicSearchServicesConflictFailure;
|
|
258
|
+
/**
|
|
259
|
+
* What every answer carries besides its data or error.
|
|
260
|
+
*/
|
|
261
|
+
metadata: ResponseMetadata;
|
|
262
|
+
success: false;
|
|
263
|
+
}
|
|
264
|
+
export type OficlinicSearchServicesConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicReauthenticationRequiredFailure | OficlinicIndexUnavailableFailure;
|
|
265
|
+
/**
|
|
266
|
+
* A failed answer.
|
|
267
|
+
*/
|
|
268
|
+
export interface OficlinicSearchServicesNotFoundError {
|
|
269
|
+
data: null;
|
|
270
|
+
error: OficlinicSearchServicesNotFoundFailure;
|
|
271
|
+
/**
|
|
272
|
+
* What every answer carries besides its data or error.
|
|
273
|
+
*/
|
|
274
|
+
metadata: ResponseMetadata;
|
|
275
|
+
success: false;
|
|
276
|
+
}
|
|
277
|
+
export type OficlinicSearchServicesNotFoundFailure = OficlinicConnectionNotFoundFailure | OficlinicProfessionalNotFoundFailure;
|
|
278
|
+
export type OficlinicSearchServicesResult = OficlinicServiceSearchPage | OficlinicAgentText;
|
|
279
|
+
/**
|
|
280
|
+
* A successful answer.
|
|
281
|
+
*/
|
|
282
|
+
export interface OficlinicSearchServicesResultResponse {
|
|
283
|
+
data: OficlinicSearchServicesResult;
|
|
284
|
+
error: null;
|
|
285
|
+
/**
|
|
286
|
+
* What every answer carries besides its data or error.
|
|
287
|
+
*/
|
|
288
|
+
metadata: ResponseMetadata;
|
|
289
|
+
success: true;
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* A failed answer.
|
|
293
|
+
*/
|
|
294
|
+
export interface OficlinicSearchServicesServiceUnavailableError {
|
|
295
|
+
data: null;
|
|
296
|
+
error: OficlinicSearchServicesServiceUnavailableFailure;
|
|
297
|
+
/**
|
|
298
|
+
* What every answer carries besides its data or error.
|
|
299
|
+
*/
|
|
300
|
+
metadata: ResponseMetadata;
|
|
301
|
+
success: false;
|
|
302
|
+
}
|
|
303
|
+
export type OficlinicSearchServicesServiceUnavailableFailure = UpstreamUnavailableFailure | OficlinicIndexNotReadyFailure;
|
|
304
|
+
export interface OficlinicServiceCatalogEntry {
|
|
305
|
+
/**
|
|
306
|
+
* The provider's active flag (Activo, t or f); null for an unrecognized value
|
|
307
|
+
* and in a professional's configured list.
|
|
308
|
+
*/
|
|
309
|
+
active: boolean | null;
|
|
310
|
+
/**
|
|
311
|
+
* The provider's own service code (CodProced).
|
|
312
|
+
*/
|
|
313
|
+
code: string | null;
|
|
314
|
+
/**
|
|
315
|
+
* The CUPS code (CUPSCodigo).
|
|
316
|
+
*/
|
|
317
|
+
cupsCode: string | null;
|
|
318
|
+
/**
|
|
319
|
+
* The CUPS description (CUPSDescripcion); null in a professional's configured
|
|
320
|
+
* list, which does not carry it.
|
|
321
|
+
*/
|
|
322
|
+
cupsDescription: string | null;
|
|
323
|
+
/**
|
|
324
|
+
* The provider's service id (IdProced).
|
|
325
|
+
*/
|
|
326
|
+
id: string;
|
|
327
|
+
/**
|
|
328
|
+
* The service name (DesProced), as the provider spells it.
|
|
329
|
+
*/
|
|
330
|
+
name: string;
|
|
331
|
+
/**
|
|
332
|
+
* The provider's PreparacionEspecial value, unchanged; null in a
|
|
333
|
+
* professional's configured list.
|
|
334
|
+
*/
|
|
335
|
+
specialPreparation: string | null;
|
|
336
|
+
/**
|
|
337
|
+
* The provider's TipoEstudio value, unchanged.
|
|
338
|
+
*/
|
|
339
|
+
studyType: string | null;
|
|
340
|
+
}
|
|
341
|
+
export interface OficlinicServiceCatalogPage {
|
|
342
|
+
/**
|
|
343
|
+
* Items admitted by this resource contract within the verified organization.
|
|
344
|
+
*/
|
|
345
|
+
data: OficlinicServiceCatalogEntry[];
|
|
346
|
+
/**
|
|
347
|
+
* Discriminator for a resource list response.
|
|
348
|
+
*/
|
|
349
|
+
object: "list";
|
|
350
|
+
/**
|
|
351
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
352
|
+
*/
|
|
353
|
+
pageInfo: PageInfo;
|
|
354
|
+
}
|
|
355
|
+
export interface OficlinicServiceSearchPage {
|
|
356
|
+
/**
|
|
357
|
+
* Items admitted by this resource contract within the verified organization.
|
|
358
|
+
*/
|
|
359
|
+
data: OficlinicServiceSearchResult[];
|
|
360
|
+
/**
|
|
361
|
+
* Discriminator for a resource list response.
|
|
362
|
+
*/
|
|
363
|
+
object: "list";
|
|
364
|
+
/**
|
|
365
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
366
|
+
*/
|
|
367
|
+
pageInfo: PageInfo;
|
|
368
|
+
}
|
|
369
|
+
export interface OficlinicServiceSearchResult {
|
|
370
|
+
/**
|
|
371
|
+
* The provider's active flag (Activo, t or f); null for an unrecognized value
|
|
372
|
+
* and in a professional's configured list.
|
|
373
|
+
*/
|
|
374
|
+
active: boolean | null;
|
|
375
|
+
/**
|
|
376
|
+
* The provider's own service code (CodProced).
|
|
377
|
+
*/
|
|
378
|
+
code: string | null;
|
|
379
|
+
/**
|
|
380
|
+
* Whether at least one professional the provider lists as active has the
|
|
381
|
+
* service configured (GRID_PROCEDIMIENTOS) in the indexed generation.
|
|
382
|
+
* Configuration is not coverage, an authorization or an open slot.
|
|
383
|
+
*/
|
|
384
|
+
configured: boolean;
|
|
385
|
+
/**
|
|
386
|
+
* The CUPS code (CUPSCodigo).
|
|
387
|
+
*/
|
|
388
|
+
cupsCode: string | null;
|
|
389
|
+
/**
|
|
390
|
+
* The CUPS description (CUPSDescripcion); null in a professional's configured
|
|
391
|
+
* list, which does not carry it.
|
|
392
|
+
*/
|
|
393
|
+
cupsDescription: string | null;
|
|
394
|
+
/**
|
|
395
|
+
* The provider's service id (IdProced).
|
|
396
|
+
*/
|
|
397
|
+
id: string;
|
|
398
|
+
/**
|
|
399
|
+
* When the indexed generation was completed; results never mix generations,
|
|
400
|
+
* and an older one keeps serving while a refresh builds.
|
|
401
|
+
*/
|
|
402
|
+
indexedAt: Temporal.Instant;
|
|
403
|
+
/**
|
|
404
|
+
* code: q is the service's provider id, code or CUPS code. phrase: the name
|
|
405
|
+
* contains q. words: every word (or almost every word of a long q) matched
|
|
406
|
+
* exactly or as a prefix. approximate: some word matched only within a small
|
|
407
|
+
* spelling distance. related_specialty: includeRelated added it because an
|
|
408
|
+
* active professional configured for it has a specialty matching q; it is not
|
|
409
|
+
* an equivalent procedure. filter: no q, listed in the provider's order.
|
|
410
|
+
*/
|
|
411
|
+
match: "code" | "phrase" | "words" | "approximate" | "related_specialty" | "filter";
|
|
412
|
+
/**
|
|
413
|
+
* The service name (DesProced), as the provider spells it.
|
|
414
|
+
*/
|
|
415
|
+
name: string;
|
|
416
|
+
/**
|
|
417
|
+
* How many active professionals have the service configured.
|
|
418
|
+
*/
|
|
419
|
+
professionalCount: number;
|
|
420
|
+
/**
|
|
421
|
+
* For match related_specialty, the matching specialty as the provider spells
|
|
422
|
+
* it; otherwise null.
|
|
423
|
+
*/
|
|
424
|
+
relatedSpecialty: string | null;
|
|
425
|
+
/**
|
|
426
|
+
* The provider's PreparacionEspecial value, unchanged; null in a
|
|
427
|
+
* professional's configured list.
|
|
428
|
+
*/
|
|
429
|
+
specialPreparation: string | null;
|
|
430
|
+
/**
|
|
431
|
+
* The provider's TipoEstudio value, unchanged.
|
|
432
|
+
*/
|
|
433
|
+
studyType: string | null;
|
|
434
|
+
}
|
|
435
|
+
export declare const OficlinicSearchServicesResultResponseCodec: import("../../_/codec.js").Codec;
|
|
436
|
+
export declare const OficlinicServiceSearchPageCodec: import("../../_/codec.js").Codec;
|
|
437
|
+
export declare const OficlinicServiceSearchResultCodec: import("../../_/codec.js").Codec;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { array, instant, object } from "../../_/index.js";
|
|
4
|
+
export const OficlinicSearchServicesResultResponseCodec = object([
|
|
5
|
+
["data", null, () => OficlinicServiceSearchPageCodec],
|
|
6
|
+
]);
|
|
7
|
+
export const OficlinicServiceSearchPageCodec = object([
|
|
8
|
+
["data", null, array(() => OficlinicServiceSearchResultCodec)],
|
|
9
|
+
]);
|
|
10
|
+
export const OficlinicServiceSearchResultCodec = object([
|
|
11
|
+
["indexedAt", null, instant],
|
|
12
|
+
]);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import { type SanitasLookupAffiliationBody, type SanitasSanitasAffiliationResponse } 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
|
+
* Look up affiliation
|
|
12
|
+
*
|
|
13
|
+
* Read one matching member contract from an active Account connection.
|
|
14
|
+
* Unknown or unresolved is never inactive. Session cookies are reused; one
|
|
15
|
+
* renewal is admitted only on expiry. This does not authorize care.
|
|
16
|
+
*/
|
|
17
|
+
lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
|
|
18
|
+
}
|
|
19
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
20
|
+
export declare function bind(transport: Transport): Client;
|
|
21
|
+
export type LookupRequest = SanitasLookupAffiliationBody;
|
|
22
|
+
export type LookupResponse = SanitasSanitasAffiliationResponse;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { SanitasSanitasAffiliationResponseCodec, } from "./models.js";
|
|
5
|
+
export function createClient(options) {
|
|
6
|
+
return bind(new Transport(options));
|
|
7
|
+
}
|
|
8
|
+
export function bind(transport) {
|
|
9
|
+
return {
|
|
10
|
+
lookup: (request, options) => transport.send(LookupOperation, request, options),
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
const LookupOperation = {
|
|
14
|
+
method: "POST",
|
|
15
|
+
route: "/v1/sanitas/affiliations/lookup",
|
|
16
|
+
body: "flat",
|
|
17
|
+
response: SanitasSanitasAffiliationResponseCodec,
|
|
18
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
19
|
+
};
|
|
@@ -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, LookupRequest, LookupResponse, } from "./client.js";
|
|
5
|
+
export type { SanitasLookupAffiliationBadGatewayError, SanitasLookupAffiliationBadGatewayFailure, SanitasLookupAffiliationBody, SanitasLookupAffiliationConflictError, SanitasLookupAffiliationConflictFailure, SanitasLookupAffiliationServiceUnavailableError, SanitasLookupAffiliationServiceUnavailableFailure, SanitasLookupAffiliationTooManyRequestsError, SanitasLookupAffiliationTooManyRequestsFailure, SanitasSanitasAffiliation, SanitasSanitasAffiliationResponse, } from "./models.js";
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { OutcomeUnknownFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { SanitasConnectionRequiredFailure, SanitasLoginCoolingDownFailure, SanitasPatientUnresolvedFailure, SanitasProviderChallengeRequiredFailure, SanitasProviderProtocolChangedFailure, SanitasProviderSessionExpiredFailure, SanitasProviderUnavailableFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface SanitasLookupAffiliationBadGatewayError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: SanitasLookupAffiliationBadGatewayFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type SanitasLookupAffiliationBadGatewayFailure = OutcomeUnknownFailure | SanitasProviderProtocolChangedFailure;
|
|
16
|
+
export interface SanitasLookupAffiliationBody {
|
|
17
|
+
company?: "sanitas" | "colsanitas" | "medisanitas";
|
|
18
|
+
connectionId?: string;
|
|
19
|
+
documentNumber: string;
|
|
20
|
+
documentType: "AS" | "CC" | "CD" | "CE" | "CN" | "MS" | "NI" | "NU" | "PA" | "PD" | "PE" | "PT" | "RC" | "SC" | "TI";
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A failed answer.
|
|
24
|
+
*/
|
|
25
|
+
export interface SanitasLookupAffiliationConflictError {
|
|
26
|
+
data: null;
|
|
27
|
+
error: SanitasLookupAffiliationConflictFailure;
|
|
28
|
+
/**
|
|
29
|
+
* What every answer carries besides its data or error.
|
|
30
|
+
*/
|
|
31
|
+
metadata: ResponseMetadata;
|
|
32
|
+
success: false;
|
|
33
|
+
}
|
|
34
|
+
export type SanitasLookupAffiliationConflictFailure = SanitasConnectionRequiredFailure | SanitasProviderSessionExpiredFailure | SanitasPatientUnresolvedFailure;
|
|
35
|
+
/**
|
|
36
|
+
* A failed answer.
|
|
37
|
+
*/
|
|
38
|
+
export interface SanitasLookupAffiliationServiceUnavailableError {
|
|
39
|
+
data: null;
|
|
40
|
+
error: SanitasLookupAffiliationServiceUnavailableFailure;
|
|
41
|
+
/**
|
|
42
|
+
* What every answer carries besides its data or error.
|
|
43
|
+
*/
|
|
44
|
+
metadata: ResponseMetadata;
|
|
45
|
+
success: false;
|
|
46
|
+
}
|
|
47
|
+
export type SanitasLookupAffiliationServiceUnavailableFailure = UpstreamUnavailableFailure | SanitasProviderUnavailableFailure | SanitasProviderChallengeRequiredFailure;
|
|
48
|
+
/**
|
|
49
|
+
* A failed answer.
|
|
50
|
+
*/
|
|
51
|
+
export interface SanitasLookupAffiliationTooManyRequestsError {
|
|
52
|
+
data: null;
|
|
53
|
+
error: SanitasLookupAffiliationTooManyRequestsFailure;
|
|
54
|
+
/**
|
|
55
|
+
* What every answer carries besides its data or error.
|
|
56
|
+
*/
|
|
57
|
+
metadata: ResponseMetadata;
|
|
58
|
+
success: false;
|
|
59
|
+
}
|
|
60
|
+
export type SanitasLookupAffiliationTooManyRequestsFailure = RateLimitedFailure | SanitasLoginCoolingDownFailure;
|
|
61
|
+
export interface SanitasSanitasAffiliation {
|
|
62
|
+
active: boolean | null;
|
|
63
|
+
affiliateType: string | null;
|
|
64
|
+
category: string | null;
|
|
65
|
+
checkedAt: Temporal.Instant;
|
|
66
|
+
company: "sanitas" | "colsanitas" | "medisanitas";
|
|
67
|
+
contractNumber: string | null;
|
|
68
|
+
documentNumber: string;
|
|
69
|
+
documentType: "AS" | "CC" | "CD" | "CE" | "CN" | "MS" | "NI" | "NU" | "PA" | "PD" | "PE" | "PT" | "RC" | "SC" | "TI";
|
|
70
|
+
plan: string | null;
|
|
71
|
+
status: string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* A successful answer.
|
|
75
|
+
*/
|
|
76
|
+
export interface SanitasSanitasAffiliationResponse {
|
|
77
|
+
data: SanitasSanitasAffiliation;
|
|
78
|
+
error: null;
|
|
79
|
+
/**
|
|
80
|
+
* What every answer carries besides its data or error.
|
|
81
|
+
*/
|
|
82
|
+
metadata: ResponseMetadata;
|
|
83
|
+
success: true;
|
|
84
|
+
}
|
|
85
|
+
export declare const SanitasSanitasAffiliationCodec: import("../../_/codec.js").Codec;
|
|
86
|
+
export declare const SanitasSanitasAffiliationResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { instant, object } from "../../_/index.js";
|
|
4
|
+
export const SanitasSanitasAffiliationCodec = object([
|
|
5
|
+
["checkedAt", null, instant],
|
|
6
|
+
]);
|
|
7
|
+
export const SanitasSanitasAffiliationResponseCodec = object([
|
|
8
|
+
["data", null, () => SanitasSanitasAffiliationCodec],
|
|
9
|
+
]);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type BaseClientOptions, Transport } from "../_/index.js";
|
|
2
|
+
import { type Client as AffiliationsClient } from "./affiliations/client.js";
|
|
3
|
+
import { type Client as ConnectionsClient } from "./connections/client.js";
|
|
4
|
+
export interface ClientOptions extends BaseClientOptions {
|
|
5
|
+
/**
|
|
6
|
+
* The URL the paths of the API are relative to.
|
|
7
|
+
*/
|
|
8
|
+
baseUrl: string;
|
|
9
|
+
}
|
|
10
|
+
export interface Client {
|
|
11
|
+
readonly affiliations: AffiliationsClient;
|
|
12
|
+
readonly connections: ConnectionsClient;
|
|
13
|
+
}
|
|
14
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
15
|
+
export declare function bind(transport: Transport): Client;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport } from "../_/index.js";
|
|
4
|
+
import { bind as bindAffiliations, } from "./affiliations/client.js";
|
|
5
|
+
import { bind as bindConnections, } from "./connections/client.js";
|
|
6
|
+
export function createClient(options) {
|
|
7
|
+
return bind(new Transport(options));
|
|
8
|
+
}
|
|
9
|
+
export function bind(transport) {
|
|
10
|
+
let affiliationsClient;
|
|
11
|
+
let connectionsClient;
|
|
12
|
+
return {
|
|
13
|
+
get affiliations() {
|
|
14
|
+
return (affiliationsClient ??= bindAffiliations(transport));
|
|
15
|
+
},
|
|
16
|
+
get connections() {
|
|
17
|
+
return (connectionsClient ??= bindConnections(transport));
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import { type SanitasSanitasConnectionResponse } 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 connection
|
|
12
|
+
*
|
|
13
|
+
* Read safe status without contacting the provider.
|
|
14
|
+
*/
|
|
15
|
+
get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
|
|
16
|
+
}
|
|
17
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
18
|
+
export declare function bind(transport: Transport): Client;
|
|
19
|
+
export interface GetRequest {
|
|
20
|
+
/**
|
|
21
|
+
* The connection id.
|
|
22
|
+
*/
|
|
23
|
+
connectionId: string;
|
|
24
|
+
}
|
|
25
|
+
export type GetResponse = SanitasSanitasConnectionResponse;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { SanitasSanitasConnectionResponseCodec, } from "./models.js";
|
|
5
|
+
export function createClient(options) {
|
|
6
|
+
return bind(new Transport(options));
|
|
7
|
+
}
|
|
8
|
+
export function bind(transport) {
|
|
9
|
+
return {
|
|
10
|
+
get: (request, options) => transport.send(GetOperation, request, options),
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
const GetOperation = {
|
|
14
|
+
method: "GET",
|
|
15
|
+
route: "/v1/sanitas/connections/{connectionId}",
|
|
16
|
+
response: SanitasSanitasConnectionResponseCodec,
|
|
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
|
+
};
|