@arbol-ai/sdk 5.2.0 → 5.4.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/affiliations/client.d.ts +23 -0
- package/dist/saludTotal/affiliations/client.js +18 -0
- package/dist/saludTotal/affiliations/index.d.ts +5 -0
- package/dist/saludTotal/affiliations/index.js +4 -0
- package/dist/saludTotal/affiliations/models.d.ts +78 -0
- package/dist/saludTotal/affiliations/models.js +3 -0
- package/dist/saludTotal/authorizations/client.d.ts +22 -0
- package/dist/saludTotal/authorizations/client.js +20 -0
- package/dist/saludTotal/authorizations/index.d.ts +5 -0
- package/dist/saludTotal/authorizations/index.js +4 -0
- package/dist/saludTotal/authorizations/models.d.ts +54 -0
- package/dist/saludTotal/authorizations/models.js +3 -0
- package/dist/saludTotal/client.d.ts +14 -0
- package/dist/saludTotal/client.js +35 -0
- package/dist/saludTotal/connections/client.js +3 -3
- package/dist/saludTotal/connections/index.d.ts +1 -1
- package/dist/saludTotal/connections/models.d.ts +158 -1
- package/dist/saludTotal/filings/client.d.ts +23 -0
- package/dist/saludTotal/filings/client.js +20 -0
- package/dist/saludTotal/filings/index.d.ts +5 -0
- package/dist/saludTotal/filings/index.js +4 -0
- package/dist/saludTotal/filings/models.d.ts +54 -0
- package/dist/saludTotal/filings/models.js +3 -0
- package/dist/saludTotal/index.d.ts +1 -1
- package/dist/saludTotal/models.d.ts +285 -0
- package/dist/saludTotal/models.js +4 -1
- package/dist/saludTotal/portalOperations/client.d.ts +53 -0
- package/dist/saludTotal/portalOperations/client.js +18 -0
- package/dist/saludTotal/portalOperations/index.d.ts +5 -0
- package/dist/saludTotal/portalOperations/index.js +4 -0
- package/dist/saludTotal/portalOperations/models.d.ts +91 -0
- package/dist/saludTotal/portalOperations/models.js +3 -0
- package/dist/saludTotal/portals/client.js +1 -1
- package/dist/saludTotal/portals/index.d.ts +1 -1
- package/dist/saludTotal/portals/models.d.ts +54 -1
- package/dist/saludTotal/referenceOptions/client.d.ts +49 -0
- package/dist/saludTotal/referenceOptions/client.js +18 -0
- package/dist/saludTotal/referenceOptions/index.d.ts +5 -0
- package/dist/saludTotal/referenceOptions/index.js +4 -0
- package/dist/saludTotal/referenceOptions/models.d.ts +84 -0
- package/dist/saludTotal/referenceOptions/models.js +3 -0
- package/dist/saludTotal/sessions/client.d.ts +41 -0
- package/dist/saludTotal/sessions/client.js +27 -0
- package/dist/saludTotal/sessions/index.d.ts +5 -0
- package/dist/saludTotal/sessions/index.js +4 -0
- package/dist/saludTotal/sessions/models.d.ts +90 -0
- package/dist/saludTotal/sessions/models.js +9 -0
- package/dist/saludTotal/workflowPreviews/client.d.ts +36 -0
- package/dist/saludTotal/workflowPreviews/client.js +18 -0
- package/dist/saludTotal/workflowPreviews/index.d.ts +5 -0
- package/dist/saludTotal/workflowPreviews/index.js +4 -0
- package/dist/saludTotal/workflowPreviews/models.d.ts +69 -0
- package/dist/saludTotal/workflowPreviews/models.js +3 -0
- package/package.json +3 -3
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { SaludTotalAffiliationLookupResponse, SaludTotalLookupAffiliationBody } 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
|
+
* Look up one member’s IPS affiliation
|
|
12
|
+
*
|
|
13
|
+
* Consult current affiliation for one exact CC document using an active
|
|
14
|
+
* tenant connection. Returns only the provider status for a unique match. No
|
|
15
|
+
* match and ambiguity are distinct from outages. This read does not authorize
|
|
16
|
+
* treatment.
|
|
17
|
+
*/
|
|
18
|
+
lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
|
|
19
|
+
}
|
|
20
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
21
|
+
export declare function bind(transport: Transport): Client;
|
|
22
|
+
export type LookupRequest = SaludTotalLookupAffiliationBody;
|
|
23
|
+
export type LookupResponse = SaludTotalAffiliationLookupResponse;
|
|
@@ -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/salud-total/affiliations/lookup",
|
|
15
|
+
body: "flat",
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "409": true, "413": true, "415": 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 { SaludTotalAffiliationLookup, SaludTotalAffiliationLookupResponse, SaludTotalLookupAffiliationBody, SaludTotalLookupAffiliationConflictError, SaludTotalLookupAffiliationConflictFailure, SaludTotalLookupAffiliationForbiddenError, SaludTotalLookupAffiliationForbiddenFailure, SaludTotalLookupAffiliationServiceUnavailableError, SaludTotalLookupAffiliationServiceUnavailableFailure, SaludTotalLookupAffiliationTooManyRequestsError, SaludTotalLookupAffiliationTooManyRequestsFailure, } from "./models.js";
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { ForbiddenFailure, 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
|
+
export interface SaludTotalAffiliationLookup {
|
|
4
|
+
providerStatus: string | null;
|
|
5
|
+
status: "matched" | "no_match" | "ambiguous";
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* A successful answer.
|
|
9
|
+
*/
|
|
10
|
+
export interface SaludTotalAffiliationLookupResponse {
|
|
11
|
+
data: SaludTotalAffiliationLookup;
|
|
12
|
+
error: null;
|
|
13
|
+
/**
|
|
14
|
+
* What every answer carries besides its data or error.
|
|
15
|
+
*/
|
|
16
|
+
metadata: ResponseMetadata;
|
|
17
|
+
success: true;
|
|
18
|
+
}
|
|
19
|
+
export interface SaludTotalLookupAffiliationBody {
|
|
20
|
+
connectionId: string;
|
|
21
|
+
/**
|
|
22
|
+
* Exact authorized member document. Send it only in the request body.
|
|
23
|
+
*/
|
|
24
|
+
documentNumber: string;
|
|
25
|
+
documentType: "CC";
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A failed answer.
|
|
29
|
+
*/
|
|
30
|
+
export interface SaludTotalLookupAffiliationConflictError {
|
|
31
|
+
data: null;
|
|
32
|
+
error: SaludTotalLookupAffiliationConflictFailure;
|
|
33
|
+
/**
|
|
34
|
+
* What every answer carries besides its data or error.
|
|
35
|
+
*/
|
|
36
|
+
metadata: ResponseMetadata;
|
|
37
|
+
success: false;
|
|
38
|
+
}
|
|
39
|
+
export type SaludTotalLookupAffiliationConflictFailure = SaludTotalConnectionUnavailableFailure | SaludTotalSessionClosedFailure | SaludTotalInteractiveVerificationRequiredFailure | SaludTotalCredentialsRejectedFailure | SaludTotalIpsIdentityMismatchFailure;
|
|
40
|
+
/**
|
|
41
|
+
* A failed answer.
|
|
42
|
+
*/
|
|
43
|
+
export interface SaludTotalLookupAffiliationForbiddenError {
|
|
44
|
+
data: null;
|
|
45
|
+
error: SaludTotalLookupAffiliationForbiddenFailure;
|
|
46
|
+
/**
|
|
47
|
+
* What every answer carries besides its data or error.
|
|
48
|
+
*/
|
|
49
|
+
metadata: ResponseMetadata;
|
|
50
|
+
success: false;
|
|
51
|
+
}
|
|
52
|
+
export type SaludTotalLookupAffiliationForbiddenFailure = ForbiddenFailure | SaludTotalPortalAccessUnverifiedFailure | SaludTotalModuleForbiddenFailure | SaludTotalSiteUnavailableFailure;
|
|
53
|
+
/**
|
|
54
|
+
* A failed answer.
|
|
55
|
+
*/
|
|
56
|
+
export interface SaludTotalLookupAffiliationServiceUnavailableError {
|
|
57
|
+
data: null;
|
|
58
|
+
error: SaludTotalLookupAffiliationServiceUnavailableFailure;
|
|
59
|
+
/**
|
|
60
|
+
* What every answer carries besides its data or error.
|
|
61
|
+
*/
|
|
62
|
+
metadata: ResponseMetadata;
|
|
63
|
+
success: false;
|
|
64
|
+
}
|
|
65
|
+
export type SaludTotalLookupAffiliationServiceUnavailableFailure = UpstreamUnavailableFailure | SaludTotalAccountUnavailableFailure | SaludTotalSessionExpiredFailure | SaludTotalProviderUnavailableFailure;
|
|
66
|
+
/**
|
|
67
|
+
* A failed answer.
|
|
68
|
+
*/
|
|
69
|
+
export interface SaludTotalLookupAffiliationTooManyRequestsError {
|
|
70
|
+
data: null;
|
|
71
|
+
error: SaludTotalLookupAffiliationTooManyRequestsFailure;
|
|
72
|
+
/**
|
|
73
|
+
* What every answer carries besides its data or error.
|
|
74
|
+
*/
|
|
75
|
+
metadata: ResponseMetadata;
|
|
76
|
+
success: false;
|
|
77
|
+
}
|
|
78
|
+
export type SaludTotalLookupAffiliationTooManyRequestsFailure = RateLimitedFailure | SaludTotalLoginCoolingDownFailure;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import { type SaludTotalRecordAvailabilityResponse, type SaludTotalScopedDayLookup } 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 authorizations
|
|
12
|
+
*
|
|
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 counts,
|
|
15
|
+
* never a decision, clinical documents or authorization to act.
|
|
16
|
+
*/
|
|
17
|
+
lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
|
|
18
|
+
}
|
|
19
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
20
|
+
export declare function bind(transport: Transport): Client;
|
|
21
|
+
export type LookupRequest = SaludTotalScopedDayLookup;
|
|
22
|
+
export type LookupResponse = SaludTotalRecordAvailabilityResponse;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { SaludTotalScopedDayLookupCodec, } from "../models.js";
|
|
5
|
+
export function createClient(options) {
|
|
6
|
+
return bind(new Transport(options));
|
|
7
|
+
}
|
|
8
|
+
export function bind(transport) {
|
|
9
|
+
return {
|
|
10
|
+
lookup: (request, options) => transport.send(LookupOperation, request, options),
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
const LookupOperation = {
|
|
14
|
+
method: "POST",
|
|
15
|
+
route: "/v1/salud-total/authorizations/lookup",
|
|
16
|
+
body: "flat",
|
|
17
|
+
request: SaludTotalScopedDayLookupCodec,
|
|
18
|
+
response: null,
|
|
19
|
+
errors: { "400": true, "401": true, "403": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
20
|
+
};
|
|
@@ -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 { SaludTotalLookupAuthorizationsConflictError, SaludTotalLookupAuthorizationsConflictFailure, SaludTotalLookupAuthorizationsForbiddenError, SaludTotalLookupAuthorizationsForbiddenFailure, SaludTotalLookupAuthorizationsServiceUnavailableError, SaludTotalLookupAuthorizationsServiceUnavailableFailure, SaludTotalLookupAuthorizationsTooManyRequestsError, SaludTotalLookupAuthorizationsTooManyRequestsFailure, } from "./models.js";
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { ForbiddenFailure, 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
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface SaludTotalLookupAuthorizationsConflictError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: SaludTotalLookupAuthorizationsConflictFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type SaludTotalLookupAuthorizationsConflictFailure = SaludTotalConnectionUnavailableFailure | SaludTotalSessionClosedFailure | SaludTotalInteractiveVerificationRequiredFailure | SaludTotalCredentialsRejectedFailure | SaludTotalIpsIdentityMismatchFailure;
|
|
16
|
+
/**
|
|
17
|
+
* A failed answer.
|
|
18
|
+
*/
|
|
19
|
+
export interface SaludTotalLookupAuthorizationsForbiddenError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: SaludTotalLookupAuthorizationsForbiddenFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type SaludTotalLookupAuthorizationsForbiddenFailure = ForbiddenFailure | SaludTotalPortalAccessUnverifiedFailure | SaludTotalModuleForbiddenFailure | SaludTotalSiteUnavailableFailure;
|
|
29
|
+
/**
|
|
30
|
+
* A failed answer.
|
|
31
|
+
*/
|
|
32
|
+
export interface SaludTotalLookupAuthorizationsServiceUnavailableError {
|
|
33
|
+
data: null;
|
|
34
|
+
error: SaludTotalLookupAuthorizationsServiceUnavailableFailure;
|
|
35
|
+
/**
|
|
36
|
+
* What every answer carries besides its data or error.
|
|
37
|
+
*/
|
|
38
|
+
metadata: ResponseMetadata;
|
|
39
|
+
success: false;
|
|
40
|
+
}
|
|
41
|
+
export type SaludTotalLookupAuthorizationsServiceUnavailableFailure = UpstreamUnavailableFailure | SaludTotalAccountUnavailableFailure | SaludTotalSessionExpiredFailure | SaludTotalProviderUnavailableFailure;
|
|
42
|
+
/**
|
|
43
|
+
* A failed answer.
|
|
44
|
+
*/
|
|
45
|
+
export interface SaludTotalLookupAuthorizationsTooManyRequestsError {
|
|
46
|
+
data: null;
|
|
47
|
+
error: SaludTotalLookupAuthorizationsTooManyRequestsFailure;
|
|
48
|
+
/**
|
|
49
|
+
* What every answer carries besides its data or error.
|
|
50
|
+
*/
|
|
51
|
+
metadata: ResponseMetadata;
|
|
52
|
+
success: false;
|
|
53
|
+
}
|
|
54
|
+
export type SaludTotalLookupAuthorizationsTooManyRequestsFailure = RateLimitedFailure | SaludTotalLoginCoolingDownFailure;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { type BaseClientOptions, Transport } from "../_/index.js";
|
|
2
|
+
import { type Client as AffiliationsClient } from "./affiliations/client.js";
|
|
3
|
+
import { type Client as AuthorizationsClient } from "./authorizations/client.js";
|
|
2
4
|
import { type Client as ConnectionsClient } from "./connections/client.js";
|
|
5
|
+
import { type Client as FilingsClient } from "./filings/client.js";
|
|
6
|
+
import { type Client as PortalOperationsClient } from "./portalOperations/client.js";
|
|
3
7
|
import { type Client as PortalsClient } from "./portals/client.js";
|
|
8
|
+
import { type Client as ReferenceOptionsClient } from "./referenceOptions/client.js";
|
|
9
|
+
import { type Client as SessionsClient } from "./sessions/client.js";
|
|
10
|
+
import { type Client as WorkflowPreviewsClient } from "./workflowPreviews/client.js";
|
|
4
11
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
12
|
/**
|
|
6
13
|
* The URL the paths of the API are relative to.
|
|
@@ -8,8 +15,15 @@ export interface ClientOptions extends BaseClientOptions {
|
|
|
8
15
|
baseUrl: string;
|
|
9
16
|
}
|
|
10
17
|
export interface Client {
|
|
18
|
+
readonly affiliations: AffiliationsClient;
|
|
19
|
+
readonly authorizations: AuthorizationsClient;
|
|
11
20
|
readonly connections: ConnectionsClient;
|
|
21
|
+
readonly filings: FilingsClient;
|
|
22
|
+
readonly portalOperations: PortalOperationsClient;
|
|
12
23
|
readonly portals: PortalsClient;
|
|
24
|
+
readonly referenceOptions: ReferenceOptionsClient;
|
|
25
|
+
readonly sessions: SessionsClient;
|
|
26
|
+
readonly workflowPreviews: WorkflowPreviewsClient;
|
|
13
27
|
}
|
|
14
28
|
export declare function createClient(options: ClientOptions): Client;
|
|
15
29
|
export declare function bind(transport: Transport): Client;
|
|
@@ -1,20 +1,55 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
import { Transport } from "../_/index.js";
|
|
4
|
+
import { bind as bindAffiliations, } from "./affiliations/client.js";
|
|
5
|
+
import { bind as bindAuthorizations, } from "./authorizations/client.js";
|
|
4
6
|
import { bind as bindConnections, } from "./connections/client.js";
|
|
7
|
+
import { bind as bindFilings, } from "./filings/client.js";
|
|
8
|
+
import { bind as bindPortalOperations, } from "./portalOperations/client.js";
|
|
5
9
|
import { bind as bindPortals, } from "./portals/client.js";
|
|
10
|
+
import { bind as bindReferenceOptions, } from "./referenceOptions/client.js";
|
|
11
|
+
import { bind as bindSessions, } from "./sessions/client.js";
|
|
12
|
+
import { bind as bindWorkflowPreviews, } from "./workflowPreviews/client.js";
|
|
6
13
|
export function createClient(options) {
|
|
7
14
|
return bind(new Transport(options));
|
|
8
15
|
}
|
|
9
16
|
export function bind(transport) {
|
|
17
|
+
let affiliationsClient;
|
|
18
|
+
let authorizationsClient;
|
|
10
19
|
let connectionsClient;
|
|
20
|
+
let filingsClient;
|
|
21
|
+
let portalOperationsClient;
|
|
11
22
|
let portalsClient;
|
|
23
|
+
let referenceOptionsClient;
|
|
24
|
+
let sessionsClient;
|
|
25
|
+
let workflowPreviewsClient;
|
|
12
26
|
return {
|
|
27
|
+
get affiliations() {
|
|
28
|
+
return (affiliationsClient ??= bindAffiliations(transport));
|
|
29
|
+
},
|
|
30
|
+
get authorizations() {
|
|
31
|
+
return (authorizationsClient ??= bindAuthorizations(transport));
|
|
32
|
+
},
|
|
13
33
|
get connections() {
|
|
14
34
|
return (connectionsClient ??= bindConnections(transport));
|
|
15
35
|
},
|
|
36
|
+
get filings() {
|
|
37
|
+
return (filingsClient ??= bindFilings(transport));
|
|
38
|
+
},
|
|
39
|
+
get portalOperations() {
|
|
40
|
+
return (portalOperationsClient ??= bindPortalOperations(transport));
|
|
41
|
+
},
|
|
16
42
|
get portals() {
|
|
17
43
|
return (portalsClient ??= bindPortals(transport));
|
|
18
44
|
},
|
|
45
|
+
get referenceOptions() {
|
|
46
|
+
return (referenceOptionsClient ??= bindReferenceOptions(transport));
|
|
47
|
+
},
|
|
48
|
+
get sessions() {
|
|
49
|
+
return (sessionsClient ??= bindSessions(transport));
|
|
50
|
+
},
|
|
51
|
+
get workflowPreviews() {
|
|
52
|
+
return (workflowPreviewsClient ??= bindWorkflowPreviews(transport));
|
|
53
|
+
},
|
|
19
54
|
};
|
|
20
55
|
}
|
|
@@ -17,7 +17,7 @@ const DeleteOperation = {
|
|
|
17
17
|
method: "DELETE",
|
|
18
18
|
route: "/v1/salud-total/connections/{connectionId}",
|
|
19
19
|
response: null,
|
|
20
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
20
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
21
21
|
};
|
|
22
22
|
const GetOperation = {
|
|
23
23
|
method: "GET",
|
|
@@ -30,12 +30,12 @@ const ListOperation = {
|
|
|
30
30
|
route: "/v1/salud-total/connections",
|
|
31
31
|
query: { cursor: "cursor", direction: "direction", limit: "limit", tag: "tag" },
|
|
32
32
|
response: SaludTotalVerifiedConnectionPageResponseCodec,
|
|
33
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
33
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
34
34
|
};
|
|
35
35
|
const VerifyOperation = {
|
|
36
36
|
method: "POST",
|
|
37
37
|
route: "/v1/salud-total/connections/{connectionId}/verify",
|
|
38
38
|
body: "flat",
|
|
39
39
|
response: null,
|
|
40
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
40
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
41
41
|
};
|
|
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
|
|
|
2
2
|
export type { RequestOptions } from "../../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
4
|
export type { Client, ClientOptions, DeleteRequest, DeleteResponse, GetRequest, GetResponse, ListRequest, ListResponse, VerifyRequest, VerifyResponse, } from "./client.js";
|
|
5
|
-
export type { SaludTotalDeleteConnectionResult, SaludTotalDeleteConnectionResultResponse, SaludTotalGetConnectionResult, SaludTotalGetConnectionResultResponse, SaludTotalVerifiedConnection, SaludTotalVerifiedConnectionPage, SaludTotalVerifiedConnectionPageResponse, SaludTotalVerifyConnectionBody, SaludTotalVerifyConnectionResult, SaludTotalVerifyConnectionResultResponse, } from "./models.js";
|
|
5
|
+
export type { SaludTotalDeleteConnectionConflictError, SaludTotalDeleteConnectionConflictFailure, SaludTotalDeleteConnectionForbiddenError, SaludTotalDeleteConnectionForbiddenFailure, SaludTotalDeleteConnectionResult, SaludTotalDeleteConnectionResultResponse, SaludTotalDeleteConnectionServiceUnavailableError, SaludTotalDeleteConnectionServiceUnavailableFailure, SaludTotalDeleteConnectionTooManyRequestsError, SaludTotalDeleteConnectionTooManyRequestsFailure, SaludTotalGetConnectionResult, SaludTotalGetConnectionResultResponse, SaludTotalListConnectionsConflictError, SaludTotalListConnectionsConflictFailure, SaludTotalListConnectionsForbiddenError, SaludTotalListConnectionsForbiddenFailure, SaludTotalListConnectionsServiceUnavailableError, SaludTotalListConnectionsServiceUnavailableFailure, SaludTotalListConnectionsTooManyRequestsError, SaludTotalListConnectionsTooManyRequestsFailure, SaludTotalVerifiedConnection, SaludTotalVerifiedConnectionPage, SaludTotalVerifiedConnectionPageResponse, SaludTotalVerifyConnectionBody, SaludTotalVerifyConnectionConflictError, SaludTotalVerifyConnectionConflictFailure, SaludTotalVerifyConnectionForbiddenError, SaludTotalVerifyConnectionForbiddenFailure, SaludTotalVerifyConnectionResult, SaludTotalVerifyConnectionResultResponse, SaludTotalVerifyConnectionServiceUnavailableError, SaludTotalVerifyConnectionServiceUnavailableFailure, SaludTotalVerifyConnectionTooManyRequestsError, SaludTotalVerifyConnectionTooManyRequestsFailure, } from "./models.js";
|
|
@@ -1,4 +1,31 @@
|
|
|
1
|
-
import type { PageInfo, ResponseMetadata } from "../../models.js";
|
|
1
|
+
import type { 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
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface SaludTotalDeleteConnectionConflictError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: SaludTotalDeleteConnectionConflictFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type SaludTotalDeleteConnectionConflictFailure = SaludTotalConnectionUnavailableFailure | SaludTotalSessionClosedFailure | SaludTotalInteractiveVerificationRequiredFailure | SaludTotalCredentialsRejectedFailure | SaludTotalIpsIdentityMismatchFailure;
|
|
16
|
+
/**
|
|
17
|
+
* A failed answer.
|
|
18
|
+
*/
|
|
19
|
+
export interface SaludTotalDeleteConnectionForbiddenError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: SaludTotalDeleteConnectionForbiddenFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type SaludTotalDeleteConnectionForbiddenFailure = ForbiddenFailure | SaludTotalPortalAccessUnverifiedFailure | SaludTotalModuleForbiddenFailure | SaludTotalSiteUnavailableFailure;
|
|
2
29
|
export interface SaludTotalDeleteConnectionResult {
|
|
3
30
|
deleted: true;
|
|
4
31
|
id: string;
|
|
@@ -15,6 +42,32 @@ export interface SaludTotalDeleteConnectionResultResponse {
|
|
|
15
42
|
metadata: ResponseMetadata;
|
|
16
43
|
success: true;
|
|
17
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* A failed answer.
|
|
47
|
+
*/
|
|
48
|
+
export interface SaludTotalDeleteConnectionServiceUnavailableError {
|
|
49
|
+
data: null;
|
|
50
|
+
error: SaludTotalDeleteConnectionServiceUnavailableFailure;
|
|
51
|
+
/**
|
|
52
|
+
* What every answer carries besides its data or error.
|
|
53
|
+
*/
|
|
54
|
+
metadata: ResponseMetadata;
|
|
55
|
+
success: false;
|
|
56
|
+
}
|
|
57
|
+
export type SaludTotalDeleteConnectionServiceUnavailableFailure = UpstreamUnavailableFailure | SaludTotalAccountUnavailableFailure | SaludTotalSessionExpiredFailure | SaludTotalProviderUnavailableFailure;
|
|
58
|
+
/**
|
|
59
|
+
* A failed answer.
|
|
60
|
+
*/
|
|
61
|
+
export interface SaludTotalDeleteConnectionTooManyRequestsError {
|
|
62
|
+
data: null;
|
|
63
|
+
error: SaludTotalDeleteConnectionTooManyRequestsFailure;
|
|
64
|
+
/**
|
|
65
|
+
* What every answer carries besides its data or error.
|
|
66
|
+
*/
|
|
67
|
+
metadata: ResponseMetadata;
|
|
68
|
+
success: false;
|
|
69
|
+
}
|
|
70
|
+
export type SaludTotalDeleteConnectionTooManyRequestsFailure = RateLimitedFailure | SaludTotalLoginCoolingDownFailure;
|
|
18
71
|
export interface SaludTotalGetConnectionResult {
|
|
19
72
|
tag: "postconsulta" | "facturacion";
|
|
20
73
|
verifiedAt: Temporal.Instant;
|
|
@@ -31,6 +84,58 @@ export interface SaludTotalGetConnectionResultResponse {
|
|
|
31
84
|
metadata: ResponseMetadata;
|
|
32
85
|
success: true;
|
|
33
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* A failed answer.
|
|
89
|
+
*/
|
|
90
|
+
export interface SaludTotalListConnectionsConflictError {
|
|
91
|
+
data: null;
|
|
92
|
+
error: SaludTotalListConnectionsConflictFailure;
|
|
93
|
+
/**
|
|
94
|
+
* What every answer carries besides its data or error.
|
|
95
|
+
*/
|
|
96
|
+
metadata: ResponseMetadata;
|
|
97
|
+
success: false;
|
|
98
|
+
}
|
|
99
|
+
export type SaludTotalListConnectionsConflictFailure = SaludTotalConnectionUnavailableFailure | SaludTotalSessionClosedFailure | SaludTotalInteractiveVerificationRequiredFailure | SaludTotalCredentialsRejectedFailure | SaludTotalIpsIdentityMismatchFailure;
|
|
100
|
+
/**
|
|
101
|
+
* A failed answer.
|
|
102
|
+
*/
|
|
103
|
+
export interface SaludTotalListConnectionsForbiddenError {
|
|
104
|
+
data: null;
|
|
105
|
+
error: SaludTotalListConnectionsForbiddenFailure;
|
|
106
|
+
/**
|
|
107
|
+
* What every answer carries besides its data or error.
|
|
108
|
+
*/
|
|
109
|
+
metadata: ResponseMetadata;
|
|
110
|
+
success: false;
|
|
111
|
+
}
|
|
112
|
+
export type SaludTotalListConnectionsForbiddenFailure = ForbiddenFailure | SaludTotalPortalAccessUnverifiedFailure | SaludTotalModuleForbiddenFailure | SaludTotalSiteUnavailableFailure;
|
|
113
|
+
/**
|
|
114
|
+
* A failed answer.
|
|
115
|
+
*/
|
|
116
|
+
export interface SaludTotalListConnectionsServiceUnavailableError {
|
|
117
|
+
data: null;
|
|
118
|
+
error: SaludTotalListConnectionsServiceUnavailableFailure;
|
|
119
|
+
/**
|
|
120
|
+
* What every answer carries besides its data or error.
|
|
121
|
+
*/
|
|
122
|
+
metadata: ResponseMetadata;
|
|
123
|
+
success: false;
|
|
124
|
+
}
|
|
125
|
+
export type SaludTotalListConnectionsServiceUnavailableFailure = UpstreamUnavailableFailure | SaludTotalAccountUnavailableFailure | SaludTotalSessionExpiredFailure | SaludTotalProviderUnavailableFailure;
|
|
126
|
+
/**
|
|
127
|
+
* A failed answer.
|
|
128
|
+
*/
|
|
129
|
+
export interface SaludTotalListConnectionsTooManyRequestsError {
|
|
130
|
+
data: null;
|
|
131
|
+
error: SaludTotalListConnectionsTooManyRequestsFailure;
|
|
132
|
+
/**
|
|
133
|
+
* What every answer carries besides its data or error.
|
|
134
|
+
*/
|
|
135
|
+
metadata: ResponseMetadata;
|
|
136
|
+
success: false;
|
|
137
|
+
}
|
|
138
|
+
export type SaludTotalListConnectionsTooManyRequestsFailure = RateLimitedFailure | SaludTotalLoginCoolingDownFailure;
|
|
34
139
|
export interface SaludTotalVerifiedConnection {
|
|
35
140
|
id: string;
|
|
36
141
|
tag: "postconsulta" | "facturacion";
|
|
@@ -70,6 +175,32 @@ export interface SaludTotalVerifyConnectionBody {
|
|
|
70
175
|
tag: "postconsulta" | "facturacion";
|
|
71
176
|
username: string;
|
|
72
177
|
}
|
|
178
|
+
/**
|
|
179
|
+
* A failed answer.
|
|
180
|
+
*/
|
|
181
|
+
export interface SaludTotalVerifyConnectionConflictError {
|
|
182
|
+
data: null;
|
|
183
|
+
error: SaludTotalVerifyConnectionConflictFailure;
|
|
184
|
+
/**
|
|
185
|
+
* What every answer carries besides its data or error.
|
|
186
|
+
*/
|
|
187
|
+
metadata: ResponseMetadata;
|
|
188
|
+
success: false;
|
|
189
|
+
}
|
|
190
|
+
export type SaludTotalVerifyConnectionConflictFailure = SaludTotalConnectionUnavailableFailure | SaludTotalSessionClosedFailure | SaludTotalInteractiveVerificationRequiredFailure | SaludTotalCredentialsRejectedFailure | SaludTotalIpsIdentityMismatchFailure;
|
|
191
|
+
/**
|
|
192
|
+
* A failed answer.
|
|
193
|
+
*/
|
|
194
|
+
export interface SaludTotalVerifyConnectionForbiddenError {
|
|
195
|
+
data: null;
|
|
196
|
+
error: SaludTotalVerifyConnectionForbiddenFailure;
|
|
197
|
+
/**
|
|
198
|
+
* What every answer carries besides its data or error.
|
|
199
|
+
*/
|
|
200
|
+
metadata: ResponseMetadata;
|
|
201
|
+
success: false;
|
|
202
|
+
}
|
|
203
|
+
export type SaludTotalVerifyConnectionForbiddenFailure = ForbiddenFailure | SaludTotalPortalAccessUnverifiedFailure | SaludTotalModuleForbiddenFailure | SaludTotalSiteUnavailableFailure;
|
|
73
204
|
export type SaludTotalVerifyConnectionResult = {
|
|
74
205
|
stateRef: string;
|
|
75
206
|
status: "active";
|
|
@@ -89,6 +220,32 @@ export interface SaludTotalVerifyConnectionResultResponse {
|
|
|
89
220
|
metadata: ResponseMetadata;
|
|
90
221
|
success: true;
|
|
91
222
|
}
|
|
223
|
+
/**
|
|
224
|
+
* A failed answer.
|
|
225
|
+
*/
|
|
226
|
+
export interface SaludTotalVerifyConnectionServiceUnavailableError {
|
|
227
|
+
data: null;
|
|
228
|
+
error: SaludTotalVerifyConnectionServiceUnavailableFailure;
|
|
229
|
+
/**
|
|
230
|
+
* What every answer carries besides its data or error.
|
|
231
|
+
*/
|
|
232
|
+
metadata: ResponseMetadata;
|
|
233
|
+
success: false;
|
|
234
|
+
}
|
|
235
|
+
export type SaludTotalVerifyConnectionServiceUnavailableFailure = UpstreamUnavailableFailure | SaludTotalAccountUnavailableFailure | SaludTotalSessionExpiredFailure | SaludTotalProviderUnavailableFailure;
|
|
236
|
+
/**
|
|
237
|
+
* A failed answer.
|
|
238
|
+
*/
|
|
239
|
+
export interface SaludTotalVerifyConnectionTooManyRequestsError {
|
|
240
|
+
data: null;
|
|
241
|
+
error: SaludTotalVerifyConnectionTooManyRequestsFailure;
|
|
242
|
+
/**
|
|
243
|
+
* What every answer carries besides its data or error.
|
|
244
|
+
*/
|
|
245
|
+
metadata: ResponseMetadata;
|
|
246
|
+
success: false;
|
|
247
|
+
}
|
|
248
|
+
export type SaludTotalVerifyConnectionTooManyRequestsFailure = RateLimitedFailure | SaludTotalLoginCoolingDownFailure;
|
|
92
249
|
export declare const SaludTotalGetConnectionResultCodec: import("../../_/codec.js").Codec;
|
|
93
250
|
export declare const SaludTotalGetConnectionResultResponseCodec: import("../../_/codec.js").Codec;
|
|
94
251
|
export declare const SaludTotalVerifiedConnectionCodec: import("../../_/codec.js").Codec;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import { type SaludTotalRecordAvailabilityResponse, type SaludTotalScopedDayLookup } 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 filings
|
|
12
|
+
*
|
|
13
|
+
* Availability of requests for the matched member and IPS on one calendar
|
|
14
|
+
* day. The provider filing search is institution-wide after site admission.
|
|
15
|
+
* Returns counts, never a decision, clinical documents or authorization to
|
|
16
|
+
* act.
|
|
17
|
+
*/
|
|
18
|
+
lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
|
|
19
|
+
}
|
|
20
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
21
|
+
export declare function bind(transport: Transport): Client;
|
|
22
|
+
export type LookupRequest = SaludTotalScopedDayLookup;
|
|
23
|
+
export type LookupResponse = SaludTotalRecordAvailabilityResponse;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { SaludTotalScopedDayLookupCodec, } from "../models.js";
|
|
5
|
+
export function createClient(options) {
|
|
6
|
+
return bind(new Transport(options));
|
|
7
|
+
}
|
|
8
|
+
export function bind(transport) {
|
|
9
|
+
return {
|
|
10
|
+
lookup: (request, options) => transport.send(LookupOperation, request, options),
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
const LookupOperation = {
|
|
14
|
+
method: "POST",
|
|
15
|
+
route: "/v1/salud-total/filings/lookup",
|
|
16
|
+
body: "flat",
|
|
17
|
+
request: SaludTotalScopedDayLookupCodec,
|
|
18
|
+
response: null,
|
|
19
|
+
errors: { "400": true, "401": true, "403": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
20
|
+
};
|
|
@@ -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 { SaludTotalLookupFilingsConflictError, SaludTotalLookupFilingsConflictFailure, SaludTotalLookupFilingsForbiddenError, SaludTotalLookupFilingsForbiddenFailure, SaludTotalLookupFilingsServiceUnavailableError, SaludTotalLookupFilingsServiceUnavailableFailure, SaludTotalLookupFilingsTooManyRequestsError, SaludTotalLookupFilingsTooManyRequestsFailure, } from "./models.js";
|