@arbol-ai/sdk 5.36.0 → 5.38.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/client.d.ts +3 -1
- package/dist/comfachoco/affiliations/index.d.ts +1 -1
- package/dist/comfachoco/affiliations/models.d.ts +13 -6
- 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/affiliateTypes/client.d.ts +55 -0
- package/dist/oficlinic/affiliateTypes/client.js +18 -0
- package/dist/oficlinic/affiliateTypes/index.d.ts +5 -0
- package/dist/oficlinic/affiliateTypes/index.js +4 -0
- package/dist/oficlinic/affiliateTypes/models.d.ts +135 -0
- package/dist/oficlinic/affiliateTypes/models.js +3 -0
- package/dist/oficlinic/appointments/client.d.ts +91 -0
- package/dist/oficlinic/appointments/client.js +35 -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 +777 -0
- package/dist/oficlinic/appointments/models.js +15 -0
- package/dist/oficlinic/bookingDays/client.d.ts +64 -0
- package/dist/oficlinic/bookingDays/client.js +18 -0
- package/dist/oficlinic/bookingDays/index.d.ts +5 -0
- package/dist/oficlinic/bookingDays/index.js +4 -0
- package/dist/oficlinic/bookingDays/models.d.ts +142 -0
- package/dist/oficlinic/bookingDays/models.js +3 -0
- package/dist/oficlinic/bookingProfessionals/client.d.ts +76 -0
- package/dist/oficlinic/bookingProfessionals/client.js +19 -0
- package/dist/oficlinic/bookingProfessionals/index.d.ts +5 -0
- package/dist/oficlinic/bookingProfessionals/index.js +4 -0
- package/dist/oficlinic/bookingProfessionals/models.d.ts +159 -0
- package/dist/oficlinic/bookingProfessionals/models.js +12 -0
- package/dist/oficlinic/bookingRooms/client.d.ts +60 -0
- package/dist/oficlinic/bookingRooms/client.js +18 -0
- package/dist/oficlinic/bookingRooms/index.d.ts +5 -0
- package/dist/oficlinic/bookingRooms/index.js +4 -0
- package/dist/oficlinic/bookingRooms/models.d.ts +136 -0
- package/dist/oficlinic/bookingRooms/models.js +3 -0
- package/dist/oficlinic/bookingSlots/client.d.ts +63 -0
- package/dist/oficlinic/bookingSlots/client.js +19 -0
- package/dist/oficlinic/bookingSlots/index.d.ts +5 -0
- package/dist/oficlinic/bookingSlots/index.js +4 -0
- package/dist/oficlinic/bookingSlots/models.d.ts +167 -0
- package/dist/oficlinic/bookingSlots/models.js +13 -0
- package/dist/oficlinic/cancellationReasons/client.d.ts +49 -0
- package/dist/oficlinic/cancellationReasons/client.js +18 -0
- package/dist/oficlinic/cancellationReasons/index.d.ts +5 -0
- package/dist/oficlinic/cancellationReasons/index.js +4 -0
- package/dist/oficlinic/cancellationReasons/models.d.ts +114 -0
- package/dist/oficlinic/cancellationReasons/models.js +3 -0
- package/dist/oficlinic/client.d.ts +49 -0
- package/dist/oficlinic/client.js +105 -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 +403 -0
- package/dist/oficlinic/models.js +3 -0
- package/dist/oficlinic/patients/client.d.ts +27 -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 +134 -0
- package/dist/oficlinic/patients/models.js +13 -0
- package/dist/oficlinic/payerContracts/client.d.ts +55 -0
- package/dist/oficlinic/payerContracts/client.js +18 -0
- package/dist/oficlinic/payerContracts/index.d.ts +5 -0
- package/dist/oficlinic/payerContracts/index.js +4 -0
- package/dist/oficlinic/payerContracts/models.d.ts +154 -0
- package/dist/oficlinic/payerContracts/models.js +3 -0
- package/dist/oficlinic/payerPlans/client.d.ts +54 -0
- package/dist/oficlinic/payerPlans/client.js +18 -0
- package/dist/oficlinic/payerPlans/index.d.ts +5 -0
- package/dist/oficlinic/payerPlans/index.js +4 -0
- package/dist/oficlinic/payerPlans/models.d.ts +138 -0
- package/dist/oficlinic/payerPlans/models.js +3 -0
- package/dist/oficlinic/payerSubplans/client.d.ts +58 -0
- package/dist/oficlinic/payerSubplans/client.js +18 -0
- package/dist/oficlinic/payerSubplans/index.d.ts +5 -0
- package/dist/oficlinic/payerSubplans/index.js +4 -0
- package/dist/oficlinic/payerSubplans/models.d.ts +150 -0
- package/dist/oficlinic/payerSubplans/models.js +3 -0
- package/dist/oficlinic/payers/client.d.ts +50 -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 +139 -0
- package/dist/oficlinic/payers/models.js +3 -0
- package/dist/oficlinic/professionals/client.d.ts +51 -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 +125 -0
- package/dist/oficlinic/professionals/models.js +3 -0
- package/dist/oficlinic/programs/client.d.ts +54 -0
- package/dist/oficlinic/programs/client.js +18 -0
- package/dist/oficlinic/programs/index.d.ts +5 -0
- package/dist/oficlinic/programs/index.js +4 -0
- package/dist/oficlinic/programs/models.d.ts +133 -0
- package/dist/oficlinic/programs/models.js +3 -0
- package/dist/oficlinic/regimes/client.d.ts +50 -0
- package/dist/oficlinic/regimes/client.js +18 -0
- package/dist/oficlinic/regimes/index.d.ts +5 -0
- package/dist/oficlinic/regimes/index.js +4 -0
- package/dist/oficlinic/regimes/models.d.ts +117 -0
- package/dist/oficlinic/regimes/models.js +3 -0
- package/dist/oficlinic/relationships/client.d.ts +49 -0
- package/dist/oficlinic/relationships/client.js +18 -0
- package/dist/oficlinic/relationships/index.d.ts +5 -0
- package/dist/oficlinic/relationships/index.js +4 -0
- package/dist/oficlinic/relationships/models.d.ts +118 -0
- package/dist/oficlinic/relationships/models.js +3 -0
- package/dist/oficlinic/serviceCatalog/client.d.ts +50 -0
- package/dist/oficlinic/serviceCatalog/client.js +27 -0
- package/dist/oficlinic/serviceCatalog/index.d.ts +5 -0
- package/dist/oficlinic/serviceCatalog/index.js +4 -0
- package/dist/oficlinic/serviceCatalog/models.d.ts +126 -0
- package/dist/oficlinic/serviceCatalog/models.js +13 -0
- package/dist/oficlinic/services/client.d.ts +84 -0
- package/dist/oficlinic/services/client.js +27 -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 +437 -0
- package/dist/oficlinic/services/models.js +12 -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,125 @@
|
|
|
1
|
+
import type { CredentialsRejectedFailure, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { OficlinicAgentText, 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
|
+
export type OficlinicListProfessionalsResult = OficlinicProfessionalPage | OficlinicAgentText;
|
|
43
|
+
/**
|
|
44
|
+
* A successful answer.
|
|
45
|
+
*/
|
|
46
|
+
export interface OficlinicListProfessionalsResultResponse {
|
|
47
|
+
data: OficlinicListProfessionalsResult;
|
|
48
|
+
error: null;
|
|
49
|
+
/**
|
|
50
|
+
* What every answer carries besides its data or error.
|
|
51
|
+
*/
|
|
52
|
+
metadata: ResponseMetadata;
|
|
53
|
+
success: true;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* A failed answer.
|
|
57
|
+
*/
|
|
58
|
+
export interface OficlinicListProfessionalsServiceUnavailableError {
|
|
59
|
+
data: null;
|
|
60
|
+
error: OficlinicListProfessionalsServiceUnavailableFailure;
|
|
61
|
+
/**
|
|
62
|
+
* What every answer carries besides its data or error.
|
|
63
|
+
*/
|
|
64
|
+
metadata: ResponseMetadata;
|
|
65
|
+
success: false;
|
|
66
|
+
}
|
|
67
|
+
export type OficlinicListProfessionalsServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
|
|
68
|
+
/**
|
|
69
|
+
* A failed answer.
|
|
70
|
+
*/
|
|
71
|
+
export interface OficlinicListProfessionalsTooManyRequestsError {
|
|
72
|
+
data: null;
|
|
73
|
+
error: OficlinicListProfessionalsTooManyRequestsFailure;
|
|
74
|
+
/**
|
|
75
|
+
* What every answer carries besides its data or error.
|
|
76
|
+
*/
|
|
77
|
+
metadata: ResponseMetadata;
|
|
78
|
+
success: false;
|
|
79
|
+
}
|
|
80
|
+
export type OficlinicListProfessionalsTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
|
|
81
|
+
/**
|
|
82
|
+
* A failed answer.
|
|
83
|
+
*/
|
|
84
|
+
export interface OficlinicListProfessionalsUnprocessableContentError {
|
|
85
|
+
data: null;
|
|
86
|
+
error: OficlinicListProfessionalsUnprocessableContentFailure;
|
|
87
|
+
/**
|
|
88
|
+
* What every answer carries besides its data or error.
|
|
89
|
+
*/
|
|
90
|
+
metadata: ResponseMetadata;
|
|
91
|
+
success: false;
|
|
92
|
+
}
|
|
93
|
+
export type OficlinicListProfessionalsUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
|
|
94
|
+
export interface OficlinicProfessional {
|
|
95
|
+
/**
|
|
96
|
+
* The provider's active flag (activo); null for an unrecognized value.
|
|
97
|
+
*/
|
|
98
|
+
active: boolean | null;
|
|
99
|
+
/**
|
|
100
|
+
* The provider's professional id (idrecord).
|
|
101
|
+
*/
|
|
102
|
+
id: string;
|
|
103
|
+
/**
|
|
104
|
+
* The professional name (descripcion), as the provider spells it.
|
|
105
|
+
*/
|
|
106
|
+
name: string;
|
|
107
|
+
/**
|
|
108
|
+
* The specialty name (nomespecialidad).
|
|
109
|
+
*/
|
|
110
|
+
specialty: string | null;
|
|
111
|
+
}
|
|
112
|
+
export interface OficlinicProfessionalPage {
|
|
113
|
+
/**
|
|
114
|
+
* Items admitted by this resource contract within the verified organization.
|
|
115
|
+
*/
|
|
116
|
+
data: OficlinicProfessional[];
|
|
117
|
+
/**
|
|
118
|
+
* Discriminator for a resource list response.
|
|
119
|
+
*/
|
|
120
|
+
object: "list";
|
|
121
|
+
/**
|
|
122
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
123
|
+
*/
|
|
124
|
+
pageInfo: PageInfo;
|
|
125
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { OficlinicListProgramsResultResponse } 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 programs
|
|
12
|
+
*
|
|
13
|
+
* List the programs e-Oficlinic offers on its booking screen (cbprograma),
|
|
14
|
+
* each with the attention types it offers (cbprogramatipoatencion), in the
|
|
15
|
+
* provider's order. Opening an availability flow and booking take a program
|
|
16
|
+
* and one of its attention types whose bookable is true: the source counts
|
|
17
|
+
* exactly one unit for it. Multi-unit programs are listed and not bookable
|
|
18
|
+
* here, and a missing or unrecognized count is null, never assumed to be one.
|
|
19
|
+
* sourcePurpose and exempt are catalog facts: they decide nothing about a
|
|
20
|
+
* booking, whose purposeId and billing values stay explicit. Pass
|
|
21
|
+
* pageInfo.nextCursor as cursor for more. agentMode true answers concise
|
|
22
|
+
* Spanish text instead.
|
|
23
|
+
*/
|
|
24
|
+
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
25
|
+
}
|
|
26
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
27
|
+
export declare function bind(transport: Transport): Client;
|
|
28
|
+
export interface ListRequest {
|
|
29
|
+
/**
|
|
30
|
+
* An Account connection id of the caller's organization.
|
|
31
|
+
*/
|
|
32
|
+
connectionId?: string;
|
|
33
|
+
/**
|
|
34
|
+
* An opaque cursor from a previous page's pageInfo.nextCursor or
|
|
35
|
+
* pageInfo.previousCursor.
|
|
36
|
+
*/
|
|
37
|
+
cursor?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
40
|
+
*/
|
|
41
|
+
direction?: "forward" | "backward";
|
|
42
|
+
/**
|
|
43
|
+
* Maximum items returned in one page. Defaults to 10; larger reads require
|
|
44
|
+
* another cursor.
|
|
45
|
+
*/
|
|
46
|
+
limit?: number;
|
|
47
|
+
/**
|
|
48
|
+
* true answers { text }: concise Spanish facts for a messaging or voice
|
|
49
|
+
* agent, with the short ids and the cursor needed to continue. false, the
|
|
50
|
+
* default, answers the structured object.
|
|
51
|
+
*/
|
|
52
|
+
agentMode?: boolean;
|
|
53
|
+
}
|
|
54
|
+
export type ListResponse = OficlinicListProgramsResultResponse;
|
|
@@ -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/programs",
|
|
15
|
+
query: { connectionId: "connectionId", cursor: "cursor", direction: "direction", limit: "limit", agentMode: "agentMode" },
|
|
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 { OficlinicListProgramsBadGatewayError, OficlinicListProgramsBadGatewayFailure, OficlinicListProgramsBadRequestError, OficlinicListProgramsBadRequestFailure, OficlinicListProgramsConflictError, OficlinicListProgramsConflictFailure, OficlinicListProgramsResult, OficlinicListProgramsResultResponse, OficlinicListProgramsServiceUnavailableError, OficlinicListProgramsServiceUnavailableFailure, OficlinicListProgramsTooManyRequestsError, OficlinicListProgramsTooManyRequestsFailure, OficlinicListProgramsUnprocessableContentError, OficlinicListProgramsUnprocessableContentFailure, OficlinicProgram, OficlinicProgramPage, } from "./models.js";
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import type { CredentialsRejectedFailure, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { OficlinicAgentText, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface OficlinicListProgramsBadGatewayError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: OficlinicListProgramsBadGatewayFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type OficlinicListProgramsBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure;
|
|
16
|
+
/**
|
|
17
|
+
* A failed answer.
|
|
18
|
+
*/
|
|
19
|
+
export interface OficlinicListProgramsBadRequestError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: OficlinicListProgramsBadRequestFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type OficlinicListProgramsBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
|
|
29
|
+
/**
|
|
30
|
+
* A failed answer.
|
|
31
|
+
*/
|
|
32
|
+
export interface OficlinicListProgramsConflictError {
|
|
33
|
+
data: null;
|
|
34
|
+
error: OficlinicListProgramsConflictFailure;
|
|
35
|
+
/**
|
|
36
|
+
* What every answer carries besides its data or error.
|
|
37
|
+
*/
|
|
38
|
+
metadata: ResponseMetadata;
|
|
39
|
+
success: false;
|
|
40
|
+
}
|
|
41
|
+
export type OficlinicListProgramsConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
|
|
42
|
+
export type OficlinicListProgramsResult = OficlinicProgramPage | OficlinicAgentText;
|
|
43
|
+
/**
|
|
44
|
+
* A successful answer.
|
|
45
|
+
*/
|
|
46
|
+
export interface OficlinicListProgramsResultResponse {
|
|
47
|
+
data: OficlinicListProgramsResult;
|
|
48
|
+
error: null;
|
|
49
|
+
/**
|
|
50
|
+
* What every answer carries besides its data or error.
|
|
51
|
+
*/
|
|
52
|
+
metadata: ResponseMetadata;
|
|
53
|
+
success: true;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* A failed answer.
|
|
57
|
+
*/
|
|
58
|
+
export interface OficlinicListProgramsServiceUnavailableError {
|
|
59
|
+
data: null;
|
|
60
|
+
error: OficlinicListProgramsServiceUnavailableFailure;
|
|
61
|
+
/**
|
|
62
|
+
* What every answer carries besides its data or error.
|
|
63
|
+
*/
|
|
64
|
+
metadata: ResponseMetadata;
|
|
65
|
+
success: false;
|
|
66
|
+
}
|
|
67
|
+
export type OficlinicListProgramsServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
|
|
68
|
+
/**
|
|
69
|
+
* A failed answer.
|
|
70
|
+
*/
|
|
71
|
+
export interface OficlinicListProgramsTooManyRequestsError {
|
|
72
|
+
data: null;
|
|
73
|
+
error: OficlinicListProgramsTooManyRequestsFailure;
|
|
74
|
+
/**
|
|
75
|
+
* What every answer carries besides its data or error.
|
|
76
|
+
*/
|
|
77
|
+
metadata: ResponseMetadata;
|
|
78
|
+
success: false;
|
|
79
|
+
}
|
|
80
|
+
export type OficlinicListProgramsTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
|
|
81
|
+
/**
|
|
82
|
+
* A failed answer.
|
|
83
|
+
*/
|
|
84
|
+
export interface OficlinicListProgramsUnprocessableContentError {
|
|
85
|
+
data: null;
|
|
86
|
+
error: OficlinicListProgramsUnprocessableContentFailure;
|
|
87
|
+
/**
|
|
88
|
+
* What every answer carries besides its data or error.
|
|
89
|
+
*/
|
|
90
|
+
metadata: ResponseMetadata;
|
|
91
|
+
success: false;
|
|
92
|
+
}
|
|
93
|
+
export type OficlinicListProgramsUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
|
|
94
|
+
export interface OficlinicProgram {
|
|
95
|
+
attentionTypes: {
|
|
96
|
+
bookable: boolean;
|
|
97
|
+
id: string;
|
|
98
|
+
name: string;
|
|
99
|
+
units: number | null;
|
|
100
|
+
}[];
|
|
101
|
+
/**
|
|
102
|
+
* The provider's Exento flag, a catalog fact and no payer policy; null for an
|
|
103
|
+
* unrecognized value.
|
|
104
|
+
*/
|
|
105
|
+
exempt: boolean | null;
|
|
106
|
+
/**
|
|
107
|
+
* The provider's program id (IdPrograma): pass it as programId.
|
|
108
|
+
*/
|
|
109
|
+
id: string;
|
|
110
|
+
/**
|
|
111
|
+
* The program's name (Descripcion).
|
|
112
|
+
*/
|
|
113
|
+
name: string;
|
|
114
|
+
/**
|
|
115
|
+
* The provider's Finalidad value, a catalog fact. It is never applied to a
|
|
116
|
+
* booking: purposeId stays explicit.
|
|
117
|
+
*/
|
|
118
|
+
sourcePurpose: string | null;
|
|
119
|
+
}
|
|
120
|
+
export interface OficlinicProgramPage {
|
|
121
|
+
/**
|
|
122
|
+
* Items admitted by this resource contract within the verified organization.
|
|
123
|
+
*/
|
|
124
|
+
data: OficlinicProgram[];
|
|
125
|
+
/**
|
|
126
|
+
* Discriminator for a resource list response.
|
|
127
|
+
*/
|
|
128
|
+
object: "list";
|
|
129
|
+
/**
|
|
130
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
131
|
+
*/
|
|
132
|
+
pageInfo: PageInfo;
|
|
133
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { OficlinicListRegimesResultResponse } 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 regimes
|
|
12
|
+
*
|
|
13
|
+
* List the regimes e-Oficlinic offers on its booking screen (cbtipousuario),
|
|
14
|
+
* in the provider's order. A booking takes one as classification.regime, and
|
|
15
|
+
* list_affiliate_types takes its id as regimeId. Which regime applies to a
|
|
16
|
+
* patient is the clinic's decision, never derived here. Pass
|
|
17
|
+
* pageInfo.nextCursor as cursor for more. agentMode true answers concise
|
|
18
|
+
* Spanish text instead.
|
|
19
|
+
*/
|
|
20
|
+
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
21
|
+
}
|
|
22
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
23
|
+
export declare function bind(transport: Transport): Client;
|
|
24
|
+
export interface ListRequest {
|
|
25
|
+
/**
|
|
26
|
+
* An Account connection id of the caller's organization.
|
|
27
|
+
*/
|
|
28
|
+
connectionId?: string;
|
|
29
|
+
/**
|
|
30
|
+
* An opaque cursor from a previous page's pageInfo.nextCursor or
|
|
31
|
+
* pageInfo.previousCursor.
|
|
32
|
+
*/
|
|
33
|
+
cursor?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
36
|
+
*/
|
|
37
|
+
direction?: "forward" | "backward";
|
|
38
|
+
/**
|
|
39
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
40
|
+
* another cursor.
|
|
41
|
+
*/
|
|
42
|
+
limit?: number;
|
|
43
|
+
/**
|
|
44
|
+
* true answers { text }: concise Spanish facts for a messaging or voice
|
|
45
|
+
* agent, with the short ids and the cursor needed to continue. false, the
|
|
46
|
+
* default, answers the structured object.
|
|
47
|
+
*/
|
|
48
|
+
agentMode?: boolean;
|
|
49
|
+
}
|
|
50
|
+
export type ListResponse = OficlinicListRegimesResultResponse;
|
|
@@ -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/regimes",
|
|
15
|
+
query: { connectionId: "connectionId", cursor: "cursor", direction: "direction", limit: "limit", agentMode: "agentMode" },
|
|
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 { OficlinicListRegimesBadGatewayError, OficlinicListRegimesBadGatewayFailure, OficlinicListRegimesBadRequestError, OficlinicListRegimesBadRequestFailure, OficlinicListRegimesConflictError, OficlinicListRegimesConflictFailure, OficlinicListRegimesResult, OficlinicListRegimesResultResponse, OficlinicListRegimesServiceUnavailableError, OficlinicListRegimesServiceUnavailableFailure, OficlinicListRegimesTooManyRequestsError, OficlinicListRegimesTooManyRequestsFailure, OficlinicListRegimesUnprocessableContentError, OficlinicListRegimesUnprocessableContentFailure, OficlinicRegime, OficlinicRegimePage, } from "./models.js";
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import type { CredentialsRejectedFailure, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { OficlinicAgentText, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface OficlinicListRegimesBadGatewayError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: OficlinicListRegimesBadGatewayFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type OficlinicListRegimesBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure;
|
|
16
|
+
/**
|
|
17
|
+
* A failed answer.
|
|
18
|
+
*/
|
|
19
|
+
export interface OficlinicListRegimesBadRequestError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: OficlinicListRegimesBadRequestFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type OficlinicListRegimesBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
|
|
29
|
+
/**
|
|
30
|
+
* A failed answer.
|
|
31
|
+
*/
|
|
32
|
+
export interface OficlinicListRegimesConflictError {
|
|
33
|
+
data: null;
|
|
34
|
+
error: OficlinicListRegimesConflictFailure;
|
|
35
|
+
/**
|
|
36
|
+
* What every answer carries besides its data or error.
|
|
37
|
+
*/
|
|
38
|
+
metadata: ResponseMetadata;
|
|
39
|
+
success: false;
|
|
40
|
+
}
|
|
41
|
+
export type OficlinicListRegimesConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
|
|
42
|
+
export type OficlinicListRegimesResult = OficlinicRegimePage | OficlinicAgentText;
|
|
43
|
+
/**
|
|
44
|
+
* A successful answer.
|
|
45
|
+
*/
|
|
46
|
+
export interface OficlinicListRegimesResultResponse {
|
|
47
|
+
data: OficlinicListRegimesResult;
|
|
48
|
+
error: null;
|
|
49
|
+
/**
|
|
50
|
+
* What every answer carries besides its data or error.
|
|
51
|
+
*/
|
|
52
|
+
metadata: ResponseMetadata;
|
|
53
|
+
success: true;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* A failed answer.
|
|
57
|
+
*/
|
|
58
|
+
export interface OficlinicListRegimesServiceUnavailableError {
|
|
59
|
+
data: null;
|
|
60
|
+
error: OficlinicListRegimesServiceUnavailableFailure;
|
|
61
|
+
/**
|
|
62
|
+
* What every answer carries besides its data or error.
|
|
63
|
+
*/
|
|
64
|
+
metadata: ResponseMetadata;
|
|
65
|
+
success: false;
|
|
66
|
+
}
|
|
67
|
+
export type OficlinicListRegimesServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
|
|
68
|
+
/**
|
|
69
|
+
* A failed answer.
|
|
70
|
+
*/
|
|
71
|
+
export interface OficlinicListRegimesTooManyRequestsError {
|
|
72
|
+
data: null;
|
|
73
|
+
error: OficlinicListRegimesTooManyRequestsFailure;
|
|
74
|
+
/**
|
|
75
|
+
* What every answer carries besides its data or error.
|
|
76
|
+
*/
|
|
77
|
+
metadata: ResponseMetadata;
|
|
78
|
+
success: false;
|
|
79
|
+
}
|
|
80
|
+
export type OficlinicListRegimesTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
|
|
81
|
+
/**
|
|
82
|
+
* A failed answer.
|
|
83
|
+
*/
|
|
84
|
+
export interface OficlinicListRegimesUnprocessableContentError {
|
|
85
|
+
data: null;
|
|
86
|
+
error: OficlinicListRegimesUnprocessableContentFailure;
|
|
87
|
+
/**
|
|
88
|
+
* What every answer carries besides its data or error.
|
|
89
|
+
*/
|
|
90
|
+
metadata: ResponseMetadata;
|
|
91
|
+
success: false;
|
|
92
|
+
}
|
|
93
|
+
export type OficlinicListRegimesUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
|
|
94
|
+
export interface OficlinicRegime {
|
|
95
|
+
/**
|
|
96
|
+
* The provider's regime code (Codigo): pass it as classification.regime.
|
|
97
|
+
*/
|
|
98
|
+
id: string;
|
|
99
|
+
/**
|
|
100
|
+
* The regime's name (Descripcion).
|
|
101
|
+
*/
|
|
102
|
+
name: string;
|
|
103
|
+
}
|
|
104
|
+
export interface OficlinicRegimePage {
|
|
105
|
+
/**
|
|
106
|
+
* Items admitted by this resource contract within the verified organization.
|
|
107
|
+
*/
|
|
108
|
+
data: OficlinicRegime[];
|
|
109
|
+
/**
|
|
110
|
+
* Discriminator for a resource list response.
|
|
111
|
+
*/
|
|
112
|
+
object: "list";
|
|
113
|
+
/**
|
|
114
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
115
|
+
*/
|
|
116
|
+
pageInfo: PageInfo;
|
|
117
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { OficlinicListRelationshipsResultResponse } 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 relationships
|
|
12
|
+
*
|
|
13
|
+
* List the relationships to the policy holder e-Oficlinic offers on its
|
|
14
|
+
* booking screen (cbparentesco), in the provider's order. A booking may take
|
|
15
|
+
* one as classification.relationship. Which one applies to a patient is the
|
|
16
|
+
* clinic's decision, never derived here. Pass pageInfo.nextCursor as cursor
|
|
17
|
+
* for more. agentMode true answers concise Spanish text instead.
|
|
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
|
+
* true answers { text }: concise Spanish facts for a messaging or voice
|
|
44
|
+
* agent, with the short ids and the cursor needed to continue. false, the
|
|
45
|
+
* default, answers the structured object.
|
|
46
|
+
*/
|
|
47
|
+
agentMode?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export type ListResponse = OficlinicListRelationshipsResultResponse;
|
|
@@ -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/relationships",
|
|
15
|
+
query: { connectionId: "connectionId", cursor: "cursor", direction: "direction", limit: "limit", agentMode: "agentMode" },
|
|
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 { OficlinicListRelationshipsBadGatewayError, OficlinicListRelationshipsBadGatewayFailure, OficlinicListRelationshipsBadRequestError, OficlinicListRelationshipsBadRequestFailure, OficlinicListRelationshipsConflictError, OficlinicListRelationshipsConflictFailure, OficlinicListRelationshipsResult, OficlinicListRelationshipsResultResponse, OficlinicListRelationshipsServiceUnavailableError, OficlinicListRelationshipsServiceUnavailableFailure, OficlinicListRelationshipsTooManyRequestsError, OficlinicListRelationshipsTooManyRequestsFailure, OficlinicListRelationshipsUnprocessableContentError, OficlinicListRelationshipsUnprocessableContentFailure, OficlinicRelationship, OficlinicRelationshipPage, } from "./models.js";
|