@arbol-ai/sdk 2.9.0 → 2.11.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/nuevaEps/affiliations/client.d.ts +3 -33
- package/dist/nuevaEps/affiliations/client.js +1 -1
- package/dist/nuevaEps/affiliations/index.d.ts +1 -0
- package/dist/nuevaEps/affiliations/models.d.ts +136 -0
- package/dist/nuevaEps/affiliations/models.js +3 -0
- package/dist/nuevaEps/connections/client.d.ts +15 -48
- package/dist/nuevaEps/connections/client.js +8 -9
- package/dist/nuevaEps/connections/index.d.ts +1 -0
- package/dist/nuevaEps/connections/models.d.ts +334 -0
- package/dist/nuevaEps/connections/models.js +10 -0
- package/dist/nuevaEps/index.d.ts +1 -1
- package/dist/nuevaEps/models.d.ts +519 -151
- package/dist/raiz/agents/models.d.ts +41 -0
- package/dist/raiz/evalCases/client.d.ts +56 -6
- package/dist/raiz/evalCases/client.js +10 -2
- package/dist/raiz/evalCases/index.d.ts +1 -1
- package/dist/raiz/evalCases/models.d.ts +6 -2
- package/dist/raiz/evalRuns/client.d.ts +11 -3
- package/dist/raiz/evalRuns/models.d.ts +10 -0
- package/dist/raiz/models.d.ts +7 -0
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { NuevaEpsLookupAffiliationBody, NuevaEpsLookupAffiliationResultResponse } from "./models.js";
|
|
3
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
4
4
|
/**
|
|
5
5
|
* The URL the paths of the API are relative to.
|
|
@@ -17,35 +17,5 @@ export interface Client {
|
|
|
17
17
|
}
|
|
18
18
|
export declare function createClient(options: ClientOptions): Client;
|
|
19
19
|
export declare function bind(transport: Transport): Client;
|
|
20
|
-
export
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Member document number as a string; preserve leading zeros. Never an
|
|
24
|
-
* organization selector.
|
|
25
|
-
*/
|
|
26
|
-
documentNumber: string;
|
|
27
|
-
/**
|
|
28
|
-
* Document type code accepted by Nueva EPS; provider-specific codes retain
|
|
29
|
-
* their original meaning.
|
|
30
|
-
*/
|
|
31
|
-
documentType: "AS" | "CC" | "CD" | "CE" | "CN" | "ME" | "NT" | "NU" | "PC" | "PE" | "PS" | "PT" | "RC" | "SC" | "TI";
|
|
32
|
-
}
|
|
33
|
-
export interface LookupResponse {
|
|
34
|
-
data: {
|
|
35
|
-
affiliated: boolean;
|
|
36
|
-
callerIsPrimaryProvider: boolean;
|
|
37
|
-
category?: string;
|
|
38
|
-
documentNumber: string;
|
|
39
|
-
documentType: "AS" | "CC" | "CD" | "CE" | "CN" | "ME" | "NT" | "NU" | "PC" | "PE" | "PS" | "PT" | "RC" | "SC" | "TI";
|
|
40
|
-
kind?: string;
|
|
41
|
-
messages: {
|
|
42
|
-
level: "error" | "info";
|
|
43
|
-
text: string;
|
|
44
|
-
}[];
|
|
45
|
-
primaryProvider?: string;
|
|
46
|
-
state?: string;
|
|
47
|
-
};
|
|
48
|
-
error: null;
|
|
49
|
-
metadata: ResponseMetadata;
|
|
50
|
-
success: true;
|
|
51
|
-
}
|
|
20
|
+
export type LookupRequest = NuevaEpsLookupAffiliationBody;
|
|
21
|
+
export type LookupResponse = NuevaEpsLookupAffiliationResultResponse;
|
|
@@ -14,5 +14,5 @@ const LookupOperation = {
|
|
|
14
14
|
route: "/v1/nueva-eps/affiliations/lookup",
|
|
15
15
|
body: "flat",
|
|
16
16
|
response: null,
|
|
17
|
-
errors: { "400": true, "401": true, "403": true, "
|
|
17
|
+
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 },
|
|
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 { NuevaEpsLookupAffiliationBadGatewayError, NuevaEpsLookupAffiliationBadGatewayFailure, NuevaEpsLookupAffiliationBody, NuevaEpsLookupAffiliationConflictError, NuevaEpsLookupAffiliationConflictFailure, NuevaEpsLookupAffiliationForbiddenError, NuevaEpsLookupAffiliationForbiddenFailure, NuevaEpsLookupAffiliationResult, NuevaEpsLookupAffiliationResultResponse, NuevaEpsLookupAffiliationServiceUnavailableError, NuevaEpsLookupAffiliationServiceUnavailableFailure, NuevaEpsLookupAffiliationTooManyRequestsError, NuevaEpsLookupAffiliationTooManyRequestsFailure, } from "./models.js";
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import type { NuevaEpsForbiddenFailure, NuevaEpsLoginCooldownFailure, NuevaEpsLoginRejectedFailure, NuevaEpsNotConfiguredFailure, NuevaEpsOutcomeUnknownFailure, NuevaEpsPortalChangedFailure, NuevaEpsPortalUnavailableFailure, NuevaEpsRateLimitedFailure, NuevaEpsRegionBlockedFailure, NuevaEpsResponseMetadata, NuevaEpsSessionBusyFailure, NuevaEpsSessionRequiredFailure, NuevaEpsUpstreamUnavailableFailure } from "../models.js";
|
|
2
|
+
/**
|
|
3
|
+
* A failed answer.
|
|
4
|
+
*/
|
|
5
|
+
export interface NuevaEpsLookupAffiliationBadGatewayError {
|
|
6
|
+
data: null;
|
|
7
|
+
error: NuevaEpsLookupAffiliationBadGatewayFailure;
|
|
8
|
+
/**
|
|
9
|
+
* What every answer carries besides its data or error.
|
|
10
|
+
*/
|
|
11
|
+
metadata: NuevaEpsResponseMetadata;
|
|
12
|
+
success: false;
|
|
13
|
+
}
|
|
14
|
+
export type NuevaEpsLookupAffiliationBadGatewayFailure = NuevaEpsOutcomeUnknownFailure | NuevaEpsPortalChangedFailure;
|
|
15
|
+
export interface NuevaEpsLookupAffiliationBody {
|
|
16
|
+
connectionId?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Member document number as a string; preserve leading zeros. Never an
|
|
19
|
+
* organization selector.
|
|
20
|
+
*/
|
|
21
|
+
documentNumber: string;
|
|
22
|
+
/**
|
|
23
|
+
* Document type code accepted by Nueva EPS; provider-specific codes retain
|
|
24
|
+
* their original meaning.
|
|
25
|
+
*/
|
|
26
|
+
documentType: "AS" | "CC" | "CD" | "CE" | "CN" | "ME" | "NT" | "NU" | "PC" | "PE" | "PS" | "PT" | "RC" | "SC" | "TI";
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* A failed answer.
|
|
30
|
+
*/
|
|
31
|
+
export interface NuevaEpsLookupAffiliationConflictError {
|
|
32
|
+
data: null;
|
|
33
|
+
error: NuevaEpsLookupAffiliationConflictFailure;
|
|
34
|
+
/**
|
|
35
|
+
* What every answer carries besides its data or error.
|
|
36
|
+
*/
|
|
37
|
+
metadata: NuevaEpsResponseMetadata;
|
|
38
|
+
success: false;
|
|
39
|
+
}
|
|
40
|
+
export type NuevaEpsLookupAffiliationConflictFailure = NuevaEpsNotConfiguredFailure | NuevaEpsSessionRequiredFailure | NuevaEpsSessionBusyFailure;
|
|
41
|
+
/**
|
|
42
|
+
* A failed answer.
|
|
43
|
+
*/
|
|
44
|
+
export interface NuevaEpsLookupAffiliationForbiddenError {
|
|
45
|
+
data: null;
|
|
46
|
+
error: NuevaEpsLookupAffiliationForbiddenFailure;
|
|
47
|
+
/**
|
|
48
|
+
* What every answer carries besides its data or error.
|
|
49
|
+
*/
|
|
50
|
+
metadata: NuevaEpsResponseMetadata;
|
|
51
|
+
success: false;
|
|
52
|
+
}
|
|
53
|
+
export type NuevaEpsLookupAffiliationForbiddenFailure = NuevaEpsForbiddenFailure | NuevaEpsLoginRejectedFailure;
|
|
54
|
+
export interface NuevaEpsLookupAffiliationResult {
|
|
55
|
+
/**
|
|
56
|
+
* True only when the portal returns ACTIVO. A provider failure is an error,
|
|
57
|
+
* never false.
|
|
58
|
+
*/
|
|
59
|
+
affiliated: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Whether the portal identifies the authenticated provider as the assigned
|
|
62
|
+
* primary provider. This is not a medical authorization.
|
|
63
|
+
*/
|
|
64
|
+
callerIsPrimaryProvider: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Original affiliate category reported by Nueva EPS; preserve the provider
|
|
67
|
+
* value.
|
|
68
|
+
*/
|
|
69
|
+
category?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Member document number as a string; preserve leading zeros. Never an
|
|
72
|
+
* organization selector.
|
|
73
|
+
*/
|
|
74
|
+
documentNumber: string;
|
|
75
|
+
/**
|
|
76
|
+
* Document type code accepted by Nueva EPS; provider-specific codes retain
|
|
77
|
+
* their original meaning.
|
|
78
|
+
*/
|
|
79
|
+
documentType: "AS" | "CC" | "CD" | "CE" | "CN" | "ME" | "NT" | "NU" | "PC" | "PE" | "PS" | "PT" | "RC" | "SC" | "TI";
|
|
80
|
+
/**
|
|
81
|
+
* Original affiliate type reported by Nueva EPS; preserve the provider value.
|
|
82
|
+
*/
|
|
83
|
+
kind?: string;
|
|
84
|
+
messages: {
|
|
85
|
+
level: "error" | "info";
|
|
86
|
+
text: string;
|
|
87
|
+
}[];
|
|
88
|
+
/**
|
|
89
|
+
* Name of the assigned primary provider, when present; not an Arbol provider
|
|
90
|
+
* identifier.
|
|
91
|
+
*/
|
|
92
|
+
primaryProvider?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Original affiliation status reported by Nueva EPS, for example ACTIVO; not
|
|
95
|
+
* connection status.
|
|
96
|
+
*/
|
|
97
|
+
state?: string;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* A successful answer.
|
|
101
|
+
*/
|
|
102
|
+
export interface NuevaEpsLookupAffiliationResultResponse {
|
|
103
|
+
data: NuevaEpsLookupAffiliationResult;
|
|
104
|
+
error: null;
|
|
105
|
+
/**
|
|
106
|
+
* What every answer carries besides its data or error.
|
|
107
|
+
*/
|
|
108
|
+
metadata: NuevaEpsResponseMetadata;
|
|
109
|
+
success: true;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* A failed answer.
|
|
113
|
+
*/
|
|
114
|
+
export interface NuevaEpsLookupAffiliationServiceUnavailableError {
|
|
115
|
+
data: null;
|
|
116
|
+
error: NuevaEpsLookupAffiliationServiceUnavailableFailure;
|
|
117
|
+
/**
|
|
118
|
+
* What every answer carries besides its data or error.
|
|
119
|
+
*/
|
|
120
|
+
metadata: NuevaEpsResponseMetadata;
|
|
121
|
+
success: false;
|
|
122
|
+
}
|
|
123
|
+
export type NuevaEpsLookupAffiliationServiceUnavailableFailure = NuevaEpsUpstreamUnavailableFailure | NuevaEpsPortalUnavailableFailure | NuevaEpsRegionBlockedFailure;
|
|
124
|
+
/**
|
|
125
|
+
* A failed answer.
|
|
126
|
+
*/
|
|
127
|
+
export interface NuevaEpsLookupAffiliationTooManyRequestsError {
|
|
128
|
+
data: null;
|
|
129
|
+
error: NuevaEpsLookupAffiliationTooManyRequestsFailure;
|
|
130
|
+
/**
|
|
131
|
+
* What every answer carries besides its data or error.
|
|
132
|
+
*/
|
|
133
|
+
metadata: NuevaEpsResponseMetadata;
|
|
134
|
+
success: false;
|
|
135
|
+
}
|
|
136
|
+
export type NuevaEpsLookupAffiliationTooManyRequestsFailure = NuevaEpsRateLimitedFailure | NuevaEpsLoginCooldownFailure;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import { type
|
|
2
|
+
import { type NuevaEpsConnectionPageResponse, type NuevaEpsConnectionResponse, type NuevaEpsDeletedObjectResponse, type NuevaEpsVerifyConnectionBody, type NuevaEpsVerifyConnectionResultResponse } from "./models.js";
|
|
3
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
4
4
|
/**
|
|
5
5
|
* The URL the paths of the API are relative to.
|
|
@@ -40,26 +40,19 @@ export interface Client {
|
|
|
40
40
|
export declare function createClient(options: ClientOptions): Client;
|
|
41
41
|
export declare function bind(transport: Transport): Client;
|
|
42
42
|
export interface DeleteRequest {
|
|
43
|
+
/**
|
|
44
|
+
* The id.
|
|
45
|
+
*/
|
|
43
46
|
id: string;
|
|
44
|
-
body: {
|
|
45
|
-
[key: string]: unknown;
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
export interface DeleteResponse {
|
|
49
|
-
data: DeletedObject;
|
|
50
|
-
error: null;
|
|
51
|
-
metadata: ResponseMetadata;
|
|
52
|
-
success: true;
|
|
53
47
|
}
|
|
48
|
+
export type DeleteResponse = NuevaEpsDeletedObjectResponse;
|
|
54
49
|
export interface GetRequest {
|
|
50
|
+
/**
|
|
51
|
+
* The id.
|
|
52
|
+
*/
|
|
55
53
|
id: string;
|
|
56
54
|
}
|
|
57
|
-
export
|
|
58
|
-
data: Connection;
|
|
59
|
-
error: null;
|
|
60
|
-
metadata: ResponseMetadata;
|
|
61
|
-
success: true;
|
|
62
|
-
}
|
|
55
|
+
export type GetResponse = NuevaEpsConnectionResponse;
|
|
63
56
|
export interface ListRequest {
|
|
64
57
|
/**
|
|
65
58
|
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
@@ -75,37 +68,11 @@ export interface ListRequest {
|
|
|
75
68
|
*/
|
|
76
69
|
limit?: number;
|
|
77
70
|
}
|
|
78
|
-
export
|
|
79
|
-
|
|
80
|
-
error: null;
|
|
81
|
-
metadata: ResponseMetadata;
|
|
82
|
-
success: true;
|
|
83
|
-
}
|
|
84
|
-
export interface VerifyRequest {
|
|
85
|
-
connectionId: string;
|
|
86
|
-
/**
|
|
87
|
-
* Document type code accepted by Nueva EPS; provider-specific codes retain
|
|
88
|
-
* their original meaning.
|
|
89
|
-
*/
|
|
90
|
-
documentType: "AS" | "CC" | "CD" | "CE" | "CN" | "ME" | "NT" | "NU" | "PC" | "PE" | "PS" | "PT" | "RC" | "SC" | "TI";
|
|
91
|
-
name: string;
|
|
92
|
-
password: string;
|
|
71
|
+
export type ListResponse = NuevaEpsConnectionPageResponse;
|
|
72
|
+
export type VerifyRequest = {
|
|
93
73
|
/**
|
|
94
|
-
*
|
|
95
|
-
* queried.
|
|
74
|
+
* The connection id.
|
|
96
75
|
*/
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
export
|
|
100
|
-
data: {
|
|
101
|
-
stateRef: string;
|
|
102
|
-
status: "active";
|
|
103
|
-
summary: string;
|
|
104
|
-
} | {
|
|
105
|
-
errorCode: string;
|
|
106
|
-
status: "rejected";
|
|
107
|
-
};
|
|
108
|
-
error: null;
|
|
109
|
-
metadata: ResponseMetadata;
|
|
110
|
-
success: true;
|
|
111
|
-
}
|
|
76
|
+
connectionId: string;
|
|
77
|
+
} & NuevaEpsVerifyConnectionBody;
|
|
78
|
+
export type VerifyResponse = NuevaEpsVerifyConnectionResultResponse;
|
|
@@ -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 { NuevaEpsConnectionPageResponseCodec, NuevaEpsConnectionResponseCodec, } from "./models.js";
|
|
5
5
|
export function createClient(options) {
|
|
6
6
|
return bind(new Transport(options));
|
|
7
7
|
}
|
|
@@ -16,27 +16,26 @@ export function bind(transport) {
|
|
|
16
16
|
const DeleteOperation = {
|
|
17
17
|
method: "DELETE",
|
|
18
18
|
route: "/v1/nueva-eps/connections/{id}",
|
|
19
|
-
body: "nested",
|
|
20
19
|
response: null,
|
|
21
|
-
errors: { "400": true, "401": true, "403": true, "
|
|
20
|
+
errors: { "400": true, "401": true, "403": true, "409": true, "429": true, "500": true, "501": true, "502": true, "503": true, "504": true },
|
|
22
21
|
};
|
|
23
22
|
const GetOperation = {
|
|
24
23
|
method: "GET",
|
|
25
24
|
route: "/v1/nueva-eps/connections/{id}",
|
|
26
|
-
response:
|
|
27
|
-
errors: { "400": true, "401": true, "403": true, "
|
|
25
|
+
response: NuevaEpsConnectionResponseCodec,
|
|
26
|
+
errors: { "400": true, "401": true, "403": true, "409": true, "429": true, "500": true, "501": true, "502": true, "503": true, "504": true },
|
|
28
27
|
};
|
|
29
28
|
const ListOperation = {
|
|
30
29
|
method: "GET",
|
|
31
30
|
route: "/v1/nueva-eps/connections",
|
|
32
31
|
query: { cursor: "cursor", direction: "direction", limit: "limit" },
|
|
33
|
-
response:
|
|
34
|
-
errors: { "400": true, "401": true, "403": true, "
|
|
32
|
+
response: NuevaEpsConnectionPageResponseCodec,
|
|
33
|
+
errors: { "400": true, "401": true, "403": true, "409": true, "429": true, "500": true, "501": true, "502": true, "503": true, "504": true },
|
|
35
34
|
};
|
|
36
35
|
const VerifyOperation = {
|
|
37
36
|
method: "POST",
|
|
38
37
|
route: "/v1/nueva-eps/connections/{connectionId}/verify",
|
|
39
38
|
body: "flat",
|
|
40
39
|
response: null,
|
|
41
|
-
errors: { "400": true, "401": true, "403": true, "
|
|
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 },
|
|
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 { NuevaEpsConnectionPageResponse, NuevaEpsConnectionResponse, NuevaEpsDeleteConnectionBadGatewayError, NuevaEpsDeleteConnectionBadGatewayFailure, NuevaEpsDeleteConnectionConflictError, NuevaEpsDeleteConnectionConflictFailure, NuevaEpsDeleteConnectionForbiddenError, NuevaEpsDeleteConnectionForbiddenFailure, NuevaEpsDeleteConnectionServiceUnavailableError, NuevaEpsDeleteConnectionServiceUnavailableFailure, NuevaEpsDeleteConnectionTooManyRequestsError, NuevaEpsDeleteConnectionTooManyRequestsFailure, NuevaEpsDeletedObjectResponse, 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, NuevaEpsVerifyConnectionResult, NuevaEpsVerifyConnectionResultResponse, NuevaEpsVerifyConnectionServiceUnavailableError, NuevaEpsVerifyConnectionServiceUnavailableFailure, NuevaEpsVerifyConnectionTooManyRequestsError, NuevaEpsVerifyConnectionTooManyRequestsFailure, } from "./models.js";
|
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import { type Connection, type ConnectionPage, type DeletedObject } from "../../models.js";
|
|
2
|
+
import type { NuevaEpsForbiddenFailure, NuevaEpsLoginCooldownFailure, NuevaEpsLoginRejectedFailure, NuevaEpsNotConfiguredFailure, NuevaEpsOutcomeUnknownFailure, NuevaEpsPortalChangedFailure, NuevaEpsPortalUnavailableFailure, NuevaEpsRateLimitedFailure, NuevaEpsRegionBlockedFailure, NuevaEpsResponseMetadata, NuevaEpsSessionBusyFailure, NuevaEpsSessionRequiredFailure, NuevaEpsUpstreamUnavailableFailure } 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: NuevaEpsResponseMetadata;
|
|
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: NuevaEpsResponseMetadata;
|
|
25
|
+
success: true;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A failed answer.
|
|
29
|
+
*/
|
|
30
|
+
export interface NuevaEpsDeleteConnectionBadGatewayError {
|
|
31
|
+
data: null;
|
|
32
|
+
error: NuevaEpsDeleteConnectionBadGatewayFailure;
|
|
33
|
+
/**
|
|
34
|
+
* What every answer carries besides its data or error.
|
|
35
|
+
*/
|
|
36
|
+
metadata: NuevaEpsResponseMetadata;
|
|
37
|
+
success: false;
|
|
38
|
+
}
|
|
39
|
+
export type NuevaEpsDeleteConnectionBadGatewayFailure = NuevaEpsOutcomeUnknownFailure | NuevaEpsPortalChangedFailure;
|
|
40
|
+
/**
|
|
41
|
+
* A failed answer.
|
|
42
|
+
*/
|
|
43
|
+
export interface NuevaEpsDeleteConnectionConflictError {
|
|
44
|
+
data: null;
|
|
45
|
+
error: NuevaEpsDeleteConnectionConflictFailure;
|
|
46
|
+
/**
|
|
47
|
+
* What every answer carries besides its data or error.
|
|
48
|
+
*/
|
|
49
|
+
metadata: NuevaEpsResponseMetadata;
|
|
50
|
+
success: false;
|
|
51
|
+
}
|
|
52
|
+
export type NuevaEpsDeleteConnectionConflictFailure = NuevaEpsNotConfiguredFailure | NuevaEpsSessionRequiredFailure | NuevaEpsSessionBusyFailure;
|
|
53
|
+
/**
|
|
54
|
+
* A failed answer.
|
|
55
|
+
*/
|
|
56
|
+
export interface NuevaEpsDeleteConnectionForbiddenError {
|
|
57
|
+
data: null;
|
|
58
|
+
error: NuevaEpsDeleteConnectionForbiddenFailure;
|
|
59
|
+
/**
|
|
60
|
+
* What every answer carries besides its data or error.
|
|
61
|
+
*/
|
|
62
|
+
metadata: NuevaEpsResponseMetadata;
|
|
63
|
+
success: false;
|
|
64
|
+
}
|
|
65
|
+
export type NuevaEpsDeleteConnectionForbiddenFailure = NuevaEpsForbiddenFailure | NuevaEpsLoginRejectedFailure;
|
|
66
|
+
/**
|
|
67
|
+
* A failed answer.
|
|
68
|
+
*/
|
|
69
|
+
export interface NuevaEpsDeleteConnectionServiceUnavailableError {
|
|
70
|
+
data: null;
|
|
71
|
+
error: NuevaEpsDeleteConnectionServiceUnavailableFailure;
|
|
72
|
+
/**
|
|
73
|
+
* What every answer carries besides its data or error.
|
|
74
|
+
*/
|
|
75
|
+
metadata: NuevaEpsResponseMetadata;
|
|
76
|
+
success: false;
|
|
77
|
+
}
|
|
78
|
+
export type NuevaEpsDeleteConnectionServiceUnavailableFailure = NuevaEpsUpstreamUnavailableFailure | NuevaEpsPortalUnavailableFailure | NuevaEpsRegionBlockedFailure;
|
|
79
|
+
/**
|
|
80
|
+
* A failed answer.
|
|
81
|
+
*/
|
|
82
|
+
export interface NuevaEpsDeleteConnectionTooManyRequestsError {
|
|
83
|
+
data: null;
|
|
84
|
+
error: NuevaEpsDeleteConnectionTooManyRequestsFailure;
|
|
85
|
+
/**
|
|
86
|
+
* What every answer carries besides its data or error.
|
|
87
|
+
*/
|
|
88
|
+
metadata: NuevaEpsResponseMetadata;
|
|
89
|
+
success: false;
|
|
90
|
+
}
|
|
91
|
+
export type NuevaEpsDeleteConnectionTooManyRequestsFailure = NuevaEpsRateLimitedFailure | NuevaEpsLoginCooldownFailure;
|
|
92
|
+
/**
|
|
93
|
+
* A successful answer.
|
|
94
|
+
*/
|
|
95
|
+
export interface NuevaEpsDeletedObjectResponse {
|
|
96
|
+
data: DeletedObject;
|
|
97
|
+
error: null;
|
|
98
|
+
/**
|
|
99
|
+
* What every answer carries besides its data or error.
|
|
100
|
+
*/
|
|
101
|
+
metadata: NuevaEpsResponseMetadata;
|
|
102
|
+
success: true;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* A failed answer.
|
|
106
|
+
*/
|
|
107
|
+
export interface NuevaEpsGetConnectionBadGatewayError {
|
|
108
|
+
data: null;
|
|
109
|
+
error: NuevaEpsGetConnectionBadGatewayFailure;
|
|
110
|
+
/**
|
|
111
|
+
* What every answer carries besides its data or error.
|
|
112
|
+
*/
|
|
113
|
+
metadata: NuevaEpsResponseMetadata;
|
|
114
|
+
success: false;
|
|
115
|
+
}
|
|
116
|
+
export type NuevaEpsGetConnectionBadGatewayFailure = NuevaEpsOutcomeUnknownFailure | NuevaEpsPortalChangedFailure;
|
|
117
|
+
/**
|
|
118
|
+
* A failed answer.
|
|
119
|
+
*/
|
|
120
|
+
export interface NuevaEpsGetConnectionConflictError {
|
|
121
|
+
data: null;
|
|
122
|
+
error: NuevaEpsGetConnectionConflictFailure;
|
|
123
|
+
/**
|
|
124
|
+
* What every answer carries besides its data or error.
|
|
125
|
+
*/
|
|
126
|
+
metadata: NuevaEpsResponseMetadata;
|
|
127
|
+
success: false;
|
|
128
|
+
}
|
|
129
|
+
export type NuevaEpsGetConnectionConflictFailure = NuevaEpsNotConfiguredFailure | NuevaEpsSessionRequiredFailure | NuevaEpsSessionBusyFailure;
|
|
130
|
+
/**
|
|
131
|
+
* A failed answer.
|
|
132
|
+
*/
|
|
133
|
+
export interface NuevaEpsGetConnectionForbiddenError {
|
|
134
|
+
data: null;
|
|
135
|
+
error: NuevaEpsGetConnectionForbiddenFailure;
|
|
136
|
+
/**
|
|
137
|
+
* What every answer carries besides its data or error.
|
|
138
|
+
*/
|
|
139
|
+
metadata: NuevaEpsResponseMetadata;
|
|
140
|
+
success: false;
|
|
141
|
+
}
|
|
142
|
+
export type NuevaEpsGetConnectionForbiddenFailure = NuevaEpsForbiddenFailure | NuevaEpsLoginRejectedFailure;
|
|
143
|
+
/**
|
|
144
|
+
* A failed answer.
|
|
145
|
+
*/
|
|
146
|
+
export interface NuevaEpsGetConnectionServiceUnavailableError {
|
|
147
|
+
data: null;
|
|
148
|
+
error: NuevaEpsGetConnectionServiceUnavailableFailure;
|
|
149
|
+
/**
|
|
150
|
+
* What every answer carries besides its data or error.
|
|
151
|
+
*/
|
|
152
|
+
metadata: NuevaEpsResponseMetadata;
|
|
153
|
+
success: false;
|
|
154
|
+
}
|
|
155
|
+
export type NuevaEpsGetConnectionServiceUnavailableFailure = NuevaEpsUpstreamUnavailableFailure | NuevaEpsPortalUnavailableFailure | NuevaEpsRegionBlockedFailure;
|
|
156
|
+
/**
|
|
157
|
+
* A failed answer.
|
|
158
|
+
*/
|
|
159
|
+
export interface NuevaEpsGetConnectionTooManyRequestsError {
|
|
160
|
+
data: null;
|
|
161
|
+
error: NuevaEpsGetConnectionTooManyRequestsFailure;
|
|
162
|
+
/**
|
|
163
|
+
* What every answer carries besides its data or error.
|
|
164
|
+
*/
|
|
165
|
+
metadata: NuevaEpsResponseMetadata;
|
|
166
|
+
success: false;
|
|
167
|
+
}
|
|
168
|
+
export type NuevaEpsGetConnectionTooManyRequestsFailure = NuevaEpsRateLimitedFailure | NuevaEpsLoginCooldownFailure;
|
|
169
|
+
/**
|
|
170
|
+
* A failed answer.
|
|
171
|
+
*/
|
|
172
|
+
export interface NuevaEpsListConnectionsBadGatewayError {
|
|
173
|
+
data: null;
|
|
174
|
+
error: NuevaEpsListConnectionsBadGatewayFailure;
|
|
175
|
+
/**
|
|
176
|
+
* What every answer carries besides its data or error.
|
|
177
|
+
*/
|
|
178
|
+
metadata: NuevaEpsResponseMetadata;
|
|
179
|
+
success: false;
|
|
180
|
+
}
|
|
181
|
+
export type NuevaEpsListConnectionsBadGatewayFailure = NuevaEpsOutcomeUnknownFailure | NuevaEpsPortalChangedFailure;
|
|
182
|
+
/**
|
|
183
|
+
* A failed answer.
|
|
184
|
+
*/
|
|
185
|
+
export interface NuevaEpsListConnectionsConflictError {
|
|
186
|
+
data: null;
|
|
187
|
+
error: NuevaEpsListConnectionsConflictFailure;
|
|
188
|
+
/**
|
|
189
|
+
* What every answer carries besides its data or error.
|
|
190
|
+
*/
|
|
191
|
+
metadata: NuevaEpsResponseMetadata;
|
|
192
|
+
success: false;
|
|
193
|
+
}
|
|
194
|
+
export type NuevaEpsListConnectionsConflictFailure = NuevaEpsNotConfiguredFailure | NuevaEpsSessionRequiredFailure | NuevaEpsSessionBusyFailure;
|
|
195
|
+
/**
|
|
196
|
+
* A failed answer.
|
|
197
|
+
*/
|
|
198
|
+
export interface NuevaEpsListConnectionsForbiddenError {
|
|
199
|
+
data: null;
|
|
200
|
+
error: NuevaEpsListConnectionsForbiddenFailure;
|
|
201
|
+
/**
|
|
202
|
+
* What every answer carries besides its data or error.
|
|
203
|
+
*/
|
|
204
|
+
metadata: NuevaEpsResponseMetadata;
|
|
205
|
+
success: false;
|
|
206
|
+
}
|
|
207
|
+
export type NuevaEpsListConnectionsForbiddenFailure = NuevaEpsForbiddenFailure | NuevaEpsLoginRejectedFailure;
|
|
208
|
+
/**
|
|
209
|
+
* A failed answer.
|
|
210
|
+
*/
|
|
211
|
+
export interface NuevaEpsListConnectionsServiceUnavailableError {
|
|
212
|
+
data: null;
|
|
213
|
+
error: NuevaEpsListConnectionsServiceUnavailableFailure;
|
|
214
|
+
/**
|
|
215
|
+
* What every answer carries besides its data or error.
|
|
216
|
+
*/
|
|
217
|
+
metadata: NuevaEpsResponseMetadata;
|
|
218
|
+
success: false;
|
|
219
|
+
}
|
|
220
|
+
export type NuevaEpsListConnectionsServiceUnavailableFailure = NuevaEpsUpstreamUnavailableFailure | NuevaEpsPortalUnavailableFailure | NuevaEpsRegionBlockedFailure;
|
|
221
|
+
/**
|
|
222
|
+
* A failed answer.
|
|
223
|
+
*/
|
|
224
|
+
export interface NuevaEpsListConnectionsTooManyRequestsError {
|
|
225
|
+
data: null;
|
|
226
|
+
error: NuevaEpsListConnectionsTooManyRequestsFailure;
|
|
227
|
+
/**
|
|
228
|
+
* What every answer carries besides its data or error.
|
|
229
|
+
*/
|
|
230
|
+
metadata: NuevaEpsResponseMetadata;
|
|
231
|
+
success: false;
|
|
232
|
+
}
|
|
233
|
+
export type NuevaEpsListConnectionsTooManyRequestsFailure = NuevaEpsRateLimitedFailure | NuevaEpsLoginCooldownFailure;
|
|
234
|
+
/**
|
|
235
|
+
* A failed answer.
|
|
236
|
+
*/
|
|
237
|
+
export interface NuevaEpsVerifyConnectionBadGatewayError {
|
|
238
|
+
data: null;
|
|
239
|
+
error: NuevaEpsVerifyConnectionBadGatewayFailure;
|
|
240
|
+
/**
|
|
241
|
+
* What every answer carries besides its data or error.
|
|
242
|
+
*/
|
|
243
|
+
metadata: NuevaEpsResponseMetadata;
|
|
244
|
+
success: false;
|
|
245
|
+
}
|
|
246
|
+
export type NuevaEpsVerifyConnectionBadGatewayFailure = NuevaEpsOutcomeUnknownFailure | NuevaEpsPortalChangedFailure;
|
|
247
|
+
export interface NuevaEpsVerifyConnectionBody {
|
|
248
|
+
/**
|
|
249
|
+
* Document type code accepted by Nueva EPS; provider-specific codes retain
|
|
250
|
+
* their original meaning.
|
|
251
|
+
*/
|
|
252
|
+
documentType: "AS" | "CC" | "CD" | "CE" | "CN" | "ME" | "NT" | "NU" | "PC" | "PE" | "PS" | "PT" | "RC" | "SC" | "TI";
|
|
253
|
+
name: string;
|
|
254
|
+
password: string;
|
|
255
|
+
/**
|
|
256
|
+
* Provider portal login identifier; separate from the member document being
|
|
257
|
+
* queried.
|
|
258
|
+
*/
|
|
259
|
+
username: string;
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* A failed answer.
|
|
263
|
+
*/
|
|
264
|
+
export interface NuevaEpsVerifyConnectionConflictError {
|
|
265
|
+
data: null;
|
|
266
|
+
error: NuevaEpsVerifyConnectionConflictFailure;
|
|
267
|
+
/**
|
|
268
|
+
* What every answer carries besides its data or error.
|
|
269
|
+
*/
|
|
270
|
+
metadata: NuevaEpsResponseMetadata;
|
|
271
|
+
success: false;
|
|
272
|
+
}
|
|
273
|
+
export type NuevaEpsVerifyConnectionConflictFailure = NuevaEpsNotConfiguredFailure | NuevaEpsSessionRequiredFailure | NuevaEpsSessionBusyFailure;
|
|
274
|
+
/**
|
|
275
|
+
* A failed answer.
|
|
276
|
+
*/
|
|
277
|
+
export interface NuevaEpsVerifyConnectionForbiddenError {
|
|
278
|
+
data: null;
|
|
279
|
+
error: NuevaEpsVerifyConnectionForbiddenFailure;
|
|
280
|
+
/**
|
|
281
|
+
* What every answer carries besides its data or error.
|
|
282
|
+
*/
|
|
283
|
+
metadata: NuevaEpsResponseMetadata;
|
|
284
|
+
success: false;
|
|
285
|
+
}
|
|
286
|
+
export type NuevaEpsVerifyConnectionForbiddenFailure = NuevaEpsForbiddenFailure | NuevaEpsLoginRejectedFailure;
|
|
287
|
+
export type NuevaEpsVerifyConnectionResult = {
|
|
288
|
+
stateRef: string;
|
|
289
|
+
status: "active";
|
|
290
|
+
summary: string;
|
|
291
|
+
} | {
|
|
292
|
+
errorCode: string;
|
|
293
|
+
status: "rejected";
|
|
294
|
+
};
|
|
295
|
+
/**
|
|
296
|
+
* A successful answer.
|
|
297
|
+
*/
|
|
298
|
+
export interface NuevaEpsVerifyConnectionResultResponse {
|
|
299
|
+
data: NuevaEpsVerifyConnectionResult;
|
|
300
|
+
error: null;
|
|
301
|
+
/**
|
|
302
|
+
* What every answer carries besides its data or error.
|
|
303
|
+
*/
|
|
304
|
+
metadata: NuevaEpsResponseMetadata;
|
|
305
|
+
success: true;
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* A failed answer.
|
|
309
|
+
*/
|
|
310
|
+
export interface NuevaEpsVerifyConnectionServiceUnavailableError {
|
|
311
|
+
data: null;
|
|
312
|
+
error: NuevaEpsVerifyConnectionServiceUnavailableFailure;
|
|
313
|
+
/**
|
|
314
|
+
* What every answer carries besides its data or error.
|
|
315
|
+
*/
|
|
316
|
+
metadata: NuevaEpsResponseMetadata;
|
|
317
|
+
success: false;
|
|
318
|
+
}
|
|
319
|
+
export type NuevaEpsVerifyConnectionServiceUnavailableFailure = NuevaEpsUpstreamUnavailableFailure | NuevaEpsPortalUnavailableFailure | NuevaEpsRegionBlockedFailure;
|
|
320
|
+
/**
|
|
321
|
+
* A failed answer.
|
|
322
|
+
*/
|
|
323
|
+
export interface NuevaEpsVerifyConnectionTooManyRequestsError {
|
|
324
|
+
data: null;
|
|
325
|
+
error: NuevaEpsVerifyConnectionTooManyRequestsFailure;
|
|
326
|
+
/**
|
|
327
|
+
* What every answer carries besides its data or error.
|
|
328
|
+
*/
|
|
329
|
+
metadata: NuevaEpsResponseMetadata;
|
|
330
|
+
success: false;
|
|
331
|
+
}
|
|
332
|
+
export type NuevaEpsVerifyConnectionTooManyRequestsFailure = NuevaEpsRateLimitedFailure | NuevaEpsLoginCooldownFailure;
|
|
333
|
+
export declare const NuevaEpsConnectionPageResponseCodec: import("../../_/codec.js").Codec;
|
|
334
|
+
export declare const NuevaEpsConnectionResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { object } from "../../_/index.js";
|
|
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
|
+
]);
|