@arbol-ai/sdk 5.37.0 → 5.38.1
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/comfachoco/affiliations/client.d.ts +3 -1
- package/dist/comfachoco/affiliations/index.d.ts +1 -1
- package/dist/comfachoco/affiliations/models.d.ts +8 -1
- 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 +69 -5
- package/dist/oficlinic/appointments/client.js +17 -0
- package/dist/oficlinic/appointments/index.d.ts +2 -2
- package/dist/oficlinic/appointments/models.d.ts +591 -5
- package/dist/oficlinic/appointments/models.js +13 -1
- 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 +26 -0
- package/dist/oficlinic/client.js +65 -0
- package/dist/oficlinic/index.d.ts +1 -1
- package/dist/oficlinic/models.d.ts +154 -0
- package/dist/oficlinic/patients/client.d.ts +2 -1
- package/dist/oficlinic/patients/models.d.ts +8 -2
- 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 +10 -3
- package/dist/oficlinic/payers/client.js +1 -1
- package/dist/oficlinic/payers/index.d.ts +1 -1
- package/dist/oficlinic/payers/models.d.ts +14 -13
- package/dist/oficlinic/professionals/client.d.ts +12 -4
- package/dist/oficlinic/professionals/client.js +1 -1
- package/dist/oficlinic/professionals/index.d.ts +1 -1
- package/dist/oficlinic/professionals/models.d.ts +14 -13
- 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 +44 -3
- package/dist/oficlinic/services/client.js +10 -1
- package/dist/oficlinic/services/index.d.ts +2 -2
- package/dist/oficlinic/services/models.d.ts +311 -14
- package/dist/oficlinic/services/models.js +10 -1
- package/dist/sanitas/affiliations/models.d.ts +7 -2
- package/dist/sanitas/connections/client.d.ts +6 -1
- package/dist/sanitas/connections/client.js +1 -0
- package/dist/sanitas/connections/models.d.ts +7 -2
- package/dist/sanitas/index.d.ts +1 -1
- package/dist/sanitas/models.d.ts +22 -0
- package/package.json +3 -3
|
@@ -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";
|
|
@@ -0,0 +1,118 @@
|
|
|
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 OficlinicListRelationshipsBadGatewayError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: OficlinicListRelationshipsBadGatewayFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type OficlinicListRelationshipsBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure;
|
|
16
|
+
/**
|
|
17
|
+
* A failed answer.
|
|
18
|
+
*/
|
|
19
|
+
export interface OficlinicListRelationshipsBadRequestError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: OficlinicListRelationshipsBadRequestFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type OficlinicListRelationshipsBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
|
|
29
|
+
/**
|
|
30
|
+
* A failed answer.
|
|
31
|
+
*/
|
|
32
|
+
export interface OficlinicListRelationshipsConflictError {
|
|
33
|
+
data: null;
|
|
34
|
+
error: OficlinicListRelationshipsConflictFailure;
|
|
35
|
+
/**
|
|
36
|
+
* What every answer carries besides its data or error.
|
|
37
|
+
*/
|
|
38
|
+
metadata: ResponseMetadata;
|
|
39
|
+
success: false;
|
|
40
|
+
}
|
|
41
|
+
export type OficlinicListRelationshipsConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
|
|
42
|
+
export type OficlinicListRelationshipsResult = OficlinicRelationshipPage | OficlinicAgentText;
|
|
43
|
+
/**
|
|
44
|
+
* A successful answer.
|
|
45
|
+
*/
|
|
46
|
+
export interface OficlinicListRelationshipsResultResponse {
|
|
47
|
+
data: OficlinicListRelationshipsResult;
|
|
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 OficlinicListRelationshipsServiceUnavailableError {
|
|
59
|
+
data: null;
|
|
60
|
+
error: OficlinicListRelationshipsServiceUnavailableFailure;
|
|
61
|
+
/**
|
|
62
|
+
* What every answer carries besides its data or error.
|
|
63
|
+
*/
|
|
64
|
+
metadata: ResponseMetadata;
|
|
65
|
+
success: false;
|
|
66
|
+
}
|
|
67
|
+
export type OficlinicListRelationshipsServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
|
|
68
|
+
/**
|
|
69
|
+
* A failed answer.
|
|
70
|
+
*/
|
|
71
|
+
export interface OficlinicListRelationshipsTooManyRequestsError {
|
|
72
|
+
data: null;
|
|
73
|
+
error: OficlinicListRelationshipsTooManyRequestsFailure;
|
|
74
|
+
/**
|
|
75
|
+
* What every answer carries besides its data or error.
|
|
76
|
+
*/
|
|
77
|
+
metadata: ResponseMetadata;
|
|
78
|
+
success: false;
|
|
79
|
+
}
|
|
80
|
+
export type OficlinicListRelationshipsTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
|
|
81
|
+
/**
|
|
82
|
+
* A failed answer.
|
|
83
|
+
*/
|
|
84
|
+
export interface OficlinicListRelationshipsUnprocessableContentError {
|
|
85
|
+
data: null;
|
|
86
|
+
error: OficlinicListRelationshipsUnprocessableContentFailure;
|
|
87
|
+
/**
|
|
88
|
+
* What every answer carries besides its data or error.
|
|
89
|
+
*/
|
|
90
|
+
metadata: ResponseMetadata;
|
|
91
|
+
success: false;
|
|
92
|
+
}
|
|
93
|
+
export type OficlinicListRelationshipsUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
|
|
94
|
+
export interface OficlinicRelationship {
|
|
95
|
+
/**
|
|
96
|
+
* The provider's relationship code (Codigo): pass it as
|
|
97
|
+
* classification.relationship.
|
|
98
|
+
*/
|
|
99
|
+
id: string;
|
|
100
|
+
/**
|
|
101
|
+
* The relationship's name (Descripcion).
|
|
102
|
+
*/
|
|
103
|
+
name: string;
|
|
104
|
+
}
|
|
105
|
+
export interface OficlinicRelationshipPage {
|
|
106
|
+
/**
|
|
107
|
+
* Items admitted by this resource contract within the verified organization.
|
|
108
|
+
*/
|
|
109
|
+
data: OficlinicRelationship[];
|
|
110
|
+
/**
|
|
111
|
+
* Discriminator for a resource list response.
|
|
112
|
+
*/
|
|
113
|
+
object: "list";
|
|
114
|
+
/**
|
|
115
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
116
|
+
*/
|
|
117
|
+
pageInfo: PageInfo;
|
|
118
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import { type OficlinicGetServiceCatalogResultResponse, type OficlinicServiceCatalogResponse, type OficlinicSyncServiceCatalogBody } 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
|
+
* Get the service catalog index
|
|
12
|
+
*
|
|
13
|
+
* Read the state of the connection's local index of the e-Oficlinic service
|
|
14
|
+
* catalog that search_services ranks: whether a complete generation serves
|
|
15
|
+
* searches and when it was completed, its counts, and the progress or last
|
|
16
|
+
* failure of its sync. It never contacts the provider. agentMode true answers
|
|
17
|
+
* concise Spanish text instead.
|
|
18
|
+
*/
|
|
19
|
+
get(request?: GetRequest, options?: RequestOptions): Promise<GetResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Sync the service catalog index
|
|
22
|
+
*
|
|
23
|
+
* Start building a new generation of the connection's local service index
|
|
24
|
+
* from the provider's complete master catalog, professional directory and
|
|
25
|
+
* active professionals' configured services, or resume the one building. It
|
|
26
|
+
* reads in bounded batches between other calls, checks that the provider's
|
|
27
|
+
* totals stay constant and every id appears once, and publishes the
|
|
28
|
+
* generation only when complete; until then the previous generation keeps
|
|
29
|
+
* serving searches. A sync started in the last ten minutes that did not fail
|
|
30
|
+
* is not repeated. Answers the index's state.
|
|
31
|
+
*/
|
|
32
|
+
sync(request?: SyncRequest, options?: RequestOptions): Promise<SyncResponse>;
|
|
33
|
+
}
|
|
34
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
35
|
+
export declare function bind(transport: Transport): Client;
|
|
36
|
+
export interface GetRequest {
|
|
37
|
+
/**
|
|
38
|
+
* An Account connection id of the caller's organization.
|
|
39
|
+
*/
|
|
40
|
+
connectionId?: string;
|
|
41
|
+
/**
|
|
42
|
+
* true answers { text }: concise Spanish facts for a messaging or voice
|
|
43
|
+
* agent, with the short ids and the cursor needed to continue. false, the
|
|
44
|
+
* default, answers the structured object.
|
|
45
|
+
*/
|
|
46
|
+
agentMode?: boolean;
|
|
47
|
+
}
|
|
48
|
+
export type GetResponse = OficlinicGetServiceCatalogResultResponse;
|
|
49
|
+
export type SyncRequest = OficlinicSyncServiceCatalogBody;
|
|
50
|
+
export type SyncResponse = OficlinicServiceCatalogResponse;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { OficlinicGetServiceCatalogResultResponseCodec, OficlinicServiceCatalogResponseCodec, } from "./models.js";
|
|
5
|
+
export function createClient(options) {
|
|
6
|
+
return bind(new Transport(options));
|
|
7
|
+
}
|
|
8
|
+
export function bind(transport) {
|
|
9
|
+
return {
|
|
10
|
+
get: (request, options) => transport.send(GetOperation, request, options),
|
|
11
|
+
sync: (request, options) => transport.send(SyncOperation, request, options),
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
const GetOperation = {
|
|
15
|
+
method: "GET",
|
|
16
|
+
route: "/v1/oficlinic/service-catalog",
|
|
17
|
+
query: { connectionId: "connectionId", agentMode: "agentMode" },
|
|
18
|
+
response: OficlinicGetServiceCatalogResultResponseCodec,
|
|
19
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
20
|
+
};
|
|
21
|
+
const SyncOperation = {
|
|
22
|
+
method: "POST",
|
|
23
|
+
route: "/v1/oficlinic/service-catalog/sync",
|
|
24
|
+
body: "flat",
|
|
25
|
+
response: OficlinicServiceCatalogResponseCodec,
|
|
26
|
+
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 },
|
|
27
|
+
};
|
|
@@ -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, GetRequest, GetResponse, SyncRequest, SyncResponse, } from "./client.js";
|
|
5
|
+
export type { OficlinicGetServiceCatalogBadGatewayError, OficlinicGetServiceCatalogBadGatewayFailure, OficlinicGetServiceCatalogConflictError, OficlinicGetServiceCatalogConflictFailure, OficlinicGetServiceCatalogResult, OficlinicGetServiceCatalogResultResponse, OficlinicServiceCatalog, OficlinicServiceCatalogResponse, OficlinicSyncServiceCatalogBadGatewayError, OficlinicSyncServiceCatalogBadGatewayFailure, OficlinicSyncServiceCatalogBody, OficlinicSyncServiceCatalogConflictError, OficlinicSyncServiceCatalogConflictFailure, } from "./models.js";
|