@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
|
|
2
|
+
import { type ConnectionPageResponse, type ConnectionResponse, type DeletedObjectResponse, type VerifyConnectionResultResponse } from "../../models.js";
|
|
3
|
+
import type { NuevaEpsVerifyConnectionBody } from "./models.js";
|
|
4
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
5
|
/**
|
|
6
6
|
* The URL the paths of the API are relative to.
|
|
@@ -42,18 +42,18 @@ export declare function createClient(options: ClientOptions): Client;
|
|
|
42
42
|
export declare function bind(transport: Transport): Client;
|
|
43
43
|
export interface DeleteRequest {
|
|
44
44
|
/**
|
|
45
|
-
* The id.
|
|
45
|
+
* The connection id.
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
connectionId: string;
|
|
48
48
|
}
|
|
49
49
|
export type DeleteResponse = DeletedObjectResponse;
|
|
50
50
|
export interface GetRequest {
|
|
51
51
|
/**
|
|
52
|
-
* The id.
|
|
52
|
+
* The connection id.
|
|
53
53
|
*/
|
|
54
|
-
|
|
54
|
+
connectionId: string;
|
|
55
55
|
}
|
|
56
|
-
export type GetResponse =
|
|
56
|
+
export type GetResponse = ConnectionResponse;
|
|
57
57
|
export interface ListRequest {
|
|
58
58
|
/**
|
|
59
59
|
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
@@ -69,11 +69,11 @@ export interface ListRequest {
|
|
|
69
69
|
*/
|
|
70
70
|
limit?: number;
|
|
71
71
|
}
|
|
72
|
-
export type ListResponse =
|
|
72
|
+
export type ListResponse = ConnectionPageResponse;
|
|
73
73
|
export type VerifyRequest = {
|
|
74
74
|
/**
|
|
75
75
|
* The connection id.
|
|
76
76
|
*/
|
|
77
77
|
connectionId: string;
|
|
78
78
|
} & NuevaEpsVerifyConnectionBody;
|
|
79
|
-
export type VerifyResponse =
|
|
79
|
+
export type VerifyResponse = VerifyConnectionResultResponse;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
import { Transport, } from "../../_/index.js";
|
|
4
|
-
import {
|
|
4
|
+
import { ConnectionPageResponseCodec, ConnectionResponseCodec, } from "../../models.js";
|
|
5
5
|
export function createClient(options) {
|
|
6
6
|
return bind(new Transport(options));
|
|
7
7
|
}
|
|
@@ -15,27 +15,27 @@ export function bind(transport) {
|
|
|
15
15
|
}
|
|
16
16
|
const DeleteOperation = {
|
|
17
17
|
method: "DELETE",
|
|
18
|
-
route: "/v1/nueva-eps/connections/{
|
|
18
|
+
route: "/v1/nueva-eps/connections/{connectionId}",
|
|
19
19
|
response: null,
|
|
20
|
-
errors: { "400": true, "401": true, "403": true, "409": true, "429": true, "500": true, "501": true, "502": true, "503": true, "504": true },
|
|
20
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "501": true, "502": true, "503": true, "504": true },
|
|
21
21
|
};
|
|
22
22
|
const GetOperation = {
|
|
23
23
|
method: "GET",
|
|
24
|
-
route: "/v1/nueva-eps/connections/{
|
|
25
|
-
response:
|
|
26
|
-
errors: { "400": true, "401": true, "403": true, "409": true, "429": true, "500": true, "501": true, "502": true, "503": true, "504": true },
|
|
24
|
+
route: "/v1/nueva-eps/connections/{connectionId}",
|
|
25
|
+
response: ConnectionResponseCodec,
|
|
26
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "501": true, "502": true, "503": true, "504": true },
|
|
27
27
|
};
|
|
28
28
|
const ListOperation = {
|
|
29
29
|
method: "GET",
|
|
30
30
|
route: "/v1/nueva-eps/connections",
|
|
31
31
|
query: { cursor: "cursor", direction: "direction", limit: "limit" },
|
|
32
|
-
response:
|
|
33
|
-
errors: { "400": true, "401": true, "403": true, "409": true, "429": true, "500": true, "501": true, "502": true, "503": true, "504": true },
|
|
32
|
+
response: ConnectionPageResponseCodec,
|
|
33
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "501": true, "502": true, "503": true, "504": true },
|
|
34
34
|
};
|
|
35
35
|
const VerifyOperation = {
|
|
36
36
|
method: "POST",
|
|
37
37
|
route: "/v1/nueva-eps/connections/{connectionId}/verify",
|
|
38
38
|
body: "flat",
|
|
39
39
|
response: null,
|
|
40
|
-
errors: { "400": true, "401": true, "403": true, "409": true, "413": true, "415": true, "429": true, "500": true, "501": true, "502": true, "503": true, "504": true },
|
|
40
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "429": true, "500": true, "501": true, "502": true, "503": true, "504": true },
|
|
41
41
|
};
|
|
@@ -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, DeleteRequest, DeleteResponse, GetRequest, GetResponse, ListRequest, ListResponse, VerifyRequest, VerifyResponse, } from "./client.js";
|
|
5
|
-
export type {
|
|
5
|
+
export type { NuevaEpsDeleteConnectionBadGatewayError, NuevaEpsDeleteConnectionBadGatewayFailure, NuevaEpsDeleteConnectionConflictError, NuevaEpsDeleteConnectionConflictFailure, NuevaEpsDeleteConnectionForbiddenError, NuevaEpsDeleteConnectionForbiddenFailure, NuevaEpsDeleteConnectionServiceUnavailableError, NuevaEpsDeleteConnectionServiceUnavailableFailure, NuevaEpsDeleteConnectionTooManyRequestsError, NuevaEpsDeleteConnectionTooManyRequestsFailure, NuevaEpsGetConnectionBadGatewayError, NuevaEpsGetConnectionBadGatewayFailure, NuevaEpsGetConnectionConflictError, NuevaEpsGetConnectionConflictFailure, NuevaEpsGetConnectionForbiddenError, NuevaEpsGetConnectionForbiddenFailure, NuevaEpsGetConnectionServiceUnavailableError, NuevaEpsGetConnectionServiceUnavailableFailure, NuevaEpsGetConnectionTooManyRequestsError, NuevaEpsGetConnectionTooManyRequestsFailure, NuevaEpsListConnectionsBadGatewayError, NuevaEpsListConnectionsBadGatewayFailure, NuevaEpsListConnectionsConflictError, NuevaEpsListConnectionsConflictFailure, NuevaEpsListConnectionsForbiddenError, NuevaEpsListConnectionsForbiddenFailure, NuevaEpsListConnectionsServiceUnavailableError, NuevaEpsListConnectionsServiceUnavailableFailure, NuevaEpsListConnectionsTooManyRequestsError, NuevaEpsListConnectionsTooManyRequestsFailure, NuevaEpsVerifyConnectionBadGatewayError, NuevaEpsVerifyConnectionBadGatewayFailure, NuevaEpsVerifyConnectionBody, NuevaEpsVerifyConnectionConflictError, NuevaEpsVerifyConnectionConflictFailure, NuevaEpsVerifyConnectionForbiddenError, NuevaEpsVerifyConnectionForbiddenFailure, NuevaEpsVerifyConnectionServiceUnavailableError, NuevaEpsVerifyConnectionServiceUnavailableFailure, NuevaEpsVerifyConnectionTooManyRequestsError, NuevaEpsVerifyConnectionTooManyRequestsFailure, } from "./models.js";
|
|
@@ -1,29 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ForbiddenFailure, OutcomeUnknownFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
2
|
import type { NuevaEpsLoginCooldownFailure, NuevaEpsLoginRejectedFailure, NuevaEpsNotConfiguredFailure, NuevaEpsPortalChangedFailure, NuevaEpsPortalUnavailableFailure, NuevaEpsRegionBlockedFailure, NuevaEpsSessionBusyFailure, NuevaEpsSessionRequiredFailure } from "../models.js";
|
|
3
|
-
/**
|
|
4
|
-
* A successful answer.
|
|
5
|
-
*/
|
|
6
|
-
export interface NuevaEpsConnectionPageResponse {
|
|
7
|
-
data: ConnectionPage;
|
|
8
|
-
error: null;
|
|
9
|
-
/**
|
|
10
|
-
* What every answer carries besides its data or error.
|
|
11
|
-
*/
|
|
12
|
-
metadata: ResponseMetadata;
|
|
13
|
-
success: true;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* A successful answer.
|
|
17
|
-
*/
|
|
18
|
-
export interface NuevaEpsConnectionResponse {
|
|
19
|
-
data: Connection;
|
|
20
|
-
error: null;
|
|
21
|
-
/**
|
|
22
|
-
* What every answer carries besides its data or error.
|
|
23
|
-
*/
|
|
24
|
-
metadata: ResponseMetadata;
|
|
25
|
-
success: true;
|
|
26
|
-
}
|
|
27
3
|
/**
|
|
28
4
|
* A failed answer.
|
|
29
5
|
*/
|
|
@@ -272,26 +248,6 @@ export interface NuevaEpsVerifyConnectionForbiddenError {
|
|
|
272
248
|
success: false;
|
|
273
249
|
}
|
|
274
250
|
export type NuevaEpsVerifyConnectionForbiddenFailure = ForbiddenFailure | NuevaEpsLoginRejectedFailure;
|
|
275
|
-
export type NuevaEpsVerifyConnectionResult = {
|
|
276
|
-
stateRef: string;
|
|
277
|
-
status: "active";
|
|
278
|
-
summary: string;
|
|
279
|
-
} | {
|
|
280
|
-
errorCode: string;
|
|
281
|
-
status: "rejected";
|
|
282
|
-
};
|
|
283
|
-
/**
|
|
284
|
-
* A successful answer.
|
|
285
|
-
*/
|
|
286
|
-
export interface NuevaEpsVerifyConnectionResultResponse {
|
|
287
|
-
data: NuevaEpsVerifyConnectionResult;
|
|
288
|
-
error: null;
|
|
289
|
-
/**
|
|
290
|
-
* What every answer carries besides its data or error.
|
|
291
|
-
*/
|
|
292
|
-
metadata: ResponseMetadata;
|
|
293
|
-
success: true;
|
|
294
|
-
}
|
|
295
251
|
/**
|
|
296
252
|
* A failed answer.
|
|
297
253
|
*/
|
|
@@ -318,5 +274,3 @@ export interface NuevaEpsVerifyConnectionTooManyRequestsError {
|
|
|
318
274
|
success: false;
|
|
319
275
|
}
|
|
320
276
|
export type NuevaEpsVerifyConnectionTooManyRequestsFailure = RateLimitedFailure | NuevaEpsLoginCooldownFailure;
|
|
321
|
-
export declare const NuevaEpsConnectionPageResponseCodec: import("../../_/codec.js").Codec;
|
|
322
|
-
export declare const NuevaEpsConnectionResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
import { ConnectionCodec, ConnectionPageCodec, } from "../../models.js";
|
|
5
|
-
export const NuevaEpsConnectionPageResponseCodec = object([
|
|
6
|
-
["data", null, () => ConnectionPageCodec],
|
|
7
|
-
]);
|
|
8
|
-
export const NuevaEpsConnectionResponseCodec = object([
|
|
9
|
-
["data", null, () => ConnectionCodec],
|
|
10
|
-
]);
|
|
3
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type BaseClientOptions, Transport } from "../_/index.js";
|
|
2
|
+
import { type Client as ConnectionsClient } from "./connections/client.js";
|
|
3
|
+
import { type Client as PortalsClient } from "./portals/client.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
|
+
readonly connections: ConnectionsClient;
|
|
12
|
+
readonly portals: PortalsClient;
|
|
13
|
+
}
|
|
14
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
15
|
+
export declare function bind(transport: Transport): Client;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport } from "../_/index.js";
|
|
4
|
+
import { bind as bindConnections, } from "./connections/client.js";
|
|
5
|
+
import { bind as bindPortals, } from "./portals/client.js";
|
|
6
|
+
export function createClient(options) {
|
|
7
|
+
return bind(new Transport(options));
|
|
8
|
+
}
|
|
9
|
+
export function bind(transport) {
|
|
10
|
+
let connectionsClient;
|
|
11
|
+
let portalsClient;
|
|
12
|
+
return {
|
|
13
|
+
get connections() {
|
|
14
|
+
return (connectionsClient ??= bindConnections(transport));
|
|
15
|
+
},
|
|
16
|
+
get portals() {
|
|
17
|
+
return (portalsClient ??= bindPortals(transport));
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import { type SaludTotalDeleteConnectionResultResponse, type SaludTotalGetConnectionResultResponse, type SaludTotalVerifyConnectionBody, type SaludTotalVerifyConnectionResultResponse } 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
|
+
* Delete an IPS connection
|
|
12
|
+
*
|
|
13
|
+
* Forget verification for a connection of the signed-in organization.
|
|
14
|
+
*/
|
|
15
|
+
delete(request: DeleteRequest, options?: RequestOptions): Promise<DeleteResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Get a verified IPS connection
|
|
18
|
+
*
|
|
19
|
+
* Read the workflow tag and time of the last successful IPS portal
|
|
20
|
+
* verification.
|
|
21
|
+
*/
|
|
22
|
+
get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Verify an IPS connection
|
|
25
|
+
*
|
|
26
|
+
* Verify one IPS login and its tagged portal with a protected menu read.
|
|
27
|
+
* Interactive verification stops the attempt.
|
|
28
|
+
*/
|
|
29
|
+
verify(request: VerifyRequest, options?: RequestOptions): Promise<VerifyResponse>;
|
|
30
|
+
}
|
|
31
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
32
|
+
export declare function bind(transport: Transport): Client;
|
|
33
|
+
export interface DeleteRequest {
|
|
34
|
+
/**
|
|
35
|
+
* The connection id.
|
|
36
|
+
*/
|
|
37
|
+
connectionId: string;
|
|
38
|
+
}
|
|
39
|
+
export type DeleteResponse = SaludTotalDeleteConnectionResultResponse;
|
|
40
|
+
export interface GetRequest {
|
|
41
|
+
/**
|
|
42
|
+
* The connection id.
|
|
43
|
+
*/
|
|
44
|
+
connectionId: string;
|
|
45
|
+
}
|
|
46
|
+
export type GetResponse = SaludTotalGetConnectionResultResponse;
|
|
47
|
+
export type VerifyRequest = {
|
|
48
|
+
/**
|
|
49
|
+
* The connection id.
|
|
50
|
+
*/
|
|
51
|
+
connectionId: string;
|
|
52
|
+
} & SaludTotalVerifyConnectionBody;
|
|
53
|
+
export type VerifyResponse = SaludTotalVerifyConnectionResultResponse;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { SaludTotalGetConnectionResultResponseCodec, } from "./models.js";
|
|
5
|
+
export function createClient(options) {
|
|
6
|
+
return bind(new Transport(options));
|
|
7
|
+
}
|
|
8
|
+
export function bind(transport) {
|
|
9
|
+
return {
|
|
10
|
+
delete: (request, options) => transport.send(DeleteOperation, request, options),
|
|
11
|
+
get: (request, options) => transport.send(GetOperation, request, options),
|
|
12
|
+
verify: (request, options) => transport.send(VerifyOperation, request, options),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
const DeleteOperation = {
|
|
16
|
+
method: "DELETE",
|
|
17
|
+
route: "/v1/salud-total/connections/{connectionId}",
|
|
18
|
+
response: null,
|
|
19
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
20
|
+
};
|
|
21
|
+
const GetOperation = {
|
|
22
|
+
method: "GET",
|
|
23
|
+
route: "/v1/salud-total/connections/{connectionId}",
|
|
24
|
+
response: SaludTotalGetConnectionResultResponseCodec,
|
|
25
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
26
|
+
};
|
|
27
|
+
const VerifyOperation = {
|
|
28
|
+
method: "POST",
|
|
29
|
+
route: "/v1/salud-total/connections/{connectionId}/verify",
|
|
30
|
+
body: "flat",
|
|
31
|
+
response: null,
|
|
32
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
33
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "../../_/index.js";
|
|
2
|
+
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, DeleteRequest, DeleteResponse, GetRequest, GetResponse, VerifyRequest, VerifyResponse, } from "./client.js";
|
|
5
|
+
export type { SaludTotalDeleteConnectionResult, SaludTotalDeleteConnectionResultResponse, SaludTotalGetConnectionResult, SaludTotalGetConnectionResultResponse, SaludTotalVerifyConnectionBody, SaludTotalVerifyConnectionResult, SaludTotalVerifyConnectionResultResponse, } from "./models.js";
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { ResponseMetadata } from "../../models.js";
|
|
2
|
+
export interface SaludTotalDeleteConnectionResult {
|
|
3
|
+
deleted: true;
|
|
4
|
+
id: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* A successful answer.
|
|
8
|
+
*/
|
|
9
|
+
export interface SaludTotalDeleteConnectionResultResponse {
|
|
10
|
+
data: SaludTotalDeleteConnectionResult;
|
|
11
|
+
error: null;
|
|
12
|
+
/**
|
|
13
|
+
* What every answer carries besides its data or error.
|
|
14
|
+
*/
|
|
15
|
+
metadata: ResponseMetadata;
|
|
16
|
+
success: true;
|
|
17
|
+
}
|
|
18
|
+
export interface SaludTotalGetConnectionResult {
|
|
19
|
+
tag: "postconsulta" | "facturacion";
|
|
20
|
+
verifiedAt: Temporal.Instant;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A successful answer.
|
|
24
|
+
*/
|
|
25
|
+
export interface SaludTotalGetConnectionResultResponse {
|
|
26
|
+
data: SaludTotalGetConnectionResult;
|
|
27
|
+
error: null;
|
|
28
|
+
/**
|
|
29
|
+
* What every answer carries besides its data or error.
|
|
30
|
+
*/
|
|
31
|
+
metadata: ResponseMetadata;
|
|
32
|
+
success: true;
|
|
33
|
+
}
|
|
34
|
+
export interface SaludTotalVerifyConnectionBody {
|
|
35
|
+
documentType: "CC";
|
|
36
|
+
name: string;
|
|
37
|
+
nit: string;
|
|
38
|
+
password: string;
|
|
39
|
+
tag: "postconsulta" | "facturacion";
|
|
40
|
+
username: string;
|
|
41
|
+
}
|
|
42
|
+
export type SaludTotalVerifyConnectionResult = {
|
|
43
|
+
stateRef: string;
|
|
44
|
+
status: "active";
|
|
45
|
+
} | {
|
|
46
|
+
errorCode: string;
|
|
47
|
+
status: "rejected";
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* A successful answer.
|
|
51
|
+
*/
|
|
52
|
+
export interface SaludTotalVerifyConnectionResultResponse {
|
|
53
|
+
data: SaludTotalVerifyConnectionResult;
|
|
54
|
+
error: null;
|
|
55
|
+
/**
|
|
56
|
+
* What every answer carries besides its data or error.
|
|
57
|
+
*/
|
|
58
|
+
metadata: ResponseMetadata;
|
|
59
|
+
success: true;
|
|
60
|
+
}
|
|
61
|
+
export declare const SaludTotalGetConnectionResultCodec: import("../../_/codec.js").Codec;
|
|
62
|
+
export declare const SaludTotalGetConnectionResultResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { instant, object } from "../../_/index.js";
|
|
4
|
+
export const SaludTotalGetConnectionResultCodec = object([
|
|
5
|
+
["verifiedAt", null, instant],
|
|
6
|
+
]);
|
|
7
|
+
export const SaludTotalGetConnectionResultResponseCodec = object([
|
|
8
|
+
["data", null, () => SaludTotalGetConnectionResultCodec],
|
|
9
|
+
]);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "../_/index.js";
|
|
2
|
+
export type { RequestOptions } from "../_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, } from "./client.js";
|
|
5
|
+
export type { SaludTotalConnectionNotFoundError, SaludTotalConnectionNotFoundFailure, } from "./models.js";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { Empty, ResponseMetadata } from "../models.js";
|
|
2
|
+
/**
|
|
3
|
+
* A failed answer.
|
|
4
|
+
*/
|
|
5
|
+
export interface SaludTotalConnectionNotFoundError {
|
|
6
|
+
data: null;
|
|
7
|
+
/**
|
|
8
|
+
* This organization has no verified connection with this id.
|
|
9
|
+
*/
|
|
10
|
+
error: SaludTotalConnectionNotFoundFailure;
|
|
11
|
+
/**
|
|
12
|
+
* What every answer carries besides its data or error.
|
|
13
|
+
*/
|
|
14
|
+
metadata: ResponseMetadata;
|
|
15
|
+
success: false;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* This organization has no verified connection with this id.
|
|
19
|
+
*/
|
|
20
|
+
export interface SaludTotalConnectionNotFoundFailure {
|
|
21
|
+
/**
|
|
22
|
+
* The failure code, stable across releases.
|
|
23
|
+
*/
|
|
24
|
+
code: "CONNECTION_NOT_FOUND";
|
|
25
|
+
/**
|
|
26
|
+
* No fields.
|
|
27
|
+
*/
|
|
28
|
+
data: Empty;
|
|
29
|
+
/**
|
|
30
|
+
* What went wrong, for people; it never contains input values.
|
|
31
|
+
*/
|
|
32
|
+
message: string;
|
|
33
|
+
/**
|
|
34
|
+
* Whether repeating the same request may succeed.
|
|
35
|
+
*/
|
|
36
|
+
retryable: false;
|
|
37
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { SaludTotalPortalPageResponse } 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 portals
|
|
12
|
+
*
|
|
13
|
+
* List the IPS portal entry points and the workflow tags accepted by Account
|
|
14
|
+
* connections.
|
|
15
|
+
*/
|
|
16
|
+
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
17
|
+
}
|
|
18
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
19
|
+
export declare function bind(transport: Transport): Client;
|
|
20
|
+
export interface ListRequest {
|
|
21
|
+
/**
|
|
22
|
+
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
23
|
+
*/
|
|
24
|
+
cursor?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
27
|
+
*/
|
|
28
|
+
direction?: "forward" | "backward";
|
|
29
|
+
/**
|
|
30
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
31
|
+
* another cursor.
|
|
32
|
+
*/
|
|
33
|
+
limit?: number;
|
|
34
|
+
}
|
|
35
|
+
export type ListResponse = SaludTotalPortalPageResponse;
|
|
@@ -0,0 +1,18 @@
|
|
|
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/salud-total/portals",
|
|
15
|
+
query: { cursor: "cursor", direction: "direction", limit: "limit" },
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
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 { SaludTotalPortalPage, SaludTotalPortalPageResponse, } from "./models.js";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { PageInfo, ResponseMetadata } from "../../models.js";
|
|
2
|
+
export interface SaludTotalPortalPage {
|
|
3
|
+
/**
|
|
4
|
+
* Items admitted by this resource contract within the verified organization.
|
|
5
|
+
*/
|
|
6
|
+
data: {
|
|
7
|
+
tag: "postconsulta" | "facturacion";
|
|
8
|
+
url: string;
|
|
9
|
+
}[];
|
|
10
|
+
/**
|
|
11
|
+
* Discriminator for a resource list response.
|
|
12
|
+
*/
|
|
13
|
+
object: "list";
|
|
14
|
+
/**
|
|
15
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
16
|
+
*/
|
|
17
|
+
pageInfo: PageInfo;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A successful answer.
|
|
21
|
+
*/
|
|
22
|
+
export interface SaludTotalPortalPageResponse {
|
|
23
|
+
data: SaludTotalPortalPage;
|
|
24
|
+
error: null;
|
|
25
|
+
/**
|
|
26
|
+
* What every answer carries besides its data or error.
|
|
27
|
+
*/
|
|
28
|
+
metadata: ResponseMetadata;
|
|
29
|
+
success: true;
|
|
30
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import { type
|
|
2
|
+
import { type SuraLookupEligibilityBody, type SuraLookupEligibilityResultResponse } 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
|
-
* Exact document number.
|
|
24
|
-
*/
|
|
25
|
-
documentNumber: string;
|
|
26
|
-
/**
|
|
27
|
-
* Document type. Defaults to CC.
|
|
28
|
-
*/
|
|
29
|
-
documentType?: "CC" | null;
|
|
30
|
-
/**
|
|
31
|
-
* Set agentMode=true when calling this tool for an AI agent. The answer is
|
|
32
|
-
* concise Spanish text instead of JSON. Omit it for structured machine data.
|
|
33
|
-
* This changes presentation only, never authorization, consent or
|
|
34
|
-
* idempotency.
|
|
35
|
-
*/
|
|
36
|
-
agentMode?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Which of the organization's SURA connections to run on, by its id. Optional
|
|
39
|
-
* while the organization has one; required when it has several.
|
|
40
|
-
*/
|
|
41
|
-
connectionId?: string;
|
|
42
|
-
/**
|
|
43
|
-
* The channel the caller is waiting on, which sets how long it waits before
|
|
44
|
-
* an answer comes back pending, and puts a phone call's reads ahead of
|
|
45
|
-
* others. Defaults to web.
|
|
46
|
-
*/
|
|
47
|
-
channel?: "voice" | "whatsapp" | "web";
|
|
48
|
-
}
|
|
49
|
-
export interface LookupResponse {
|
|
50
|
-
data: SuraPendingResult | SuraRefusal | SuraAffiliation | SuraNoContract;
|
|
51
|
-
error: null;
|
|
52
|
-
metadata: SuraResponseMetadata;
|
|
53
|
-
success: true;
|
|
54
|
-
}
|
|
21
|
+
export type LookupRequest = SuraLookupEligibilityBody;
|
|
22
|
+
export type LookupResponse = SuraLookupEligibilityResultResponse;
|
|
@@ -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 { SuraLookupEligibilityResultResponseCodec, } from "./models.js";
|
|
5
5
|
export function createClient(options) {
|
|
6
6
|
return bind(new Transport(options));
|
|
7
7
|
}
|
|
@@ -11,9 +11,9 @@ export function bind(transport) {
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
const LookupOperation = {
|
|
14
|
-
method: "
|
|
14
|
+
method: "POST",
|
|
15
15
|
route: "/v1/sura/affiliations/lookup",
|
|
16
|
-
|
|
17
|
-
response:
|
|
18
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
16
|
+
body: "flat",
|
|
17
|
+
response: SuraLookupEligibilityResultResponseCodec,
|
|
18
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
19
19
|
};
|
|
@@ -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 { SuraLookupEligibilityBadGatewayError, SuraLookupEligibilityBadGatewayFailure, SuraLookupEligibilityBody, SuraLookupEligibilityConflictError, SuraLookupEligibilityConflictFailure, SuraLookupEligibilityResult, SuraLookupEligibilityResultResponse, } from "./models.js";
|