@arbol-ai/sdk 3.0.1 → 4.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 +23 -0
- package/dist/account/apiKeys/client.d.ts +15 -47
- package/dist/account/apiKeys/client.js +11 -12
- package/dist/account/apiKeys/index.d.ts +1 -1
- package/dist/account/apiKeys/models.d.ts +164 -1
- package/dist/account/apiKeys/models.js +6 -0
- package/dist/account/billing/client.d.ts +4 -10
- package/dist/account/billing/client.js +7 -7
- package/dist/account/billing/index.d.ts +2 -2
- package/dist/account/billing/models.d.ts +32 -0
- package/dist/account/billing/models.js +5 -2
- package/dist/account/billingProfiles/client.d.ts +13 -24
- package/dist/account/billingProfiles/client.js +4 -4
- package/dist/account/billingProfiles/index.d.ts +1 -1
- package/dist/account/billingProfiles/models.d.ts +48 -0
- package/dist/account/client.d.ts +6 -0
- package/dist/account/client.js +15 -0
- package/dist/account/connections/client.d.ts +2 -200
- package/dist/account/connections/client.js +1 -25
- package/dist/account/connections/index.d.ts +2 -2
- package/dist/account/connections/models.d.ts +22 -7
- package/dist/account/index.d.ts +1 -1
- package/dist/account/invitations/client.d.ts +9 -38
- package/dist/account/invitations/client.js +8 -9
- package/dist/account/invitations/index.d.ts +1 -1
- package/dist/account/invitations/models.d.ts +221 -2
- package/dist/account/invitations/models.js +6 -0
- package/dist/account/invoiceDocuments/client.d.ts +25 -0
- package/dist/account/invoiceDocuments/client.js +17 -0
- package/dist/account/invoiceDocuments/index.d.ts +5 -0
- package/dist/account/invoiceDocuments/index.js +4 -0
- package/dist/account/invoiceDocuments/models.d.ts +35 -0
- package/dist/account/invoiceDocuments/models.js +3 -0
- package/dist/account/invoices/client.d.ts +7 -34
- package/dist/account/invoices/client.js +7 -14
- package/dist/account/invoices/index.d.ts +2 -2
- package/dist/account/invoices/models.d.ts +66 -1
- package/dist/account/invoices/models.js +8 -0
- package/dist/account/members/client.d.ts +14 -55
- package/dist/account/members/client.js +6 -7
- package/dist/account/members/index.d.ts +1 -1
- package/dist/account/members/models.d.ts +261 -2
- package/dist/account/models.d.ts +210 -259
- package/dist/account/organization/client.d.ts +31 -0
- package/dist/account/organization/client.js +25 -0
- package/dist/account/organization/index.d.ts +5 -0
- package/dist/account/organization/index.js +4 -0
- package/dist/account/organization/models.d.ts +89 -0
- package/dist/account/organization/models.js +3 -0
- package/dist/account/organizations/client.d.ts +2 -48
- package/dist/account/organizations/client.js +1 -16
- package/dist/account/organizations/index.d.ts +2 -2
- package/dist/account/organizations/models.d.ts +26 -37
- package/dist/account/payments/client.d.ts +2 -8
- package/dist/account/payments/client.js +4 -4
- package/dist/account/payments/index.d.ts +1 -1
- package/dist/account/payments/models.d.ts +28 -1
- package/dist/account/payments/models.js +3 -0
- package/dist/account/permissions/client.d.ts +2 -8
- package/dist/account/permissions/client.js +1 -1
- package/dist/account/permissions/index.d.ts +1 -1
- package/dist/account/permissions/models.d.ts +27 -1
- package/dist/account/roles/client.d.ts +2 -8
- package/dist/account/roles/client.js +1 -1
- package/dist/account/roles/index.d.ts +1 -1
- package/dist/account/roles/models.d.ts +27 -1
- package/dist/account/usage/client.d.ts +7 -44
- package/dist/account/usage/client.js +5 -13
- package/dist/account/usage/index.d.ts +2 -2
- package/dist/account/usage/models.d.ts +27 -1
- package/dist/account/usageSummary/client.d.ts +26 -0
- package/dist/account/usageSummary/client.js +19 -0
- package/dist/account/usageSummary/index.d.ts +5 -0
- package/dist/account/usageSummary/index.js +4 -0
- package/dist/account/usageSummary/models.d.ts +50 -0
- package/dist/account/usageSummary/models.js +9 -0
- package/dist/account/walletTransactions/client.d.ts +2 -8
- package/dist/account/walletTransactions/client.js +4 -4
- package/dist/account/walletTransactions/index.d.ts +1 -1
- package/dist/account/walletTransactions/models.d.ts +28 -1
- package/dist/account/walletTransactions/models.js +3 -0
- package/dist/agenda/appointments/client.d.ts +6 -7
- package/dist/agenda/availability/client.d.ts +3 -4
- package/dist/agenda/bookings/client.d.ts +11 -12
- package/dist/agenda/index.d.ts +1 -1
- package/dist/agenda/locations/client.d.ts +2 -3
- package/dist/agenda/locations/client.js +1 -1
- package/dist/agenda/models.d.ts +8 -2
- package/dist/agenda/offerings/client.d.ts +4 -4
- package/dist/agenda/resources/client.d.ts +4 -4
- package/dist/agenda/scheduleRules/client.d.ts +4 -4
- package/dist/agenda/services/client.d.ts +4 -4
- package/dist/agenda/waitlist/client.d.ts +3 -4
- package/dist/axxa/authorizations/client.d.ts +2 -2
- package/dist/axxa/connections/client.d.ts +6 -5
- package/dist/axxa/eligibility/client.d.ts +2 -2
- package/dist/axxa/index.d.ts +1 -1
- package/dist/axxa/models.d.ts +8 -2
- package/dist/axxa/provider/client.d.ts +2 -2
- package/dist/gmedic/agendaServices/client.d.ts +2 -2
- package/dist/gmedic/agendas/client.d.ts +2 -2
- package/dist/gmedic/appointments/client.d.ts +4 -4
- package/dist/gmedic/availability/client.d.ts +2 -2
- package/dist/gmedic/availableDays/client.d.ts +2 -2
- package/dist/gmedic/branchOffices/client.d.ts +2 -2
- package/dist/gmedic/connections/client.d.ts +6 -5
- package/dist/gmedic/dictionaryEntries/client.d.ts +2 -2
- package/dist/gmedic/healthPartners/client.d.ts +2 -2
- package/dist/gmedic/healthPromotionEntities/client.d.ts +2 -2
- package/dist/gmedic/index.d.ts +1 -1
- package/dist/gmedic/laboralRiskManagers/client.d.ts +2 -2
- package/dist/gmedic/models.d.ts +8 -2
- package/dist/gmedic/occupations/client.d.ts +2 -2
- package/dist/gmedic/patientNotes/client.d.ts +4 -4
- package/dist/gmedic/patients/client.d.ts +4 -4
- package/dist/gmedic/services/client.d.ts +2 -2
- package/dist/gmedic/sessionPackages/client.d.ts +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +293 -5
- package/dist/nuevaEps/affiliations/models.d.ts +8 -8
- package/dist/nuevaEps/connections/client.d.ts +3 -2
- package/dist/nuevaEps/connections/index.d.ts +1 -1
- package/dist/nuevaEps/connections/models.d.ts +25 -37
- package/dist/nuevaEps/index.d.ts +1 -1
- package/dist/nuevaEps/models.d.ts +2 -101
- package/dist/orsovision/agencies/models.d.ts +8 -8
- package/dist/orsovision/appointments/client.d.ts +3 -3
- package/dist/orsovision/appointments/index.d.ts +1 -1
- package/dist/orsovision/appointments/models.d.ts +8 -32
- package/dist/orsovision/availability/index.d.ts +1 -1
- package/dist/orsovision/availability/models.d.ts +9 -20
- package/dist/orsovision/clinic/index.d.ts +1 -1
- package/dist/orsovision/clinic/models.d.ts +9 -8
- package/dist/orsovision/contracts/index.d.ts +1 -1
- package/dist/orsovision/contracts/models.d.ts +6 -30
- package/dist/orsovision/index.d.ts +1 -1
- package/dist/orsovision/models.d.ts +1 -162
- package/dist/orsovision/patients/client.d.ts +4 -4
- package/dist/orsovision/patients/index.d.ts +1 -1
- package/dist/orsovision/patients/models.d.ts +17 -27
- package/dist/orsovision/services/index.d.ts +1 -1
- package/dist/orsovision/services/models.d.ts +6 -30
- package/dist/orsovision/tools/index.d.ts +1 -1
- package/dist/orsovision/tools/models.d.ts +9 -8
- package/dist/raiz/agents/client.d.ts +5 -6
- package/dist/raiz/bulletins/client.d.ts +7 -6
- package/dist/raiz/campaigns/client.d.ts +5 -6
- package/dist/raiz/changes/client.d.ts +2 -2
- package/dist/raiz/channels/client.d.ts +9 -9
- package/dist/raiz/contacts/client.d.ts +7 -8
- package/dist/raiz/contacts/client.js +1 -1
- package/dist/raiz/conversations/client.d.ts +8 -8
- package/dist/raiz/definitions/client.d.ts +5 -5
- package/dist/raiz/evalCases/client.d.ts +4 -4
- package/dist/raiz/evalRuns/client.d.ts +3 -4
- package/dist/raiz/facts/client.d.ts +3 -4
- package/dist/raiz/facts/client.js +1 -1
- package/dist/raiz/index.d.ts +1 -1
- package/dist/raiz/knowledge/client.d.ts +6 -7
- package/dist/raiz/models.d.ts +8 -2
- package/dist/raiz/organization/client.d.ts +4 -5
- package/dist/raiz/profiles/client.d.ts +5 -6
- package/dist/raiz/reports/client.d.ts +2 -2
- package/dist/raiz/suppressions/client.d.ts +3 -4
- package/dist/raiz/tasks/client.d.ts +5 -6
- package/dist/raiz/tasks/client.js +1 -1
- package/dist/raiz/templates/client.d.ts +3 -4
- package/dist/raiz/voices/client.d.ts +2 -2
- package/dist/somos/appointments/client.d.ts +3 -3
- package/dist/somos/appointments/index.d.ts +1 -1
- package/dist/somos/appointments/models.d.ts +14 -12
- package/dist/somos/availability/index.d.ts +1 -1
- package/dist/somos/availability/models.d.ts +9 -20
- package/dist/somos/clinic/index.d.ts +1 -1
- package/dist/somos/clinic/models.d.ts +9 -8
- package/dist/somos/contracts/index.d.ts +1 -1
- package/dist/somos/contracts/models.d.ts +9 -20
- package/dist/somos/groups/models.d.ts +9 -9
- package/dist/somos/index.d.ts +1 -1
- package/dist/somos/models.d.ts +12 -151
- package/dist/somos/patients/client.d.ts +4 -4
- package/dist/somos/patients/index.d.ts +1 -1
- package/dist/somos/patients/models.d.ts +20 -17
- package/dist/somos/services/index.d.ts +1 -1
- package/dist/somos/services/models.d.ts +15 -26
- package/dist/somos/specialtyRules/client.d.ts +2 -2
- package/dist/somos/specialtyRules/models.d.ts +7 -7
- package/dist/somos/tools/index.d.ts +1 -1
- package/dist/somos/tools/models.d.ts +9 -8
- package/dist/sura/affiliations/client.d.ts +2 -3
- package/dist/sura/appointments/client.d.ts +5 -6
- package/dist/sura/authorizations/client.d.ts +2 -3
- package/dist/sura/availability/client.d.ts +2 -3
- package/dist/sura/connections/client.d.ts +6 -5
- package/dist/sura/copays/client.d.ts +2 -3
- package/dist/sura/index.d.ts +1 -1
- package/dist/sura/models.d.ts +8 -2
- package/dist/sura/operations/client.d.ts +2 -3
- package/dist/sura/patients/client.d.ts +2 -3
- package/dist/sura/professionals/client.d.ts +2 -3
- package/dist/sura/services/client.d.ts +2 -3
- package/dist/visoft/appointments/index.d.ts +1 -1
- package/dist/visoft/appointments/models.d.ts +8 -32
- package/dist/visoft/availability/models.d.ts +6 -6
- package/dist/visoft/clinic/models.d.ts +3 -2
- package/dist/visoft/clinics/models.d.ts +3 -3
- package/dist/visoft/connections/client.d.ts +3 -2
- package/dist/visoft/connections/index.d.ts +1 -1
- package/dist/visoft/connections/models.d.ts +4 -17
- package/dist/visoft/contracts/index.d.ts +1 -1
- package/dist/visoft/contracts/models.d.ts +4 -16
- package/dist/visoft/index.d.ts +1 -1
- package/dist/visoft/models.d.ts +3 -162
- package/dist/visoft/patients/index.d.ts +1 -1
- package/dist/visoft/patients/models.d.ts +10 -38
- package/dist/visoft/professionals/models.d.ts +5 -5
- package/dist/visoft/serviceCatalogs/models.d.ts +6 -6
- package/dist/visoft/services/index.d.ts +1 -1
- package/dist/visoft/services/models.d.ts +5 -17
- package/package.json +3 -3
package/dist/somos/models.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Empty } from "../models.js";
|
|
2
2
|
/**
|
|
3
3
|
* The connection signs in to another clinic's SIIPS: this backend serves Somos
|
|
4
4
|
* Salud's alone.
|
|
@@ -22,104 +22,26 @@ export interface SomosClinicNotServedFailure {
|
|
|
22
22
|
retryable: false;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* The connected service rejected the backend request before changing any
|
|
26
|
+
* record. An administrator must review the integration.
|
|
26
27
|
*/
|
|
27
|
-
export interface
|
|
28
|
-
data: null;
|
|
28
|
+
export interface SomosProviderRequestRefusedFailure {
|
|
29
29
|
/**
|
|
30
|
-
* The
|
|
31
|
-
* blocked.
|
|
32
|
-
*/
|
|
33
|
-
error: CredentialsRejectedFailure;
|
|
34
|
-
/**
|
|
35
|
-
* What every answer carries besides its data or error.
|
|
36
|
-
*/
|
|
37
|
-
metadata: SomosResponseMetadata;
|
|
38
|
-
success: false;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* A failed answer.
|
|
42
|
-
*/
|
|
43
|
-
export interface SomosForbiddenError {
|
|
44
|
-
data: null;
|
|
45
|
-
/**
|
|
46
|
-
* The token does not authorize this operation.
|
|
47
|
-
*/
|
|
48
|
-
error: ForbiddenFailure;
|
|
49
|
-
/**
|
|
50
|
-
* What every answer carries besides its data or error.
|
|
51
|
-
*/
|
|
52
|
-
metadata: SomosResponseMetadata;
|
|
53
|
-
success: false;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* A failed answer.
|
|
57
|
-
*/
|
|
58
|
-
export interface SomosInternalError {
|
|
59
|
-
data: null;
|
|
60
|
-
/**
|
|
61
|
-
* The service could not complete the operation.
|
|
62
|
-
*/
|
|
63
|
-
error: InternalFailure;
|
|
64
|
-
/**
|
|
65
|
-
* What every answer carries besides its data or error.
|
|
66
|
-
*/
|
|
67
|
-
metadata: SomosResponseMetadata;
|
|
68
|
-
success: false;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* A failed answer.
|
|
72
|
-
*/
|
|
73
|
-
export interface SomosInvalidInputError {
|
|
74
|
-
data: null;
|
|
75
|
-
/**
|
|
76
|
-
* The request does not match the published schema.
|
|
77
|
-
*/
|
|
78
|
-
error: InvalidInputFailure;
|
|
79
|
-
/**
|
|
80
|
-
* What every answer carries besides its data or error.
|
|
81
|
-
*/
|
|
82
|
-
metadata: SomosResponseMetadata;
|
|
83
|
-
success: false;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* A failed answer.
|
|
87
|
-
*/
|
|
88
|
-
export interface SomosRateLimitedError {
|
|
89
|
-
data: null;
|
|
90
|
-
/**
|
|
91
|
-
* The request rate limit was exceeded. Try again later.
|
|
30
|
+
* The failure code, stable across releases.
|
|
92
31
|
*/
|
|
93
|
-
|
|
32
|
+
code: "PROVIDER_REQUEST_REFUSED";
|
|
94
33
|
/**
|
|
95
|
-
*
|
|
96
|
-
*/
|
|
97
|
-
metadata: SomosResponseMetadata;
|
|
98
|
-
success: false;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* A failed answer.
|
|
102
|
-
*/
|
|
103
|
-
export interface SomosRequestTooLargeError {
|
|
104
|
-
data: null;
|
|
105
|
-
/**
|
|
106
|
-
* The request exceeds the allowed size.
|
|
34
|
+
* No fields.
|
|
107
35
|
*/
|
|
108
|
-
|
|
36
|
+
data: Empty;
|
|
109
37
|
/**
|
|
110
|
-
* What
|
|
38
|
+
* What went wrong, for people; it never contains input values.
|
|
111
39
|
*/
|
|
112
|
-
|
|
113
|
-
success: false;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* What every answer carries besides its data or error.
|
|
117
|
-
*/
|
|
118
|
-
export interface SomosResponseMetadata {
|
|
40
|
+
message: string;
|
|
119
41
|
/**
|
|
120
|
-
*
|
|
42
|
+
* Whether repeating the same request may succeed.
|
|
121
43
|
*/
|
|
122
|
-
|
|
44
|
+
retryable: false;
|
|
123
45
|
}
|
|
124
46
|
/**
|
|
125
47
|
* This backend is not configured to sign its references.
|
|
@@ -164,64 +86,3 @@ export interface SomosToolNotAvailableFailure {
|
|
|
164
86
|
*/
|
|
165
87
|
retryable: false;
|
|
166
88
|
}
|
|
167
|
-
/**
|
|
168
|
-
* A successful answer.
|
|
169
|
-
*/
|
|
170
|
-
export interface SomosToolResultResponse {
|
|
171
|
-
/**
|
|
172
|
-
* The tool's clinical answer. ok:false is a conversational refusal the Agent
|
|
173
|
-
* reads (error, errorCode, ai_hint), not a failure.
|
|
174
|
-
*/
|
|
175
|
-
data: ToolResult;
|
|
176
|
-
error: null;
|
|
177
|
-
/**
|
|
178
|
-
* What every answer carries besides its data or error.
|
|
179
|
-
*/
|
|
180
|
-
metadata: SomosResponseMetadata;
|
|
181
|
-
success: true;
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* A failed answer.
|
|
185
|
-
*/
|
|
186
|
-
export interface SomosUnauthorizedError {
|
|
187
|
-
data: null;
|
|
188
|
-
/**
|
|
189
|
-
* A valid access token is required.
|
|
190
|
-
*/
|
|
191
|
-
error: UnauthorizedFailure;
|
|
192
|
-
/**
|
|
193
|
-
* What every answer carries besides its data or error.
|
|
194
|
-
*/
|
|
195
|
-
metadata: SomosResponseMetadata;
|
|
196
|
-
success: false;
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* A failed answer.
|
|
200
|
-
*/
|
|
201
|
-
export interface SomosUnsupportedMediaTypeError {
|
|
202
|
-
data: null;
|
|
203
|
-
/**
|
|
204
|
-
* The request content type is not supported.
|
|
205
|
-
*/
|
|
206
|
-
error: UnsupportedMediaTypeFailure;
|
|
207
|
-
/**
|
|
208
|
-
* What every answer carries besides its data or error.
|
|
209
|
-
*/
|
|
210
|
-
metadata: SomosResponseMetadata;
|
|
211
|
-
success: false;
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* A failed answer.
|
|
215
|
-
*/
|
|
216
|
-
export interface SomosUpstreamTimeoutError {
|
|
217
|
-
data: null;
|
|
218
|
-
/**
|
|
219
|
-
* The upstream service did not respond before its deadline.
|
|
220
|
-
*/
|
|
221
|
-
error: UpstreamTimeoutFailure;
|
|
222
|
-
/**
|
|
223
|
-
* What every answer carries besides its data or error.
|
|
224
|
-
*/
|
|
225
|
-
metadata: SomosResponseMetadata;
|
|
226
|
-
success: false;
|
|
227
|
-
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ToolResultResponse } from "../../models.js";
|
|
3
3
|
import type { SomosCorrectPatientBody, SomosCreatePatientBody, SomosLookupPatientBody } from "./models.js";
|
|
4
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
5
|
/**
|
|
@@ -44,8 +44,8 @@ export interface Client {
|
|
|
44
44
|
export declare function createClient(options: ClientOptions): Client;
|
|
45
45
|
export declare function bind(transport: Transport): Client;
|
|
46
46
|
export type CorrectRequest = SomosCorrectPatientBody;
|
|
47
|
-
export type CorrectResponse =
|
|
47
|
+
export type CorrectResponse = ToolResultResponse;
|
|
48
48
|
export type CreateRequest = SomosCreatePatientBody;
|
|
49
|
-
export type CreateResponse =
|
|
49
|
+
export type CreateResponse = ToolResultResponse;
|
|
50
50
|
export type LookupRequest = SomosLookupPatientBody;
|
|
51
|
-
export type LookupResponse =
|
|
51
|
+
export type LookupResponse = ToolResultResponse;
|
|
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
|
|
|
2
2
|
export type { RequestOptions } from "../../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
4
|
export type { Client, ClientOptions, CorrectRequest, CorrectResponse, CreateRequest, CreateResponse, LookupRequest, LookupResponse, } from "./client.js";
|
|
5
|
-
export type { SomosCorrectPatientBadGatewayError, SomosCorrectPatientBody, SomosCorrectPatientConflictError, SomosCorrectPatientConflictFailure, SomosCorrectPatientNotFoundError, SomosCorrectPatientNotFoundFailure, SomosCorrectPatientServiceUnavailableError, SomosCorrectPatientServiceUnavailableFailure, SomosCreatePatientBadGatewayError, SomosCreatePatientBody, SomosCreatePatientConflictError, SomosCreatePatientConflictFailure, SomosCreatePatientNotFoundError, SomosCreatePatientNotFoundFailure, SomosCreatePatientServiceUnavailableError, SomosCreatePatientServiceUnavailableFailure, SomosLookupPatientBadGatewayError, SomosLookupPatientBody, SomosLookupPatientConflictError, SomosLookupPatientConflictFailure, SomosLookupPatientNotFoundError, SomosLookupPatientNotFoundFailure, SomosLookupPatientServiceUnavailableError, SomosLookupPatientServiceUnavailableFailure, } from "./models.js";
|
|
5
|
+
export type { SomosCorrectPatientBadGatewayError, SomosCorrectPatientBadGatewayFailure, SomosCorrectPatientBody, SomosCorrectPatientConflictError, SomosCorrectPatientConflictFailure, SomosCorrectPatientNotFoundError, SomosCorrectPatientNotFoundFailure, SomosCorrectPatientServiceUnavailableError, SomosCorrectPatientServiceUnavailableFailure, SomosCreatePatientBadGatewayError, SomosCreatePatientBadGatewayFailure, SomosCreatePatientBody, SomosCreatePatientConflictError, SomosCreatePatientConflictFailure, SomosCreatePatientNotFoundError, SomosCreatePatientNotFoundFailure, SomosCreatePatientServiceUnavailableError, SomosCreatePatientServiceUnavailableFailure, SomosLookupPatientBadGatewayError, SomosLookupPatientBadGatewayFailure, SomosLookupPatientBody, SomosLookupPatientConflictError, SomosLookupPatientConflictFailure, SomosLookupPatientNotFoundError, SomosLookupPatientNotFoundFailure, SomosLookupPatientServiceUnavailableError, SomosLookupPatientServiceUnavailableFailure, } from "./models.js";
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure,
|
|
2
|
-
import type { SomosClinicNotServedFailure,
|
|
1
|
+
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, OutcomeUnknownFailure, ProviderUnavailableFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { SomosClinicNotServedFailure, SomosProviderRequestRefusedFailure, SomosSomosNotConfiguredFailure, SomosToolNotAvailableFailure } from "../models.js";
|
|
3
3
|
/**
|
|
4
4
|
* A failed answer.
|
|
5
5
|
*/
|
|
6
6
|
export interface SomosCorrectPatientBadGatewayError {
|
|
7
7
|
data: null;
|
|
8
|
-
error:
|
|
8
|
+
error: SomosCorrectPatientBadGatewayFailure;
|
|
9
9
|
/**
|
|
10
10
|
* What every answer carries besides its data or error.
|
|
11
11
|
*/
|
|
12
|
-
metadata:
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
13
|
success: false;
|
|
14
14
|
}
|
|
15
|
+
export type SomosCorrectPatientBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
|
|
15
16
|
export interface SomosCorrectPatientBody {
|
|
16
17
|
/**
|
|
17
18
|
* Dirección corregida; omítela si no cambió.
|
|
@@ -81,7 +82,7 @@ export interface SomosCorrectPatientConflictError {
|
|
|
81
82
|
/**
|
|
82
83
|
* What every answer carries besides its data or error.
|
|
83
84
|
*/
|
|
84
|
-
metadata:
|
|
85
|
+
metadata: ResponseMetadata;
|
|
85
86
|
success: false;
|
|
86
87
|
}
|
|
87
88
|
export type SomosCorrectPatientConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
|
|
@@ -94,7 +95,7 @@ export interface SomosCorrectPatientNotFoundError {
|
|
|
94
95
|
/**
|
|
95
96
|
* What every answer carries besides its data or error.
|
|
96
97
|
*/
|
|
97
|
-
metadata:
|
|
98
|
+
metadata: ResponseMetadata;
|
|
98
99
|
success: false;
|
|
99
100
|
}
|
|
100
101
|
export type SomosCorrectPatientNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
|
|
@@ -107,7 +108,7 @@ export interface SomosCorrectPatientServiceUnavailableError {
|
|
|
107
108
|
/**
|
|
108
109
|
* What every answer carries besides its data or error.
|
|
109
110
|
*/
|
|
110
|
-
metadata:
|
|
111
|
+
metadata: ResponseMetadata;
|
|
111
112
|
success: false;
|
|
112
113
|
}
|
|
113
114
|
export type SomosCorrectPatientServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
|
|
@@ -116,13 +117,14 @@ export type SomosCorrectPatientServiceUnavailableFailure = UpstreamUnavailableFa
|
|
|
116
117
|
*/
|
|
117
118
|
export interface SomosCreatePatientBadGatewayError {
|
|
118
119
|
data: null;
|
|
119
|
-
error:
|
|
120
|
+
error: SomosCreatePatientBadGatewayFailure;
|
|
120
121
|
/**
|
|
121
122
|
* What every answer carries besides its data or error.
|
|
122
123
|
*/
|
|
123
|
-
metadata:
|
|
124
|
+
metadata: ResponseMetadata;
|
|
124
125
|
success: false;
|
|
125
126
|
}
|
|
127
|
+
export type SomosCreatePatientBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
|
|
126
128
|
export interface SomosCreatePatientBody {
|
|
127
129
|
/**
|
|
128
130
|
* Nacimiento confirmado, YYYY-MM-DD.
|
|
@@ -212,7 +214,7 @@ export interface SomosCreatePatientConflictError {
|
|
|
212
214
|
/**
|
|
213
215
|
* What every answer carries besides its data or error.
|
|
214
216
|
*/
|
|
215
|
-
metadata:
|
|
217
|
+
metadata: ResponseMetadata;
|
|
216
218
|
success: false;
|
|
217
219
|
}
|
|
218
220
|
export type SomosCreatePatientConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
|
|
@@ -225,7 +227,7 @@ export interface SomosCreatePatientNotFoundError {
|
|
|
225
227
|
/**
|
|
226
228
|
* What every answer carries besides its data or error.
|
|
227
229
|
*/
|
|
228
|
-
metadata:
|
|
230
|
+
metadata: ResponseMetadata;
|
|
229
231
|
success: false;
|
|
230
232
|
}
|
|
231
233
|
export type SomosCreatePatientNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
|
|
@@ -238,7 +240,7 @@ export interface SomosCreatePatientServiceUnavailableError {
|
|
|
238
240
|
/**
|
|
239
241
|
* What every answer carries besides its data or error.
|
|
240
242
|
*/
|
|
241
|
-
metadata:
|
|
243
|
+
metadata: ResponseMetadata;
|
|
242
244
|
success: false;
|
|
243
245
|
}
|
|
244
246
|
export type SomosCreatePatientServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
|
|
@@ -247,13 +249,14 @@ export type SomosCreatePatientServiceUnavailableFailure = UpstreamUnavailableFai
|
|
|
247
249
|
*/
|
|
248
250
|
export interface SomosLookupPatientBadGatewayError {
|
|
249
251
|
data: null;
|
|
250
|
-
error:
|
|
252
|
+
error: SomosLookupPatientBadGatewayFailure;
|
|
251
253
|
/**
|
|
252
254
|
* What every answer carries besides its data or error.
|
|
253
255
|
*/
|
|
254
|
-
metadata:
|
|
256
|
+
metadata: ResponseMetadata;
|
|
255
257
|
success: false;
|
|
256
258
|
}
|
|
259
|
+
export type SomosLookupPatientBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
|
|
257
260
|
export interface SomosLookupPatientBody {
|
|
258
261
|
/**
|
|
259
262
|
* The channel the conversation happens on: voice, whatsapp or web (the
|
|
@@ -295,7 +298,7 @@ export interface SomosLookupPatientConflictError {
|
|
|
295
298
|
/**
|
|
296
299
|
* What every answer carries besides its data or error.
|
|
297
300
|
*/
|
|
298
|
-
metadata:
|
|
301
|
+
metadata: ResponseMetadata;
|
|
299
302
|
success: false;
|
|
300
303
|
}
|
|
301
304
|
export type SomosLookupPatientConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
|
|
@@ -308,7 +311,7 @@ export interface SomosLookupPatientNotFoundError {
|
|
|
308
311
|
/**
|
|
309
312
|
* What every answer carries besides its data or error.
|
|
310
313
|
*/
|
|
311
|
-
metadata:
|
|
314
|
+
metadata: ResponseMetadata;
|
|
312
315
|
success: false;
|
|
313
316
|
}
|
|
314
317
|
export type SomosLookupPatientNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
|
|
@@ -321,7 +324,7 @@ export interface SomosLookupPatientServiceUnavailableError {
|
|
|
321
324
|
/**
|
|
322
325
|
* What every answer carries besides its data or error.
|
|
323
326
|
*/
|
|
324
|
-
metadata:
|
|
327
|
+
metadata: ResponseMetadata;
|
|
325
328
|
success: false;
|
|
326
329
|
}
|
|
327
330
|
export type SomosLookupPatientServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
|
|
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
|
|
|
2
2
|
export type { RequestOptions } from "../../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
4
|
export type { Client, ClientOptions, ListRequest, ListResponse, LookupRequest, LookupResponse, } from "./client.js";
|
|
5
|
-
export type { SomosContractNotFoundFailure, SomosContractService, SomosContractServicePage, SomosContractServicePageResponse, SomosListServicesBadGatewayError, SomosListServicesConflictError, SomosListServicesConflictFailure, SomosListServicesNotFoundError, SomosListServicesNotFoundFailure, SomosListServicesServiceUnavailableError, SomosListServicesServiceUnavailableFailure,
|
|
5
|
+
export type { SomosContractNotFoundFailure, SomosContractService, SomosContractServicePage, SomosContractServicePageResponse, SomosListServicesBadGatewayError, SomosListServicesBadGatewayFailure, SomosListServicesConflictError, SomosListServicesConflictFailure, SomosListServicesNotFoundError, SomosListServicesNotFoundFailure, SomosListServicesServiceUnavailableError, SomosListServicesServiceUnavailableFailure, SomosLookupServicesBadGatewayError, SomosLookupServicesBadGatewayFailure, SomosLookupServicesBody, SomosLookupServicesConflictError, SomosLookupServicesConflictFailure, SomosLookupServicesNotFoundError, SomosLookupServicesNotFoundFailure, SomosLookupServicesServiceUnavailableError, SomosLookupServicesServiceUnavailableFailure, SomosServiceLookup, SomosServiceLookupResponse, SomosServiceMatch, SomosServicesSearchUnavailableFailure, } from "./models.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, Empty,
|
|
2
|
-
import type { SomosClinicNotServedFailure,
|
|
1
|
+
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, Empty, OutcomeUnknownFailure, PageInfo, ProviderUnavailableFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { SomosClinicNotServedFailure, SomosProviderRequestRefusedFailure, SomosSomosNotConfiguredFailure, SomosToolNotAvailableFailure } from "../models.js";
|
|
3
3
|
/**
|
|
4
4
|
* The clinic has no contract with that code; somos.contracts.list answers the
|
|
5
5
|
* clinic's contracts.
|
|
@@ -59,7 +59,7 @@ export interface SomosContractServicePageResponse {
|
|
|
59
59
|
/**
|
|
60
60
|
* What every answer carries besides its data or error.
|
|
61
61
|
*/
|
|
62
|
-
metadata:
|
|
62
|
+
metadata: ResponseMetadata;
|
|
63
63
|
success: true;
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
@@ -67,13 +67,14 @@ export interface SomosContractServicePageResponse {
|
|
|
67
67
|
*/
|
|
68
68
|
export interface SomosListServicesBadGatewayError {
|
|
69
69
|
data: null;
|
|
70
|
-
error:
|
|
70
|
+
error: SomosListServicesBadGatewayFailure;
|
|
71
71
|
/**
|
|
72
72
|
* What every answer carries besides its data or error.
|
|
73
73
|
*/
|
|
74
|
-
metadata:
|
|
74
|
+
metadata: ResponseMetadata;
|
|
75
75
|
success: false;
|
|
76
76
|
}
|
|
77
|
+
export type SomosListServicesBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
|
|
77
78
|
/**
|
|
78
79
|
* A failed answer.
|
|
79
80
|
*/
|
|
@@ -83,7 +84,7 @@ export interface SomosListServicesConflictError {
|
|
|
83
84
|
/**
|
|
84
85
|
* What every answer carries besides its data or error.
|
|
85
86
|
*/
|
|
86
|
-
metadata:
|
|
87
|
+
metadata: ResponseMetadata;
|
|
87
88
|
success: false;
|
|
88
89
|
}
|
|
89
90
|
export type SomosListServicesConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
|
|
@@ -96,7 +97,7 @@ export interface SomosListServicesNotFoundError {
|
|
|
96
97
|
/**
|
|
97
98
|
* What every answer carries besides its data or error.
|
|
98
99
|
*/
|
|
99
|
-
metadata:
|
|
100
|
+
metadata: ResponseMetadata;
|
|
100
101
|
success: false;
|
|
101
102
|
}
|
|
102
103
|
export type SomosListServicesNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
|
|
@@ -109,22 +110,10 @@ export interface SomosListServicesServiceUnavailableError {
|
|
|
109
110
|
/**
|
|
110
111
|
* What every answer carries besides its data or error.
|
|
111
112
|
*/
|
|
112
|
-
metadata:
|
|
113
|
+
metadata: ResponseMetadata;
|
|
113
114
|
success: false;
|
|
114
115
|
}
|
|
115
116
|
export type SomosListServicesServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
|
|
116
|
-
/**
|
|
117
|
-
* A failed answer.
|
|
118
|
-
*/
|
|
119
|
-
export interface SomosListServicesUnprocessableContentError {
|
|
120
|
-
data: null;
|
|
121
|
-
error: ListServicesUnprocessableContentFailure;
|
|
122
|
-
/**
|
|
123
|
-
* What every answer carries besides its data or error.
|
|
124
|
-
*/
|
|
125
|
-
metadata: SomosResponseMetadata;
|
|
126
|
-
success: false;
|
|
127
|
-
}
|
|
128
117
|
/**
|
|
129
118
|
* A failed answer.
|
|
130
119
|
*/
|
|
@@ -134,10 +123,10 @@ export interface SomosLookupServicesBadGatewayError {
|
|
|
134
123
|
/**
|
|
135
124
|
* What every answer carries besides its data or error.
|
|
136
125
|
*/
|
|
137
|
-
metadata:
|
|
126
|
+
metadata: ResponseMetadata;
|
|
138
127
|
success: false;
|
|
139
128
|
}
|
|
140
|
-
export type SomosLookupServicesBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure;
|
|
129
|
+
export type SomosLookupServicesBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
|
|
141
130
|
export interface SomosLookupServicesBody {
|
|
142
131
|
/**
|
|
143
132
|
* The Visoft connection to run on, as Account lists it (con_…). Optional when
|
|
@@ -173,7 +162,7 @@ export interface SomosLookupServicesConflictError {
|
|
|
173
162
|
/**
|
|
174
163
|
* What every answer carries besides its data or error.
|
|
175
164
|
*/
|
|
176
|
-
metadata:
|
|
165
|
+
metadata: ResponseMetadata;
|
|
177
166
|
success: false;
|
|
178
167
|
}
|
|
179
168
|
export type SomosLookupServicesConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
|
|
@@ -186,7 +175,7 @@ export interface SomosLookupServicesNotFoundError {
|
|
|
186
175
|
/**
|
|
187
176
|
* What every answer carries besides its data or error.
|
|
188
177
|
*/
|
|
189
|
-
metadata:
|
|
178
|
+
metadata: ResponseMetadata;
|
|
190
179
|
success: false;
|
|
191
180
|
}
|
|
192
181
|
export type SomosLookupServicesNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure | SomosContractNotFoundFailure;
|
|
@@ -199,7 +188,7 @@ export interface SomosLookupServicesServiceUnavailableError {
|
|
|
199
188
|
/**
|
|
200
189
|
* What every answer carries besides its data or error.
|
|
201
190
|
*/
|
|
202
|
-
metadata:
|
|
191
|
+
metadata: ResponseMetadata;
|
|
203
192
|
success: false;
|
|
204
193
|
}
|
|
205
194
|
export type SomosLookupServicesServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure | SomosServicesSearchUnavailableFailure;
|
|
@@ -224,7 +213,7 @@ export interface SomosServiceLookupResponse {
|
|
|
224
213
|
/**
|
|
225
214
|
* What every answer carries besides its data or error.
|
|
226
215
|
*/
|
|
227
|
-
metadata:
|
|
216
|
+
metadata: ResponseMetadata;
|
|
228
217
|
success: true;
|
|
229
218
|
}
|
|
230
219
|
export interface SomosServiceMatch {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ToolResultResponse } from "../../models.js";
|
|
3
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
4
4
|
/**
|
|
5
5
|
* The URL the paths of the API are relative to.
|
|
@@ -41,4 +41,4 @@ export interface GetRequest {
|
|
|
41
41
|
*/
|
|
42
42
|
channel?: "voice" | "web" | "whatsapp";
|
|
43
43
|
}
|
|
44
|
-
export type GetResponse =
|
|
44
|
+
export type GetResponse = ToolResultResponse;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, OutcomeUnknownFailure, ProviderUnavailableFailure, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
-
import type { SomosClinicNotServedFailure,
|
|
1
|
+
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, OutcomeUnknownFailure, ProviderUnavailableFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { SomosClinicNotServedFailure, SomosProviderRequestRefusedFailure, SomosSomosNotConfiguredFailure, SomosToolNotAvailableFailure } from "../models.js";
|
|
3
3
|
/**
|
|
4
4
|
* A failed answer.
|
|
5
5
|
*/
|
|
@@ -9,10 +9,10 @@ export interface SomosGetSpecialtyRulesBadGatewayError {
|
|
|
9
9
|
/**
|
|
10
10
|
* What every answer carries besides its data or error.
|
|
11
11
|
*/
|
|
12
|
-
metadata:
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
13
|
success: false;
|
|
14
14
|
}
|
|
15
|
-
export type SomosGetSpecialtyRulesBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure;
|
|
15
|
+
export type SomosGetSpecialtyRulesBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
|
|
16
16
|
/**
|
|
17
17
|
* A failed answer.
|
|
18
18
|
*/
|
|
@@ -22,7 +22,7 @@ export interface SomosGetSpecialtyRulesConflictError {
|
|
|
22
22
|
/**
|
|
23
23
|
* What every answer carries besides its data or error.
|
|
24
24
|
*/
|
|
25
|
-
metadata:
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
26
|
success: false;
|
|
27
27
|
}
|
|
28
28
|
export type SomosGetSpecialtyRulesConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
|
|
@@ -35,7 +35,7 @@ export interface SomosGetSpecialtyRulesNotFoundError {
|
|
|
35
35
|
/**
|
|
36
36
|
* What every answer carries besides its data or error.
|
|
37
37
|
*/
|
|
38
|
-
metadata:
|
|
38
|
+
metadata: ResponseMetadata;
|
|
39
39
|
success: false;
|
|
40
40
|
}
|
|
41
41
|
export type SomosGetSpecialtyRulesNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
|
|
@@ -48,7 +48,7 @@ export interface SomosGetSpecialtyRulesServiceUnavailableError {
|
|
|
48
48
|
/**
|
|
49
49
|
* What every answer carries besides its data or error.
|
|
50
50
|
*/
|
|
51
|
-
metadata:
|
|
51
|
+
metadata: ResponseMetadata;
|
|
52
52
|
success: false;
|
|
53
53
|
}
|
|
54
54
|
export type SomosGetSpecialtyRulesServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
|
|
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
|
|
|
2
2
|
export type { RequestOptions } from "../../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
4
|
export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
-
export type { SomosClinicTool, SomosClinicToolPage, SomosClinicToolPageResponse, SomosListToolsBadGatewayError, SomosListToolsConflictError, SomosListToolsConflictFailure, SomosListToolsNotFoundError, SomosListToolsNotFoundFailure, SomosListToolsServiceUnavailableError, SomosListToolsServiceUnavailableFailure, } from "./models.js";
|
|
5
|
+
export type { SomosClinicTool, SomosClinicToolPage, SomosClinicToolPageResponse, SomosListToolsBadGatewayError, SomosListToolsBadGatewayFailure, SomosListToolsConflictError, SomosListToolsConflictFailure, SomosListToolsNotFoundError, SomosListToolsNotFoundFailure, SomosListToolsServiceUnavailableError, SomosListToolsServiceUnavailableFailure, } from "./models.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure,
|
|
2
|
-
import type { SomosClinicNotServedFailure,
|
|
1
|
+
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, OutcomeUnknownFailure, PageInfo, ProviderUnavailableFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { SomosClinicNotServedFailure, SomosProviderRequestRefusedFailure, SomosSomosNotConfiguredFailure, SomosToolNotAvailableFailure } from "../models.js";
|
|
3
3
|
export interface SomosClinicTool {
|
|
4
4
|
/**
|
|
5
5
|
* The clinic's instructions for this tool.
|
|
@@ -45,7 +45,7 @@ export interface SomosClinicToolPageResponse {
|
|
|
45
45
|
/**
|
|
46
46
|
* What every answer carries besides its data or error.
|
|
47
47
|
*/
|
|
48
|
-
metadata:
|
|
48
|
+
metadata: ResponseMetadata;
|
|
49
49
|
success: true;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -53,13 +53,14 @@ export interface SomosClinicToolPageResponse {
|
|
|
53
53
|
*/
|
|
54
54
|
export interface SomosListToolsBadGatewayError {
|
|
55
55
|
data: null;
|
|
56
|
-
error:
|
|
56
|
+
error: SomosListToolsBadGatewayFailure;
|
|
57
57
|
/**
|
|
58
58
|
* What every answer carries besides its data or error.
|
|
59
59
|
*/
|
|
60
|
-
metadata:
|
|
60
|
+
metadata: ResponseMetadata;
|
|
61
61
|
success: false;
|
|
62
62
|
}
|
|
63
|
+
export type SomosListToolsBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
|
|
63
64
|
/**
|
|
64
65
|
* A failed answer.
|
|
65
66
|
*/
|
|
@@ -69,7 +70,7 @@ export interface SomosListToolsConflictError {
|
|
|
69
70
|
/**
|
|
70
71
|
* What every answer carries besides its data or error.
|
|
71
72
|
*/
|
|
72
|
-
metadata:
|
|
73
|
+
metadata: ResponseMetadata;
|
|
73
74
|
success: false;
|
|
74
75
|
}
|
|
75
76
|
export type SomosListToolsConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
|
|
@@ -82,7 +83,7 @@ export interface SomosListToolsNotFoundError {
|
|
|
82
83
|
/**
|
|
83
84
|
* What every answer carries besides its data or error.
|
|
84
85
|
*/
|
|
85
|
-
metadata:
|
|
86
|
+
metadata: ResponseMetadata;
|
|
86
87
|
success: false;
|
|
87
88
|
}
|
|
88
89
|
export type SomosListToolsNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
|
|
@@ -95,7 +96,7 @@ export interface SomosListToolsServiceUnavailableError {
|
|
|
95
96
|
/**
|
|
96
97
|
* What every answer carries besides its data or error.
|
|
97
98
|
*/
|
|
98
|
-
metadata:
|
|
99
|
+
metadata: ResponseMetadata;
|
|
99
100
|
success: false;
|
|
100
101
|
}
|
|
101
102
|
export type SomosListToolsServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import { type SuraAffiliation, type SuraNoContract, type SuraPendingResult, type SuraRefusal } from "../models.js";
|
|
2
|
+
import { type SuraAffiliation, type SuraNoContract, type SuraPendingResult, type SuraRefusal, type SuraResponseMetadata } from "../models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -50,6 +49,6 @@ export interface LookupRequest {
|
|
|
50
49
|
export interface LookupResponse {
|
|
51
50
|
data: SuraPendingResult | SuraRefusal | SuraAffiliation | SuraNoContract;
|
|
52
51
|
error: null;
|
|
53
|
-
metadata:
|
|
52
|
+
metadata: SuraResponseMetadata;
|
|
54
53
|
success: true;
|
|
55
54
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import { type SuraAppointmentPage, type SuraBookedAppointment, type SuraCancelledAppointment, type SuraPatientNotFound, type SuraPendingResult, type SuraPreparationAvailable, type SuraPreparationExistingAppointment, type SuraPreparationNoSlots, type SuraPreparationPatientNotFound, type SuraRefusal } from "../models.js";
|
|
2
|
+
import { type SuraAppointmentPage, type SuraBookedAppointment, type SuraCancelledAppointment, type SuraPatientNotFound, type SuraPendingResult, type SuraPreparationAvailable, type SuraPreparationExistingAppointment, type SuraPreparationNoSlots, type SuraPreparationPatientNotFound, type SuraRefusal, type SuraResponseMetadata } from "../models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -124,7 +123,7 @@ export interface CancelRequest {
|
|
|
124
123
|
export interface CancelResponse {
|
|
125
124
|
data: SuraPendingResult | SuraRefusal | SuraPatientNotFound | SuraCancelledAppointment;
|
|
126
125
|
error: null;
|
|
127
|
-
metadata:
|
|
126
|
+
metadata: SuraResponseMetadata;
|
|
128
127
|
success: true;
|
|
129
128
|
}
|
|
130
129
|
export interface CreateRequest {
|
|
@@ -196,7 +195,7 @@ export interface CreateRequest {
|
|
|
196
195
|
export interface CreateResponse {
|
|
197
196
|
data: SuraPendingResult | SuraRefusal | SuraPatientNotFound | SuraBookedAppointment;
|
|
198
197
|
error: null;
|
|
199
|
-
metadata:
|
|
198
|
+
metadata: SuraResponseMetadata;
|
|
200
199
|
success: true;
|
|
201
200
|
}
|
|
202
201
|
export interface ListRequest {
|
|
@@ -248,7 +247,7 @@ export interface ListRequest {
|
|
|
248
247
|
export interface ListResponse {
|
|
249
248
|
data: SuraPendingResult | SuraRefusal | SuraPatientNotFound | SuraAppointmentPage;
|
|
250
249
|
error: null;
|
|
251
|
-
metadata:
|
|
250
|
+
metadata: SuraResponseMetadata;
|
|
252
251
|
success: true;
|
|
253
252
|
}
|
|
254
253
|
export interface PrepareRequest {
|
|
@@ -354,6 +353,6 @@ export interface PrepareRequest {
|
|
|
354
353
|
export interface PrepareResponse {
|
|
355
354
|
data: SuraPendingResult | SuraRefusal | SuraPreparationPatientNotFound | SuraPatientNotFound | SuraPreparationExistingAppointment | SuraPreparationAvailable | SuraPreparationNoSlots;
|
|
356
355
|
error: null;
|
|
357
|
-
metadata:
|
|
356
|
+
metadata: SuraResponseMetadata;
|
|
358
357
|
success: true;
|
|
359
358
|
}
|