@arbol-ai/sdk 4.0.0 → 5.1.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 +15 -3
- package/dist/agenda/appointments/client.d.ts +165 -52
- package/dist/agenda/appointments/client.js +19 -11
- package/dist/agenda/appointments/index.d.ts +1 -1
- package/dist/agenda/availability/client.d.ts +11 -72
- package/dist/agenda/availability/client.js +5 -14
- package/dist/agenda/availability/index.d.ts +1 -1
- package/dist/agenda/bookingLocations/client.d.ts +51 -0
- package/dist/agenda/bookingLocations/client.js +19 -0
- package/dist/agenda/bookingLocations/index.d.ts +4 -0
- package/dist/agenda/bookingLocations/index.js +4 -0
- package/dist/agenda/bookingOfferings/client.d.ts +82 -0
- package/dist/agenda/bookingOfferings/client.js +18 -0
- package/dist/agenda/bookingOfferings/index.d.ts +5 -0
- package/dist/agenda/bookingOfferings/index.js +4 -0
- package/dist/agenda/bookingOfferings/models.d.ts +92 -0
- package/dist/agenda/bookingOfferings/models.js +3 -0
- package/dist/agenda/bookingRequirements/client.d.ts +118 -0
- package/dist/agenda/bookingRequirements/client.js +18 -0
- package/dist/agenda/bookingRequirements/index.d.ts +4 -0
- package/dist/agenda/bookingRequirements/index.js +4 -0
- package/dist/agenda/bookingSlots/client.d.ts +78 -0
- package/dist/agenda/bookingSlots/client.js +19 -0
- package/dist/agenda/bookingSlots/index.d.ts +4 -0
- package/dist/agenda/bookingSlots/index.js +4 -0
- package/dist/agenda/bookings/client.d.ts +44 -375
- package/dist/agenda/bookings/client.js +10 -52
- package/dist/agenda/bookings/index.d.ts +2 -2
- package/dist/agenda/bookings/models.d.ts +0 -92
- package/dist/agenda/client.d.ts +14 -0
- package/dist/agenda/client.js +35 -0
- package/dist/agenda/firstAvailability/client.d.ts +74 -0
- package/dist/agenda/firstAvailability/client.js +19 -0
- package/dist/agenda/firstAvailability/index.d.ts +5 -0
- package/dist/agenda/firstAvailability/index.js +4 -0
- package/dist/agenda/firstAvailability/models.d.ts +31 -0
- package/dist/agenda/firstAvailability/models.js +7 -0
- package/dist/agenda/index.d.ts +1 -1
- package/dist/agenda/models.d.ts +19 -94
- package/dist/agenda/models.js +0 -3
- package/dist/agenda/nearestBookingSlots/client.d.ts +93 -0
- package/dist/agenda/nearestBookingSlots/client.js +19 -0
- package/dist/agenda/nearestBookingSlots/index.d.ts +5 -0
- package/dist/agenda/nearestBookingSlots/index.js +4 -0
- package/dist/agenda/nearestBookingSlots/models.d.ts +38 -0
- package/dist/agenda/nearestBookingSlots/models.js +7 -0
- package/dist/agenda/offerings/client.d.ts +2 -2
- package/dist/agenda/offerings/client.js +1 -1
- package/dist/agenda/resourceSchedules/client.d.ts +75 -0
- package/dist/agenda/resourceSchedules/client.js +19 -0
- package/dist/agenda/resourceSchedules/index.d.ts +4 -0
- package/dist/agenda/resourceSchedules/index.js +4 -0
- package/dist/agenda/resources/client.d.ts +2 -2
- package/dist/agenda/resources/client.js +1 -1
- package/dist/agenda/scheduleRules/client.d.ts +125 -85
- package/dist/agenda/scheduleRules/client.js +17 -16
- package/dist/agenda/scheduleRules/index.d.ts +2 -1
- package/dist/agenda/scheduleRules/models.d.ts +33 -0
- package/dist/agenda/scheduleRules/models.js +6 -0
- package/dist/agenda/services/client.d.ts +2 -2
- package/dist/agenda/services/client.js +1 -1
- package/dist/agenda/waitlist/client.d.ts +40 -29
- package/dist/agenda/waitlist/client.js +4 -4
- package/dist/agenda/waitlist/index.d.ts +1 -1
- package/dist/agenda/waitlist/models.d.ts +17 -0
- package/dist/agenda/waitlist/models.js +4 -1
- package/dist/axxa/authorizations/client.d.ts +3 -35
- package/dist/axxa/authorizations/client.js +1 -1
- package/dist/axxa/authorizations/index.d.ts +1 -0
- package/dist/axxa/authorizations/models.d.ts +112 -0
- package/dist/axxa/authorizations/models.js +3 -0
- package/dist/axxa/connections/client.d.ts +19 -45
- package/dist/axxa/connections/client.js +10 -11
- package/dist/axxa/connections/index.d.ts +1 -0
- package/dist/axxa/connections/models.d.ts +269 -0
- package/dist/axxa/connections/models.js +3 -0
- package/dist/axxa/eligibility/client.d.ts +3 -25
- package/dist/axxa/eligibility/client.js +1 -1
- package/dist/axxa/eligibility/index.d.ts +1 -0
- package/dist/axxa/eligibility/models.d.ts +102 -0
- package/dist/axxa/eligibility/models.js +3 -0
- package/dist/axxa/index.d.ts +1 -1
- package/dist/axxa/models.d.ts +243 -168
- package/dist/axxa/provider/client.d.ts +5 -11
- package/dist/axxa/provider/client.js +1 -1
- package/dist/axxa/provider/index.d.ts +1 -0
- package/dist/axxa/provider/models.d.ts +87 -0
- package/dist/axxa/provider/models.js +3 -0
- package/dist/client.d.ts +2 -0
- package/dist/client.js +5 -0
- package/dist/gmedic/agendaServices/client.d.ts +13 -9
- package/dist/gmedic/agendaServices/client.js +2 -2
- package/dist/gmedic/agendaServices/index.d.ts +1 -1
- package/dist/gmedic/agendaServices/models.d.ts +53 -1
- package/dist/gmedic/agendas/client.d.ts +16 -9
- package/dist/gmedic/agendas/client.js +2 -2
- package/dist/gmedic/agendas/index.d.ts +1 -1
- package/dist/gmedic/agendas/models.d.ts +53 -1
- package/dist/gmedic/appointments/client.d.ts +34 -241
- package/dist/gmedic/appointments/client.js +12 -10
- package/dist/gmedic/appointments/index.d.ts +1 -1
- package/dist/gmedic/appointments/models.d.ts +518 -1
- package/dist/gmedic/appointments/models.js +28 -2
- package/dist/gmedic/availability/client.d.ts +24 -10
- package/dist/gmedic/availability/client.js +4 -3
- package/dist/gmedic/availability/index.d.ts +1 -1
- package/dist/gmedic/availability/models.d.ts +57 -1
- package/dist/gmedic/availability/models.js +7 -1
- package/dist/gmedic/availableDays/client.d.ts +11 -8
- package/dist/gmedic/availableDays/client.js +1 -1
- package/dist/gmedic/availableDays/index.d.ts +1 -1
- package/dist/gmedic/availableDays/models.d.ts +53 -1
- package/dist/gmedic/branchOffices/client.d.ts +13 -9
- package/dist/gmedic/branchOffices/client.js +2 -2
- package/dist/gmedic/branchOffices/index.d.ts +1 -1
- package/dist/gmedic/branchOffices/models.d.ts +58 -1
- package/dist/gmedic/connections/client.d.ts +19 -42
- package/dist/gmedic/connections/client.js +10 -11
- package/dist/gmedic/connections/index.d.ts +1 -0
- package/dist/gmedic/connections/models.d.ts +162 -0
- package/dist/gmedic/connections/models.js +3 -0
- package/dist/gmedic/dictionaryEntries/client.d.ts +20 -10
- package/dist/gmedic/dictionaryEntries/client.js +2 -2
- package/dist/gmedic/dictionaryEntries/index.d.ts +1 -1
- package/dist/gmedic/dictionaryEntries/models.d.ts +53 -1
- package/dist/gmedic/healthPartners/client.d.ts +19 -9
- package/dist/gmedic/healthPartners/client.js +2 -2
- package/dist/gmedic/healthPartners/index.d.ts +1 -1
- package/dist/gmedic/healthPartners/models.d.ts +53 -1
- package/dist/gmedic/healthPromotionEntities/client.d.ts +20 -10
- package/dist/gmedic/healthPromotionEntities/client.js +2 -2
- package/dist/gmedic/healthPromotionEntities/index.d.ts +1 -1
- package/dist/gmedic/healthPromotionEntities/models.d.ts +53 -1
- package/dist/gmedic/index.d.ts +1 -1
- package/dist/gmedic/laboralRiskManagers/client.d.ts +20 -10
- package/dist/gmedic/laboralRiskManagers/client.js +2 -2
- package/dist/gmedic/laboralRiskManagers/index.d.ts +1 -1
- package/dist/gmedic/laboralRiskManagers/models.d.ts +53 -1
- package/dist/gmedic/models.d.ts +194 -133
- package/dist/gmedic/occupations/client.d.ts +19 -9
- package/dist/gmedic/occupations/client.js +2 -2
- package/dist/gmedic/occupations/index.d.ts +1 -1
- package/dist/gmedic/occupations/models.d.ts +53 -1
- package/dist/gmedic/patientNotes/client.d.ts +25 -55
- package/dist/gmedic/patientNotes/client.js +5 -5
- package/dist/gmedic/patientNotes/index.d.ts +1 -1
- package/dist/gmedic/patientNotes/models.d.ts +232 -1
- package/dist/gmedic/patients/client.d.ts +40 -359
- package/dist/gmedic/patients/client.js +13 -5
- package/dist/gmedic/patients/index.d.ts +2 -2
- package/dist/gmedic/patients/models.d.ts +795 -1
- package/dist/gmedic/services/client.d.ts +22 -16
- package/dist/gmedic/services/client.js +2 -2
- package/dist/gmedic/services/index.d.ts +1 -1
- package/dist/gmedic/services/models.d.ts +53 -3
- package/dist/gmedic/sessionPackages/client.d.ts +21 -58
- package/dist/gmedic/sessionPackages/client.js +5 -5
- package/dist/gmedic/sessionPackages/index.d.ts +1 -1
- package/dist/gmedic/sessionPackages/models.d.ts +183 -1
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +61 -0
- package/dist/models.js +6 -0
- package/dist/nuevaEps/affiliations/client.js +1 -1
- package/dist/nuevaEps/affiliations/models.d.ts +3 -1
- package/dist/nuevaEps/connections/client.d.ts +9 -9
- package/dist/nuevaEps/connections/client.js +9 -9
- package/dist/nuevaEps/connections/index.d.ts +1 -1
- package/dist/nuevaEps/connections/models.d.ts +1 -47
- package/dist/nuevaEps/connections/models.js +1 -8
- package/dist/saludTotal/client.d.ts +15 -0
- package/dist/saludTotal/client.js +20 -0
- package/dist/saludTotal/connections/client.d.ts +53 -0
- package/dist/saludTotal/connections/client.js +33 -0
- package/dist/saludTotal/connections/index.d.ts +5 -0
- package/dist/saludTotal/connections/index.js +4 -0
- package/dist/saludTotal/connections/models.d.ts +62 -0
- package/dist/saludTotal/connections/models.js +9 -0
- package/dist/saludTotal/index.d.ts +5 -0
- package/dist/saludTotal/index.js +4 -0
- package/dist/saludTotal/models.d.ts +37 -0
- package/dist/saludTotal/models.js +3 -0
- package/dist/saludTotal/portals/client.d.ts +35 -0
- package/dist/saludTotal/portals/client.js +18 -0
- package/dist/saludTotal/portals/index.d.ts +5 -0
- package/dist/saludTotal/portals/index.js +4 -0
- package/dist/saludTotal/portals/models.d.ts +30 -0
- package/dist/saludTotal/portals/models.js +3 -0
- package/dist/sura/affiliations/client.d.ts +3 -35
- package/dist/sura/affiliations/client.js +6 -6
- package/dist/sura/affiliations/index.d.ts +1 -0
- package/dist/sura/affiliations/models.d.ts +71 -0
- package/dist/sura/affiliations/models.js +8 -0
- package/dist/sura/appointments/client.d.ts +27 -327
- package/dist/sura/appointments/client.js +15 -21
- package/dist/sura/appointments/index.d.ts +2 -1
- package/dist/sura/appointments/models.d.ts +310 -0
- package/dist/sura/appointments/models.js +22 -0
- package/dist/sura/authorizations/client.d.ts +3 -43
- package/dist/sura/authorizations/client.js +6 -6
- package/dist/sura/authorizations/index.d.ts +1 -0
- package/dist/sura/authorizations/models.d.ts +79 -0
- package/dist/sura/authorizations/models.js +8 -0
- package/dist/sura/availability/client.d.ts +4 -68
- package/dist/sura/availability/client.js +9 -9
- package/dist/sura/availability/index.d.ts +2 -1
- package/dist/sura/availability/models.d.ts +103 -0
- package/dist/sura/availability/models.js +8 -0
- package/dist/sura/bookingOptions/client.d.ts +35 -0
- package/dist/sura/bookingOptions/client.js +19 -0
- package/dist/sura/bookingOptions/index.d.ts +5 -0
- package/dist/sura/bookingOptions/index.js +4 -0
- package/dist/sura/bookingOptions/models.d.ts +143 -0
- package/dist/sura/bookingOptions/models.js +8 -0
- package/dist/sura/client.d.ts +2 -0
- package/dist/sura/client.js +5 -0
- package/dist/sura/connections/client.d.ts +20 -98
- package/dist/sura/connections/client.js +10 -10
- package/dist/sura/connections/index.d.ts +1 -1
- package/dist/sura/connections/models.d.ts +102 -1
- package/dist/sura/connections/models.js +6 -0
- package/dist/sura/copays/client.d.ts +4 -40
- package/dist/sura/copays/client.js +9 -9
- package/dist/sura/copays/index.d.ts +2 -1
- package/dist/sura/copays/models.d.ts +75 -0
- package/dist/sura/copays/models.js +8 -0
- package/dist/sura/index.d.ts +1 -1
- package/dist/sura/models.d.ts +204 -148
- package/dist/sura/models.js +20 -1
- package/dist/sura/operations/client.d.ts +2 -7
- package/dist/sura/operations/client.js +4 -4
- package/dist/sura/operations/index.d.ts +1 -0
- package/dist/sura/operations/models.d.ts +43 -0
- package/dist/sura/operations/models.js +8 -0
- package/dist/sura/patients/client.d.ts +3 -40
- package/dist/sura/patients/client.js +6 -6
- package/dist/sura/patients/index.d.ts +1 -0
- package/dist/sura/patients/models.d.ts +76 -0
- package/dist/sura/patients/models.js +8 -0
- package/dist/sura/professionals/client.d.ts +7 -9
- package/dist/sura/professionals/client.js +3 -4
- package/dist/sura/professionals/index.d.ts +1 -1
- package/dist/sura/professionals/models.d.ts +40 -1
- package/dist/sura/services/client.d.ts +7 -8
- package/dist/sura/services/client.js +3 -4
- package/dist/sura/services/index.d.ts +1 -0
- package/dist/sura/services/models.d.ts +40 -0
- package/dist/sura/services/models.js +3 -0
- package/dist/visoft/index.d.ts +1 -1
- package/dist/visoft/models.d.ts +1 -16
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
3
|
-
import { type AgendaWaitlistEntry } from "./models.js";
|
|
2
|
+
import type { AgendaResponseMetadata } from "../models.js";
|
|
3
|
+
import { type AgendaWaitlistEntry, type AgendaWaitlistEntryPage } from "./models.js";
|
|
4
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
5
|
/**
|
|
6
6
|
* The URL the paths of the API are relative to.
|
|
@@ -21,29 +21,29 @@ export interface Client {
|
|
|
21
21
|
* bring it forward. For agent calls, the platform supplies conversationUrl
|
|
22
22
|
* from the invoking conversation; omit that field. Direct callers may supply
|
|
23
23
|
* the referring conversation link so the team can reopen it. Pass the
|
|
24
|
-
* patient's name,
|
|
25
|
-
* as the patient said it. Use resourceId only for the professional the
|
|
26
|
-
* requested. Calling again for the same patient, service and reason
|
|
27
|
-
* the same open entry and updates supplied consented preferences,
|
|
28
|
-
* payer, conversation or appointment association. A supplied confirmed
|
|
29
|
-
* replaces the patient contact phone; omitted or null phone preserves
|
|
30
|
-
* Omitted fields preserve their values; resourceId:null explicitly
|
|
31
|
-
* any professional. When supplying preferences, send the complete
|
|
32
|
-
* date/time window; null fields clear those limits. Identical
|
|
33
|
-
* change the version. Staff status, priority and original
|
|
34
|
-
* preserved. A closed entry is not reopened. This
|
|
35
|
-
* request, never an appointment. Then tell the
|
|
36
|
-
* contact them.
|
|
24
|
+
* patient's name, documentNumber and documentType, phone, serviceId and the
|
|
25
|
+
* payer as the patient said it. Use resourceId only for the professional the
|
|
26
|
+
* person requested. Calling again for the same patient, service and reason
|
|
27
|
+
* returns the same open entry and updates supplied consented preferences,
|
|
28
|
+
* note, payer, conversation or appointment association. A supplied confirmed
|
|
29
|
+
* phone replaces the patient contact phone; omitted or null phone preserves
|
|
30
|
+
* it. Omitted fields preserve their values; resourceId:null explicitly
|
|
31
|
+
* accepts any professional. When supplying preferences, send the complete
|
|
32
|
+
* consented date/time window; null fields clear those limits. Identical
|
|
33
|
+
* repeats do not change the version. Staff status, priority and original
|
|
34
|
+
* queue position are preserved. A closed entry is not reopened. This
|
|
35
|
+
* registers a waiting-list request, never an appointment. Then tell the
|
|
36
|
+
* patient the clinic's team will contact them.
|
|
37
37
|
*/
|
|
38
38
|
join(request: JoinRequest, options?: RequestOptions): Promise<JoinResponse>;
|
|
39
39
|
/**
|
|
40
40
|
* List Waitlist
|
|
41
41
|
*
|
|
42
|
-
* List the organization’s waitlist entries: open ones first
|
|
43
|
-
* longest waiting), then closed ones, most recently changed
|
|
44
|
-
* Narrow them by serviceId and resourceId (the
|
|
45
|
-
* offeringId finds only entries from before
|
|
46
|
-
* separately.
|
|
42
|
+
* List the organization’s waitlist entries, a page at a time: open ones first
|
|
43
|
+
* (urgent, then the longest waiting), then closed ones, most recently changed
|
|
44
|
+
* first, up to 500 in all. Narrow them by serviceId and resourceId (the
|
|
45
|
+
* agenda an entry asked for); offeringId finds only entries from before
|
|
46
|
+
* services and agendas were chosen separately.
|
|
47
47
|
*/
|
|
48
48
|
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
49
49
|
}
|
|
@@ -74,11 +74,12 @@ export interface JoinRequest {
|
|
|
74
74
|
* recorded.
|
|
75
75
|
*/
|
|
76
76
|
note?: string | null;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
77
|
+
patient: {
|
|
78
|
+
document?: string | null;
|
|
79
|
+
documentNumber?: string | null;
|
|
80
|
+
documentType?: string | null;
|
|
81
|
+
name: string;
|
|
82
|
+
};
|
|
82
83
|
/**
|
|
83
84
|
* The payer the patient named, as said.
|
|
84
85
|
*/
|
|
@@ -118,6 +119,19 @@ export interface JoinResponse {
|
|
|
118
119
|
success: true;
|
|
119
120
|
}
|
|
120
121
|
export interface ListRequest {
|
|
122
|
+
/**
|
|
123
|
+
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
124
|
+
*/
|
|
125
|
+
cursor?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
128
|
+
*/
|
|
129
|
+
direction?: "forward" | "backward";
|
|
130
|
+
/**
|
|
131
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
132
|
+
* another cursor.
|
|
133
|
+
*/
|
|
134
|
+
limit?: number;
|
|
121
135
|
/**
|
|
122
136
|
* Only entries recorded for this exact offering, which only entries from
|
|
123
137
|
* before services and agendas were chosen separately have; newer entries
|
|
@@ -135,10 +149,7 @@ export interface ListRequest {
|
|
|
135
149
|
serviceId?: string;
|
|
136
150
|
}
|
|
137
151
|
export interface ListResponse {
|
|
138
|
-
data:
|
|
139
|
-
data: AgendaWaitlistEntry[];
|
|
140
|
-
object: "list";
|
|
141
|
-
};
|
|
152
|
+
data: AgendaWaitlistEntryPage;
|
|
142
153
|
error: null;
|
|
143
154
|
metadata: AgendaResponseMetadata;
|
|
144
155
|
success: true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
import { Transport,
|
|
4
|
-
import { AgendaWaitlistEntryCodec, } from "./models.js";
|
|
3
|
+
import { Transport, date, object, } from "../../_/index.js";
|
|
4
|
+
import { AgendaWaitlistEntryCodec, AgendaWaitlistEntryPageCodec, } from "./models.js";
|
|
5
5
|
export function createClient(options) {
|
|
6
6
|
return bind(new Transport(options));
|
|
7
7
|
}
|
|
@@ -22,7 +22,7 @@ const JoinOperation = {
|
|
|
22
22
|
const ListOperation = {
|
|
23
23
|
method: "GET",
|
|
24
24
|
route: "/v1/agenda/waitlist",
|
|
25
|
-
query: { offeringId: "offeringId", resourceId: "resourceId", serviceId: "serviceId" },
|
|
26
|
-
response: object([["data", null,
|
|
25
|
+
query: { cursor: "cursor", direction: "direction", limit: "limit", offeringId: "offeringId", resourceId: "resourceId", serviceId: "serviceId" },
|
|
26
|
+
response: object([["data", null, () => AgendaWaitlistEntryPageCodec]]),
|
|
27
27
|
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "426": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
28
28
|
};
|
|
@@ -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, JoinRequest, JoinResponse, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
-
export type { AgendaWaitlistEntry } from "./models.js";
|
|
5
|
+
export type { AgendaWaitlistEntry, AgendaWaitlistEntryPage, } from "./models.js";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PageInfo } from "../../models.js";
|
|
1
2
|
export interface AgendaWaitlistEntry {
|
|
2
3
|
/**
|
|
3
4
|
* The appointment it relates to: a priority to bring forward.
|
|
@@ -47,6 +48,7 @@ export interface AgendaWaitlistEntry {
|
|
|
47
48
|
*/
|
|
48
49
|
patient: {
|
|
49
50
|
document: string | null;
|
|
51
|
+
documentNumber: string | null;
|
|
50
52
|
documentType: string | null;
|
|
51
53
|
id: string;
|
|
52
54
|
name: string;
|
|
@@ -98,4 +100,19 @@ export interface AgendaWaitlistEntry {
|
|
|
98
100
|
*/
|
|
99
101
|
version: number;
|
|
100
102
|
}
|
|
103
|
+
export interface AgendaWaitlistEntryPage {
|
|
104
|
+
/**
|
|
105
|
+
* Items admitted by this resource contract within the verified organization.
|
|
106
|
+
*/
|
|
107
|
+
data: AgendaWaitlistEntry[];
|
|
108
|
+
/**
|
|
109
|
+
* Discriminator for a resource list response.
|
|
110
|
+
*/
|
|
111
|
+
object: "list";
|
|
112
|
+
/**
|
|
113
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
114
|
+
*/
|
|
115
|
+
pageInfo: PageInfo;
|
|
116
|
+
}
|
|
101
117
|
export declare const AgendaWaitlistEntryCodec: import("../../_/codec.js").Codec;
|
|
118
|
+
export declare const AgendaWaitlistEntryPageCodec: import("../../_/codec.js").Codec;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
import { instant, object } from "../../_/index.js";
|
|
3
|
+
import { array, instant, object } from "../../_/index.js";
|
|
4
4
|
export const AgendaWaitlistEntryCodec = object([
|
|
5
5
|
["createdAt", null, instant],
|
|
6
6
|
["updatedAt", null, instant],
|
|
7
7
|
]);
|
|
8
|
+
export const AgendaWaitlistEntryPageCodec = object([
|
|
9
|
+
["data", null, array(() => AgendaWaitlistEntryCodec)],
|
|
10
|
+
]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { AxxaLookupAuthorizationsBody, AxxaLookupAuthorizationsResultResponse } from "./models.js";
|
|
3
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
4
4
|
/**
|
|
5
5
|
* The URL the paths of the API are relative to.
|
|
@@ -18,37 +18,5 @@ export interface Client {
|
|
|
18
18
|
}
|
|
19
19
|
export declare function createClient(options: ClientOptions): Client;
|
|
20
20
|
export declare function bind(transport: Transport): Client;
|
|
21
|
-
export
|
|
22
|
-
|
|
23
|
-
documentNumber: string;
|
|
24
|
-
}
|
|
25
|
-
export interface LookupResponse {
|
|
26
|
-
/**
|
|
27
|
-
* Only an empty authorizations array confirms no matches. Provider failures
|
|
28
|
-
* are errors.
|
|
29
|
-
*/
|
|
30
|
-
data: {
|
|
31
|
-
authorizations: {
|
|
32
|
-
authorizationNumber: string;
|
|
33
|
-
authorizedAt: string;
|
|
34
|
-
diagnosis: {
|
|
35
|
-
code: string;
|
|
36
|
-
description: string;
|
|
37
|
-
};
|
|
38
|
-
product: string;
|
|
39
|
-
requestNumber: string;
|
|
40
|
-
requestedAt: string;
|
|
41
|
-
services: {
|
|
42
|
-
code: string;
|
|
43
|
-
description: string;
|
|
44
|
-
}[];
|
|
45
|
-
}[];
|
|
46
|
-
beneficiary: {
|
|
47
|
-
documentNumber: string;
|
|
48
|
-
name: string;
|
|
49
|
-
} | null;
|
|
50
|
-
};
|
|
51
|
-
error: null;
|
|
52
|
-
metadata: AxxaResponseMetadata;
|
|
53
|
-
success: true;
|
|
54
|
-
}
|
|
21
|
+
export type LookupRequest = AxxaLookupAuthorizationsBody;
|
|
22
|
+
export type LookupResponse = AxxaLookupAuthorizationsResultResponse;
|
|
@@ -14,5 +14,5 @@ const LookupOperation = {
|
|
|
14
14
|
route: "/v1/axxa/authorizations/lookup",
|
|
15
15
|
body: "flat",
|
|
16
16
|
response: null,
|
|
17
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "428": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
18
|
};
|
|
@@ -2,3 +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, LookupRequest, LookupResponse, } from "./client.js";
|
|
5
|
+
export type { AxxaLookupAuthorizationsBadGatewayError, AxxaLookupAuthorizationsBadGatewayFailure, AxxaLookupAuthorizationsBody, AxxaLookupAuthorizationsConflictError, AxxaLookupAuthorizationsConflictFailure, AxxaLookupAuthorizationsForbiddenError, AxxaLookupAuthorizationsForbiddenFailure, AxxaLookupAuthorizationsResult, AxxaLookupAuthorizationsResultResponse, AxxaLookupAuthorizationsServiceUnavailableError, AxxaLookupAuthorizationsServiceUnavailableFailure, AxxaLookupAuthorizationsTooManyRequestsError, AxxaLookupAuthorizationsTooManyRequestsFailure, } from "./models.js";
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type { ForbiddenFailure, OutcomeUnknownFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { AxxaAccountMismatchFailure, AxxaCaptchaPausedFailure, AxxaCaptchaUnavailableFailure, AxxaLoginCooldownFailure, AxxaLoginRejectedFailure, AxxaNotConfiguredFailure, AxxaPortalChangedFailure, AxxaPortalUnavailableFailure, AxxaSessionBusyFailure, AxxaSessionRequiredFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface AxxaLookupAuthorizationsBadGatewayError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: AxxaLookupAuthorizationsBadGatewayFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type AxxaLookupAuthorizationsBadGatewayFailure = OutcomeUnknownFailure | AxxaPortalChangedFailure;
|
|
16
|
+
export interface AxxaLookupAuthorizationsBody {
|
|
17
|
+
connectionId?: string;
|
|
18
|
+
documentNumber: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A failed answer.
|
|
22
|
+
*/
|
|
23
|
+
export interface AxxaLookupAuthorizationsConflictError {
|
|
24
|
+
data: null;
|
|
25
|
+
error: AxxaLookupAuthorizationsConflictFailure;
|
|
26
|
+
/**
|
|
27
|
+
* What every answer carries besides its data or error.
|
|
28
|
+
*/
|
|
29
|
+
metadata: ResponseMetadata;
|
|
30
|
+
success: false;
|
|
31
|
+
}
|
|
32
|
+
export type AxxaLookupAuthorizationsConflictFailure = AxxaNotConfiguredFailure | AxxaSessionRequiredFailure | AxxaSessionBusyFailure;
|
|
33
|
+
/**
|
|
34
|
+
* A failed answer.
|
|
35
|
+
*/
|
|
36
|
+
export interface AxxaLookupAuthorizationsForbiddenError {
|
|
37
|
+
data: null;
|
|
38
|
+
error: AxxaLookupAuthorizationsForbiddenFailure;
|
|
39
|
+
/**
|
|
40
|
+
* What every answer carries besides its data or error.
|
|
41
|
+
*/
|
|
42
|
+
metadata: ResponseMetadata;
|
|
43
|
+
success: false;
|
|
44
|
+
}
|
|
45
|
+
export type AxxaLookupAuthorizationsForbiddenFailure = ForbiddenFailure | AxxaLoginRejectedFailure | AxxaAccountMismatchFailure;
|
|
46
|
+
/**
|
|
47
|
+
* Only an empty authorizations array confirms no matches. Provider failures are
|
|
48
|
+
* errors.
|
|
49
|
+
*/
|
|
50
|
+
export interface AxxaLookupAuthorizationsResult {
|
|
51
|
+
authorizations: {
|
|
52
|
+
authorizationNumber: string;
|
|
53
|
+
authorizedAt: string;
|
|
54
|
+
diagnosis: {
|
|
55
|
+
code: string;
|
|
56
|
+
description: string;
|
|
57
|
+
};
|
|
58
|
+
product: string;
|
|
59
|
+
requestNumber: string;
|
|
60
|
+
requestedAt: string;
|
|
61
|
+
services: {
|
|
62
|
+
code: string;
|
|
63
|
+
description: string;
|
|
64
|
+
}[];
|
|
65
|
+
}[];
|
|
66
|
+
beneficiary: {
|
|
67
|
+
documentNumber: string;
|
|
68
|
+
name: string;
|
|
69
|
+
} | null;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* A successful answer.
|
|
73
|
+
*/
|
|
74
|
+
export interface AxxaLookupAuthorizationsResultResponse {
|
|
75
|
+
/**
|
|
76
|
+
* Only an empty authorizations array confirms no matches. Provider failures
|
|
77
|
+
* are errors.
|
|
78
|
+
*/
|
|
79
|
+
data: AxxaLookupAuthorizationsResult;
|
|
80
|
+
error: null;
|
|
81
|
+
/**
|
|
82
|
+
* What every answer carries besides its data or error.
|
|
83
|
+
*/
|
|
84
|
+
metadata: ResponseMetadata;
|
|
85
|
+
success: true;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* A failed answer.
|
|
89
|
+
*/
|
|
90
|
+
export interface AxxaLookupAuthorizationsServiceUnavailableError {
|
|
91
|
+
data: null;
|
|
92
|
+
error: AxxaLookupAuthorizationsServiceUnavailableFailure;
|
|
93
|
+
/**
|
|
94
|
+
* What every answer carries besides its data or error.
|
|
95
|
+
*/
|
|
96
|
+
metadata: ResponseMetadata;
|
|
97
|
+
success: false;
|
|
98
|
+
}
|
|
99
|
+
export type AxxaLookupAuthorizationsServiceUnavailableFailure = UpstreamUnavailableFailure | AxxaCaptchaUnavailableFailure | AxxaCaptchaPausedFailure | AxxaPortalUnavailableFailure;
|
|
100
|
+
/**
|
|
101
|
+
* A failed answer.
|
|
102
|
+
*/
|
|
103
|
+
export interface AxxaLookupAuthorizationsTooManyRequestsError {
|
|
104
|
+
data: null;
|
|
105
|
+
error: AxxaLookupAuthorizationsTooManyRequestsFailure;
|
|
106
|
+
/**
|
|
107
|
+
* What every answer carries besides its data or error.
|
|
108
|
+
*/
|
|
109
|
+
metadata: ResponseMetadata;
|
|
110
|
+
success: false;
|
|
111
|
+
}
|
|
112
|
+
export type AxxaLookupAuthorizationsTooManyRequestsFailure = RateLimitedFailure | AxxaLoginCooldownFailure;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import { type
|
|
3
|
-
import type {
|
|
2
|
+
import { type ConnectionPageResponse, type ConnectionResponse, type DeletedObjectResponse, type VerifyConnectionResultResponse } from "../../models.js";
|
|
3
|
+
import type { AxxaVerifyConnectionBody } from "./models.js";
|
|
4
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
5
|
/**
|
|
6
6
|
* The URL the paths of the API are relative to.
|
|
@@ -41,26 +41,19 @@ export interface Client {
|
|
|
41
41
|
export declare function createClient(options: ClientOptions): Client;
|
|
42
42
|
export declare function bind(transport: Transport): Client;
|
|
43
43
|
export interface DeleteRequest {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
export interface DeleteResponse {
|
|
50
|
-
data: DeletedObject;
|
|
51
|
-
error: null;
|
|
52
|
-
metadata: AxxaResponseMetadata;
|
|
53
|
-
success: true;
|
|
44
|
+
/**
|
|
45
|
+
* The connection id.
|
|
46
|
+
*/
|
|
47
|
+
connectionId: string;
|
|
54
48
|
}
|
|
49
|
+
export type DeleteResponse = DeletedObjectResponse;
|
|
55
50
|
export interface GetRequest {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
error: null;
|
|
61
|
-
metadata: AxxaResponseMetadata;
|
|
62
|
-
success: true;
|
|
51
|
+
/**
|
|
52
|
+
* The connection id.
|
|
53
|
+
*/
|
|
54
|
+
connectionId: string;
|
|
63
55
|
}
|
|
56
|
+
export type GetResponse = ConnectionResponse;
|
|
64
57
|
export interface ListRequest {
|
|
65
58
|
/**
|
|
66
59
|
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
@@ -76,30 +69,11 @@ export interface ListRequest {
|
|
|
76
69
|
*/
|
|
77
70
|
limit?: number;
|
|
78
71
|
}
|
|
79
|
-
export
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
export interface VerifyRequest {
|
|
72
|
+
export type ListResponse = ConnectionPageResponse;
|
|
73
|
+
export type VerifyRequest = {
|
|
74
|
+
/**
|
|
75
|
+
* The connection id.
|
|
76
|
+
*/
|
|
86
77
|
connectionId: string;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
password: string;
|
|
90
|
-
providerCode: string;
|
|
91
|
-
username: string;
|
|
92
|
-
}
|
|
93
|
-
export interface VerifyResponse {
|
|
94
|
-
data: {
|
|
95
|
-
stateRef: string;
|
|
96
|
-
status: "active";
|
|
97
|
-
summary: string;
|
|
98
|
-
} | {
|
|
99
|
-
errorCode: string;
|
|
100
|
-
status: "rejected";
|
|
101
|
-
};
|
|
102
|
-
error: null;
|
|
103
|
-
metadata: AxxaResponseMetadata;
|
|
104
|
-
success: true;
|
|
105
|
-
}
|
|
78
|
+
} & AxxaVerifyConnectionBody;
|
|
79
|
+
export type VerifyResponse = VerifyConnectionResultResponse;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
import { Transport,
|
|
4
|
-
import {
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { ConnectionPageResponseCodec, ConnectionResponseCodec, } from "../../models.js";
|
|
5
5
|
export function createClient(options) {
|
|
6
6
|
return bind(new Transport(options));
|
|
7
7
|
}
|
|
@@ -15,28 +15,27 @@ export function bind(transport) {
|
|
|
15
15
|
}
|
|
16
16
|
const DeleteOperation = {
|
|
17
17
|
method: "DELETE",
|
|
18
|
-
route: "/v1/axxa/connections/{
|
|
19
|
-
body: "nested",
|
|
18
|
+
route: "/v1/axxa/connections/{connectionId}",
|
|
20
19
|
response: null,
|
|
21
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
20
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "428": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
22
21
|
};
|
|
23
22
|
const GetOperation = {
|
|
24
23
|
method: "GET",
|
|
25
|
-
route: "/v1/axxa/connections/{
|
|
26
|
-
response:
|
|
27
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
24
|
+
route: "/v1/axxa/connections/{connectionId}",
|
|
25
|
+
response: ConnectionResponseCodec,
|
|
26
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "428": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
28
27
|
};
|
|
29
28
|
const ListOperation = {
|
|
30
29
|
method: "GET",
|
|
31
30
|
route: "/v1/axxa/connections",
|
|
32
31
|
query: { cursor: "cursor", direction: "direction", limit: "limit" },
|
|
33
|
-
response:
|
|
34
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
32
|
+
response: ConnectionPageResponseCodec,
|
|
33
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "428": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
35
34
|
};
|
|
36
35
|
const VerifyOperation = {
|
|
37
36
|
method: "POST",
|
|
38
37
|
route: "/v1/axxa/connections/{connectionId}/verify",
|
|
39
38
|
body: "flat",
|
|
40
39
|
response: null,
|
|
41
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
40
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "428": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
42
41
|
};
|
|
@@ -2,3 +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, DeleteRequest, DeleteResponse, GetRequest, GetResponse, ListRequest, ListResponse, VerifyRequest, VerifyResponse, } from "./client.js";
|
|
5
|
+
export type { AxxaDeleteConnectionBadGatewayError, AxxaDeleteConnectionBadGatewayFailure, AxxaDeleteConnectionConflictError, AxxaDeleteConnectionConflictFailure, AxxaDeleteConnectionForbiddenError, AxxaDeleteConnectionForbiddenFailure, AxxaDeleteConnectionServiceUnavailableError, AxxaDeleteConnectionServiceUnavailableFailure, AxxaDeleteConnectionTooManyRequestsError, AxxaDeleteConnectionTooManyRequestsFailure, AxxaGetConnectionBadGatewayError, AxxaGetConnectionBadGatewayFailure, AxxaGetConnectionConflictError, AxxaGetConnectionConflictFailure, AxxaGetConnectionForbiddenError, AxxaGetConnectionForbiddenFailure, AxxaGetConnectionServiceUnavailableError, AxxaGetConnectionServiceUnavailableFailure, AxxaGetConnectionTooManyRequestsError, AxxaGetConnectionTooManyRequestsFailure, AxxaListConnectionsBadGatewayError, AxxaListConnectionsBadGatewayFailure, AxxaListConnectionsConflictError, AxxaListConnectionsConflictFailure, AxxaListConnectionsForbiddenError, AxxaListConnectionsForbiddenFailure, AxxaListConnectionsServiceUnavailableError, AxxaListConnectionsServiceUnavailableFailure, AxxaListConnectionsTooManyRequestsError, AxxaListConnectionsTooManyRequestsFailure, AxxaVerifyConnectionBadGatewayError, AxxaVerifyConnectionBadGatewayFailure, AxxaVerifyConnectionBody, AxxaVerifyConnectionConflictError, AxxaVerifyConnectionConflictFailure, AxxaVerifyConnectionForbiddenError, AxxaVerifyConnectionForbiddenFailure, AxxaVerifyConnectionServiceUnavailableError, AxxaVerifyConnectionServiceUnavailableFailure, AxxaVerifyConnectionTooManyRequestsError, AxxaVerifyConnectionTooManyRequestsFailure, } from "./models.js";
|