@arbol-ai/sdk 5.68.0 → 5.70.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/gmedic/agendas/client.d.ts +4 -1
- package/dist/gmedic/appointments/client.d.ts +3 -2
- package/dist/gmedic/appointments/models.d.ts +2 -2
- package/dist/gmedic/availability/client.d.ts +2 -1
- package/dist/gmedic/availability/models.d.ts +2 -2
- package/dist/gmedic/availableDays/client.d.ts +2 -1
- package/dist/gmedic/availableDays/index.d.ts +1 -1
- package/dist/gmedic/availableDays/models.d.ts +14 -1
- package/dist/gmedic/index.d.ts +1 -1
- package/dist/gmedic/models.d.ts +22 -0
- package/dist/gmedic/patients/client.d.ts +8 -4
- package/dist/gmedic/patients/models.d.ts +2 -2
- package/dist/oficlinic/appointments/client.d.ts +1 -2
- package/dist/sura/authorizations/client.d.ts +4 -1
- package/package.json +3 -3
|
@@ -11,7 +11,10 @@ export interface Client {
|
|
|
11
11
|
* List agendas
|
|
12
12
|
*
|
|
13
13
|
* Use the organization gMedic account. Read-only request; provider failures
|
|
14
|
-
* are never empty results.
|
|
14
|
+
* are never empty results. Agendas gMedic marks inactive (active: false) are
|
|
15
|
+
* left out, so they are never offered; agendas without that flag are kept. A
|
|
16
|
+
* page can hold fewer items than limit: follow nextCursor while hasNextPage
|
|
17
|
+
* is true.
|
|
15
18
|
*/
|
|
16
19
|
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
17
20
|
}
|
|
@@ -12,8 +12,9 @@ export interface Client {
|
|
|
12
12
|
*
|
|
13
13
|
* Create a patient appointment. For agents at clinics using colored booking
|
|
14
14
|
* windows, send bookingRoute with the verified payment route. The connector
|
|
15
|
-
* selects the appointment color and rechecks the entire interval.
|
|
16
|
-
*
|
|
15
|
+
* selects the appointment color and rechecks the entire interval. An agenda
|
|
16
|
+
* gMedic marks inactive is refused with AGENDA_INACTIVE before anything is
|
|
17
|
+
* written. Reconcile unknown outcomes before repeating.
|
|
17
18
|
*/
|
|
18
19
|
create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
|
|
19
20
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Empty, OutcomeUnknownFailure, PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
-
import type { GmedicBookingColorRequiredFailure, GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicNotConfiguredFailure, GmedicProviderAccessRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure } from "../models.js";
|
|
2
|
+
import type { GmedicAgendaInactiveFailure, GmedicBookingColorRequiredFailure, GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicNotConfiguredFailure, GmedicProviderAccessRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure } from "../models.js";
|
|
3
3
|
/**
|
|
4
4
|
* gMedic has no appointment with this id.
|
|
5
5
|
*/
|
|
@@ -234,7 +234,7 @@ export interface GmedicCreateAppointmentConflictError {
|
|
|
234
234
|
metadata: ResponseMetadata;
|
|
235
235
|
success: false;
|
|
236
236
|
}
|
|
237
|
-
export type GmedicCreateAppointmentConflictFailure = GmedicNotConfiguredFailure | GmedicBookingColorRequiredFailure | GmedicBookingInProgressFailure;
|
|
237
|
+
export type GmedicCreateAppointmentConflictFailure = GmedicNotConfiguredFailure | GmedicBookingColorRequiredFailure | GmedicAgendaInactiveFailure | GmedicBookingInProgressFailure;
|
|
238
238
|
/**
|
|
239
239
|
* A failed answer.
|
|
240
240
|
*/
|
|
@@ -12,7 +12,8 @@ export interface Client {
|
|
|
12
12
|
*
|
|
13
13
|
* List available intervals. At clinics using colored booking windows, send
|
|
14
14
|
* the verified bookingRoute. Check the full duration within a returned
|
|
15
|
-
* interval and a compatible agenda.
|
|
15
|
+
* interval and a compatible agenda. An agenda gMedic marks inactive answers
|
|
16
|
+
* AGENDA_INACTIVE: do not offer it.
|
|
16
17
|
*/
|
|
17
18
|
list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
18
19
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { OutcomeUnknownFailure, PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
-
import type { GmedicBookingColorRequiredFailure, GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicNotConfiguredFailure, GmedicProviderAccessRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure } from "../models.js";
|
|
2
|
+
import type { GmedicAgendaInactiveFailure, GmedicBookingColorRequiredFailure, GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicNotConfiguredFailure, GmedicProviderAccessRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure } from "../models.js";
|
|
3
3
|
export interface GmedicAvailabilityPage {
|
|
4
4
|
/**
|
|
5
5
|
* Items admitted by this resource contract within the verified organization.
|
|
@@ -68,7 +68,7 @@ export interface GmedicListAvailabilityConflictError {
|
|
|
68
68
|
metadata: ResponseMetadata;
|
|
69
69
|
success: false;
|
|
70
70
|
}
|
|
71
|
-
export type GmedicListAvailabilityConflictFailure = GmedicNotConfiguredFailure | GmedicBookingColorRequiredFailure;
|
|
71
|
+
export type GmedicListAvailabilityConflictFailure = GmedicNotConfiguredFailure | GmedicBookingColorRequiredFailure | GmedicAgendaInactiveFailure;
|
|
72
72
|
/**
|
|
73
73
|
* A failed answer.
|
|
74
74
|
*/
|
|
@@ -11,7 +11,8 @@ export interface Client {
|
|
|
11
11
|
* List available days
|
|
12
12
|
*
|
|
13
13
|
* Use the organization gMedic account. Read-only request; provider failures
|
|
14
|
-
* are never empty results.
|
|
14
|
+
* are never empty results. An agenda gMedic marks inactive answers
|
|
15
|
+
* AGENDA_INACTIVE.
|
|
15
16
|
*/
|
|
16
17
|
list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
17
18
|
}
|
|
@@ -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 { GmedicAvailableDaysPage, GmedicAvailableDaysPageResponse, GmedicListAvailableDaysBadGatewayError, GmedicListAvailableDaysBadGatewayFailure, GmedicListAvailableDaysNotFoundError, GmedicListAvailableDaysNotFoundFailure, GmedicListAvailableDaysServiceUnavailableError, GmedicListAvailableDaysServiceUnavailableFailure, } from "./models.js";
|
|
5
|
+
export type { GmedicAvailableDaysPage, GmedicAvailableDaysPageResponse, GmedicListAvailableDaysBadGatewayError, GmedicListAvailableDaysBadGatewayFailure, GmedicListAvailableDaysConflictError, GmedicListAvailableDaysConflictFailure, GmedicListAvailableDaysNotFoundError, GmedicListAvailableDaysNotFoundFailure, GmedicListAvailableDaysServiceUnavailableError, GmedicListAvailableDaysServiceUnavailableFailure, } from "./models.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { OutcomeUnknownFailure, PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
-
import type { GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicProviderAccessRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure } from "../models.js";
|
|
2
|
+
import type { GmedicAgendaInactiveFailure, GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicNotConfiguredFailure, GmedicProviderAccessRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure } from "../models.js";
|
|
3
3
|
export interface GmedicAvailableDaysPage {
|
|
4
4
|
/**
|
|
5
5
|
* Items admitted by this resource contract within the verified organization.
|
|
@@ -39,6 +39,19 @@ export interface GmedicListAvailableDaysBadGatewayError {
|
|
|
39
39
|
success: false;
|
|
40
40
|
}
|
|
41
41
|
export type GmedicListAvailableDaysBadGatewayFailure = OutcomeUnknownFailure | GmedicProviderAccessRejectedFailure | GmedicProviderResponseInvalidFailure;
|
|
42
|
+
/**
|
|
43
|
+
* A failed answer.
|
|
44
|
+
*/
|
|
45
|
+
export interface GmedicListAvailableDaysConflictError {
|
|
46
|
+
data: null;
|
|
47
|
+
error: GmedicListAvailableDaysConflictFailure;
|
|
48
|
+
/**
|
|
49
|
+
* What every answer carries besides its data or error.
|
|
50
|
+
*/
|
|
51
|
+
metadata: ResponseMetadata;
|
|
52
|
+
success: false;
|
|
53
|
+
}
|
|
54
|
+
export type GmedicListAvailableDaysConflictFailure = GmedicNotConfiguredFailure | GmedicAgendaInactiveFailure;
|
|
42
55
|
/**
|
|
43
56
|
* A failed answer.
|
|
44
57
|
*/
|
package/dist/gmedic/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 { GmedicBookingColorRequiredFailure, GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicNotConfiguredError, GmedicNotConfiguredFailure, GmedicProviderAccessRejectedFailure, GmedicProviderInputRejectedError, GmedicProviderInputRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure, } from "./models.js";
|
|
5
|
+
export type { GmedicAgendaInactiveFailure, GmedicBookingColorRequiredFailure, GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicNotConfiguredError, GmedicNotConfiguredFailure, GmedicProviderAccessRejectedFailure, GmedicProviderInputRejectedError, GmedicProviderInputRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure, } from "./models.js";
|
package/dist/gmedic/models.d.ts
CHANGED
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
import type { Empty, ResponseMetadata } from "../models.js";
|
|
2
|
+
/**
|
|
3
|
+
* This agenda is inactive in gMedic. Do not offer or book it: choose an active
|
|
4
|
+
* agenda from list_agendas or refer the request to reception.
|
|
5
|
+
*/
|
|
6
|
+
export interface GmedicAgendaInactiveFailure {
|
|
7
|
+
/**
|
|
8
|
+
* The failure code, stable across releases.
|
|
9
|
+
*/
|
|
10
|
+
code: "AGENDA_INACTIVE";
|
|
11
|
+
/**
|
|
12
|
+
* No fields.
|
|
13
|
+
*/
|
|
14
|
+
data: Empty;
|
|
15
|
+
/**
|
|
16
|
+
* What went wrong, for people; it never contains input values.
|
|
17
|
+
*/
|
|
18
|
+
message: string;
|
|
19
|
+
/**
|
|
20
|
+
* Whether repeating the same request may succeed.
|
|
21
|
+
*/
|
|
22
|
+
retryable: false;
|
|
23
|
+
}
|
|
2
24
|
/**
|
|
3
25
|
* This booking requires a verified free interval in the clinic’s correct blue
|
|
4
26
|
* or gray window. Check availability with the required booking color or refer
|
|
@@ -10,8 +10,10 @@ export interface Client {
|
|
|
10
10
|
/**
|
|
11
11
|
* Create patient
|
|
12
12
|
*
|
|
13
|
-
* Use the organization gMedic account.
|
|
14
|
-
* an
|
|
13
|
+
* Use the organization gMedic account. Some clinics need every detail of a
|
|
14
|
+
* patient an agent registers (names, document, birth date, sex, mobilePhone,
|
|
15
|
+
* email, address); a refusal names what is missing. No automatic write
|
|
16
|
+
* retries; reconcile an unknown outcome before repeating.
|
|
15
17
|
*/
|
|
16
18
|
create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
|
|
17
19
|
/**
|
|
@@ -33,8 +35,10 @@ export interface Client {
|
|
|
33
35
|
/**
|
|
34
36
|
* Update patient
|
|
35
37
|
*
|
|
36
|
-
* Use the organization gMedic account.
|
|
37
|
-
*
|
|
38
|
+
* Use the organization gMedic account. Send only the fields that change:
|
|
39
|
+
* every other field gMedic stores is kept. An agent cannot change a patient’s
|
|
40
|
+
* document, names or birth date. No automatic write retries; reconcile an
|
|
41
|
+
* unknown outcome before repeating.
|
|
38
42
|
*/
|
|
39
43
|
update(request: UpdateRequest, options?: RequestOptions): Promise<UpdateResponse>;
|
|
40
44
|
}
|
|
@@ -690,8 +690,8 @@ export interface GmedicUpdatePatientBody {
|
|
|
690
690
|
countryCode?: string;
|
|
691
691
|
dependentsCount?: number;
|
|
692
692
|
disabilityCategoryId?: string;
|
|
693
|
-
documentNumber
|
|
694
|
-
documentTypeId
|
|
693
|
+
documentNumber?: string;
|
|
694
|
+
documentTypeId?: string;
|
|
695
695
|
educationLevelId?: string;
|
|
696
696
|
email?: string;
|
|
697
697
|
epsId?: string;
|
|
@@ -43,8 +43,7 @@ export interface Client {
|
|
|
43
43
|
* resolved from the provider's own data and nothing was written; send it and
|
|
44
44
|
* repeat: contractId when the payer has several active contracts;
|
|
45
45
|
* classification.relationship when the affiliate type is neither C nor N;
|
|
46
|
-
* classification.listStatus when the payer uses an attention list;
|
|
47
|
-
* referral.authorizationNumber when the payer requires authorization; a
|
|
46
|
+
* classification.listStatus when the payer uses an attention list; a
|
|
48
47
|
* classification.salaryRange the regime lists; or billing when the payer's
|
|
49
48
|
* tariff grid has no positive tariff for the service. Before anything is
|
|
50
49
|
* written, the patient is resolved by citizenship card; the source must still
|
|
@@ -15,7 +15,10 @@ export interface Client {
|
|
|
15
15
|
* the provider it is directed to, explicit charge type, fixed fee or copay
|
|
16
16
|
* percentage and provider-reported payments. Procedures that could not be
|
|
17
17
|
* read, unknown balance and copay cap remain null. Does not issue, attend,
|
|
18
|
-
* modify or pay an authorization.
|
|
18
|
+
* modify or pay an authorization. It cannot search or list a patient’s
|
|
19
|
+
* authorizations: to check one, ask the person for its issuer code and
|
|
20
|
+
* number, and never say SURA is checking whether they have one. A pending or
|
|
21
|
+
* missing answer never means the patient has no authorization.
|
|
19
22
|
*/
|
|
20
23
|
lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
|
|
21
24
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbol-ai/sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.70.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.
|
|
62
|
-
"sha256": "
|
|
61
|
+
"release": "1.20261123.204457",
|
|
62
|
+
"sha256": "5b6ce70e9dbb8554fa44cc5a5b9b980ca15786e0df60f2f86ad4a483b5748754"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|