@arbol-ai/sdk 5.34.0 → 5.36.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/account/connections/models.d.ts +5 -1
- package/dist/comfachoco/connections/models.d.ts +1 -0
- package/dist/sura/availability/client.d.ts +10 -5
- package/dist/sura/availability/models.d.ts +3 -3
- package/dist/sura/index.d.ts +1 -1
- package/dist/sura/models.d.ts +27 -0
- package/package.json +3 -3
|
@@ -24,9 +24,13 @@ export interface AccountConnection {
|
|
|
24
24
|
logins: {
|
|
25
25
|
login: number;
|
|
26
26
|
username: string | null;
|
|
27
|
-
verifiedAt: string;
|
|
27
|
+
verifiedAt: string | null;
|
|
28
28
|
}[];
|
|
29
29
|
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* The independent portal this account connects to.
|
|
32
|
+
*/
|
|
33
|
+
portal?: string;
|
|
30
34
|
server: {
|
|
31
35
|
authHeader: string | null;
|
|
32
36
|
fileArgument: string | null;
|
|
@@ -10,11 +10,16 @@ export interface Client {
|
|
|
10
10
|
/**
|
|
11
11
|
* Find availability
|
|
12
12
|
*
|
|
13
|
-
* Find the free appointment times for one patient and one service. With
|
|
14
|
-
* date it answers
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
13
|
+
* Find the free appointment times for one patient and one service. With a
|
|
14
|
+
* date it answers for that day. With no date it answers for the
|
|
15
|
+
* professional's next day with an agenda, which can be full. times[] are the
|
|
16
|
+
* hours you may book, and only free ones are ever listed; otherDates[] are
|
|
17
|
+
* other days that month with room; days[] says how every day of that month
|
|
18
|
+
* stands (available, full or no_agenda); reserved says the day's only free
|
|
19
|
+
* slot is held back; and otherProfessionals[] are the other doctors who see
|
|
20
|
+
* this service. An empty times[] does not mean the whole agenda is full:
|
|
21
|
+
* prepare_appointment searches other months. Offer two or three times, never
|
|
22
|
+
* the whole list.
|
|
18
23
|
*/
|
|
19
24
|
lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
|
|
20
25
|
}
|
|
@@ -39,9 +39,9 @@ export interface SuraFindAvailabilityBody {
|
|
|
39
39
|
*/
|
|
40
40
|
connectionId?: string;
|
|
41
41
|
/**
|
|
42
|
-
* A day to look at, as YYYY-MM-DD. Omit it
|
|
43
|
-
* Resolve relative dates like "mañana" against the
|
|
44
|
-
* before calling.
|
|
42
|
+
* A day to look at, as YYYY-MM-DD. Omit it to start from the professional's
|
|
43
|
+
* next day with an agenda. Resolve relative dates like "mañana" against the
|
|
44
|
+
* clinic's own timezone before calling.
|
|
45
45
|
*/
|
|
46
46
|
date?: string | null;
|
|
47
47
|
/**
|
package/dist/sura/index.d.ts
CHANGED
|
@@ -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, } from "./client.js";
|
|
5
|
-
export type { SuraAffiliation, SuraAppointment, SuraAppointmentPage, SuraAuthorization, SuraAvailability, SuraAvailabilityPatient, SuraAvailableDay, SuraBookedAppointment, SuraCancelledAppointment, SuraConnectionNotConfiguredFailure, SuraCopayEntry, SuraCopayHistory, SuraNoContract, SuraNoCopayHistory, SuraOpening, SuraPatient, SuraPatientFound, SuraPatientNotFound, SuraPendingResult, SuraPortalCredentialsRejectedFailure, SuraPortalSessionConflictFailure, SuraPortalUnavailableFailure, SuraPreparationAvailable, SuraPreparationExistingAppointment, SuraPreparationNoSlots, SuraPreparationPatientNotFound, SuraRefusal, SuraSchedule, SuraScheduleCapacity, SuraScheduleHours, SuraScheduleStatus, SuraSearchedDay, SuraService, SuraServicePage, SuraServiceSchedule, SuraToolRefusedError, SuraToolRefusedFailure, SuraToolRefusedFailureData, } from "./models.js";
|
|
5
|
+
export type { SuraAffiliation, SuraAppointment, SuraAppointmentPage, SuraAuthorization, SuraAvailability, SuraAvailabilityPatient, SuraAvailableDay, SuraBookedAppointment, SuraCalendarDay, SuraCancelledAppointment, SuraConnectionNotConfiguredFailure, SuraCopayEntry, SuraCopayHistory, SuraNoContract, SuraNoCopayHistory, SuraOpening, SuraPatient, SuraPatientFound, SuraPatientNotFound, SuraPendingResult, SuraPortalCredentialsRejectedFailure, SuraPortalSessionConflictFailure, SuraPortalUnavailableFailure, SuraPreparationAvailable, SuraPreparationExistingAppointment, SuraPreparationNoSlots, SuraPreparationPatientNotFound, SuraRefusal, SuraSchedule, SuraScheduleCapacity, SuraScheduleHours, SuraScheduleStatus, SuraSearchedDay, SuraService, SuraServicePage, SuraServiceSchedule, SuraToolRefusedError, SuraToolRefusedFailure, SuraToolRefusedFailureData, } from "./models.js";
|
package/dist/sura/models.d.ts
CHANGED
|
@@ -109,6 +109,12 @@ export interface SuraAvailability {
|
|
|
109
109
|
*/
|
|
110
110
|
aiHint: string;
|
|
111
111
|
date: string | null;
|
|
112
|
+
/**
|
|
113
|
+
* Every day of that month for this professional, so a day with no hours says
|
|
114
|
+
* why. Empty only when SURA's calendar could not be read. Absent on older
|
|
115
|
+
* saved results; absence does not establish a day state.
|
|
116
|
+
*/
|
|
117
|
+
days?: SuraCalendarDay[];
|
|
112
118
|
ok: true;
|
|
113
119
|
/**
|
|
114
120
|
* Other days that month with room.
|
|
@@ -121,6 +127,12 @@ export interface SuraAvailability {
|
|
|
121
127
|
patient: SuraAvailabilityPatient;
|
|
122
128
|
plan: string | null;
|
|
123
129
|
professional: string | null;
|
|
130
|
+
/**
|
|
131
|
+
* True when the day's only free slot is held for the primary-care IPS until
|
|
132
|
+
* 24 hours before it; times leaves it out. Absent on older saved results;
|
|
133
|
+
* absence does not mean false.
|
|
134
|
+
*/
|
|
135
|
+
reserved?: boolean;
|
|
124
136
|
service: string | null;
|
|
125
137
|
/**
|
|
126
138
|
* The hours that may be booked that day, HH:MM.
|
|
@@ -168,6 +180,17 @@ export interface SuraBookedAppointment {
|
|
|
168
180
|
*/
|
|
169
181
|
time: string;
|
|
170
182
|
}
|
|
183
|
+
export interface SuraCalendarDay {
|
|
184
|
+
/**
|
|
185
|
+
* YYYY-MM-DD.
|
|
186
|
+
*/
|
|
187
|
+
date: string;
|
|
188
|
+
/**
|
|
189
|
+
* available: it has free slots. full: it has an agenda with none free.
|
|
190
|
+
* no_agenda: the professional has no agenda that day.
|
|
191
|
+
*/
|
|
192
|
+
status: "available" | "full" | "no_agenda";
|
|
193
|
+
}
|
|
171
194
|
export interface SuraCancelledAppointment {
|
|
172
195
|
/**
|
|
173
196
|
* Spanish guidance for the model: what to do next.
|
|
@@ -566,6 +589,10 @@ export interface SuraRefusal {
|
|
|
566
589
|
ok: false;
|
|
567
590
|
options?: SuraAppointment[];
|
|
568
591
|
place?: string;
|
|
592
|
+
/**
|
|
593
|
+
* The plan a refusal about coverage was judged on.
|
|
594
|
+
*/
|
|
595
|
+
plan?: string;
|
|
569
596
|
professionals?: string[];
|
|
570
597
|
service?: string | null;
|
|
571
598
|
serviceId?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbol-ai/sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.36.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",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"packageManager": "bun@1.4.3",
|
|
59
59
|
"arbol": {
|
|
60
60
|
"openapi": {
|
|
61
|
-
"release": "1.20261105.
|
|
62
|
-
"sha256": "
|
|
61
|
+
"release": "1.20261105.52326",
|
|
62
|
+
"sha256": "afc06a2cff07753a22d3364a2e0ab74e9883551748c112aef44db297bd08b660"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|