@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,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";
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import type { OutcomeUnknownFailure, ProviderProtocolChangedFailure, ResponseMetadata } from "../../models.js";
|
|
2
|
+
import type { OficlinicAgentText, OficlinicConnectionNotActiveFailure, OficlinicConnectionRequiredFailure, OficlinicReauthenticationRequiredFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface OficlinicGetServiceCatalogBadGatewayError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: OficlinicGetServiceCatalogBadGatewayFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type OficlinicGetServiceCatalogBadGatewayFailure = OutcomeUnknownFailure | ProviderProtocolChangedFailure;
|
|
16
|
+
/**
|
|
17
|
+
* A failed answer.
|
|
18
|
+
*/
|
|
19
|
+
export interface OficlinicGetServiceCatalogConflictError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: OficlinicGetServiceCatalogConflictFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type OficlinicGetServiceCatalogConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicReauthenticationRequiredFailure;
|
|
29
|
+
export type OficlinicGetServiceCatalogResult = OficlinicServiceCatalog | OficlinicAgentText;
|
|
30
|
+
/**
|
|
31
|
+
* A successful answer.
|
|
32
|
+
*/
|
|
33
|
+
export interface OficlinicGetServiceCatalogResultResponse {
|
|
34
|
+
data: OficlinicGetServiceCatalogResult;
|
|
35
|
+
error: null;
|
|
36
|
+
/**
|
|
37
|
+
* What every answer carries besides its data or error.
|
|
38
|
+
*/
|
|
39
|
+
metadata: ResponseMetadata;
|
|
40
|
+
success: true;
|
|
41
|
+
}
|
|
42
|
+
export interface OficlinicServiceCatalog {
|
|
43
|
+
activeProfessionalCount: number | null;
|
|
44
|
+
/**
|
|
45
|
+
* Configured professional/service pairs of active professionals.
|
|
46
|
+
*/
|
|
47
|
+
assignmentCount: number | null;
|
|
48
|
+
/**
|
|
49
|
+
* Master-catalog services configured for at least one active professional;
|
|
50
|
+
* configuration is not coverage.
|
|
51
|
+
*/
|
|
52
|
+
configuredServiceCount: number | null;
|
|
53
|
+
/**
|
|
54
|
+
* When the generation that serves searches was completed.
|
|
55
|
+
*/
|
|
56
|
+
indexedAt: Temporal.Instant | null;
|
|
57
|
+
professionalCount: number | null;
|
|
58
|
+
serviceCount: number | null;
|
|
59
|
+
/**
|
|
60
|
+
* ready: a complete generation serves searches. stale: it serves while older
|
|
61
|
+
* than a day; a refresh is due or building. building: no complete generation
|
|
62
|
+
* yet. failed: none, and the last sync failed. not_started: no sync was ever
|
|
63
|
+
* requested.
|
|
64
|
+
*/
|
|
65
|
+
status: "ready" | "stale" | "building" | "failed" | "not_started";
|
|
66
|
+
sync: {
|
|
67
|
+
assignmentsRead: number;
|
|
68
|
+
assignmentsTotal: number | null;
|
|
69
|
+
failure: "provider_unavailable" | "catalog_unstable" | "provider_changed" | "session_stopped" | "connection_unavailable" | "too_large" | "unexpected" | null;
|
|
70
|
+
finishedAt: Temporal.Instant | null;
|
|
71
|
+
nextAttemptAt: Temporal.Instant | null;
|
|
72
|
+
professionalsRead: number;
|
|
73
|
+
professionalsTotal: number | null;
|
|
74
|
+
servicesRead: number;
|
|
75
|
+
servicesTotal: number | null;
|
|
76
|
+
startedAt: Temporal.Instant | null;
|
|
77
|
+
status: "idle" | "running" | "waiting_retry" | "failed";
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* A successful answer.
|
|
82
|
+
*/
|
|
83
|
+
export interface OficlinicServiceCatalogResponse {
|
|
84
|
+
data: OficlinicServiceCatalog;
|
|
85
|
+
error: null;
|
|
86
|
+
/**
|
|
87
|
+
* What every answer carries besides its data or error.
|
|
88
|
+
*/
|
|
89
|
+
metadata: ResponseMetadata;
|
|
90
|
+
success: true;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* A failed answer.
|
|
94
|
+
*/
|
|
95
|
+
export interface OficlinicSyncServiceCatalogBadGatewayError {
|
|
96
|
+
data: null;
|
|
97
|
+
error: OficlinicSyncServiceCatalogBadGatewayFailure;
|
|
98
|
+
/**
|
|
99
|
+
* What every answer carries besides its data or error.
|
|
100
|
+
*/
|
|
101
|
+
metadata: ResponseMetadata;
|
|
102
|
+
success: false;
|
|
103
|
+
}
|
|
104
|
+
export type OficlinicSyncServiceCatalogBadGatewayFailure = OutcomeUnknownFailure | ProviderProtocolChangedFailure;
|
|
105
|
+
export interface OficlinicSyncServiceCatalogBody {
|
|
106
|
+
/**
|
|
107
|
+
* An Account connection id of the caller's organization.
|
|
108
|
+
*/
|
|
109
|
+
connectionId?: string;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* A failed answer.
|
|
113
|
+
*/
|
|
114
|
+
export interface OficlinicSyncServiceCatalogConflictError {
|
|
115
|
+
data: null;
|
|
116
|
+
error: OficlinicSyncServiceCatalogConflictFailure;
|
|
117
|
+
/**
|
|
118
|
+
* What every answer carries besides its data or error.
|
|
119
|
+
*/
|
|
120
|
+
metadata: ResponseMetadata;
|
|
121
|
+
success: false;
|
|
122
|
+
}
|
|
123
|
+
export type OficlinicSyncServiceCatalogConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicReauthenticationRequiredFailure;
|
|
124
|
+
export declare const OficlinicGetServiceCatalogResultResponseCodec: import("../../_/codec.js").Codec;
|
|
125
|
+
export declare const OficlinicServiceCatalogCodec: import("../../_/codec.js").Codec;
|
|
126
|
+
export declare const OficlinicServiceCatalogResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { instant, object } from "../../_/index.js";
|
|
4
|
+
export const OficlinicGetServiceCatalogResultResponseCodec = object([
|
|
5
|
+
["data", null, () => OficlinicServiceCatalogCodec],
|
|
6
|
+
]);
|
|
7
|
+
export const OficlinicServiceCatalogCodec = object([
|
|
8
|
+
["indexedAt", null, instant],
|
|
9
|
+
["sync", null, object([["finishedAt", null, instant], ["nextAttemptAt", null, instant], ["startedAt", null, instant]])],
|
|
10
|
+
]);
|
|
11
|
+
export const OficlinicServiceCatalogResponseCodec = object([
|
|
12
|
+
["data", null, () => OficlinicServiceCatalogCodec],
|
|
13
|
+
]);
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import { type OficlinicListServicesResultResponse, type OficlinicSearchServicesBody, type OficlinicSearchServicesResultResponse } 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
|
+
* With professionalId, it lists instead the services the provider configured
|
|
18
|
+
* for that professional (GRID_PROCEDIMIENTOS), read live: configuration, not
|
|
19
|
+
* coverage or open slots, and its cupsDescription, specialPreparation and
|
|
20
|
+
* active are null. To find a service by text, use search_services. 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
|
+
* Search services
|
|
27
|
+
*
|
|
28
|
+
* Search the e-Oficlinic services by text over the connection's local index
|
|
29
|
+
* of the provider's complete master catalog and its professionals' configured
|
|
30
|
+
* services (GRID_PROCEDIMIENTOS), read through the connection and published
|
|
31
|
+
* only when complete. Results rank by an exact provider id, code or CUPS
|
|
32
|
+
* code, then the text as a phrase of the name, every word (accents ignored,
|
|
33
|
+
* prefixes allowed), then words within a small spelling distance.
|
|
34
|
+
* excludeTerms and excludeServiceIds are hard exclusions applied before
|
|
35
|
+
* ranking: no excluded service ever comes back, related ones included.
|
|
36
|
+
* configuredOnly (true by default) keeps services configured for at least one
|
|
37
|
+
* active professional; false searches the whole master catalog, which is not
|
|
38
|
+
* coverage. includeRelated adds, below every direct match, services
|
|
39
|
+
* configured for active professionals whose specialty matches the text,
|
|
40
|
+
* marked related_specialty: it is not a claim of clinical equivalence.
|
|
41
|
+
* Nothing here is coverage, an authorization or an open slot. The first
|
|
42
|
+
* search of a connection starts building the index and answers
|
|
43
|
+
* INDEX_NOT_READY until it is complete; an older index keeps serving while a
|
|
44
|
+
* refresh builds. Pass pageInfo.nextCursor with the same filters for more.
|
|
45
|
+
* agentMode true answers concise Spanish text instead.
|
|
46
|
+
*/
|
|
47
|
+
search(request?: SearchRequest, options?: RequestOptions): Promise<SearchResponse>;
|
|
48
|
+
}
|
|
49
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
50
|
+
export declare function bind(transport: Transport): Client;
|
|
51
|
+
export interface ListRequest {
|
|
52
|
+
/**
|
|
53
|
+
* An Account connection id of the caller's organization.
|
|
54
|
+
*/
|
|
55
|
+
connectionId?: string;
|
|
56
|
+
/**
|
|
57
|
+
* A professional id from list_professionals: list the services the provider
|
|
58
|
+
* configured for that professional instead of the master catalog.
|
|
59
|
+
*/
|
|
60
|
+
professionalId?: string;
|
|
61
|
+
/**
|
|
62
|
+
* An opaque cursor from a previous page's pageInfo.nextCursor or
|
|
63
|
+
* pageInfo.previousCursor.
|
|
64
|
+
*/
|
|
65
|
+
cursor?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
68
|
+
*/
|
|
69
|
+
direction?: "forward" | "backward";
|
|
70
|
+
/**
|
|
71
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
72
|
+
* another cursor.
|
|
73
|
+
*/
|
|
74
|
+
limit?: number;
|
|
75
|
+
/**
|
|
76
|
+
* true answers { text }: concise Spanish facts for a messaging or voice
|
|
77
|
+
* agent, with the short ids and the cursor needed to continue. false, the
|
|
78
|
+
* default, answers the structured object.
|
|
79
|
+
*/
|
|
80
|
+
agentMode?: boolean;
|
|
81
|
+
}
|
|
82
|
+
export type ListResponse = OficlinicListServicesResultResponse;
|
|
83
|
+
export type SearchRequest = OficlinicSearchServicesBody;
|
|
84
|
+
export type SearchResponse = OficlinicSearchServicesResultResponse;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { OficlinicSearchServicesResultResponseCodec, } from "./models.js";
|
|
5
|
+
export function createClient(options) {
|
|
6
|
+
return bind(new Transport(options));
|
|
7
|
+
}
|
|
8
|
+
export function bind(transport) {
|
|
9
|
+
return {
|
|
10
|
+
list: (request, options) => transport.send(ListOperation, request, options),
|
|
11
|
+
search: (request, options) => transport.send(SearchOperation, request, options),
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
const ListOperation = {
|
|
15
|
+
method: "GET",
|
|
16
|
+
route: "/v1/oficlinic/services",
|
|
17
|
+
query: { connectionId: "connectionId", professionalId: "professionalId", cursor: "cursor", direction: "direction", limit: "limit", agentMode: "agentMode" },
|
|
18
|
+
response: null,
|
|
19
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
20
|
+
};
|
|
21
|
+
const SearchOperation = {
|
|
22
|
+
method: "POST",
|
|
23
|
+
route: "/v1/oficlinic/services/search",
|
|
24
|
+
body: "flat",
|
|
25
|
+
response: OficlinicSearchServicesResultResponseCodec,
|
|
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, ListRequest, ListResponse, SearchRequest, SearchResponse, } from "./client.js";
|
|
5
|
+
export type { OficlinicIndexNotReadyFailure, OficlinicIndexUnavailableFailure, OficlinicListServicesBadGatewayError, OficlinicListServicesBadGatewayFailure, OficlinicListServicesBadRequestError, OficlinicListServicesBadRequestFailure, OficlinicListServicesConflictError, OficlinicListServicesConflictFailure, OficlinicListServicesResult, OficlinicListServicesResultResponse, OficlinicListServicesServiceUnavailableError, OficlinicListServicesServiceUnavailableFailure, OficlinicListServicesTooManyRequestsError, OficlinicListServicesTooManyRequestsFailure, OficlinicListServicesUnprocessableContentError, OficlinicListServicesUnprocessableContentFailure, OficlinicProfessionalNotFoundFailure, OficlinicSearchServicesBadGatewayError, OficlinicSearchServicesBadGatewayFailure, OficlinicSearchServicesBadRequestError, OficlinicSearchServicesBadRequestFailure, OficlinicSearchServicesBody, OficlinicSearchServicesConflictError, OficlinicSearchServicesConflictFailure, OficlinicSearchServicesNotFoundError, OficlinicSearchServicesNotFoundFailure, OficlinicSearchServicesResult, OficlinicSearchServicesResultResponse, OficlinicSearchServicesServiceUnavailableError, OficlinicSearchServicesServiceUnavailableFailure, OficlinicServiceCatalogEntry, OficlinicServiceCatalogPage, OficlinicServiceSearchPage, OficlinicServiceSearchResult, } from "./models.js";
|