@arbol-ai/sdk 5.9.0 → 5.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/saludTotal/authorizations/client.d.ts +4 -2
- package/dist/saludTotal/client.d.ts +0 -10
- package/dist/saludTotal/client.js +0 -25
- package/dist/saludTotal/filings/client.d.ts +3 -2
- package/dist/saludTotal/index.d.ts +1 -1
- package/dist/saludTotal/models.d.ts +19 -40
- package/dist/saludTotal/samples/models.d.ts +6 -4
- package/dist/saludTotal/workflowPreviews/client.d.ts +11 -4
- package/dist/saludTotal/workflowPreviews/client.js +1 -1
- package/package.json +3 -3
- package/dist/saludTotal/connections/client.d.ts +0 -81
- package/dist/saludTotal/connections/client.js +0 -41
- package/dist/saludTotal/connections/index.d.ts +0 -5
- package/dist/saludTotal/connections/index.js +0 -4
- package/dist/saludTotal/connections/models.d.ts +0 -96
- package/dist/saludTotal/connections/models.js +0 -18
- package/dist/saludTotal/portalOperations/client.d.ts +0 -63
- package/dist/saludTotal/portalOperations/client.js +0 -18
- package/dist/saludTotal/portalOperations/index.d.ts +0 -5
- package/dist/saludTotal/portalOperations/index.js +0 -4
- package/dist/saludTotal/portalOperations/models.d.ts +0 -54
- package/dist/saludTotal/portalOperations/models.js +0 -3
- package/dist/saludTotal/portals/client.d.ts +0 -35
- package/dist/saludTotal/portals/client.js +0 -18
- package/dist/saludTotal/portals/index.d.ts +0 -5
- package/dist/saludTotal/portals/index.js +0 -4
- package/dist/saludTotal/portals/models.d.ts +0 -30
- package/dist/saludTotal/portals/models.js +0 -3
- package/dist/saludTotal/referenceOptions/client.d.ts +0 -54
- package/dist/saludTotal/referenceOptions/client.js +0 -18
- package/dist/saludTotal/referenceOptions/index.d.ts +0 -5
- package/dist/saludTotal/referenceOptions/index.js +0 -4
- package/dist/saludTotal/referenceOptions/models.d.ts +0 -105
- package/dist/saludTotal/referenceOptions/models.js +0 -3
- package/dist/saludTotal/sessions/client.d.ts +0 -41
- package/dist/saludTotal/sessions/client.js +0 -27
- package/dist/saludTotal/sessions/index.d.ts +0 -5
- package/dist/saludTotal/sessions/index.js +0 -4
- package/dist/saludTotal/sessions/models.d.ts +0 -37
- package/dist/saludTotal/sessions/models.js +0 -9
|
@@ -11,8 +11,10 @@ export interface Client {
|
|
|
11
11
|
* Look up authorization records for one member, site and day
|
|
12
12
|
*
|
|
13
13
|
* Availability of authorization records for the matched member and selected
|
|
14
|
-
* site on one calendar day. A missing row is not a denial. Returns
|
|
15
|
-
*
|
|
14
|
+
* site on one calendar day. A missing row is not a denial. Returns a count or
|
|
15
|
+
* location_required with permitted choices. Start without branchId or siteId.
|
|
16
|
+
* For location_required, repeat with the chosen ID in field, or pass
|
|
17
|
+
* nextChoiceCursor as choiceCursor for more choices.
|
|
16
18
|
*/
|
|
17
19
|
lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
|
|
18
20
|
}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { type BaseClientOptions, Transport } from "../_/index.js";
|
|
2
2
|
import { type Client as AffiliationsClient } from "./affiliations/client.js";
|
|
3
3
|
import { type Client as AuthorizationsClient } from "./authorizations/client.js";
|
|
4
|
-
import { type Client as ConnectionsClient } from "./connections/client.js";
|
|
5
4
|
import { type Client as FilingsClient } from "./filings/client.js";
|
|
6
5
|
import { type Client as InvoicesClient } from "./invoices/client.js";
|
|
7
6
|
import { type Client as NoticesClient } from "./notices/client.js";
|
|
8
|
-
import { type Client as PortalOperationsClient } from "./portalOperations/client.js";
|
|
9
|
-
import { type Client as PortalsClient } from "./portals/client.js";
|
|
10
|
-
import { type Client as ReferenceOptionsClient } from "./referenceOptions/client.js";
|
|
11
7
|
import { type Client as SamplesClient } from "./samples/client.js";
|
|
12
|
-
import { type Client as SessionsClient } from "./sessions/client.js";
|
|
13
8
|
import { type Client as WorkflowPreviewsClient } from "./workflowPreviews/client.js";
|
|
14
9
|
export interface ClientOptions extends BaseClientOptions {
|
|
15
10
|
/**
|
|
@@ -20,15 +15,10 @@ export interface ClientOptions extends BaseClientOptions {
|
|
|
20
15
|
export interface Client {
|
|
21
16
|
readonly affiliations: AffiliationsClient;
|
|
22
17
|
readonly authorizations: AuthorizationsClient;
|
|
23
|
-
readonly connections: ConnectionsClient;
|
|
24
18
|
readonly filings: FilingsClient;
|
|
25
19
|
readonly invoices: InvoicesClient;
|
|
26
20
|
readonly notices: NoticesClient;
|
|
27
|
-
readonly portalOperations: PortalOperationsClient;
|
|
28
|
-
readonly portals: PortalsClient;
|
|
29
|
-
readonly referenceOptions: ReferenceOptionsClient;
|
|
30
21
|
readonly samples: SamplesClient;
|
|
31
|
-
readonly sessions: SessionsClient;
|
|
32
22
|
readonly workflowPreviews: WorkflowPreviewsClient;
|
|
33
23
|
}
|
|
34
24
|
export declare function createClient(options: ClientOptions): Client;
|
|
@@ -3,15 +3,10 @@
|
|
|
3
3
|
import { Transport } from "../_/index.js";
|
|
4
4
|
import { bind as bindAffiliations, } from "./affiliations/client.js";
|
|
5
5
|
import { bind as bindAuthorizations, } from "./authorizations/client.js";
|
|
6
|
-
import { bind as bindConnections, } from "./connections/client.js";
|
|
7
6
|
import { bind as bindFilings, } from "./filings/client.js";
|
|
8
7
|
import { bind as bindInvoices, } from "./invoices/client.js";
|
|
9
8
|
import { bind as bindNotices, } from "./notices/client.js";
|
|
10
|
-
import { bind as bindPortalOperations, } from "./portalOperations/client.js";
|
|
11
|
-
import { bind as bindPortals, } from "./portals/client.js";
|
|
12
|
-
import { bind as bindReferenceOptions, } from "./referenceOptions/client.js";
|
|
13
9
|
import { bind as bindSamples, } from "./samples/client.js";
|
|
14
|
-
import { bind as bindSessions, } from "./sessions/client.js";
|
|
15
10
|
import { bind as bindWorkflowPreviews, } from "./workflowPreviews/client.js";
|
|
16
11
|
export function createClient(options) {
|
|
17
12
|
return bind(new Transport(options));
|
|
@@ -19,15 +14,10 @@ export function createClient(options) {
|
|
|
19
14
|
export function bind(transport) {
|
|
20
15
|
let affiliationsClient;
|
|
21
16
|
let authorizationsClient;
|
|
22
|
-
let connectionsClient;
|
|
23
17
|
let filingsClient;
|
|
24
18
|
let invoicesClient;
|
|
25
19
|
let noticesClient;
|
|
26
|
-
let portalOperationsClient;
|
|
27
|
-
let portalsClient;
|
|
28
|
-
let referenceOptionsClient;
|
|
29
20
|
let samplesClient;
|
|
30
|
-
let sessionsClient;
|
|
31
21
|
let workflowPreviewsClient;
|
|
32
22
|
return {
|
|
33
23
|
get affiliations() {
|
|
@@ -36,9 +26,6 @@ export function bind(transport) {
|
|
|
36
26
|
get authorizations() {
|
|
37
27
|
return (authorizationsClient ??= bindAuthorizations(transport));
|
|
38
28
|
},
|
|
39
|
-
get connections() {
|
|
40
|
-
return (connectionsClient ??= bindConnections(transport));
|
|
41
|
-
},
|
|
42
29
|
get filings() {
|
|
43
30
|
return (filingsClient ??= bindFilings(transport));
|
|
44
31
|
},
|
|
@@ -48,21 +35,9 @@ export function bind(transport) {
|
|
|
48
35
|
get notices() {
|
|
49
36
|
return (noticesClient ??= bindNotices(transport));
|
|
50
37
|
},
|
|
51
|
-
get portalOperations() {
|
|
52
|
-
return (portalOperationsClient ??= bindPortalOperations(transport));
|
|
53
|
-
},
|
|
54
|
-
get portals() {
|
|
55
|
-
return (portalsClient ??= bindPortals(transport));
|
|
56
|
-
},
|
|
57
|
-
get referenceOptions() {
|
|
58
|
-
return (referenceOptionsClient ??= bindReferenceOptions(transport));
|
|
59
|
-
},
|
|
60
38
|
get samples() {
|
|
61
39
|
return (samplesClient ??= bindSamples(transport));
|
|
62
40
|
},
|
|
63
|
-
get sessions() {
|
|
64
|
-
return (sessionsClient ??= bindSessions(transport));
|
|
65
|
-
},
|
|
66
41
|
get workflowPreviews() {
|
|
67
42
|
return (workflowPreviewsClient ??= bindWorkflowPreviews(transport));
|
|
68
43
|
},
|
|
@@ -12,8 +12,9 @@ export interface Client {
|
|
|
12
12
|
*
|
|
13
13
|
* Availability of requests for the matched member and IPS on one calendar
|
|
14
14
|
* day. The provider filing search is institution-wide after site admission.
|
|
15
|
-
* Returns
|
|
16
|
-
*
|
|
15
|
+
* Returns a count or location_required with permitted choices. Start without
|
|
16
|
+
* branchId or siteId. For location_required, repeat with the chosen ID in
|
|
17
|
+
* field, or pass nextChoiceCursor as choiceCursor for more choices.
|
|
17
18
|
*/
|
|
18
19
|
lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
|
|
19
20
|
}
|
|
@@ -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 { SaludTotalAccountUnavailableFailure, SaludTotalAffiliationLookup,
|
|
5
|
+
export type { SaludTotalAccountUnavailableFailure, SaludTotalAffiliationLookup, SaludTotalConnectionUnavailableFailure, SaludTotalCredentialsRejectedFailure, SaludTotalInteractiveVerificationRequiredFailure, SaludTotalInvoiceLookupInput, SaludTotalInvoiceLookupResult, SaludTotalIpsIdentityMismatchFailure, SaludTotalLoginCoolingDownFailure, SaludTotalModuleForbiddenFailure, SaludTotalPortalAccessUnverifiedFailure, SaludTotalProviderUnavailableFailure, SaludTotalRecordAvailability, SaludTotalRecordAvailabilityResponse, SaludTotalScopedDayLookup, SaludTotalSessionClosedFailure, SaludTotalSessionExpiredFailure, SaludTotalSiteUnavailableFailure, } from "./models.js";
|
|
@@ -24,42 +24,6 @@ export interface SaludTotalAffiliationLookup {
|
|
|
24
24
|
providerStatus: string | null;
|
|
25
25
|
status: "matched" | "no_match" | "ambiguous";
|
|
26
26
|
}
|
|
27
|
-
/**
|
|
28
|
-
* A failed answer.
|
|
29
|
-
*/
|
|
30
|
-
export interface SaludTotalConnectionNotFoundError {
|
|
31
|
-
data: null;
|
|
32
|
-
/**
|
|
33
|
-
* This organization has no verified connection with this id.
|
|
34
|
-
*/
|
|
35
|
-
error: SaludTotalConnectionNotFoundFailure;
|
|
36
|
-
/**
|
|
37
|
-
* What every answer carries besides its data or error.
|
|
38
|
-
*/
|
|
39
|
-
metadata: ResponseMetadata;
|
|
40
|
-
success: false;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* This organization has no verified connection with this id.
|
|
44
|
-
*/
|
|
45
|
-
export interface SaludTotalConnectionNotFoundFailure {
|
|
46
|
-
/**
|
|
47
|
-
* The failure code, stable across releases.
|
|
48
|
-
*/
|
|
49
|
-
code: "CONNECTION_NOT_FOUND";
|
|
50
|
-
/**
|
|
51
|
-
* No fields.
|
|
52
|
-
*/
|
|
53
|
-
data: Empty;
|
|
54
|
-
/**
|
|
55
|
-
* What went wrong, for people; it never contains input values.
|
|
56
|
-
*/
|
|
57
|
-
message: string;
|
|
58
|
-
/**
|
|
59
|
-
* Whether repeating the same request may succeed.
|
|
60
|
-
*/
|
|
61
|
-
retryable: false;
|
|
62
|
-
}
|
|
63
27
|
/**
|
|
64
28
|
* This operation requires an active IPS connection in this organization with
|
|
65
29
|
* the matching workflow tag.
|
|
@@ -238,11 +202,21 @@ export interface SaludTotalProviderUnavailableFailure {
|
|
|
238
202
|
*/
|
|
239
203
|
retryable: false;
|
|
240
204
|
}
|
|
241
|
-
export
|
|
205
|
+
export type SaludTotalRecordAvailability = {
|
|
206
|
+
choices: {
|
|
207
|
+
id: number;
|
|
208
|
+
name: string;
|
|
209
|
+
}[];
|
|
210
|
+
field: "branchId" | "siteId";
|
|
211
|
+
nextChoiceCursor: string | null;
|
|
212
|
+
recordCount: null;
|
|
213
|
+
scope: "institution" | "site";
|
|
214
|
+
status: "location_required";
|
|
215
|
+
} | {
|
|
242
216
|
recordCount: number | null;
|
|
243
217
|
scope: "institution" | "site";
|
|
244
218
|
status: "member_no_match" | "member_ambiguous" | "no_records" | "records_found";
|
|
245
|
-
}
|
|
219
|
+
};
|
|
246
220
|
/**
|
|
247
221
|
* A successful answer.
|
|
248
222
|
*/
|
|
@@ -256,7 +230,12 @@ export interface SaludTotalRecordAvailabilityResponse {
|
|
|
256
230
|
success: true;
|
|
257
231
|
}
|
|
258
232
|
export interface SaludTotalScopedDayLookup {
|
|
259
|
-
branchId
|
|
233
|
+
branchId?: number;
|
|
234
|
+
/**
|
|
235
|
+
* Continuation returned by a location_required result. Repeat the same lookup
|
|
236
|
+
* to get more choices.
|
|
237
|
+
*/
|
|
238
|
+
choiceCursor?: string;
|
|
260
239
|
connectionId: string;
|
|
261
240
|
/**
|
|
262
241
|
* One local calendar day; the request never traverses an open-ended date
|
|
@@ -268,7 +247,7 @@ export interface SaludTotalScopedDayLookup {
|
|
|
268
247
|
*/
|
|
269
248
|
documentNumber: string;
|
|
270
249
|
documentType: "CC";
|
|
271
|
-
siteId
|
|
250
|
+
siteId?: number;
|
|
272
251
|
}
|
|
273
252
|
/**
|
|
274
253
|
* The session changed while this read was in progress.
|
|
@@ -19,12 +19,13 @@ export type SaludTotalLookupSample = {
|
|
|
19
19
|
method: "POST";
|
|
20
20
|
path: "/v1/salud-total/authorizations/lookup";
|
|
21
21
|
requestBody: {
|
|
22
|
-
branchId
|
|
22
|
+
branchId?: number;
|
|
23
|
+
choiceCursor?: string;
|
|
23
24
|
connectionId: string;
|
|
24
25
|
day: Temporal.PlainDate;
|
|
25
26
|
documentNumber: string;
|
|
26
27
|
documentType: "CC";
|
|
27
|
-
siteId
|
|
28
|
+
siteId?: number;
|
|
28
29
|
};
|
|
29
30
|
resource: "authorizations";
|
|
30
31
|
responseData: SaludTotalRecordAvailability;
|
|
@@ -35,12 +36,13 @@ export type SaludTotalLookupSample = {
|
|
|
35
36
|
method: "POST";
|
|
36
37
|
path: "/v1/salud-total/filings/lookup";
|
|
37
38
|
requestBody: {
|
|
38
|
-
branchId
|
|
39
|
+
branchId?: number;
|
|
40
|
+
choiceCursor?: string;
|
|
39
41
|
connectionId: string;
|
|
40
42
|
day: Temporal.PlainDate;
|
|
41
43
|
documentNumber: string;
|
|
42
44
|
documentType: "CC";
|
|
43
|
-
siteId
|
|
45
|
+
siteId?: number;
|
|
44
46
|
};
|
|
45
47
|
resource: "filings";
|
|
46
48
|
responseData: SaludTotalRecordAvailability;
|
|
@@ -13,7 +13,9 @@ export interface Client {
|
|
|
13
13
|
* Simulate an IPS workflow using only enums and local fixtures. One workflow
|
|
14
14
|
* parameter returns one line in Spanish. Optional scenarios include missing
|
|
15
15
|
* records, missing documents, ambiguous matches, permissions, expiry and
|
|
16
|
-
* uncertain responses.
|
|
16
|
+
* uncertain responses. For a lost filing response, stage selects the
|
|
17
|
+
* interrupted attachment, creation or association. No connection or member is
|
|
18
|
+
* contacted.
|
|
17
19
|
*/
|
|
18
20
|
get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
|
|
19
21
|
}
|
|
@@ -21,15 +23,20 @@ export declare function createClient(options: ClientOptions): Client;
|
|
|
21
23
|
export declare function bind(transport: Transport): Client;
|
|
22
24
|
export interface GetRequest {
|
|
23
25
|
/**
|
|
24
|
-
* IPS workflow, for example affiliation, authorization, filing
|
|
25
|
-
*
|
|
26
|
+
* IPS workflow, for example affiliation, authorization, filing or billing.
|
|
27
|
+
* Earlier Spanish identifiers are also accepted.
|
|
26
28
|
*/
|
|
27
|
-
workflow: "affiliation" | "clarification" | "
|
|
29
|
+
workflow: "affiliation" | "clarification" | "authorization" | "filing" | "tracking" | "billing" | "objections" | "routing" | "referrals" | "scheduling" | "rips" | "mipres" | "diagnostics" | "afiliacion" | "aclaracion" | "autorizacion" | "radicacion" | "seguimiento" | "facturacion" | "glosas" | "direccionamiento" | "remisiones" | "programaciones" | "diagnostico";
|
|
28
30
|
/**
|
|
29
31
|
* Synthetic outcome, for example no_match, missing_attachment,
|
|
30
32
|
* session_expired or response_lost.
|
|
31
33
|
*/
|
|
32
34
|
scenario?: "normal" | "no_match" | "ambiguous" | "forbidden" | "session_expired" | "missing_attachment" | "response_lost" | "interactive_challenge" | "connection_inactive" | "credentials_rejected" | "sin_registro" | "ambiguo" | "sin_permiso" | "sesion_expirada" | "falta_soporte" | "respuesta_perdida" | "desafio_interactivo" | "conexion_inactiva" | "credencial_rechazada";
|
|
35
|
+
/**
|
|
36
|
+
* Step that loses its response in a filing simulation. With filing and
|
|
37
|
+
* response_lost, the default is association.
|
|
38
|
+
*/
|
|
39
|
+
stage?: "first_attachment" | "next_attachment" | "request_creation" | "association";
|
|
33
40
|
/**
|
|
34
41
|
* The view.
|
|
35
42
|
*/
|
|
@@ -12,7 +12,7 @@ export function bind(transport) {
|
|
|
12
12
|
const GetOperation = {
|
|
13
13
|
method: "GET",
|
|
14
14
|
route: "/v1/salud-total/workflow-previews",
|
|
15
|
-
query: { workflow: "workflow", scenario: "scenario", view: "view" },
|
|
15
|
+
query: { workflow: "workflow", scenario: "scenario", stage: "stage", view: "view" },
|
|
16
16
|
response: null,
|
|
17
17
|
errors: { "400": true, "401": true, "403": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
18
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbol-ai/sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.11.0",
|
|
4
4
|
"description": "The Arbol API for TypeScript and JavaScript, generated by Cloudflare Forge from the platform's public OpenAPI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"arbol",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"packageManager": "bun@1.4.3",
|
|
57
57
|
"arbol": {
|
|
58
58
|
"openapi": {
|
|
59
|
-
"release": "1.20261031.
|
|
60
|
-
"sha256": "
|
|
59
|
+
"release": "1.20261031.225927",
|
|
60
|
+
"sha256": "11d86c1bede26033971c9fdec4267b90735c9c1553ddfb09d1e112f3c50b8548"
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import { type SaludTotalDeleteConnectionResultResponse, type SaludTotalGetConnectionResultResponse, type SaludTotalVerifiedConnectionPageResponse, 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
|
-
* List verified IPS connections
|
|
25
|
-
*
|
|
26
|
-
* Find IPS connections verified for this organization. Filter by workflow
|
|
27
|
-
* tag. verifiedAt records a past portal login and does not indicate whether
|
|
28
|
-
* Account has enabled a connection for agents.
|
|
29
|
-
*/
|
|
30
|
-
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
31
|
-
/**
|
|
32
|
-
* Verify an IPS connection
|
|
33
|
-
*
|
|
34
|
-
* Verify one IPS login and its tagged portal with a protected menu read.
|
|
35
|
-
* Interactive verification stops the attempt.
|
|
36
|
-
*/
|
|
37
|
-
verify(request: VerifyRequest, options?: RequestOptions): Promise<VerifyResponse>;
|
|
38
|
-
}
|
|
39
|
-
export declare function createClient(options: ClientOptions): Client;
|
|
40
|
-
export declare function bind(transport: Transport): Client;
|
|
41
|
-
export interface DeleteRequest {
|
|
42
|
-
/**
|
|
43
|
-
* The connection id.
|
|
44
|
-
*/
|
|
45
|
-
connectionId: string;
|
|
46
|
-
}
|
|
47
|
-
export type DeleteResponse = SaludTotalDeleteConnectionResultResponse;
|
|
48
|
-
export interface GetRequest {
|
|
49
|
-
/**
|
|
50
|
-
* The connection id.
|
|
51
|
-
*/
|
|
52
|
-
connectionId: string;
|
|
53
|
-
}
|
|
54
|
-
export type GetResponse = SaludTotalGetConnectionResultResponse;
|
|
55
|
-
export interface ListRequest {
|
|
56
|
-
/**
|
|
57
|
-
* The cursor.
|
|
58
|
-
*/
|
|
59
|
-
cursor?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
62
|
-
*/
|
|
63
|
-
direction?: "forward" | "backward";
|
|
64
|
-
/**
|
|
65
|
-
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
66
|
-
* another cursor.
|
|
67
|
-
*/
|
|
68
|
-
limit?: number;
|
|
69
|
-
/**
|
|
70
|
-
* The tag.
|
|
71
|
-
*/
|
|
72
|
-
tag?: "postconsulta" | "facturacion";
|
|
73
|
-
}
|
|
74
|
-
export type ListResponse = SaludTotalVerifiedConnectionPageResponse;
|
|
75
|
-
export type VerifyRequest = {
|
|
76
|
-
/**
|
|
77
|
-
* The connection id.
|
|
78
|
-
*/
|
|
79
|
-
connectionId: string;
|
|
80
|
-
} & SaludTotalVerifyConnectionBody;
|
|
81
|
-
export type VerifyResponse = SaludTotalVerifyConnectionResultResponse;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// Code generated by forge. DO NOT EDIT.
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
import { Transport, } from "../../_/index.js";
|
|
4
|
-
import { SaludTotalGetConnectionResultResponseCodec, SaludTotalVerifiedConnectionPageResponseCodec, } 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
|
-
list: (request, options) => transport.send(ListOperation, request, options),
|
|
13
|
-
verify: (request, options) => transport.send(VerifyOperation, request, options),
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
const DeleteOperation = {
|
|
17
|
-
method: "DELETE",
|
|
18
|
-
route: "/v1/salud-total/connections/{connectionId}",
|
|
19
|
-
response: null,
|
|
20
|
-
errors: { "400": true, "401": true, "403": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
21
|
-
};
|
|
22
|
-
const GetOperation = {
|
|
23
|
-
method: "GET",
|
|
24
|
-
route: "/v1/salud-total/connections/{connectionId}",
|
|
25
|
-
response: SaludTotalGetConnectionResultResponseCodec,
|
|
26
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
27
|
-
};
|
|
28
|
-
const ListOperation = {
|
|
29
|
-
method: "GET",
|
|
30
|
-
route: "/v1/salud-total/connections",
|
|
31
|
-
query: { cursor: "cursor", direction: "direction", limit: "limit", tag: "tag" },
|
|
32
|
-
response: SaludTotalVerifiedConnectionPageResponseCodec,
|
|
33
|
-
errors: { "400": true, "401": true, "403": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
34
|
-
};
|
|
35
|
-
const VerifyOperation = {
|
|
36
|
-
method: "POST",
|
|
37
|
-
route: "/v1/salud-total/connections/{connectionId}/verify",
|
|
38
|
-
body: "flat",
|
|
39
|
-
response: null,
|
|
40
|
-
errors: { "400": true, "401": true, "403": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
41
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
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, ListRequest, ListResponse, VerifyRequest, VerifyResponse, } from "./client.js";
|
|
5
|
-
export type { SaludTotalDeleteConnectionResult, SaludTotalDeleteConnectionResultResponse, SaludTotalGetConnectionResult, SaludTotalGetConnectionResultResponse, SaludTotalVerifiedConnection, SaludTotalVerifiedConnectionPage, SaludTotalVerifiedConnectionPageResponse, SaludTotalVerifyConnectionBody, SaludTotalVerifyConnectionResult, SaludTotalVerifyConnectionResultResponse, } from "./models.js";
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import type { PageInfo, 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 SaludTotalVerifiedConnection {
|
|
35
|
-
id: string;
|
|
36
|
-
tag: "postconsulta" | "facturacion";
|
|
37
|
-
verifiedAt: Temporal.Instant;
|
|
38
|
-
}
|
|
39
|
-
export interface SaludTotalVerifiedConnectionPage {
|
|
40
|
-
/**
|
|
41
|
-
* Items admitted by this resource contract within the verified organization.
|
|
42
|
-
*/
|
|
43
|
-
data: SaludTotalVerifiedConnection[];
|
|
44
|
-
/**
|
|
45
|
-
* Discriminator for a resource list response.
|
|
46
|
-
*/
|
|
47
|
-
object: "list";
|
|
48
|
-
/**
|
|
49
|
-
* Opaque navigation cursors for this page’s stable keyset order.
|
|
50
|
-
*/
|
|
51
|
-
pageInfo: PageInfo;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* A successful answer.
|
|
55
|
-
*/
|
|
56
|
-
export interface SaludTotalVerifiedConnectionPageResponse {
|
|
57
|
-
data: SaludTotalVerifiedConnectionPage;
|
|
58
|
-
error: null;
|
|
59
|
-
/**
|
|
60
|
-
* What every answer carries besides its data or error.
|
|
61
|
-
*/
|
|
62
|
-
metadata: ResponseMetadata;
|
|
63
|
-
success: true;
|
|
64
|
-
}
|
|
65
|
-
export interface SaludTotalVerifyConnectionBody {
|
|
66
|
-
documentType: "CC";
|
|
67
|
-
name: string;
|
|
68
|
-
nit: string;
|
|
69
|
-
password: string;
|
|
70
|
-
tag: "postconsulta" | "facturacion";
|
|
71
|
-
username: string;
|
|
72
|
-
}
|
|
73
|
-
export type SaludTotalVerifyConnectionResult = {
|
|
74
|
-
stateRef: string;
|
|
75
|
-
status: "active";
|
|
76
|
-
} | {
|
|
77
|
-
errorCode: string;
|
|
78
|
-
status: "rejected";
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* A successful answer.
|
|
82
|
-
*/
|
|
83
|
-
export interface SaludTotalVerifyConnectionResultResponse {
|
|
84
|
-
data: SaludTotalVerifyConnectionResult;
|
|
85
|
-
error: null;
|
|
86
|
-
/**
|
|
87
|
-
* What every answer carries besides its data or error.
|
|
88
|
-
*/
|
|
89
|
-
metadata: ResponseMetadata;
|
|
90
|
-
success: true;
|
|
91
|
-
}
|
|
92
|
-
export declare const SaludTotalGetConnectionResultCodec: import("../../_/codec.js").Codec;
|
|
93
|
-
export declare const SaludTotalGetConnectionResultResponseCodec: import("../../_/codec.js").Codec;
|
|
94
|
-
export declare const SaludTotalVerifiedConnectionCodec: import("../../_/codec.js").Codec;
|
|
95
|
-
export declare const SaludTotalVerifiedConnectionPageCodec: import("../../_/codec.js").Codec;
|
|
96
|
-
export declare const SaludTotalVerifiedConnectionPageResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// Code generated by forge. DO NOT EDIT.
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
import { array, 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
|
-
]);
|
|
10
|
-
export const SaludTotalVerifiedConnectionCodec = object([
|
|
11
|
-
["verifiedAt", null, instant],
|
|
12
|
-
]);
|
|
13
|
-
export const SaludTotalVerifiedConnectionPageCodec = object([
|
|
14
|
-
["data", null, array(() => SaludTotalVerifiedConnectionCodec)],
|
|
15
|
-
]);
|
|
16
|
-
export const SaludTotalVerifiedConnectionPageResponseCodec = object([
|
|
17
|
-
["data", null, () => SaludTotalVerifiedConnectionPageCodec],
|
|
18
|
-
]);
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type { SaludTotalPortalOperationPageResponse } 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
|
-
* Explore Salud Total portal operations
|
|
12
|
-
*
|
|
13
|
-
* Find provider references by upstream path, public Gateway operation or
|
|
14
|
-
* English preview workflow. Filter coverage to read, support, session,
|
|
15
|
-
* preview or inventory. Observed evidence means a call was verified for this
|
|
16
|
-
* client at the listed base. Discovery does not grant permission to call the
|
|
17
|
-
* provider.
|
|
18
|
-
*/
|
|
19
|
-
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
20
|
-
}
|
|
21
|
-
export declare function createClient(options: ClientOptions): Client;
|
|
22
|
-
export declare function bind(transport: Transport): Client;
|
|
23
|
-
export interface ListRequest {
|
|
24
|
-
/**
|
|
25
|
-
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
26
|
-
*/
|
|
27
|
-
cursor?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
30
|
-
*/
|
|
31
|
-
direction?: "forward" | "backward";
|
|
32
|
-
/**
|
|
33
|
-
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
34
|
-
* another cursor.
|
|
35
|
-
*/
|
|
36
|
-
limit?: number;
|
|
37
|
-
/**
|
|
38
|
-
* The client.
|
|
39
|
-
*/
|
|
40
|
-
client?: "OficinaVirtual" | "OFVPerfilIPS";
|
|
41
|
-
/**
|
|
42
|
-
* How Árbol uses the exact provider client, method and path. Provider
|
|
43
|
-
* evidence is a separate field.
|
|
44
|
-
*/
|
|
45
|
-
coverage?: "read" | "support" | "session" | "preview" | "inventory";
|
|
46
|
-
/**
|
|
47
|
-
* The method.
|
|
48
|
-
*/
|
|
49
|
-
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD";
|
|
50
|
-
/**
|
|
51
|
-
* The evidence.
|
|
52
|
-
*/
|
|
53
|
-
evidence?: "client" | "observed";
|
|
54
|
-
/**
|
|
55
|
-
* The signal.
|
|
56
|
-
*/
|
|
57
|
-
signal?: "checks_401_and_refreshes" | "contains_self_retry" | "catch_returns_empty_array" | "catch_returns_null";
|
|
58
|
-
/**
|
|
59
|
-
* The q.
|
|
60
|
-
*/
|
|
61
|
-
q?: string;
|
|
62
|
-
}
|
|
63
|
-
export type ListResponse = SaludTotalPortalOperationPageResponse;
|
|
@@ -1,18 +0,0 @@
|
|
|
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/portal-operations",
|
|
15
|
-
query: { cursor: "cursor", direction: "direction", limit: "limit", client: "client", coverage: "coverage", method: "method", evidence: "evidence", signal: "signal", q: "q" },
|
|
16
|
-
response: null,
|
|
17
|
-
errors: { "400": true, "401": true, "403": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
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 { SaludTotalPortalOperation, SaludTotalPortalOperationPage, SaludTotalPortalOperationPageResponse, } from "./models.js";
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { PageInfo, ResponseMetadata } from "../../models.js";
|
|
2
|
-
export interface SaludTotalPortalOperation {
|
|
3
|
-
apiBases: string[];
|
|
4
|
-
bodyFields: string[];
|
|
5
|
-
client: "OficinaVirtual" | "OFVPerfilIPS";
|
|
6
|
-
clientSignals: ("checks_401_and_refreshes" | "contains_self_retry" | "catch_returns_empty_array" | "catch_returns_null")[];
|
|
7
|
-
/**
|
|
8
|
-
* How Árbol uses the exact provider client, method and path. Provider
|
|
9
|
-
* evidence is a separate field.
|
|
10
|
-
*/
|
|
11
|
-
coverage: "read" | "support" | "session" | "preview" | "inventory";
|
|
12
|
-
evidence: "client" | "observed";
|
|
13
|
-
id: string;
|
|
14
|
-
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD";
|
|
15
|
-
observedBases: string[];
|
|
16
|
-
/**
|
|
17
|
-
* Gateway operations that expose this primary read or use this distinct
|
|
18
|
-
* supporting lookup.
|
|
19
|
-
*/
|
|
20
|
-
operations: string[];
|
|
21
|
-
path: string;
|
|
22
|
-
queryFields: string[];
|
|
23
|
-
/**
|
|
24
|
-
* English workflow identifiers for previews referencing this exact provider
|
|
25
|
-
* route.
|
|
26
|
-
*/
|
|
27
|
-
workflows: string[];
|
|
28
|
-
}
|
|
29
|
-
export interface SaludTotalPortalOperationPage {
|
|
30
|
-
/**
|
|
31
|
-
* Items admitted by this resource contract within the verified organization.
|
|
32
|
-
*/
|
|
33
|
-
data: SaludTotalPortalOperation[];
|
|
34
|
-
/**
|
|
35
|
-
* Discriminator for a resource list response.
|
|
36
|
-
*/
|
|
37
|
-
object: "list";
|
|
38
|
-
/**
|
|
39
|
-
* Opaque navigation cursors for this page’s stable keyset order.
|
|
40
|
-
*/
|
|
41
|
-
pageInfo: PageInfo;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* A successful answer.
|
|
45
|
-
*/
|
|
46
|
-
export interface SaludTotalPortalOperationPageResponse {
|
|
47
|
-
data: SaludTotalPortalOperationPage;
|
|
48
|
-
error: null;
|
|
49
|
-
/**
|
|
50
|
-
* What every answer carries besides its data or error.
|
|
51
|
-
*/
|
|
52
|
-
metadata: ResponseMetadata;
|
|
53
|
-
success: true;
|
|
54
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
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;
|
|
@@ -1,18 +0,0 @@
|
|
|
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, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
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";
|
|
@@ -1,30 +0,0 @@
|
|
|
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,54 +0,0 @@
|
|
|
1
|
-
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type { SaludTotalIpsReferencePageResponse } 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 permitted IPS reference options
|
|
12
|
-
*
|
|
13
|
-
* List live administrative choices for one active IPS connection. Query
|
|
14
|
-
* branches first, then sites with branchId. Select attachment_groups before
|
|
15
|
-
* attachment_types with attachmentGroupId. The provider labels may mark types
|
|
16
|
-
* with an asterisk. These catalogs never load documents and do not establish
|
|
17
|
-
* what a given order requires.
|
|
18
|
-
*/
|
|
19
|
-
list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
20
|
-
}
|
|
21
|
-
export declare function createClient(options: ClientOptions): Client;
|
|
22
|
-
export declare function bind(transport: Transport): Client;
|
|
23
|
-
export interface ListRequest {
|
|
24
|
-
/**
|
|
25
|
-
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
26
|
-
*/
|
|
27
|
-
cursor?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
30
|
-
*/
|
|
31
|
-
direction?: "forward" | "backward";
|
|
32
|
-
/**
|
|
33
|
-
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
34
|
-
* another cursor.
|
|
35
|
-
*/
|
|
36
|
-
limit?: number;
|
|
37
|
-
/**
|
|
38
|
-
* The connection id.
|
|
39
|
-
*/
|
|
40
|
-
connectionId: string;
|
|
41
|
-
/**
|
|
42
|
-
* The catalog.
|
|
43
|
-
*/
|
|
44
|
-
catalog: "branches" | "sites" | "document_types" | "affiliation_states" | "attachment_groups" | "attachment_types" | "agreements";
|
|
45
|
-
/**
|
|
46
|
-
* The attachment group id.
|
|
47
|
-
*/
|
|
48
|
-
attachmentGroupId?: number;
|
|
49
|
-
/**
|
|
50
|
-
* The branch id.
|
|
51
|
-
*/
|
|
52
|
-
branchId?: number;
|
|
53
|
-
}
|
|
54
|
-
export type ListResponse = SaludTotalIpsReferencePageResponse;
|
|
@@ -1,18 +0,0 @@
|
|
|
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/reference-options",
|
|
15
|
-
query: { cursor: "cursor", direction: "direction", limit: "limit", connectionId: "connectionId", catalog: "catalog", attachmentGroupId: "attachmentGroupId", branchId: "branchId" },
|
|
16
|
-
response: null,
|
|
17
|
-
errors: { "400": true, "401": true, "403": true, "409": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
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 { SaludTotalAttachmentGroupUnavailableFailure, SaludTotalIpsReference, SaludTotalIpsReferencePage, SaludTotalIpsReferencePageResponse, SaludTotalListReferenceOptionsConflictError, SaludTotalListReferenceOptionsConflictFailure, SaludTotalListReferenceOptionsForbiddenError, SaludTotalListReferenceOptionsForbiddenFailure, SaludTotalListReferenceOptionsServiceUnavailableError, SaludTotalListReferenceOptionsServiceUnavailableFailure, SaludTotalListReferenceOptionsTooManyRequestsError, SaludTotalListReferenceOptionsTooManyRequestsFailure, } from "./models.js";
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import type { Empty, ForbiddenFailure, PageInfo, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
-
import type { SaludTotalAccountUnavailableFailure, SaludTotalConnectionUnavailableFailure, SaludTotalCredentialsRejectedFailure, SaludTotalInteractiveVerificationRequiredFailure, SaludTotalIpsIdentityMismatchFailure, SaludTotalLoginCoolingDownFailure, SaludTotalModuleForbiddenFailure, SaludTotalPortalAccessUnverifiedFailure, SaludTotalProviderUnavailableFailure, SaludTotalSessionClosedFailure, SaludTotalSessionExpiredFailure, SaludTotalSiteUnavailableFailure } from "../models.js";
|
|
3
|
-
/**
|
|
4
|
-
* This attachment group is not available to the selected IPS filing connection.
|
|
5
|
-
*/
|
|
6
|
-
export interface SaludTotalAttachmentGroupUnavailableFailure {
|
|
7
|
-
/**
|
|
8
|
-
* The failure code, stable across releases.
|
|
9
|
-
*/
|
|
10
|
-
code: "ATTACHMENT_GROUP_UNAVAILABLE";
|
|
11
|
-
/**
|
|
12
|
-
* No fields.
|
|
13
|
-
*/
|
|
14
|
-
data: Empty;
|
|
15
|
-
/**
|
|
16
|
-
* What went wrong, for people; it never contains input values.
|
|
17
|
-
*/
|
|
18
|
-
message: string;
|
|
19
|
-
/**
|
|
20
|
-
* Whether repeating the same request may succeed.
|
|
21
|
-
*/
|
|
22
|
-
retryable: false;
|
|
23
|
-
}
|
|
24
|
-
export interface SaludTotalIpsReference {
|
|
25
|
-
id: string;
|
|
26
|
-
name: string;
|
|
27
|
-
}
|
|
28
|
-
export interface SaludTotalIpsReferencePage {
|
|
29
|
-
/**
|
|
30
|
-
* Items admitted by this resource contract within the verified organization.
|
|
31
|
-
*/
|
|
32
|
-
data: SaludTotalIpsReference[];
|
|
33
|
-
/**
|
|
34
|
-
* Discriminator for a resource list response.
|
|
35
|
-
*/
|
|
36
|
-
object: "list";
|
|
37
|
-
/**
|
|
38
|
-
* Opaque navigation cursors for this page’s stable keyset order.
|
|
39
|
-
*/
|
|
40
|
-
pageInfo: PageInfo;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* A successful answer.
|
|
44
|
-
*/
|
|
45
|
-
export interface SaludTotalIpsReferencePageResponse {
|
|
46
|
-
data: SaludTotalIpsReferencePage;
|
|
47
|
-
error: null;
|
|
48
|
-
/**
|
|
49
|
-
* What every answer carries besides its data or error.
|
|
50
|
-
*/
|
|
51
|
-
metadata: ResponseMetadata;
|
|
52
|
-
success: true;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* A failed answer.
|
|
56
|
-
*/
|
|
57
|
-
export interface SaludTotalListReferenceOptionsConflictError {
|
|
58
|
-
data: null;
|
|
59
|
-
error: SaludTotalListReferenceOptionsConflictFailure;
|
|
60
|
-
/**
|
|
61
|
-
* What every answer carries besides its data or error.
|
|
62
|
-
*/
|
|
63
|
-
metadata: ResponseMetadata;
|
|
64
|
-
success: false;
|
|
65
|
-
}
|
|
66
|
-
export type SaludTotalListReferenceOptionsConflictFailure = SaludTotalConnectionUnavailableFailure | SaludTotalSessionClosedFailure | SaludTotalInteractiveVerificationRequiredFailure | SaludTotalCredentialsRejectedFailure | SaludTotalIpsIdentityMismatchFailure;
|
|
67
|
-
/**
|
|
68
|
-
* A failed answer.
|
|
69
|
-
*/
|
|
70
|
-
export interface SaludTotalListReferenceOptionsForbiddenError {
|
|
71
|
-
data: null;
|
|
72
|
-
error: SaludTotalListReferenceOptionsForbiddenFailure;
|
|
73
|
-
/**
|
|
74
|
-
* What every answer carries besides its data or error.
|
|
75
|
-
*/
|
|
76
|
-
metadata: ResponseMetadata;
|
|
77
|
-
success: false;
|
|
78
|
-
}
|
|
79
|
-
export type SaludTotalListReferenceOptionsForbiddenFailure = ForbiddenFailure | SaludTotalPortalAccessUnverifiedFailure | SaludTotalModuleForbiddenFailure | SaludTotalAttachmentGroupUnavailableFailure | SaludTotalSiteUnavailableFailure;
|
|
80
|
-
/**
|
|
81
|
-
* A failed answer.
|
|
82
|
-
*/
|
|
83
|
-
export interface SaludTotalListReferenceOptionsServiceUnavailableError {
|
|
84
|
-
data: null;
|
|
85
|
-
error: SaludTotalListReferenceOptionsServiceUnavailableFailure;
|
|
86
|
-
/**
|
|
87
|
-
* What every answer carries besides its data or error.
|
|
88
|
-
*/
|
|
89
|
-
metadata: ResponseMetadata;
|
|
90
|
-
success: false;
|
|
91
|
-
}
|
|
92
|
-
export type SaludTotalListReferenceOptionsServiceUnavailableFailure = UpstreamUnavailableFailure | SaludTotalAccountUnavailableFailure | SaludTotalSessionExpiredFailure | SaludTotalProviderUnavailableFailure;
|
|
93
|
-
/**
|
|
94
|
-
* A failed answer.
|
|
95
|
-
*/
|
|
96
|
-
export interface SaludTotalListReferenceOptionsTooManyRequestsError {
|
|
97
|
-
data: null;
|
|
98
|
-
error: SaludTotalListReferenceOptionsTooManyRequestsFailure;
|
|
99
|
-
/**
|
|
100
|
-
* What every answer carries besides its data or error.
|
|
101
|
-
*/
|
|
102
|
-
metadata: ResponseMetadata;
|
|
103
|
-
success: false;
|
|
104
|
-
}
|
|
105
|
-
export type SaludTotalListReferenceOptionsTooManyRequestsFailure = RateLimitedFailure | SaludTotalLoginCoolingDownFailure;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import { type SaludTotalCloseConnectionSessionBody, type SaludTotalCloseConnectionSessionResultResponse, type SaludTotalGetConnectionSessionResultResponse } 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
|
-
* Close all IPS leases for a connection
|
|
12
|
-
*
|
|
13
|
-
* Discard the local IPS access token and any pending session acquisition for
|
|
14
|
-
* this connection. A subsequent authorized read may open a new session. This
|
|
15
|
-
* does not disable the Account connection.
|
|
16
|
-
*/
|
|
17
|
-
delete(request: DeleteRequest, options?: RequestOptions): Promise<DeleteResponse>;
|
|
18
|
-
/**
|
|
19
|
-
* Get the local lease for one IPS module
|
|
20
|
-
*
|
|
21
|
-
* Inspect the local IPS session lease. Closed is normal after expiry or
|
|
22
|
-
* Worker eviction. Never returns a provider token, member identifier or
|
|
23
|
-
* guarantee of authorization.
|
|
24
|
-
*/
|
|
25
|
-
get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
|
|
26
|
-
}
|
|
27
|
-
export declare function createClient(options: ClientOptions): Client;
|
|
28
|
-
export declare function bind(transport: Transport): Client;
|
|
29
|
-
export type DeleteRequest = SaludTotalCloseConnectionSessionBody;
|
|
30
|
-
export type DeleteResponse = SaludTotalCloseConnectionSessionResultResponse;
|
|
31
|
-
export interface GetRequest {
|
|
32
|
-
/**
|
|
33
|
-
* The connection id.
|
|
34
|
-
*/
|
|
35
|
-
connectionId: string;
|
|
36
|
-
/**
|
|
37
|
-
* The module.
|
|
38
|
-
*/
|
|
39
|
-
module?: "affiliation" | "filing" | "invoice" | "notices";
|
|
40
|
-
}
|
|
41
|
-
export type GetResponse = SaludTotalGetConnectionSessionResultResponse;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// Code generated by forge. DO NOT EDIT.
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
import { Transport, } from "../../_/index.js";
|
|
4
|
-
import { SaludTotalGetConnectionSessionResultResponseCodec, } 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
|
-
};
|
|
13
|
-
}
|
|
14
|
-
const DeleteOperation = {
|
|
15
|
-
method: "DELETE",
|
|
16
|
-
route: "/v1/salud-total/sessions",
|
|
17
|
-
body: "flat",
|
|
18
|
-
response: null,
|
|
19
|
-
errors: { "400": true, "401": true, "403": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
20
|
-
};
|
|
21
|
-
const GetOperation = {
|
|
22
|
-
method: "GET",
|
|
23
|
-
route: "/v1/salud-total/sessions",
|
|
24
|
-
query: { connectionId: "connectionId", module: "module" },
|
|
25
|
-
response: SaludTotalGetConnectionSessionResultResponseCodec,
|
|
26
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
27
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
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, } from "./client.js";
|
|
5
|
-
export type { SaludTotalCloseConnectionSessionBody, SaludTotalCloseConnectionSessionResult, SaludTotalCloseConnectionSessionResultResponse, SaludTotalGetConnectionSessionResult, SaludTotalGetConnectionSessionResultResponse, } from "./models.js";
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { ResponseMetadata } from "../../models.js";
|
|
2
|
-
export interface SaludTotalCloseConnectionSessionBody {
|
|
3
|
-
connectionId: string;
|
|
4
|
-
}
|
|
5
|
-
export interface SaludTotalCloseConnectionSessionResult {
|
|
6
|
-
closed: true;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* A successful answer.
|
|
10
|
-
*/
|
|
11
|
-
export interface SaludTotalCloseConnectionSessionResultResponse {
|
|
12
|
-
data: SaludTotalCloseConnectionSessionResult;
|
|
13
|
-
error: null;
|
|
14
|
-
/**
|
|
15
|
-
* What every answer carries besides its data or error.
|
|
16
|
-
*/
|
|
17
|
-
metadata: ResponseMetadata;
|
|
18
|
-
success: true;
|
|
19
|
-
}
|
|
20
|
-
export interface SaludTotalGetConnectionSessionResult {
|
|
21
|
-
expiresAt: Temporal.Instant | null;
|
|
22
|
-
status: "open" | "opening" | "closed";
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* A successful answer.
|
|
26
|
-
*/
|
|
27
|
-
export interface SaludTotalGetConnectionSessionResultResponse {
|
|
28
|
-
data: SaludTotalGetConnectionSessionResult;
|
|
29
|
-
error: null;
|
|
30
|
-
/**
|
|
31
|
-
* What every answer carries besides its data or error.
|
|
32
|
-
*/
|
|
33
|
-
metadata: ResponseMetadata;
|
|
34
|
-
success: true;
|
|
35
|
-
}
|
|
36
|
-
export declare const SaludTotalGetConnectionSessionResultCodec: import("../../_/codec.js").Codec;
|
|
37
|
-
export declare const SaludTotalGetConnectionSessionResultResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// Code generated by forge. DO NOT EDIT.
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
import { instant, object } from "../../_/index.js";
|
|
4
|
-
export const SaludTotalGetConnectionSessionResultCodec = object([
|
|
5
|
-
["expiresAt", null, instant],
|
|
6
|
-
]);
|
|
7
|
-
export const SaludTotalGetConnectionSessionResultResponseCodec = object([
|
|
8
|
-
["data", null, () => SaludTotalGetConnectionSessionResultCodec],
|
|
9
|
-
]);
|