@arbol-ai/sdk 5.26.0 → 5.27.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 +4 -4
- package/dist/client.d.ts +0 -4
- package/dist/client.js +0 -10
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +0 -282
- package/dist/models.js +1 -5
- package/dist/visoft/appointments/index.d.ts +1 -1
- package/dist/visoft/appointments/models.d.ts +32 -6
- package/dist/visoft/availability/models.d.ts +4 -4
- package/dist/visoft/contracts/index.d.ts +1 -1
- package/dist/visoft/contracts/models.d.ts +16 -3
- package/dist/visoft/index.d.ts +1 -1
- package/dist/visoft/models.d.ts +67 -2
- package/dist/visoft/patients/index.d.ts +1 -1
- package/dist/visoft/patients/models.d.ts +35 -6
- package/dist/visoft/professionals/models.d.ts +4 -4
- package/dist/visoft/serviceCatalogs/models.d.ts +4 -4
- package/dist/visoft/services/index.d.ts +1 -1
- package/dist/visoft/services/models.d.ts +16 -3
- package/package.json +3 -3
- package/dist/orsovision/agencies/client.d.ts +0 -51
- package/dist/orsovision/agencies/client.js +0 -18
- package/dist/orsovision/agencies/index.d.ts +0 -5
- package/dist/orsovision/agencies/index.js +0 -4
- package/dist/orsovision/agencies/models.d.ts +0 -107
- package/dist/orsovision/agencies/models.js +0 -3
- package/dist/orsovision/appointments/client.d.ts +0 -39
- package/dist/orsovision/appointments/client.js +0 -29
- package/dist/orsovision/appointments/index.d.ts +0 -5
- package/dist/orsovision/appointments/index.js +0 -4
- package/dist/orsovision/appointments/models.d.ts +0 -182
- package/dist/orsovision/appointments/models.js +0 -9
- package/dist/orsovision/availability/client.d.ts +0 -32
- package/dist/orsovision/availability/client.js +0 -19
- package/dist/orsovision/availability/index.d.ts +0 -5
- package/dist/orsovision/availability/index.js +0 -4
- package/dist/orsovision/availability/models.d.ts +0 -228
- package/dist/orsovision/availability/models.js +0 -15
- package/dist/orsovision/client.d.ts +0 -27
- package/dist/orsovision/client.js +0 -50
- package/dist/orsovision/clinic/client.d.ts +0 -34
- package/dist/orsovision/clinic/client.js +0 -18
- package/dist/orsovision/clinic/index.d.ts +0 -5
- package/dist/orsovision/clinic/index.js +0 -4
- package/dist/orsovision/clinic/models.d.ts +0 -90
- package/dist/orsovision/clinic/models.js +0 -3
- package/dist/orsovision/contracts/client.d.ts +0 -69
- package/dist/orsovision/contracts/client.js +0 -18
- package/dist/orsovision/contracts/index.d.ts +0 -5
- package/dist/orsovision/contracts/index.js +0 -4
- package/dist/orsovision/contracts/models.d.ts +0 -84
- package/dist/orsovision/contracts/models.js +0 -3
- package/dist/orsovision/index.d.ts +0 -5
- package/dist/orsovision/index.js +0 -4
- package/dist/orsovision/models.d.ts +0 -66
- package/dist/orsovision/models.js +0 -3
- package/dist/orsovision/patients/client.d.ts +0 -52
- package/dist/orsovision/patients/client.js +0 -34
- package/dist/orsovision/patients/index.d.ts +0 -5
- package/dist/orsovision/patients/index.js +0 -4
- package/dist/orsovision/patients/models.d.ts +0 -287
- package/dist/orsovision/patients/models.js +0 -3
- package/dist/orsovision/services/client.d.ts +0 -74
- package/dist/orsovision/services/client.js +0 -18
- package/dist/orsovision/services/index.d.ts +0 -5
- package/dist/orsovision/services/index.js +0 -4
- package/dist/orsovision/services/models.d.ts +0 -81
- package/dist/orsovision/services/models.js +0 -3
- package/dist/orsovision/tools/client.d.ts +0 -44
- package/dist/orsovision/tools/client.js +0 -18
- package/dist/orsovision/tools/index.d.ts +0 -5
- package/dist/orsovision/tools/index.js +0 -4
- package/dist/orsovision/tools/models.d.ts +0 -102
- package/dist/orsovision/tools/models.js +0 -3
- package/dist/somos/appointments/client.d.ts +0 -40
- package/dist/somos/appointments/client.js +0 -29
- package/dist/somos/appointments/index.d.ts +0 -5
- package/dist/somos/appointments/index.js +0 -4
- package/dist/somos/appointments/models.d.ts +0 -303
- package/dist/somos/appointments/models.js +0 -9
- package/dist/somos/availability/client.d.ts +0 -33
- package/dist/somos/availability/client.js +0 -19
- package/dist/somos/availability/index.d.ts +0 -5
- package/dist/somos/availability/index.js +0 -4
- package/dist/somos/availability/models.d.ts +0 -338
- package/dist/somos/availability/models.js +0 -15
- package/dist/somos/client.d.ts +0 -29
- package/dist/somos/client.js +0 -55
- package/dist/somos/clinic/client.d.ts +0 -33
- package/dist/somos/clinic/client.js +0 -18
- package/dist/somos/clinic/index.d.ts +0 -5
- package/dist/somos/clinic/index.js +0 -4
- package/dist/somos/clinic/models.d.ts +0 -90
- package/dist/somos/clinic/models.js +0 -3
- package/dist/somos/contracts/client.d.ts +0 -74
- package/dist/somos/contracts/client.js +0 -18
- package/dist/somos/contracts/index.d.ts +0 -5
- package/dist/somos/contracts/index.js +0 -4
- package/dist/somos/contracts/models.d.ts +0 -96
- package/dist/somos/contracts/models.js +0 -3
- package/dist/somos/groups/client.d.ts +0 -67
- package/dist/somos/groups/client.js +0 -18
- package/dist/somos/groups/index.d.ts +0 -5
- package/dist/somos/groups/index.js +0 -4
- package/dist/somos/groups/models.d.ts +0 -117
- package/dist/somos/groups/models.js +0 -3
- package/dist/somos/index.d.ts +0 -5
- package/dist/somos/index.js +0 -4
- package/dist/somos/models.d.ts +0 -88
- package/dist/somos/models.js +0 -3
- package/dist/somos/patients/client.d.ts +0 -51
- package/dist/somos/patients/client.js +0 -34
- package/dist/somos/patients/index.d.ts +0 -5
- package/dist/somos/patients/index.js +0 -4
- package/dist/somos/patients/models.d.ts +0 -330
- package/dist/somos/patients/models.js +0 -3
- package/dist/somos/services/client.d.ts +0 -116
- package/dist/somos/services/client.js +0 -26
- package/dist/somos/services/index.d.ts +0 -5
- package/dist/somos/services/index.js +0 -4
- package/dist/somos/services/models.d.ts +0 -261
- package/dist/somos/services/models.js +0 -3
- package/dist/somos/specialtyRules/client.d.ts +0 -44
- package/dist/somos/specialtyRules/client.js +0 -18
- package/dist/somos/specialtyRules/index.d.ts +0 -5
- package/dist/somos/specialtyRules/index.js +0 -4
- package/dist/somos/specialtyRules/models.d.ts +0 -54
- package/dist/somos/specialtyRules/models.js +0 -3
- package/dist/somos/tools/client.d.ts +0 -44
- package/dist/somos/tools/client.js +0 -18
- package/dist/somos/tools/index.d.ts +0 -5
- package/dist/somos/tools/index.js +0 -4
- package/dist/somos/tools/models.d.ts +0 -102
- package/dist/somos/tools/models.js +0 -3
package/dist/visoft/models.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Empty, ResponseMetadata } from "../models.js";
|
|
2
2
|
/**
|
|
3
3
|
* The cost centre is not one of the connection's clinic: use one
|
|
4
4
|
* visoft.clinic.get lists.
|
|
@@ -69,13 +69,35 @@ export interface VisoftConnectionNotConfiguredError {
|
|
|
69
69
|
* The organization has no active Visoft connection for this call; an
|
|
70
70
|
* administrator connects Visoft in Account.
|
|
71
71
|
*/
|
|
72
|
-
error:
|
|
72
|
+
error: VisoftConnectionNotConfiguredFailure;
|
|
73
73
|
/**
|
|
74
74
|
* What every answer carries besides its data or error.
|
|
75
75
|
*/
|
|
76
76
|
metadata: ResponseMetadata;
|
|
77
77
|
success: false;
|
|
78
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* The organization has no active Visoft connection for this call; an
|
|
81
|
+
* administrator connects Visoft in Account.
|
|
82
|
+
*/
|
|
83
|
+
export interface VisoftConnectionNotConfiguredFailure {
|
|
84
|
+
/**
|
|
85
|
+
* The failure code, stable across releases.
|
|
86
|
+
*/
|
|
87
|
+
code: "CONNECTION_NOT_CONFIGURED";
|
|
88
|
+
/**
|
|
89
|
+
* No fields.
|
|
90
|
+
*/
|
|
91
|
+
data: Empty;
|
|
92
|
+
/**
|
|
93
|
+
* What went wrong, for people; it never contains input values.
|
|
94
|
+
*/
|
|
95
|
+
message: string;
|
|
96
|
+
/**
|
|
97
|
+
* Whether repeating the same request may succeed.
|
|
98
|
+
*/
|
|
99
|
+
retryable: false;
|
|
100
|
+
}
|
|
79
101
|
/**
|
|
80
102
|
* The clinic's cost centre has no current contract with that code.
|
|
81
103
|
*/
|
|
@@ -119,6 +141,28 @@ export interface VisoftContractService {
|
|
|
119
141
|
*/
|
|
120
142
|
price: number | null;
|
|
121
143
|
}
|
|
144
|
+
/**
|
|
145
|
+
* The clinical system rejected the username or password, or the user is
|
|
146
|
+
* blocked.
|
|
147
|
+
*/
|
|
148
|
+
export interface VisoftCredentialsRejectedFailure {
|
|
149
|
+
/**
|
|
150
|
+
* The failure code, stable across releases.
|
|
151
|
+
*/
|
|
152
|
+
code: "CREDENTIALS_REJECTED";
|
|
153
|
+
/**
|
|
154
|
+
* No fields.
|
|
155
|
+
*/
|
|
156
|
+
data: Empty;
|
|
157
|
+
/**
|
|
158
|
+
* What went wrong, for people; it never contains input values.
|
|
159
|
+
*/
|
|
160
|
+
message: string;
|
|
161
|
+
/**
|
|
162
|
+
* Whether repeating the same request may succeed.
|
|
163
|
+
*/
|
|
164
|
+
retryable: false;
|
|
165
|
+
}
|
|
122
166
|
export interface VisoftProfessional {
|
|
123
167
|
/**
|
|
124
168
|
* The professional's SIIPS id. Empty only in an availability answer of an
|
|
@@ -138,3 +182,24 @@ export interface VisoftProfessional {
|
|
|
138
182
|
*/
|
|
139
183
|
specialty: string;
|
|
140
184
|
}
|
|
185
|
+
/**
|
|
186
|
+
* The clinical system did not answer or could not complete the request.
|
|
187
|
+
*/
|
|
188
|
+
export interface VisoftProviderUnavailableFailure {
|
|
189
|
+
/**
|
|
190
|
+
* The failure code, stable across releases.
|
|
191
|
+
*/
|
|
192
|
+
code: "PROVIDER_UNAVAILABLE";
|
|
193
|
+
/**
|
|
194
|
+
* No fields.
|
|
195
|
+
*/
|
|
196
|
+
data: Empty;
|
|
197
|
+
/**
|
|
198
|
+
* What went wrong, for people; it never contains input values.
|
|
199
|
+
*/
|
|
200
|
+
message: string;
|
|
201
|
+
/**
|
|
202
|
+
* Whether repeating the same request may succeed.
|
|
203
|
+
*/
|
|
204
|
+
retryable: true;
|
|
205
|
+
}
|
|
@@ -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 { VisoftAdmission, VisoftAppointment, VisoftCorrectPatientBadGatewayError, VisoftCorrectPatientBadGatewayFailure, VisoftCorrectPatientBody, VisoftCorrectPatientNotFoundError, VisoftCorrectPatientNotFoundFailure, VisoftCorrectPatientUnprocessableContentError, VisoftCorrectPatientUnprocessableContentFailure, VisoftCreatePatientBadGatewayError, VisoftCreatePatientBadGatewayFailure, VisoftCreatePatientBody, VisoftCreatePatientUnprocessableContentError, VisoftCreatePatientUnprocessableContentFailure, VisoftLookupPatientBody, VisoftPatient, VisoftPatientHistory, VisoftPatientLookup, VisoftPatientLookupResponse, VisoftPatientNotFoundFailure, VisoftPatientNotSavedFailure, VisoftPatientRegistration, VisoftPatientRegistrationResponse, VisoftPatientResponse, } from "./models.js";
|
|
5
|
+
export type { VisoftAdmission, VisoftAppointment, VisoftCorrectPatientBadGatewayError, VisoftCorrectPatientBadGatewayFailure, VisoftCorrectPatientBody, VisoftCorrectPatientNotFoundError, VisoftCorrectPatientNotFoundFailure, VisoftCorrectPatientUnprocessableContentError, VisoftCorrectPatientUnprocessableContentFailure, VisoftCreatePatientBadGatewayError, VisoftCreatePatientBadGatewayFailure, VisoftCreatePatientBody, VisoftCreatePatientUnprocessableContentError, VisoftCreatePatientUnprocessableContentFailure, VisoftCredentialsRejectedError, VisoftLookupPatientBadGatewayError, VisoftLookupPatientBadGatewayFailure, VisoftLookupPatientBody, VisoftPatient, VisoftPatientHistory, VisoftPatientLookup, VisoftPatientLookupResponse, VisoftPatientNotFoundFailure, VisoftPatientNotSavedFailure, VisoftPatientRegistration, VisoftPatientRegistrationResponse, VisoftPatientResponse, } from "./models.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConnectionNotFoundFailure,
|
|
2
|
-
import type { VisoftAgencyNotServedFailure } from "../models.js";
|
|
1
|
+
import type { ConnectionNotFoundFailure, Empty, OutcomeUnknownFailure, ResponseMetadata } from "../../models.js";
|
|
2
|
+
import type { VisoftAgencyNotServedFailure, VisoftCredentialsRejectedFailure, VisoftProviderUnavailableFailure } from "../models.js";
|
|
3
3
|
export interface VisoftAdmission {
|
|
4
4
|
/**
|
|
5
5
|
* The admission's number.
|
|
@@ -118,7 +118,7 @@ export interface VisoftCorrectPatientBadGatewayError {
|
|
|
118
118
|
metadata: ResponseMetadata;
|
|
119
119
|
success: false;
|
|
120
120
|
}
|
|
121
|
-
export type VisoftCorrectPatientBadGatewayFailure = OutcomeUnknownFailure |
|
|
121
|
+
export type VisoftCorrectPatientBadGatewayFailure = OutcomeUnknownFailure | VisoftProviderUnavailableFailure | VisoftPatientNotSavedFailure;
|
|
122
122
|
export interface VisoftCorrectPatientBody {
|
|
123
123
|
/**
|
|
124
124
|
* Home address.
|
|
@@ -202,7 +202,7 @@ export interface VisoftCorrectPatientUnprocessableContentError {
|
|
|
202
202
|
metadata: ResponseMetadata;
|
|
203
203
|
success: false;
|
|
204
204
|
}
|
|
205
|
-
export type VisoftCorrectPatientUnprocessableContentFailure =
|
|
205
|
+
export type VisoftCorrectPatientUnprocessableContentFailure = VisoftCredentialsRejectedFailure | VisoftAgencyNotServedFailure;
|
|
206
206
|
/**
|
|
207
207
|
* A failed answer.
|
|
208
208
|
*/
|
|
@@ -215,7 +215,7 @@ export interface VisoftCreatePatientBadGatewayError {
|
|
|
215
215
|
metadata: ResponseMetadata;
|
|
216
216
|
success: false;
|
|
217
217
|
}
|
|
218
|
-
export type VisoftCreatePatientBadGatewayFailure = OutcomeUnknownFailure |
|
|
218
|
+
export type VisoftCreatePatientBadGatewayFailure = OutcomeUnknownFailure | VisoftProviderUnavailableFailure | VisoftPatientNotSavedFailure;
|
|
219
219
|
export interface VisoftCreatePatientBody {
|
|
220
220
|
/**
|
|
221
221
|
* Home address.
|
|
@@ -384,7 +384,36 @@ export interface VisoftCreatePatientUnprocessableContentError {
|
|
|
384
384
|
metadata: ResponseMetadata;
|
|
385
385
|
success: false;
|
|
386
386
|
}
|
|
387
|
-
export type VisoftCreatePatientUnprocessableContentFailure =
|
|
387
|
+
export type VisoftCreatePatientUnprocessableContentFailure = VisoftCredentialsRejectedFailure | VisoftAgencyNotServedFailure;
|
|
388
|
+
/**
|
|
389
|
+
* A failed answer.
|
|
390
|
+
*/
|
|
391
|
+
export interface VisoftCredentialsRejectedError {
|
|
392
|
+
data: null;
|
|
393
|
+
/**
|
|
394
|
+
* The clinical system rejected the username or password, or the user is
|
|
395
|
+
* blocked.
|
|
396
|
+
*/
|
|
397
|
+
error: VisoftCredentialsRejectedFailure;
|
|
398
|
+
/**
|
|
399
|
+
* What every answer carries besides its data or error.
|
|
400
|
+
*/
|
|
401
|
+
metadata: ResponseMetadata;
|
|
402
|
+
success: false;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* A failed answer.
|
|
406
|
+
*/
|
|
407
|
+
export interface VisoftLookupPatientBadGatewayError {
|
|
408
|
+
data: null;
|
|
409
|
+
error: VisoftLookupPatientBadGatewayFailure;
|
|
410
|
+
/**
|
|
411
|
+
* What every answer carries besides its data or error.
|
|
412
|
+
*/
|
|
413
|
+
metadata: ResponseMetadata;
|
|
414
|
+
success: false;
|
|
415
|
+
}
|
|
416
|
+
export type VisoftLookupPatientBadGatewayFailure = OutcomeUnknownFailure | VisoftProviderUnavailableFailure;
|
|
388
417
|
export interface VisoftLookupPatientBody {
|
|
389
418
|
/**
|
|
390
419
|
* The connection to run on. Optional when the organization has one Visoft
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { VisoftAgencyNotServedFailure, VisoftProfessional } from "../models.js";
|
|
1
|
+
import type { OutcomeUnknownFailure, PageInfo, ResponseMetadata } from "../../models.js";
|
|
2
|
+
import type { VisoftAgencyNotServedFailure, VisoftCredentialsRejectedFailure, VisoftProfessional, VisoftProviderUnavailableFailure } from "../models.js";
|
|
3
3
|
/**
|
|
4
4
|
* A failed answer.
|
|
5
5
|
*/
|
|
@@ -12,7 +12,7 @@ export interface VisoftListProfessionalsBadGatewayError {
|
|
|
12
12
|
metadata: ResponseMetadata;
|
|
13
13
|
success: false;
|
|
14
14
|
}
|
|
15
|
-
export type VisoftListProfessionalsBadGatewayFailure = OutcomeUnknownFailure |
|
|
15
|
+
export type VisoftListProfessionalsBadGatewayFailure = OutcomeUnknownFailure | VisoftProviderUnavailableFailure;
|
|
16
16
|
/**
|
|
17
17
|
* A failed answer.
|
|
18
18
|
*/
|
|
@@ -25,7 +25,7 @@ export interface VisoftListProfessionalsUnprocessableContentError {
|
|
|
25
25
|
metadata: ResponseMetadata;
|
|
26
26
|
success: false;
|
|
27
27
|
}
|
|
28
|
-
export type VisoftListProfessionalsUnprocessableContentFailure =
|
|
28
|
+
export type VisoftListProfessionalsUnprocessableContentFailure = VisoftCredentialsRejectedFailure | VisoftAgencyNotServedFailure;
|
|
29
29
|
export interface VisoftProfessionalPage {
|
|
30
30
|
/**
|
|
31
31
|
* Items admitted by this resource contract within the verified organization.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConnectionNotFoundFailure,
|
|
2
|
-
import type { VisoftAgencyNotServedFailure, VisoftContractNotFoundFailure, VisoftContractService } from "../models.js";
|
|
1
|
+
import type { ConnectionNotFoundFailure, OutcomeUnknownFailure, ResponseMetadata } from "../../models.js";
|
|
2
|
+
import type { VisoftAgencyNotServedFailure, VisoftContractNotFoundFailure, VisoftContractService, VisoftCredentialsRejectedFailure, VisoftProviderUnavailableFailure } from "../models.js";
|
|
3
3
|
/**
|
|
4
4
|
* A failed answer.
|
|
5
5
|
*/
|
|
@@ -12,7 +12,7 @@ export interface VisoftGetServiceCatalogBadGatewayError {
|
|
|
12
12
|
metadata: ResponseMetadata;
|
|
13
13
|
success: false;
|
|
14
14
|
}
|
|
15
|
-
export type VisoftGetServiceCatalogBadGatewayFailure = OutcomeUnknownFailure |
|
|
15
|
+
export type VisoftGetServiceCatalogBadGatewayFailure = OutcomeUnknownFailure | VisoftProviderUnavailableFailure;
|
|
16
16
|
/**
|
|
17
17
|
* A failed answer.
|
|
18
18
|
*/
|
|
@@ -38,7 +38,7 @@ export interface VisoftGetServiceCatalogUnprocessableContentError {
|
|
|
38
38
|
metadata: ResponseMetadata;
|
|
39
39
|
success: false;
|
|
40
40
|
}
|
|
41
|
-
export type VisoftGetServiceCatalogUnprocessableContentFailure =
|
|
41
|
+
export type VisoftGetServiceCatalogUnprocessableContentFailure = VisoftCredentialsRejectedFailure | VisoftAgencyNotServedFailure;
|
|
42
42
|
export interface VisoftServiceCatalog {
|
|
43
43
|
/**
|
|
44
44
|
* The cost centre the contract is listed under.
|
|
@@ -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 { VisoftContractServicePage, VisoftContractServicePageResponse, VisoftListServicesNotFoundError, VisoftListServicesNotFoundFailure, VisoftListServicesUnprocessableContentError, VisoftListServicesUnprocessableContentFailure, } from "./models.js";
|
|
5
|
+
export type { VisoftContractServicePage, VisoftContractServicePageResponse, VisoftListServicesBadGatewayError, VisoftListServicesBadGatewayFailure, VisoftListServicesNotFoundError, VisoftListServicesNotFoundFailure, VisoftListServicesUnprocessableContentError, VisoftListServicesUnprocessableContentFailure, } from "./models.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConnectionNotFoundFailure,
|
|
2
|
-
import type { VisoftAgencyNotServedFailure, VisoftContractNotFoundFailure, VisoftContractService } from "../models.js";
|
|
1
|
+
import type { ConnectionNotFoundFailure, OutcomeUnknownFailure, PageInfo, ResponseMetadata } from "../../models.js";
|
|
2
|
+
import type { VisoftAgencyNotServedFailure, VisoftContractNotFoundFailure, VisoftContractService, VisoftCredentialsRejectedFailure, VisoftProviderUnavailableFailure } from "../models.js";
|
|
3
3
|
export interface VisoftContractServicePage {
|
|
4
4
|
/**
|
|
5
5
|
* Items admitted by this resource contract within the verified organization.
|
|
@@ -26,6 +26,19 @@ export interface VisoftContractServicePageResponse {
|
|
|
26
26
|
metadata: ResponseMetadata;
|
|
27
27
|
success: true;
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* A failed answer.
|
|
31
|
+
*/
|
|
32
|
+
export interface VisoftListServicesBadGatewayError {
|
|
33
|
+
data: null;
|
|
34
|
+
error: VisoftListServicesBadGatewayFailure;
|
|
35
|
+
/**
|
|
36
|
+
* What every answer carries besides its data or error.
|
|
37
|
+
*/
|
|
38
|
+
metadata: ResponseMetadata;
|
|
39
|
+
success: false;
|
|
40
|
+
}
|
|
41
|
+
export type VisoftListServicesBadGatewayFailure = OutcomeUnknownFailure | VisoftProviderUnavailableFailure;
|
|
29
42
|
/**
|
|
30
43
|
* A failed answer.
|
|
31
44
|
*/
|
|
@@ -51,4 +64,4 @@ export interface VisoftListServicesUnprocessableContentError {
|
|
|
51
64
|
metadata: ResponseMetadata;
|
|
52
65
|
success: false;
|
|
53
66
|
}
|
|
54
|
-
export type VisoftListServicesUnprocessableContentFailure =
|
|
67
|
+
export type VisoftListServicesUnprocessableContentFailure = VisoftCredentialsRejectedFailure | VisoftAgencyNotServedFailure;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbol-ai/sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.27.0",
|
|
4
4
|
"description": "The Arbol API for TypeScript and JavaScript, generated by Cloudflare Forge from the platform's public OpenAPI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"arbol",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"packageManager": "bun@1.4.3",
|
|
58
58
|
"arbol": {
|
|
59
59
|
"openapi": {
|
|
60
|
-
"release": "1.
|
|
61
|
-
"sha256": "
|
|
60
|
+
"release": "1.20261102.183956",
|
|
61
|
+
"sha256": "42351c707ecd4270d4b1367bc2df45cd70c7c7e2a87b509dcf0f86fc066a82f4"
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type { OrsovisionAgencyPageResponse } from "./models.js";
|
|
3
|
-
export interface ClientOptions extends BaseClientOptions {
|
|
4
|
-
/**
|
|
5
|
-
* The URL the paths of the API are relative to.
|
|
6
|
-
*/
|
|
7
|
-
baseUrl: string;
|
|
8
|
-
}
|
|
9
|
-
export interface Client {
|
|
10
|
-
/**
|
|
11
|
-
* List the chain's locations
|
|
12
|
-
*
|
|
13
|
-
* The chain's locations (agencies), in ascending code order: every other call
|
|
14
|
-
* names one by its code, because each location has its own agreements,
|
|
15
|
-
* services and agendas. Ask the person which location suits them; never pick
|
|
16
|
-
* one for them. Contains no patient data and performs no clinical login.
|
|
17
|
-
* Orsovision's tool pack sets this tool's rules, parameters and accepted
|
|
18
|
-
* values (orsovision.tools.list answers them), and every call is checked
|
|
19
|
-
* against them.
|
|
20
|
-
*/
|
|
21
|
-
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
22
|
-
}
|
|
23
|
-
export declare function createClient(options: ClientOptions): Client;
|
|
24
|
-
export declare function bind(transport: Transport): Client;
|
|
25
|
-
export interface ListRequest {
|
|
26
|
-
/**
|
|
27
|
-
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
28
|
-
*/
|
|
29
|
-
cursor?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
32
|
-
*/
|
|
33
|
-
direction?: "forward" | "backward";
|
|
34
|
-
/**
|
|
35
|
-
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
36
|
-
* another cursor.
|
|
37
|
-
*/
|
|
38
|
-
limit?: number;
|
|
39
|
-
/**
|
|
40
|
-
* The Visoft connection to run on, as Account lists it (con_…). Optional when
|
|
41
|
-
* the organization has one; required when it has several. Another
|
|
42
|
-
* organization's connection is CONNECTION_NOT_FOUND.
|
|
43
|
-
*/
|
|
44
|
-
connectionId?: string;
|
|
45
|
-
/**
|
|
46
|
-
* The channel the conversation happens on: voice, whatsapp or web (the
|
|
47
|
-
* default).
|
|
48
|
-
*/
|
|
49
|
-
channel?: "voice" | "web" | "whatsapp";
|
|
50
|
-
}
|
|
51
|
-
export type ListResponse = OrsovisionAgencyPageResponse;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// Code generated by forge. DO NOT EDIT.
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
import { Transport, } from "../../_/index.js";
|
|
4
|
-
export function createClient(options) {
|
|
5
|
-
return bind(new Transport(options));
|
|
6
|
-
}
|
|
7
|
-
export function bind(transport) {
|
|
8
|
-
return {
|
|
9
|
-
list: (request, options) => transport.send(ListOperation, request, options),
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
const ListOperation = {
|
|
13
|
-
method: "GET",
|
|
14
|
-
route: "/v1/orsovision/agencies",
|
|
15
|
-
query: { cursor: "cursor", direction: "direction", limit: "limit", connectionId: "connectionId", channel: "channel" },
|
|
16
|
-
response: null,
|
|
17
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { ApiError } from "../../_/index.js";
|
|
2
|
-
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
-
export { createClient } from "./client.js";
|
|
4
|
-
export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
-
export type { OrsovisionAgency, OrsovisionAgencyPage, OrsovisionAgencyPageResponse, OrsovisionListAgenciesBadGatewayError, OrsovisionListAgenciesBadGatewayFailure, OrsovisionListAgenciesConflictError, OrsovisionListAgenciesConflictFailure, OrsovisionListAgenciesNotFoundError, OrsovisionListAgenciesNotFoundFailure, OrsovisionListAgenciesServiceUnavailableError, OrsovisionListAgenciesServiceUnavailableFailure, OrsovisionListAgenciesUnprocessableContentError, OrsovisionListAgenciesUnprocessableContentFailure, } from "./models.js";
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, CredentialsRejectedFailure, OutcomeUnknownFailure, PageInfo, ProviderUnavailableFailure, ResponseMetadata, ToolRefusedFailure, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
-
import type { OrsovisionClinicNotServedFailure, OrsovisionOrsovisionNotConfiguredFailure, OrsovisionToolNotAvailableFailure } from "../models.js";
|
|
3
|
-
export interface OrsovisionAgency {
|
|
4
|
-
/**
|
|
5
|
-
* The location, as every later call names it: pass it exactly.
|
|
6
|
-
*/
|
|
7
|
-
code: string;
|
|
8
|
-
/**
|
|
9
|
-
* Whether a call that names no location runs at this one.
|
|
10
|
-
*/
|
|
11
|
-
default: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* The location's name, to say to the person.
|
|
14
|
-
*/
|
|
15
|
-
label: string;
|
|
16
|
-
}
|
|
17
|
-
export interface OrsovisionAgencyPage {
|
|
18
|
-
/**
|
|
19
|
-
* Items admitted by this resource contract within the verified organization.
|
|
20
|
-
*/
|
|
21
|
-
data: OrsovisionAgency[];
|
|
22
|
-
/**
|
|
23
|
-
* Discriminator for a resource list response.
|
|
24
|
-
*/
|
|
25
|
-
object: "list";
|
|
26
|
-
/**
|
|
27
|
-
* Opaque navigation cursors for this page’s stable keyset order.
|
|
28
|
-
*/
|
|
29
|
-
pageInfo: PageInfo;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* A successful answer.
|
|
33
|
-
*/
|
|
34
|
-
export interface OrsovisionAgencyPageResponse {
|
|
35
|
-
data: OrsovisionAgencyPage;
|
|
36
|
-
error: null;
|
|
37
|
-
/**
|
|
38
|
-
* What every answer carries besides its data or error.
|
|
39
|
-
*/
|
|
40
|
-
metadata: ResponseMetadata;
|
|
41
|
-
success: true;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* A failed answer.
|
|
45
|
-
*/
|
|
46
|
-
export interface OrsovisionListAgenciesBadGatewayError {
|
|
47
|
-
data: null;
|
|
48
|
-
error: OrsovisionListAgenciesBadGatewayFailure;
|
|
49
|
-
/**
|
|
50
|
-
* What every answer carries besides its data or error.
|
|
51
|
-
*/
|
|
52
|
-
metadata: ResponseMetadata;
|
|
53
|
-
success: false;
|
|
54
|
-
}
|
|
55
|
-
export type OrsovisionListAgenciesBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure;
|
|
56
|
-
/**
|
|
57
|
-
* A failed answer.
|
|
58
|
-
*/
|
|
59
|
-
export interface OrsovisionListAgenciesConflictError {
|
|
60
|
-
data: null;
|
|
61
|
-
error: OrsovisionListAgenciesConflictFailure;
|
|
62
|
-
/**
|
|
63
|
-
* What every answer carries besides its data or error.
|
|
64
|
-
*/
|
|
65
|
-
metadata: ResponseMetadata;
|
|
66
|
-
success: false;
|
|
67
|
-
}
|
|
68
|
-
export type OrsovisionListAgenciesConflictFailure = ConnectionNotConfiguredFailure | OrsovisionClinicNotServedFailure;
|
|
69
|
-
/**
|
|
70
|
-
* A failed answer.
|
|
71
|
-
*/
|
|
72
|
-
export interface OrsovisionListAgenciesNotFoundError {
|
|
73
|
-
data: null;
|
|
74
|
-
error: OrsovisionListAgenciesNotFoundFailure;
|
|
75
|
-
/**
|
|
76
|
-
* What every answer carries besides its data or error.
|
|
77
|
-
*/
|
|
78
|
-
metadata: ResponseMetadata;
|
|
79
|
-
success: false;
|
|
80
|
-
}
|
|
81
|
-
export type OrsovisionListAgenciesNotFoundFailure = ConnectionNotFoundFailure | OrsovisionToolNotAvailableFailure;
|
|
82
|
-
/**
|
|
83
|
-
* A failed answer.
|
|
84
|
-
*/
|
|
85
|
-
export interface OrsovisionListAgenciesServiceUnavailableError {
|
|
86
|
-
data: null;
|
|
87
|
-
error: OrsovisionListAgenciesServiceUnavailableFailure;
|
|
88
|
-
/**
|
|
89
|
-
* What every answer carries besides its data or error.
|
|
90
|
-
*/
|
|
91
|
-
metadata: ResponseMetadata;
|
|
92
|
-
success: false;
|
|
93
|
-
}
|
|
94
|
-
export type OrsovisionListAgenciesServiceUnavailableFailure = UpstreamUnavailableFailure | OrsovisionOrsovisionNotConfiguredFailure;
|
|
95
|
-
/**
|
|
96
|
-
* A failed answer.
|
|
97
|
-
*/
|
|
98
|
-
export interface OrsovisionListAgenciesUnprocessableContentError {
|
|
99
|
-
data: null;
|
|
100
|
-
error: OrsovisionListAgenciesUnprocessableContentFailure;
|
|
101
|
-
/**
|
|
102
|
-
* What every answer carries besides its data or error.
|
|
103
|
-
*/
|
|
104
|
-
metadata: ResponseMetadata;
|
|
105
|
-
success: false;
|
|
106
|
-
}
|
|
107
|
-
export type OrsovisionListAgenciesUnprocessableContentFailure = CredentialsRejectedFailure | ToolRefusedFailure;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type { ToolResultResponse } from "../../models.js";
|
|
3
|
-
import { type OrsovisionCancelAppointmentBody, type OrsovisionCreateAppointmentBody } from "./models.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
|
-
/**
|
|
12
|
-
* Cancel an appointment
|
|
13
|
-
*
|
|
14
|
-
* Cancel one exact future appointment, only after the person explicitly
|
|
15
|
-
* confirmed it, with the cancellation reference from a fresh patient lookup.
|
|
16
|
-
* Never repeat a cancellation whose outcome is unknown. Orsovision's tool
|
|
17
|
-
* pack sets this tool's rules, parameters and accepted values
|
|
18
|
-
* (orsovision.tools.list answers them), and every call is checked against
|
|
19
|
-
* them.
|
|
20
|
-
*/
|
|
21
|
-
cancel(request: CancelRequest, options?: RequestOptions): Promise<CancelResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Book an appointment
|
|
24
|
-
*
|
|
25
|
-
* Book one slot orsovision.availability.lookup returned, only after the
|
|
26
|
-
* person explicitly confirmed that exact appointment. Pass its reference
|
|
27
|
-
* unchanged. Never repeat a booking whose outcome is unknown. Orsovision's
|
|
28
|
-
* tool pack sets this tool's rules, parameters and accepted values
|
|
29
|
-
* (orsovision.tools.list answers them), and every call is checked against
|
|
30
|
-
* them.
|
|
31
|
-
*/
|
|
32
|
-
create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
|
|
33
|
-
}
|
|
34
|
-
export declare function createClient(options: ClientOptions): Client;
|
|
35
|
-
export declare function bind(transport: Transport): Client;
|
|
36
|
-
export type CancelRequest = OrsovisionCancelAppointmentBody;
|
|
37
|
-
export type CancelResponse = ToolResultResponse;
|
|
38
|
-
export type CreateRequest = OrsovisionCreateAppointmentBody;
|
|
39
|
-
export type CreateResponse = ToolResultResponse;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// Code generated by forge. DO NOT EDIT.
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
import { Transport, } from "../../_/index.js";
|
|
4
|
-
import { OrsovisionCancelAppointmentBodyCodec, OrsovisionCreateAppointmentBodyCodec, } from "./models.js";
|
|
5
|
-
export function createClient(options) {
|
|
6
|
-
return bind(new Transport(options));
|
|
7
|
-
}
|
|
8
|
-
export function bind(transport) {
|
|
9
|
-
return {
|
|
10
|
-
cancel: (request, options) => transport.send(CancelOperation, request, options),
|
|
11
|
-
create: (request, options) => transport.send(CreateOperation, request, options),
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
const CancelOperation = {
|
|
15
|
-
method: "POST",
|
|
16
|
-
route: "/v1/orsovision/appointments/cancel",
|
|
17
|
-
body: "flat",
|
|
18
|
-
request: OrsovisionCancelAppointmentBodyCodec,
|
|
19
|
-
response: null,
|
|
20
|
-
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 },
|
|
21
|
-
};
|
|
22
|
-
const CreateOperation = {
|
|
23
|
-
method: "POST",
|
|
24
|
-
route: "/v1/orsovision/appointments",
|
|
25
|
-
body: "flat",
|
|
26
|
-
request: OrsovisionCreateAppointmentBodyCodec,
|
|
27
|
-
response: null,
|
|
28
|
-
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 },
|
|
29
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { ApiError } from "../../_/index.js";
|
|
2
|
-
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
-
export { createClient } from "./client.js";
|
|
4
|
-
export type { Client, ClientOptions, CancelRequest, CancelResponse, CreateRequest, CreateResponse, } from "./client.js";
|
|
5
|
-
export type { OrsovisionCancelAppointmentBody, OrsovisionCancelAppointmentConflictError, OrsovisionCancelAppointmentConflictFailure, OrsovisionCancelAppointmentNotFoundError, OrsovisionCancelAppointmentNotFoundFailure, OrsovisionCancelAppointmentServiceUnavailableError, OrsovisionCancelAppointmentServiceUnavailableFailure, OrsovisionCreateAppointmentBody, OrsovisionCreateAppointmentConflictError, OrsovisionCreateAppointmentConflictFailure, OrsovisionCreateAppointmentNotFoundError, OrsovisionCreateAppointmentNotFoundFailure, OrsovisionCreateAppointmentServiceUnavailableError, OrsovisionCreateAppointmentServiceUnavailableFailure, } from "./models.js";
|