@arbol-ai/sdk 5.36.0 → 5.37.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/client.d.ts +4 -0
- package/dist/client.js +10 -0
- package/dist/comfachoco/affiliations/models.d.ts +5 -5
- package/dist/comfachoco/connections/models.d.ts +11 -11
- package/dist/comfachoco/index.d.ts +1 -1
- package/dist/comfachoco/models.d.ts +0 -63
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +63 -0
- package/dist/oficlinic/appointments/client.d.ts +27 -0
- package/dist/oficlinic/appointments/client.js +18 -0
- package/dist/oficlinic/appointments/index.d.ts +5 -0
- package/dist/oficlinic/appointments/index.js +4 -0
- package/dist/oficlinic/appointments/models.d.ts +191 -0
- package/dist/oficlinic/appointments/models.js +3 -0
- package/dist/oficlinic/client.d.ts +23 -0
- package/dist/oficlinic/client.js +40 -0
- package/dist/oficlinic/connections/client.d.ts +45 -0
- package/dist/oficlinic/connections/client.js +25 -0
- package/dist/oficlinic/connections/index.d.ts +5 -0
- package/dist/oficlinic/connections/index.js +4 -0
- package/dist/oficlinic/connections/models.d.ts +40 -0
- package/dist/oficlinic/connections/models.js +10 -0
- package/dist/oficlinic/index.d.ts +5 -0
- package/dist/oficlinic/index.js +4 -0
- package/dist/oficlinic/models.d.ts +249 -0
- package/dist/oficlinic/models.js +3 -0
- package/dist/oficlinic/patients/client.d.ts +26 -0
- package/dist/oficlinic/patients/client.js +19 -0
- package/dist/oficlinic/patients/index.d.ts +5 -0
- package/dist/oficlinic/patients/index.js +4 -0
- package/dist/oficlinic/patients/models.d.ts +128 -0
- package/dist/oficlinic/patients/models.js +13 -0
- package/dist/oficlinic/payers/client.d.ts +43 -0
- package/dist/oficlinic/payers/client.js +18 -0
- package/dist/oficlinic/payers/index.d.ts +5 -0
- package/dist/oficlinic/payers/index.js +4 -0
- package/dist/oficlinic/payers/models.d.ts +138 -0
- package/dist/oficlinic/payers/models.js +3 -0
- package/dist/oficlinic/professionals/client.d.ts +43 -0
- package/dist/oficlinic/professionals/client.js +18 -0
- package/dist/oficlinic/professionals/index.d.ts +5 -0
- package/dist/oficlinic/professionals/index.js +4 -0
- package/dist/oficlinic/professionals/models.d.ts +124 -0
- package/dist/oficlinic/professionals/models.js +3 -0
- package/dist/oficlinic/services/client.d.ts +43 -0
- package/dist/oficlinic/services/client.js +18 -0
- package/dist/oficlinic/services/index.d.ts +5 -0
- package/dist/oficlinic/services/index.js +4 -0
- package/dist/oficlinic/services/models.d.ts +140 -0
- package/dist/oficlinic/services/models.js +3 -0
- package/dist/sanitas/affiliations/client.d.ts +22 -0
- package/dist/sanitas/affiliations/client.js +19 -0
- package/dist/sanitas/affiliations/index.d.ts +5 -0
- package/dist/sanitas/affiliations/index.js +4 -0
- package/dist/sanitas/affiliations/models.d.ts +86 -0
- package/dist/sanitas/affiliations/models.js +9 -0
- package/dist/sanitas/client.d.ts +15 -0
- package/dist/sanitas/client.js +20 -0
- package/dist/sanitas/connections/client.d.ts +25 -0
- package/dist/sanitas/connections/client.js +18 -0
- package/dist/sanitas/connections/index.d.ts +5 -0
- package/dist/sanitas/connections/index.js +4 -0
- package/dist/sanitas/connections/models.d.ts +74 -0
- package/dist/sanitas/connections/models.js +9 -0
- package/dist/sanitas/index.d.ts +5 -0
- package/dist/sanitas/index.js +4 -0
- package/dist/sanitas/models.d.ts +220 -0
- package/dist/sanitas/models.js +3 -0
- package/package.json +3 -3
package/dist/client.d.ts
CHANGED
|
@@ -6,9 +6,11 @@ import { type Client as AxxaClient } from "./axxa/client.js";
|
|
|
6
6
|
import { type Client as ComfachocoClient } from "./comfachoco/client.js";
|
|
7
7
|
import { type Client as GmedicClient } from "./gmedic/client.js";
|
|
8
8
|
import { type Client as NuevaEpsClient } from "./nuevaEps/client.js";
|
|
9
|
+
import { type Client as OficlinicClient } from "./oficlinic/client.js";
|
|
9
10
|
import { type Client as PoliciaColombiaClient } from "./policiaColombia/client.js";
|
|
10
11
|
import { type Client as RaizClient } from "./raiz/client.js";
|
|
11
12
|
import { type Client as SaludTotalClient } from "./saludTotal/client.js";
|
|
13
|
+
import { type Client as SanitasClient } from "./sanitas/client.js";
|
|
12
14
|
import { type Client as SisbenClient } from "./sisben/client.js";
|
|
13
15
|
import { type Client as SuraClient } from "./sura/client.js";
|
|
14
16
|
import { type Client as VisoftClient } from "./visoft/client.js";
|
|
@@ -26,9 +28,11 @@ export interface Client {
|
|
|
26
28
|
readonly comfachoco: ComfachocoClient;
|
|
27
29
|
readonly gmedic: GmedicClient;
|
|
28
30
|
readonly nuevaEps: NuevaEpsClient;
|
|
31
|
+
readonly oficlinic: OficlinicClient;
|
|
29
32
|
readonly policiaColombia: PoliciaColombiaClient;
|
|
30
33
|
readonly raiz: RaizClient;
|
|
31
34
|
readonly saludTotal: SaludTotalClient;
|
|
35
|
+
readonly sanitas: SanitasClient;
|
|
32
36
|
readonly sisben: SisbenClient;
|
|
33
37
|
readonly sura: SuraClient;
|
|
34
38
|
readonly visoft: VisoftClient;
|
package/dist/client.js
CHANGED
|
@@ -8,9 +8,11 @@ import { bind as bindAxxa } from "./axxa/client.js";
|
|
|
8
8
|
import { bind as bindComfachoco, } from "./comfachoco/client.js";
|
|
9
9
|
import { bind as bindGmedic, } from "./gmedic/client.js";
|
|
10
10
|
import { bind as bindNuevaEps, } from "./nuevaEps/client.js";
|
|
11
|
+
import { bind as bindOficlinic, } from "./oficlinic/client.js";
|
|
11
12
|
import { bind as bindPoliciaColombia, } from "./policiaColombia/client.js";
|
|
12
13
|
import { bind as bindRaiz } from "./raiz/client.js";
|
|
13
14
|
import { bind as bindSaludTotal, } from "./saludTotal/client.js";
|
|
15
|
+
import { bind as bindSanitas, } from "./sanitas/client.js";
|
|
14
16
|
import { bind as bindSisben, } from "./sisben/client.js";
|
|
15
17
|
import { bind as bindSura } from "./sura/client.js";
|
|
16
18
|
import { bind as bindVisoft, } from "./visoft/client.js";
|
|
@@ -25,9 +27,11 @@ export function bind(transport) {
|
|
|
25
27
|
let comfachocoClient;
|
|
26
28
|
let gmedicClient;
|
|
27
29
|
let nuevaEpsClient;
|
|
30
|
+
let oficlinicClient;
|
|
28
31
|
let policiaColombiaClient;
|
|
29
32
|
let raizClient;
|
|
30
33
|
let saludTotalClient;
|
|
34
|
+
let sanitasClient;
|
|
31
35
|
let sisbenClient;
|
|
32
36
|
let suraClient;
|
|
33
37
|
let visoftClient;
|
|
@@ -53,6 +57,9 @@ export function bind(transport) {
|
|
|
53
57
|
get nuevaEps() {
|
|
54
58
|
return (nuevaEpsClient ??= bindNuevaEps(transport));
|
|
55
59
|
},
|
|
60
|
+
get oficlinic() {
|
|
61
|
+
return (oficlinicClient ??= bindOficlinic(transport));
|
|
62
|
+
},
|
|
56
63
|
get policiaColombia() {
|
|
57
64
|
return (policiaColombiaClient ??= bindPoliciaColombia(transport));
|
|
58
65
|
},
|
|
@@ -62,6 +69,9 @@ export function bind(transport) {
|
|
|
62
69
|
get saludTotal() {
|
|
63
70
|
return (saludTotalClient ??= bindSaludTotal(transport));
|
|
64
71
|
},
|
|
72
|
+
get sanitas() {
|
|
73
|
+
return (sanitasClient ??= bindSanitas(transport));
|
|
74
|
+
},
|
|
65
75
|
get sisben() {
|
|
66
76
|
return (sisbenClient ??= bindSisben(transport));
|
|
67
77
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { OutcomeUnknownFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
-
import type {
|
|
1
|
+
import type { CredentialsRejectedFailure, OutcomeUnknownFailure, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { ComfachocoLoginCoolingDownFailure, ComfachocoMemberIdentityMismatchFailure, ComfachocoProviderAccountInactiveFailure, ComfachocoProviderSessionExpiredFailure } from "../models.js";
|
|
3
3
|
export interface ComfachocoComfachocoAffiliationFound {
|
|
4
4
|
member: ComfachocoComfachocoMember;
|
|
5
5
|
observedAt: Temporal.Instant;
|
|
@@ -30,7 +30,7 @@ export interface ComfachocoLookupAffiliationBadGatewayError {
|
|
|
30
30
|
metadata: ResponseMetadata;
|
|
31
31
|
success: false;
|
|
32
32
|
}
|
|
33
|
-
export type ComfachocoLookupAffiliationBadGatewayFailure = OutcomeUnknownFailure |
|
|
33
|
+
export type ComfachocoLookupAffiliationBadGatewayFailure = OutcomeUnknownFailure | ProviderProtocolChangedFailure | ComfachocoMemberIdentityMismatchFailure;
|
|
34
34
|
export interface ComfachocoLookupAffiliationBody {
|
|
35
35
|
connectionId?: string;
|
|
36
36
|
documentNumber: string;
|
|
@@ -64,7 +64,7 @@ export interface ComfachocoLookupAffiliationServiceUnavailableError {
|
|
|
64
64
|
metadata: ResponseMetadata;
|
|
65
65
|
success: false;
|
|
66
66
|
}
|
|
67
|
-
export type ComfachocoLookupAffiliationServiceUnavailableFailure = UpstreamUnavailableFailure |
|
|
67
|
+
export type ComfachocoLookupAffiliationServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure | ComfachocoProviderSessionExpiredFailure;
|
|
68
68
|
/**
|
|
69
69
|
* A failed answer.
|
|
70
70
|
*/
|
|
@@ -90,7 +90,7 @@ export interface ComfachocoLookupAffiliationUnprocessableContentError {
|
|
|
90
90
|
metadata: ResponseMetadata;
|
|
91
91
|
success: false;
|
|
92
92
|
}
|
|
93
|
-
export type ComfachocoLookupAffiliationUnprocessableContentFailure = ComfachocoProviderAccountInactiveFailure |
|
|
93
|
+
export type ComfachocoLookupAffiliationUnprocessableContentFailure = ComfachocoProviderAccountInactiveFailure | CredentialsRejectedFailure;
|
|
94
94
|
export declare const ComfachocoComfachocoAffiliationFoundCodec: import("../../_/codec.js").Codec;
|
|
95
95
|
export declare const ComfachocoComfachocoAffiliationNotFoundCodec: import("../../_/codec.js").Codec;
|
|
96
96
|
export declare const ComfachocoLookupAffiliationResultCodec: import("../../_/codec.js").Codec;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { OutcomeUnknownFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
-
import type {
|
|
1
|
+
import type { CredentialsRejectedFailure, OutcomeUnknownFailure, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { ComfachocoLoginCoolingDownFailure, ComfachocoMemberIdentityMismatchFailure, ComfachocoProviderAccountInactiveFailure, ComfachocoProviderSessionExpiredFailure } from "../models.js";
|
|
3
3
|
export interface ComfachocoComfachocoConnection {
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
@@ -30,7 +30,7 @@ export interface ComfachocoDeleteConnectionBadGatewayError {
|
|
|
30
30
|
metadata: ResponseMetadata;
|
|
31
31
|
success: false;
|
|
32
32
|
}
|
|
33
|
-
export type ComfachocoDeleteConnectionBadGatewayFailure = OutcomeUnknownFailure |
|
|
33
|
+
export type ComfachocoDeleteConnectionBadGatewayFailure = OutcomeUnknownFailure | ProviderProtocolChangedFailure | ComfachocoMemberIdentityMismatchFailure;
|
|
34
34
|
/**
|
|
35
35
|
* A failed answer.
|
|
36
36
|
*/
|
|
@@ -43,7 +43,7 @@ export interface ComfachocoDeleteConnectionServiceUnavailableError {
|
|
|
43
43
|
metadata: ResponseMetadata;
|
|
44
44
|
success: false;
|
|
45
45
|
}
|
|
46
|
-
export type ComfachocoDeleteConnectionServiceUnavailableFailure = UpstreamUnavailableFailure |
|
|
46
|
+
export type ComfachocoDeleteConnectionServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure | ComfachocoProviderSessionExpiredFailure;
|
|
47
47
|
/**
|
|
48
48
|
* A failed answer.
|
|
49
49
|
*/
|
|
@@ -69,7 +69,7 @@ export interface ComfachocoDeleteConnectionUnprocessableContentError {
|
|
|
69
69
|
metadata: ResponseMetadata;
|
|
70
70
|
success: false;
|
|
71
71
|
}
|
|
72
|
-
export type ComfachocoDeleteConnectionUnprocessableContentFailure = ComfachocoProviderAccountInactiveFailure |
|
|
72
|
+
export type ComfachocoDeleteConnectionUnprocessableContentFailure = ComfachocoProviderAccountInactiveFailure | CredentialsRejectedFailure;
|
|
73
73
|
/**
|
|
74
74
|
* A failed answer.
|
|
75
75
|
*/
|
|
@@ -82,7 +82,7 @@ export interface ComfachocoGetConnectionBadGatewayError {
|
|
|
82
82
|
metadata: ResponseMetadata;
|
|
83
83
|
success: false;
|
|
84
84
|
}
|
|
85
|
-
export type ComfachocoGetConnectionBadGatewayFailure = OutcomeUnknownFailure |
|
|
85
|
+
export type ComfachocoGetConnectionBadGatewayFailure = OutcomeUnknownFailure | ProviderProtocolChangedFailure | ComfachocoMemberIdentityMismatchFailure;
|
|
86
86
|
/**
|
|
87
87
|
* A failed answer.
|
|
88
88
|
*/
|
|
@@ -95,7 +95,7 @@ export interface ComfachocoGetConnectionServiceUnavailableError {
|
|
|
95
95
|
metadata: ResponseMetadata;
|
|
96
96
|
success: false;
|
|
97
97
|
}
|
|
98
|
-
export type ComfachocoGetConnectionServiceUnavailableFailure = UpstreamUnavailableFailure |
|
|
98
|
+
export type ComfachocoGetConnectionServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure | ComfachocoProviderSessionExpiredFailure;
|
|
99
99
|
/**
|
|
100
100
|
* A failed answer.
|
|
101
101
|
*/
|
|
@@ -121,7 +121,7 @@ export interface ComfachocoGetConnectionUnprocessableContentError {
|
|
|
121
121
|
metadata: ResponseMetadata;
|
|
122
122
|
success: false;
|
|
123
123
|
}
|
|
124
|
-
export type ComfachocoGetConnectionUnprocessableContentFailure = ComfachocoProviderAccountInactiveFailure |
|
|
124
|
+
export type ComfachocoGetConnectionUnprocessableContentFailure = ComfachocoProviderAccountInactiveFailure | CredentialsRejectedFailure;
|
|
125
125
|
/**
|
|
126
126
|
* A failed answer.
|
|
127
127
|
*/
|
|
@@ -134,7 +134,7 @@ export interface ComfachocoVerifyConnectionBadGatewayError {
|
|
|
134
134
|
metadata: ResponseMetadata;
|
|
135
135
|
success: false;
|
|
136
136
|
}
|
|
137
|
-
export type ComfachocoVerifyConnectionBadGatewayFailure = OutcomeUnknownFailure |
|
|
137
|
+
export type ComfachocoVerifyConnectionBadGatewayFailure = OutcomeUnknownFailure | ProviderProtocolChangedFailure | ComfachocoMemberIdentityMismatchFailure;
|
|
138
138
|
export interface ComfachocoVerifyConnectionBody {
|
|
139
139
|
documentType: "CC";
|
|
140
140
|
name: string;
|
|
@@ -174,7 +174,7 @@ export interface ComfachocoVerifyConnectionServiceUnavailableError {
|
|
|
174
174
|
metadata: ResponseMetadata;
|
|
175
175
|
success: false;
|
|
176
176
|
}
|
|
177
|
-
export type ComfachocoVerifyConnectionServiceUnavailableFailure = UpstreamUnavailableFailure |
|
|
177
|
+
export type ComfachocoVerifyConnectionServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure | ComfachocoProviderSessionExpiredFailure;
|
|
178
178
|
/**
|
|
179
179
|
* A failed answer.
|
|
180
180
|
*/
|
|
@@ -200,6 +200,6 @@ export interface ComfachocoVerifyConnectionUnprocessableContentError {
|
|
|
200
200
|
metadata: ResponseMetadata;
|
|
201
201
|
success: false;
|
|
202
202
|
}
|
|
203
|
-
export type ComfachocoVerifyConnectionUnprocessableContentFailure = ComfachocoProviderAccountInactiveFailure |
|
|
203
|
+
export type ComfachocoVerifyConnectionUnprocessableContentFailure = ComfachocoProviderAccountInactiveFailure | CredentialsRejectedFailure;
|
|
204
204
|
export declare const ComfachocoComfachocoConnectionCodec: import("../../_/codec.js").Codec;
|
|
205
205
|
export declare const ComfachocoComfachocoConnectionResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -2,4 +2,4 @@ export { ApiError } from "../_/index.js";
|
|
|
2
2
|
export type { RequestOptions } from "../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
4
|
export type { Client, ClientOptions, } from "./client.js";
|
|
5
|
-
export type { ComfachocoConnectionNotFoundError, ComfachocoConnectionNotFoundFailure, ComfachocoConnectionRequiredError, ComfachocoConnectionRequiredFailure,
|
|
5
|
+
export type { ComfachocoConnectionNotFoundError, ComfachocoConnectionNotFoundFailure, ComfachocoConnectionRequiredError, ComfachocoConnectionRequiredFailure, ComfachocoLoginCoolingDownFailure, ComfachocoMemberIdentityMismatchFailure, ComfachocoProviderAccountInactiveFailure, ComfachocoProviderSessionExpiredFailure, } from "./models.js";
|
|
@@ -71,27 +71,6 @@ export interface ComfachocoConnectionRequiredFailure {
|
|
|
71
71
|
*/
|
|
72
72
|
retryable: false;
|
|
73
73
|
}
|
|
74
|
-
/**
|
|
75
|
-
* The provider refused the credentials.
|
|
76
|
-
*/
|
|
77
|
-
export interface ComfachocoCredentialsRejectedFailure {
|
|
78
|
-
/**
|
|
79
|
-
* The failure code, stable across releases.
|
|
80
|
-
*/
|
|
81
|
-
code: "CREDENTIALS_REJECTED";
|
|
82
|
-
/**
|
|
83
|
-
* No fields.
|
|
84
|
-
*/
|
|
85
|
-
data: Empty;
|
|
86
|
-
/**
|
|
87
|
-
* What went wrong, for people; it never contains input values.
|
|
88
|
-
*/
|
|
89
|
-
message: string;
|
|
90
|
-
/**
|
|
91
|
-
* Whether repeating the same request may succeed.
|
|
92
|
-
*/
|
|
93
|
-
retryable: false;
|
|
94
|
-
}
|
|
95
74
|
/**
|
|
96
75
|
* Provider sign-in is cooling down.
|
|
97
76
|
*/
|
|
@@ -155,27 +134,6 @@ export interface ComfachocoProviderAccountInactiveFailure {
|
|
|
155
134
|
*/
|
|
156
135
|
retryable: false;
|
|
157
136
|
}
|
|
158
|
-
/**
|
|
159
|
-
* The provider returned an unrecognized response.
|
|
160
|
-
*/
|
|
161
|
-
export interface ComfachocoProviderProtocolChangedFailure {
|
|
162
|
-
/**
|
|
163
|
-
* The failure code, stable across releases.
|
|
164
|
-
*/
|
|
165
|
-
code: "PROVIDER_PROTOCOL_CHANGED";
|
|
166
|
-
/**
|
|
167
|
-
* No fields.
|
|
168
|
-
*/
|
|
169
|
-
data: Empty;
|
|
170
|
-
/**
|
|
171
|
-
* What went wrong, for people; it never contains input values.
|
|
172
|
-
*/
|
|
173
|
-
message: string;
|
|
174
|
-
/**
|
|
175
|
-
* Whether repeating the same request may succeed.
|
|
176
|
-
*/
|
|
177
|
-
retryable: false;
|
|
178
|
-
}
|
|
179
137
|
/**
|
|
180
138
|
* The provider session expired.
|
|
181
139
|
*/
|
|
@@ -197,24 +155,3 @@ export interface ComfachocoProviderSessionExpiredFailure {
|
|
|
197
155
|
*/
|
|
198
156
|
retryable: true;
|
|
199
157
|
}
|
|
200
|
-
/**
|
|
201
|
-
* The provider could not complete the request.
|
|
202
|
-
*/
|
|
203
|
-
export interface ComfachocoProviderUnavailableFailure {
|
|
204
|
-
/**
|
|
205
|
-
* The failure code, stable across releases.
|
|
206
|
-
*/
|
|
207
|
-
code: "PROVIDER_UNAVAILABLE";
|
|
208
|
-
/**
|
|
209
|
-
* No fields.
|
|
210
|
-
*/
|
|
211
|
-
data: Empty;
|
|
212
|
-
/**
|
|
213
|
-
* What went wrong, for people; it never contains input values.
|
|
214
|
-
*/
|
|
215
|
-
message: string;
|
|
216
|
-
/**
|
|
217
|
-
* Whether repeating the same request may succeed.
|
|
218
|
-
*/
|
|
219
|
-
retryable: true;
|
|
220
|
-
}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ export { ApiError } from "./_/index.js";
|
|
|
2
2
|
export type { RequestOptions } from "./_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
4
|
export type { Client, ClientOptions, } from "./client.js";
|
|
5
|
-
export type { Connection, ConnectionNotFoundError, ConnectionNotFoundFailure, ConnectionPage, ConnectionPageResponse, ConnectionResponse, DeletedObject, DeletedObjectResponse, Empty, Failure, ForbiddenError, ForbiddenFailure, HttpsUrl, InternalError, InternalFailure, InvalidInputError, InvalidInputFailure, InvalidInputFailureData, OutcomeUnknownError, OutcomeUnknownFailure, PageInfo, RateLimitedError, RateLimitedFailure, RequestTooLargeError, RequestTooLargeFailure, ResponseMetadata, SignedUrl, UnauthorizedError, UnauthorizedFailure, UnsupportedMediaTypeError, UnsupportedMediaTypeFailure, UpstreamTimeoutError, UpstreamTimeoutFailure, UpstreamUnavailableError, UpstreamUnavailableFailure, ValidationIssue, VerifyConnectionResult, VerifyConnectionResultResponse, } from "./models.js";
|
|
5
|
+
export type { Connection, ConnectionNotFoundError, ConnectionNotFoundFailure, ConnectionPage, ConnectionPageResponse, ConnectionResponse, CredentialsRejectedFailure, DeletedObject, DeletedObjectResponse, Empty, Failure, ForbiddenError, ForbiddenFailure, HttpsUrl, InternalError, InternalFailure, InvalidInputError, InvalidInputFailure, InvalidInputFailureData, OutcomeUnknownError, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedError, RateLimitedFailure, RequestTooLargeError, RequestTooLargeFailure, ResponseMetadata, SignedUrl, UnauthorizedError, UnauthorizedFailure, UnsupportedMediaTypeError, UnsupportedMediaTypeFailure, UpstreamTimeoutError, UpstreamTimeoutFailure, UpstreamUnavailableError, UpstreamUnavailableFailure, ValidationIssue, VerifyConnectionResult, VerifyConnectionResultResponse, } from "./models.js";
|
package/dist/models.d.ts
CHANGED
|
@@ -78,6 +78,27 @@ export interface ConnectionResponse {
|
|
|
78
78
|
metadata: ResponseMetadata;
|
|
79
79
|
success: true;
|
|
80
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* The provider refused the credentials.
|
|
83
|
+
*/
|
|
84
|
+
export interface CredentialsRejectedFailure {
|
|
85
|
+
/**
|
|
86
|
+
* The failure code, stable across releases.
|
|
87
|
+
*/
|
|
88
|
+
code: "CREDENTIALS_REJECTED";
|
|
89
|
+
/**
|
|
90
|
+
* No fields.
|
|
91
|
+
*/
|
|
92
|
+
data: Empty;
|
|
93
|
+
/**
|
|
94
|
+
* What went wrong, for people; it never contains input values.
|
|
95
|
+
*/
|
|
96
|
+
message: string;
|
|
97
|
+
/**
|
|
98
|
+
* Whether repeating the same request may succeed.
|
|
99
|
+
*/
|
|
100
|
+
retryable: false;
|
|
101
|
+
}
|
|
81
102
|
export interface DeletedObject {
|
|
82
103
|
deleted: true;
|
|
83
104
|
/**
|
|
@@ -286,6 +307,48 @@ export interface PageInfo {
|
|
|
286
307
|
*/
|
|
287
308
|
previousCursor: string | null;
|
|
288
309
|
}
|
|
310
|
+
/**
|
|
311
|
+
* The provider returned an unrecognized response.
|
|
312
|
+
*/
|
|
313
|
+
export interface ProviderProtocolChangedFailure {
|
|
314
|
+
/**
|
|
315
|
+
* The failure code, stable across releases.
|
|
316
|
+
*/
|
|
317
|
+
code: "PROVIDER_PROTOCOL_CHANGED";
|
|
318
|
+
/**
|
|
319
|
+
* No fields.
|
|
320
|
+
*/
|
|
321
|
+
data: Empty;
|
|
322
|
+
/**
|
|
323
|
+
* What went wrong, for people; it never contains input values.
|
|
324
|
+
*/
|
|
325
|
+
message: string;
|
|
326
|
+
/**
|
|
327
|
+
* Whether repeating the same request may succeed.
|
|
328
|
+
*/
|
|
329
|
+
retryable: false;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* The provider could not complete the request.
|
|
333
|
+
*/
|
|
334
|
+
export interface ProviderUnavailableFailure {
|
|
335
|
+
/**
|
|
336
|
+
* The failure code, stable across releases.
|
|
337
|
+
*/
|
|
338
|
+
code: "PROVIDER_UNAVAILABLE";
|
|
339
|
+
/**
|
|
340
|
+
* No fields.
|
|
341
|
+
*/
|
|
342
|
+
data: Empty;
|
|
343
|
+
/**
|
|
344
|
+
* What went wrong, for people; it never contains input values.
|
|
345
|
+
*/
|
|
346
|
+
message: string;
|
|
347
|
+
/**
|
|
348
|
+
* Whether repeating the same request may succeed.
|
|
349
|
+
*/
|
|
350
|
+
retryable: true;
|
|
351
|
+
}
|
|
289
352
|
/**
|
|
290
353
|
* A failed answer.
|
|
291
354
|
*/
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { OficlinicAppointmentPageResponse, OficlinicLookupAppointmentsBody } 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
|
+
* Lookup appointments
|
|
12
|
+
*
|
|
13
|
+
* Look up one patient's e-Oficlinic appointment history by status: assigned,
|
|
14
|
+
* cancelled, absence (no-show) or legalized (attendance registered). The
|
|
15
|
+
* patient is resolved by citizenship card number first, sent in the body;
|
|
16
|
+
* PATIENT_NOT_FOUND answers only the provider explicit negative, and every
|
|
17
|
+
* row must name the resolved patient. Staff usernames and free-text
|
|
18
|
+
* observations are never returned. Mapped from the provider's source: a live
|
|
19
|
+
* positive answer has not been verified yet. Read-only: it never books,
|
|
20
|
+
* cancels or marks attendance. Pass pageInfo.nextCursor as cursor for more.
|
|
21
|
+
*/
|
|
22
|
+
lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
|
|
23
|
+
}
|
|
24
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
25
|
+
export declare function bind(transport: Transport): Client;
|
|
26
|
+
export type LookupRequest = OficlinicLookupAppointmentsBody;
|
|
27
|
+
export type LookupResponse = OficlinicAppointmentPageResponse;
|
|
@@ -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
|
+
lookup: (request, options) => transport.send(LookupOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const LookupOperation = {
|
|
13
|
+
method: "POST",
|
|
14
|
+
route: "/v1/oficlinic/appointments/lookup",
|
|
15
|
+
body: "flat",
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "422": 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, LookupRequest, LookupResponse, } from "./client.js";
|
|
5
|
+
export type { OficlinicAppointment, OficlinicAppointmentPage, OficlinicAppointmentPageResponse, OficlinicLookupAppointmentsBadGatewayError, OficlinicLookupAppointmentsBadGatewayFailure, OficlinicLookupAppointmentsBadRequestError, OficlinicLookupAppointmentsBadRequestFailure, OficlinicLookupAppointmentsBody, OficlinicLookupAppointmentsConflictError, OficlinicLookupAppointmentsConflictFailure, OficlinicLookupAppointmentsNotFoundError, OficlinicLookupAppointmentsNotFoundFailure, OficlinicLookupAppointmentsServiceUnavailableError, OficlinicLookupAppointmentsServiceUnavailableFailure, OficlinicLookupAppointmentsTooManyRequestsError, OficlinicLookupAppointmentsTooManyRequestsFailure, OficlinicLookupAppointmentsUnprocessableContentError, OficlinicLookupAppointmentsUnprocessableContentFailure, OficlinicPatientNotFoundFailure, } from "./models.js";
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import type { CredentialsRejectedFailure, Empty, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionNotFoundFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicPatientRecordMismatchFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
|
|
3
|
+
export interface OficlinicAppointment {
|
|
4
|
+
assignedAt: string | null;
|
|
5
|
+
cancellationReason: string | null;
|
|
6
|
+
cancelledAt: string | null;
|
|
7
|
+
/**
|
|
8
|
+
* The appointment date (FecCita), as an ISO date.
|
|
9
|
+
*/
|
|
10
|
+
date: string | null;
|
|
11
|
+
label: string | null;
|
|
12
|
+
location: string | null;
|
|
13
|
+
payer: string | null;
|
|
14
|
+
procedure: string | null;
|
|
15
|
+
professional: string | null;
|
|
16
|
+
serviceNumber: string | null;
|
|
17
|
+
status: string | null;
|
|
18
|
+
timeLabel: string | null;
|
|
19
|
+
}
|
|
20
|
+
export interface OficlinicAppointmentPage {
|
|
21
|
+
/**
|
|
22
|
+
* Items admitted by this resource contract within the verified organization.
|
|
23
|
+
*/
|
|
24
|
+
data: OficlinicAppointment[];
|
|
25
|
+
/**
|
|
26
|
+
* Discriminator for a resource list response.
|
|
27
|
+
*/
|
|
28
|
+
object: "list";
|
|
29
|
+
/**
|
|
30
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
31
|
+
*/
|
|
32
|
+
pageInfo: PageInfo;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A successful answer.
|
|
36
|
+
*/
|
|
37
|
+
export interface OficlinicAppointmentPageResponse {
|
|
38
|
+
data: OficlinicAppointmentPage;
|
|
39
|
+
error: null;
|
|
40
|
+
/**
|
|
41
|
+
* What every answer carries besides its data or error.
|
|
42
|
+
*/
|
|
43
|
+
metadata: ResponseMetadata;
|
|
44
|
+
success: true;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* A failed answer.
|
|
48
|
+
*/
|
|
49
|
+
export interface OficlinicLookupAppointmentsBadGatewayError {
|
|
50
|
+
data: null;
|
|
51
|
+
error: OficlinicLookupAppointmentsBadGatewayFailure;
|
|
52
|
+
/**
|
|
53
|
+
* What every answer carries besides its data or error.
|
|
54
|
+
*/
|
|
55
|
+
metadata: ResponseMetadata;
|
|
56
|
+
success: false;
|
|
57
|
+
}
|
|
58
|
+
export type OficlinicLookupAppointmentsBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure | OficlinicPatientRecordMismatchFailure;
|
|
59
|
+
/**
|
|
60
|
+
* A failed answer.
|
|
61
|
+
*/
|
|
62
|
+
export interface OficlinicLookupAppointmentsBadRequestError {
|
|
63
|
+
data: null;
|
|
64
|
+
error: OficlinicLookupAppointmentsBadRequestFailure;
|
|
65
|
+
/**
|
|
66
|
+
* What every answer carries besides its data or error.
|
|
67
|
+
*/
|
|
68
|
+
metadata: ResponseMetadata;
|
|
69
|
+
success: false;
|
|
70
|
+
}
|
|
71
|
+
export type OficlinicLookupAppointmentsBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
|
|
72
|
+
export interface OficlinicLookupAppointmentsBody {
|
|
73
|
+
/**
|
|
74
|
+
* An Account connection id of the caller's organization.
|
|
75
|
+
*/
|
|
76
|
+
connectionId?: string;
|
|
77
|
+
/**
|
|
78
|
+
* An opaque cursor from a previous page's pageInfo.nextCursor or
|
|
79
|
+
* pageInfo.previousCursor.
|
|
80
|
+
*/
|
|
81
|
+
cursor?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
84
|
+
*/
|
|
85
|
+
direction?: "forward" | "backward";
|
|
86
|
+
/**
|
|
87
|
+
* The document number, digits only.
|
|
88
|
+
*/
|
|
89
|
+
documentNumber: string;
|
|
90
|
+
/**
|
|
91
|
+
* Colombian citizenship card. Other document types are not verified against
|
|
92
|
+
* the provider yet.
|
|
93
|
+
*/
|
|
94
|
+
documentType: "CC";
|
|
95
|
+
/**
|
|
96
|
+
* Maximum items returned in one page. Defaults to 15; larger reads require
|
|
97
|
+
* another cursor.
|
|
98
|
+
*/
|
|
99
|
+
limit?: number;
|
|
100
|
+
/**
|
|
101
|
+
* assigned, cancelled, absence (no-show) or legalized (attendance
|
|
102
|
+
* registered).
|
|
103
|
+
*/
|
|
104
|
+
status: "assigned" | "cancelled" | "absence" | "legalized";
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* A failed answer.
|
|
108
|
+
*/
|
|
109
|
+
export interface OficlinicLookupAppointmentsConflictError {
|
|
110
|
+
data: null;
|
|
111
|
+
error: OficlinicLookupAppointmentsConflictFailure;
|
|
112
|
+
/**
|
|
113
|
+
* What every answer carries besides its data or error.
|
|
114
|
+
*/
|
|
115
|
+
metadata: ResponseMetadata;
|
|
116
|
+
success: false;
|
|
117
|
+
}
|
|
118
|
+
export type OficlinicLookupAppointmentsConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
|
|
119
|
+
/**
|
|
120
|
+
* A failed answer.
|
|
121
|
+
*/
|
|
122
|
+
export interface OficlinicLookupAppointmentsNotFoundError {
|
|
123
|
+
data: null;
|
|
124
|
+
error: OficlinicLookupAppointmentsNotFoundFailure;
|
|
125
|
+
/**
|
|
126
|
+
* What every answer carries besides its data or error.
|
|
127
|
+
*/
|
|
128
|
+
metadata: ResponseMetadata;
|
|
129
|
+
success: false;
|
|
130
|
+
}
|
|
131
|
+
export type OficlinicLookupAppointmentsNotFoundFailure = OficlinicConnectionNotFoundFailure | OficlinicPatientNotFoundFailure;
|
|
132
|
+
/**
|
|
133
|
+
* A failed answer.
|
|
134
|
+
*/
|
|
135
|
+
export interface OficlinicLookupAppointmentsServiceUnavailableError {
|
|
136
|
+
data: null;
|
|
137
|
+
error: OficlinicLookupAppointmentsServiceUnavailableFailure;
|
|
138
|
+
/**
|
|
139
|
+
* What every answer carries besides its data or error.
|
|
140
|
+
*/
|
|
141
|
+
metadata: ResponseMetadata;
|
|
142
|
+
success: false;
|
|
143
|
+
}
|
|
144
|
+
export type OficlinicLookupAppointmentsServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
|
|
145
|
+
/**
|
|
146
|
+
* A failed answer.
|
|
147
|
+
*/
|
|
148
|
+
export interface OficlinicLookupAppointmentsTooManyRequestsError {
|
|
149
|
+
data: null;
|
|
150
|
+
error: OficlinicLookupAppointmentsTooManyRequestsFailure;
|
|
151
|
+
/**
|
|
152
|
+
* What every answer carries besides its data or error.
|
|
153
|
+
*/
|
|
154
|
+
metadata: ResponseMetadata;
|
|
155
|
+
success: false;
|
|
156
|
+
}
|
|
157
|
+
export type OficlinicLookupAppointmentsTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
|
|
158
|
+
/**
|
|
159
|
+
* A failed answer.
|
|
160
|
+
*/
|
|
161
|
+
export interface OficlinicLookupAppointmentsUnprocessableContentError {
|
|
162
|
+
data: null;
|
|
163
|
+
error: OficlinicLookupAppointmentsUnprocessableContentFailure;
|
|
164
|
+
/**
|
|
165
|
+
* What every answer carries besides its data or error.
|
|
166
|
+
*/
|
|
167
|
+
metadata: ResponseMetadata;
|
|
168
|
+
success: false;
|
|
169
|
+
}
|
|
170
|
+
export type OficlinicLookupAppointmentsUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
|
|
171
|
+
/**
|
|
172
|
+
* The provider explicitly reported no patient with the document.
|
|
173
|
+
*/
|
|
174
|
+
export interface OficlinicPatientNotFoundFailure {
|
|
175
|
+
/**
|
|
176
|
+
* The failure code, stable across releases.
|
|
177
|
+
*/
|
|
178
|
+
code: "PATIENT_NOT_FOUND";
|
|
179
|
+
/**
|
|
180
|
+
* No fields.
|
|
181
|
+
*/
|
|
182
|
+
data: Empty;
|
|
183
|
+
/**
|
|
184
|
+
* What went wrong, for people; it never contains input values.
|
|
185
|
+
*/
|
|
186
|
+
message: string;
|
|
187
|
+
/**
|
|
188
|
+
* Whether repeating the same request may succeed.
|
|
189
|
+
*/
|
|
190
|
+
retryable: false;
|
|
191
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type BaseClientOptions, Transport } from "../_/index.js";
|
|
2
|
+
import { type Client as AppointmentsClient } from "./appointments/client.js";
|
|
3
|
+
import { type Client as ConnectionsClient } from "./connections/client.js";
|
|
4
|
+
import { type Client as PatientsClient } from "./patients/client.js";
|
|
5
|
+
import { type Client as PayersClient } from "./payers/client.js";
|
|
6
|
+
import { type Client as ProfessionalsClient } from "./professionals/client.js";
|
|
7
|
+
import { type Client as ServicesClient } from "./services/client.js";
|
|
8
|
+
export interface ClientOptions extends BaseClientOptions {
|
|
9
|
+
/**
|
|
10
|
+
* The URL the paths of the API are relative to.
|
|
11
|
+
*/
|
|
12
|
+
baseUrl: string;
|
|
13
|
+
}
|
|
14
|
+
export interface Client {
|
|
15
|
+
readonly appointments: AppointmentsClient;
|
|
16
|
+
readonly connections: ConnectionsClient;
|
|
17
|
+
readonly patients: PatientsClient;
|
|
18
|
+
readonly payers: PayersClient;
|
|
19
|
+
readonly professionals: ProfessionalsClient;
|
|
20
|
+
readonly services: ServicesClient;
|
|
21
|
+
}
|
|
22
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
23
|
+
export declare function bind(transport: Transport): Client;
|