@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
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { OficlinicPayerPageResponse } 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 payers
|
|
12
|
+
*
|
|
13
|
+
* List the payers (EPS, insurers and other contracting clients) configured in
|
|
14
|
+
* e-Oficlinic for the connection's verified company and IPS, in the
|
|
15
|
+
* provider's order. Flags the provider does not spell in a recognized way are
|
|
16
|
+
* null. Pass connectionId when the organization has several active
|
|
17
|
+
* connections, and pageInfo.nextCursor as cursor for more.
|
|
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
|
+
* An Account connection id of the caller's organization.
|
|
26
|
+
*/
|
|
27
|
+
connectionId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* An opaque cursor from a previous page's pageInfo.nextCursor or
|
|
30
|
+
* pageInfo.previousCursor.
|
|
31
|
+
*/
|
|
32
|
+
cursor?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
35
|
+
*/
|
|
36
|
+
direction?: "forward" | "backward";
|
|
37
|
+
/**
|
|
38
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
39
|
+
* another cursor.
|
|
40
|
+
*/
|
|
41
|
+
limit?: number;
|
|
42
|
+
}
|
|
43
|
+
export type ListResponse = OficlinicPayerPageResponse;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
export function createClient(options) {
|
|
5
|
+
return bind(new Transport(options));
|
|
6
|
+
}
|
|
7
|
+
export function bind(transport) {
|
|
8
|
+
return {
|
|
9
|
+
list: (request, options) => transport.send(ListOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const ListOperation = {
|
|
13
|
+
method: "GET",
|
|
14
|
+
route: "/v1/oficlinic/payers",
|
|
15
|
+
query: { connectionId: "connectionId", cursor: "cursor", direction: "direction", limit: "limit" },
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": 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, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
+
export type { OficlinicListPayersBadGatewayError, OficlinicListPayersBadGatewayFailure, OficlinicListPayersBadRequestError, OficlinicListPayersBadRequestFailure, OficlinicListPayersConflictError, OficlinicListPayersConflictFailure, OficlinicListPayersServiceUnavailableError, OficlinicListPayersServiceUnavailableFailure, OficlinicListPayersTooManyRequestsError, OficlinicListPayersTooManyRequestsFailure, OficlinicListPayersUnprocessableContentError, OficlinicListPayersUnprocessableContentFailure, OficlinicPayer, OficlinicPayerPage, OficlinicPayerPageResponse, } from "./models.js";
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import type { CredentialsRejectedFailure, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface OficlinicListPayersBadGatewayError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: OficlinicListPayersBadGatewayFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type OficlinicListPayersBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure;
|
|
16
|
+
/**
|
|
17
|
+
* A failed answer.
|
|
18
|
+
*/
|
|
19
|
+
export interface OficlinicListPayersBadRequestError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: OficlinicListPayersBadRequestFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type OficlinicListPayersBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
|
|
29
|
+
/**
|
|
30
|
+
* A failed answer.
|
|
31
|
+
*/
|
|
32
|
+
export interface OficlinicListPayersConflictError {
|
|
33
|
+
data: null;
|
|
34
|
+
error: OficlinicListPayersConflictFailure;
|
|
35
|
+
/**
|
|
36
|
+
* What every answer carries besides its data or error.
|
|
37
|
+
*/
|
|
38
|
+
metadata: ResponseMetadata;
|
|
39
|
+
success: false;
|
|
40
|
+
}
|
|
41
|
+
export type OficlinicListPayersConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
|
|
42
|
+
/**
|
|
43
|
+
* A failed answer.
|
|
44
|
+
*/
|
|
45
|
+
export interface OficlinicListPayersServiceUnavailableError {
|
|
46
|
+
data: null;
|
|
47
|
+
error: OficlinicListPayersServiceUnavailableFailure;
|
|
48
|
+
/**
|
|
49
|
+
* What every answer carries besides its data or error.
|
|
50
|
+
*/
|
|
51
|
+
metadata: ResponseMetadata;
|
|
52
|
+
success: false;
|
|
53
|
+
}
|
|
54
|
+
export type OficlinicListPayersServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
|
|
55
|
+
/**
|
|
56
|
+
* A failed answer.
|
|
57
|
+
*/
|
|
58
|
+
export interface OficlinicListPayersTooManyRequestsError {
|
|
59
|
+
data: null;
|
|
60
|
+
error: OficlinicListPayersTooManyRequestsFailure;
|
|
61
|
+
/**
|
|
62
|
+
* What every answer carries besides its data or error.
|
|
63
|
+
*/
|
|
64
|
+
metadata: ResponseMetadata;
|
|
65
|
+
success: false;
|
|
66
|
+
}
|
|
67
|
+
export type OficlinicListPayersTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
|
|
68
|
+
/**
|
|
69
|
+
* A failed answer.
|
|
70
|
+
*/
|
|
71
|
+
export interface OficlinicListPayersUnprocessableContentError {
|
|
72
|
+
data: null;
|
|
73
|
+
error: OficlinicListPayersUnprocessableContentFailure;
|
|
74
|
+
/**
|
|
75
|
+
* What every answer carries besides its data or error.
|
|
76
|
+
*/
|
|
77
|
+
metadata: ResponseMetadata;
|
|
78
|
+
success: false;
|
|
79
|
+
}
|
|
80
|
+
export type OficlinicListPayersUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
|
|
81
|
+
export interface OficlinicPayer {
|
|
82
|
+
/**
|
|
83
|
+
* The provider's payer code (Codigo).
|
|
84
|
+
*/
|
|
85
|
+
code: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* The provider's payer id (IdCliente).
|
|
88
|
+
*/
|
|
89
|
+
id: string;
|
|
90
|
+
/**
|
|
91
|
+
* The payer name (Descripcion), as the provider spells it.
|
|
92
|
+
*/
|
|
93
|
+
name: string;
|
|
94
|
+
/**
|
|
95
|
+
* The provider's Clase value, unchanged.
|
|
96
|
+
*/
|
|
97
|
+
providerClass: string | null;
|
|
98
|
+
/**
|
|
99
|
+
* The provider's Tipo value, unchanged.
|
|
100
|
+
*/
|
|
101
|
+
providerType: string | null;
|
|
102
|
+
/**
|
|
103
|
+
* Whether the provider requires an authorization number; null for an
|
|
104
|
+
* unrecognized flag.
|
|
105
|
+
*/
|
|
106
|
+
requiresAuthorization: boolean | null;
|
|
107
|
+
/**
|
|
108
|
+
* Whether the provider checks an attention list for this payer; null for an
|
|
109
|
+
* unrecognized flag.
|
|
110
|
+
*/
|
|
111
|
+
usesAttentionList: boolean | null;
|
|
112
|
+
}
|
|
113
|
+
export interface OficlinicPayerPage {
|
|
114
|
+
/**
|
|
115
|
+
* Items admitted by this resource contract within the verified organization.
|
|
116
|
+
*/
|
|
117
|
+
data: OficlinicPayer[];
|
|
118
|
+
/**
|
|
119
|
+
* Discriminator for a resource list response.
|
|
120
|
+
*/
|
|
121
|
+
object: "list";
|
|
122
|
+
/**
|
|
123
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
124
|
+
*/
|
|
125
|
+
pageInfo: PageInfo;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* A successful answer.
|
|
129
|
+
*/
|
|
130
|
+
export interface OficlinicPayerPageResponse {
|
|
131
|
+
data: OficlinicPayerPage;
|
|
132
|
+
error: null;
|
|
133
|
+
/**
|
|
134
|
+
* What every answer carries besides its data or error.
|
|
135
|
+
*/
|
|
136
|
+
metadata: ResponseMetadata;
|
|
137
|
+
success: true;
|
|
138
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { OficlinicProfessionalPageResponse } 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 professionals
|
|
12
|
+
*
|
|
13
|
+
* List the professionals of the e-Oficlinic account's directory, a page at a
|
|
14
|
+
* time in the provider's order: id, name, specialty and active flag. Identity
|
|
15
|
+
* documents, addresses and phones of professionals are never returned. This
|
|
16
|
+
* directory is not an availability or scheduling answer. Pass
|
|
17
|
+
* pageInfo.nextCursor as cursor for more.
|
|
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
|
+
* An Account connection id of the caller's organization.
|
|
26
|
+
*/
|
|
27
|
+
connectionId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* An opaque cursor from a previous page's pageInfo.nextCursor or
|
|
30
|
+
* pageInfo.previousCursor.
|
|
31
|
+
*/
|
|
32
|
+
cursor?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
35
|
+
*/
|
|
36
|
+
direction?: "forward" | "backward";
|
|
37
|
+
/**
|
|
38
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
39
|
+
* another cursor.
|
|
40
|
+
*/
|
|
41
|
+
limit?: number;
|
|
42
|
+
}
|
|
43
|
+
export type ListResponse = OficlinicProfessionalPageResponse;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
export function createClient(options) {
|
|
5
|
+
return bind(new Transport(options));
|
|
6
|
+
}
|
|
7
|
+
export function bind(transport) {
|
|
8
|
+
return {
|
|
9
|
+
list: (request, options) => transport.send(ListOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const ListOperation = {
|
|
13
|
+
method: "GET",
|
|
14
|
+
route: "/v1/oficlinic/professionals",
|
|
15
|
+
query: { connectionId: "connectionId", cursor: "cursor", direction: "direction", limit: "limit" },
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": 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, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
+
export type { OficlinicListProfessionalsBadGatewayError, OficlinicListProfessionalsBadGatewayFailure, OficlinicListProfessionalsBadRequestError, OficlinicListProfessionalsBadRequestFailure, OficlinicListProfessionalsConflictError, OficlinicListProfessionalsConflictFailure, OficlinicListProfessionalsServiceUnavailableError, OficlinicListProfessionalsServiceUnavailableFailure, OficlinicListProfessionalsTooManyRequestsError, OficlinicListProfessionalsTooManyRequestsFailure, OficlinicListProfessionalsUnprocessableContentError, OficlinicListProfessionalsUnprocessableContentFailure, OficlinicProfessional, OficlinicProfessionalPage, OficlinicProfessionalPageResponse, } from "./models.js";
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import type { CredentialsRejectedFailure, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface OficlinicListProfessionalsBadGatewayError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: OficlinicListProfessionalsBadGatewayFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type OficlinicListProfessionalsBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure;
|
|
16
|
+
/**
|
|
17
|
+
* A failed answer.
|
|
18
|
+
*/
|
|
19
|
+
export interface OficlinicListProfessionalsBadRequestError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: OficlinicListProfessionalsBadRequestFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type OficlinicListProfessionalsBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
|
|
29
|
+
/**
|
|
30
|
+
* A failed answer.
|
|
31
|
+
*/
|
|
32
|
+
export interface OficlinicListProfessionalsConflictError {
|
|
33
|
+
data: null;
|
|
34
|
+
error: OficlinicListProfessionalsConflictFailure;
|
|
35
|
+
/**
|
|
36
|
+
* What every answer carries besides its data or error.
|
|
37
|
+
*/
|
|
38
|
+
metadata: ResponseMetadata;
|
|
39
|
+
success: false;
|
|
40
|
+
}
|
|
41
|
+
export type OficlinicListProfessionalsConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
|
|
42
|
+
/**
|
|
43
|
+
* A failed answer.
|
|
44
|
+
*/
|
|
45
|
+
export interface OficlinicListProfessionalsServiceUnavailableError {
|
|
46
|
+
data: null;
|
|
47
|
+
error: OficlinicListProfessionalsServiceUnavailableFailure;
|
|
48
|
+
/**
|
|
49
|
+
* What every answer carries besides its data or error.
|
|
50
|
+
*/
|
|
51
|
+
metadata: ResponseMetadata;
|
|
52
|
+
success: false;
|
|
53
|
+
}
|
|
54
|
+
export type OficlinicListProfessionalsServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
|
|
55
|
+
/**
|
|
56
|
+
* A failed answer.
|
|
57
|
+
*/
|
|
58
|
+
export interface OficlinicListProfessionalsTooManyRequestsError {
|
|
59
|
+
data: null;
|
|
60
|
+
error: OficlinicListProfessionalsTooManyRequestsFailure;
|
|
61
|
+
/**
|
|
62
|
+
* What every answer carries besides its data or error.
|
|
63
|
+
*/
|
|
64
|
+
metadata: ResponseMetadata;
|
|
65
|
+
success: false;
|
|
66
|
+
}
|
|
67
|
+
export type OficlinicListProfessionalsTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
|
|
68
|
+
/**
|
|
69
|
+
* A failed answer.
|
|
70
|
+
*/
|
|
71
|
+
export interface OficlinicListProfessionalsUnprocessableContentError {
|
|
72
|
+
data: null;
|
|
73
|
+
error: OficlinicListProfessionalsUnprocessableContentFailure;
|
|
74
|
+
/**
|
|
75
|
+
* What every answer carries besides its data or error.
|
|
76
|
+
*/
|
|
77
|
+
metadata: ResponseMetadata;
|
|
78
|
+
success: false;
|
|
79
|
+
}
|
|
80
|
+
export type OficlinicListProfessionalsUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
|
|
81
|
+
export interface OficlinicProfessional {
|
|
82
|
+
/**
|
|
83
|
+
* The provider's active flag (activo); null for an unrecognized value.
|
|
84
|
+
*/
|
|
85
|
+
active: boolean | null;
|
|
86
|
+
/**
|
|
87
|
+
* The provider's professional id (idrecord).
|
|
88
|
+
*/
|
|
89
|
+
id: string;
|
|
90
|
+
/**
|
|
91
|
+
* The professional name (descripcion), as the provider spells it.
|
|
92
|
+
*/
|
|
93
|
+
name: string;
|
|
94
|
+
/**
|
|
95
|
+
* The specialty name (nomespecialidad).
|
|
96
|
+
*/
|
|
97
|
+
specialty: string | null;
|
|
98
|
+
}
|
|
99
|
+
export interface OficlinicProfessionalPage {
|
|
100
|
+
/**
|
|
101
|
+
* Items admitted by this resource contract within the verified organization.
|
|
102
|
+
*/
|
|
103
|
+
data: OficlinicProfessional[];
|
|
104
|
+
/**
|
|
105
|
+
* Discriminator for a resource list response.
|
|
106
|
+
*/
|
|
107
|
+
object: "list";
|
|
108
|
+
/**
|
|
109
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
110
|
+
*/
|
|
111
|
+
pageInfo: PageInfo;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* A successful answer.
|
|
115
|
+
*/
|
|
116
|
+
export interface OficlinicProfessionalPageResponse {
|
|
117
|
+
data: OficlinicProfessionalPage;
|
|
118
|
+
error: null;
|
|
119
|
+
/**
|
|
120
|
+
* What every answer carries besides its data or error.
|
|
121
|
+
*/
|
|
122
|
+
metadata: ResponseMetadata;
|
|
123
|
+
success: true;
|
|
124
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { OficlinicServiceCatalogPageResponse } 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 services
|
|
12
|
+
*
|
|
13
|
+
* List the e-Oficlinic master service catalog (procedures and studies with
|
|
14
|
+
* their CUPS codes), a page at a time in the provider's order. It lists what
|
|
15
|
+
* the provider can register, about thirteen thousand entries: it is not
|
|
16
|
+
* contracted coverage, a payer authorization or a clinical recommendation.
|
|
17
|
+
* Pass pageInfo.nextCursor as cursor for more.
|
|
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
|
+
* An Account connection id of the caller's organization.
|
|
26
|
+
*/
|
|
27
|
+
connectionId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* An opaque cursor from a previous page's pageInfo.nextCursor or
|
|
30
|
+
* pageInfo.previousCursor.
|
|
31
|
+
*/
|
|
32
|
+
cursor?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
35
|
+
*/
|
|
36
|
+
direction?: "forward" | "backward";
|
|
37
|
+
/**
|
|
38
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
39
|
+
* another cursor.
|
|
40
|
+
*/
|
|
41
|
+
limit?: number;
|
|
42
|
+
}
|
|
43
|
+
export type ListResponse = OficlinicServiceCatalogPageResponse;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
export function createClient(options) {
|
|
5
|
+
return bind(new Transport(options));
|
|
6
|
+
}
|
|
7
|
+
export function bind(transport) {
|
|
8
|
+
return {
|
|
9
|
+
list: (request, options) => transport.send(ListOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const ListOperation = {
|
|
13
|
+
method: "GET",
|
|
14
|
+
route: "/v1/oficlinic/services",
|
|
15
|
+
query: { connectionId: "connectionId", cursor: "cursor", direction: "direction", limit: "limit" },
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": 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, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
+
export type { OficlinicListServicesBadGatewayError, OficlinicListServicesBadGatewayFailure, OficlinicListServicesBadRequestError, OficlinicListServicesBadRequestFailure, OficlinicListServicesConflictError, OficlinicListServicesConflictFailure, OficlinicListServicesServiceUnavailableError, OficlinicListServicesServiceUnavailableFailure, OficlinicListServicesTooManyRequestsError, OficlinicListServicesTooManyRequestsFailure, OficlinicListServicesUnprocessableContentError, OficlinicListServicesUnprocessableContentFailure, OficlinicServiceCatalogEntry, OficlinicServiceCatalogPage, OficlinicServiceCatalogPageResponse, } from "./models.js";
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import type { CredentialsRejectedFailure, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface OficlinicListServicesBadGatewayError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: OficlinicListServicesBadGatewayFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type OficlinicListServicesBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure;
|
|
16
|
+
/**
|
|
17
|
+
* A failed answer.
|
|
18
|
+
*/
|
|
19
|
+
export interface OficlinicListServicesBadRequestError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: OficlinicListServicesBadRequestFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type OficlinicListServicesBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
|
|
29
|
+
/**
|
|
30
|
+
* A failed answer.
|
|
31
|
+
*/
|
|
32
|
+
export interface OficlinicListServicesConflictError {
|
|
33
|
+
data: null;
|
|
34
|
+
error: OficlinicListServicesConflictFailure;
|
|
35
|
+
/**
|
|
36
|
+
* What every answer carries besides its data or error.
|
|
37
|
+
*/
|
|
38
|
+
metadata: ResponseMetadata;
|
|
39
|
+
success: false;
|
|
40
|
+
}
|
|
41
|
+
export type OficlinicListServicesConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
|
|
42
|
+
/**
|
|
43
|
+
* A failed answer.
|
|
44
|
+
*/
|
|
45
|
+
export interface OficlinicListServicesServiceUnavailableError {
|
|
46
|
+
data: null;
|
|
47
|
+
error: OficlinicListServicesServiceUnavailableFailure;
|
|
48
|
+
/**
|
|
49
|
+
* What every answer carries besides its data or error.
|
|
50
|
+
*/
|
|
51
|
+
metadata: ResponseMetadata;
|
|
52
|
+
success: false;
|
|
53
|
+
}
|
|
54
|
+
export type OficlinicListServicesServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
|
|
55
|
+
/**
|
|
56
|
+
* A failed answer.
|
|
57
|
+
*/
|
|
58
|
+
export interface OficlinicListServicesTooManyRequestsError {
|
|
59
|
+
data: null;
|
|
60
|
+
error: OficlinicListServicesTooManyRequestsFailure;
|
|
61
|
+
/**
|
|
62
|
+
* What every answer carries besides its data or error.
|
|
63
|
+
*/
|
|
64
|
+
metadata: ResponseMetadata;
|
|
65
|
+
success: false;
|
|
66
|
+
}
|
|
67
|
+
export type OficlinicListServicesTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
|
|
68
|
+
/**
|
|
69
|
+
* A failed answer.
|
|
70
|
+
*/
|
|
71
|
+
export interface OficlinicListServicesUnprocessableContentError {
|
|
72
|
+
data: null;
|
|
73
|
+
error: OficlinicListServicesUnprocessableContentFailure;
|
|
74
|
+
/**
|
|
75
|
+
* What every answer carries besides its data or error.
|
|
76
|
+
*/
|
|
77
|
+
metadata: ResponseMetadata;
|
|
78
|
+
success: false;
|
|
79
|
+
}
|
|
80
|
+
export type OficlinicListServicesUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
|
|
81
|
+
export interface OficlinicServiceCatalogEntry {
|
|
82
|
+
/**
|
|
83
|
+
* The provider's active flag (Activo); null for an unrecognized value.
|
|
84
|
+
*/
|
|
85
|
+
active: boolean | null;
|
|
86
|
+
/**
|
|
87
|
+
* The provider's own service code (CodProced).
|
|
88
|
+
*/
|
|
89
|
+
code: string | null;
|
|
90
|
+
/**
|
|
91
|
+
* The CUPS code (CUPSCodigo).
|
|
92
|
+
*/
|
|
93
|
+
cupsCode: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* The CUPS description (CUPSDescripcion).
|
|
96
|
+
*/
|
|
97
|
+
cupsDescription: string | null;
|
|
98
|
+
/**
|
|
99
|
+
* The provider's service id (IdProced).
|
|
100
|
+
*/
|
|
101
|
+
id: string;
|
|
102
|
+
/**
|
|
103
|
+
* The service name (DesProced), as the provider spells it.
|
|
104
|
+
*/
|
|
105
|
+
name: string;
|
|
106
|
+
/**
|
|
107
|
+
* The provider's PreparacionEspecial value, unchanged.
|
|
108
|
+
*/
|
|
109
|
+
specialPreparation: string | null;
|
|
110
|
+
/**
|
|
111
|
+
* The provider's TipoEstudio value, unchanged.
|
|
112
|
+
*/
|
|
113
|
+
studyType: string | null;
|
|
114
|
+
}
|
|
115
|
+
export interface OficlinicServiceCatalogPage {
|
|
116
|
+
/**
|
|
117
|
+
* Items admitted by this resource contract within the verified organization.
|
|
118
|
+
*/
|
|
119
|
+
data: OficlinicServiceCatalogEntry[];
|
|
120
|
+
/**
|
|
121
|
+
* Discriminator for a resource list response.
|
|
122
|
+
*/
|
|
123
|
+
object: "list";
|
|
124
|
+
/**
|
|
125
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
126
|
+
*/
|
|
127
|
+
pageInfo: PageInfo;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* A successful answer.
|
|
131
|
+
*/
|
|
132
|
+
export interface OficlinicServiceCatalogPageResponse {
|
|
133
|
+
data: OficlinicServiceCatalogPage;
|
|
134
|
+
error: null;
|
|
135
|
+
/**
|
|
136
|
+
* What every answer carries besides its data or error.
|
|
137
|
+
*/
|
|
138
|
+
metadata: ResponseMetadata;
|
|
139
|
+
success: true;
|
|
140
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import { type SanitasLookupAffiliationBody, type SanitasSanitasAffiliationResponse } 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 affiliation
|
|
12
|
+
*
|
|
13
|
+
* Read one matching member contract from an active Account connection.
|
|
14
|
+
* Unknown or unresolved is never inactive. Session cookies are reused; one
|
|
15
|
+
* renewal is admitted only on expiry. This does not authorize care.
|
|
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 = SanitasLookupAffiliationBody;
|
|
22
|
+
export type LookupResponse = SanitasSanitasAffiliationResponse;
|