@arbol-ai/sdk 5.37.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/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/package.json +3 -3
|
@@ -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
|
+
]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
2
|
+
import { type OficlinicListServicesResultResponse, type OficlinicSearchServicesBody, type OficlinicSearchServicesResultResponse } from "./models.js";
|
|
3
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
4
4
|
/**
|
|
5
5
|
* The URL the paths of the API are relative to.
|
|
@@ -14,9 +14,37 @@ export interface Client {
|
|
|
14
14
|
* their CUPS codes), a page at a time in the provider's order. It lists what
|
|
15
15
|
* the provider can register, about thirteen thousand entries: it is not
|
|
16
16
|
* contracted coverage, a payer authorization or a clinical recommendation.
|
|
17
|
-
*
|
|
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.
|
|
18
23
|
*/
|
|
19
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>;
|
|
20
48
|
}
|
|
21
49
|
export declare function createClient(options: ClientOptions): Client;
|
|
22
50
|
export declare function bind(transport: Transport): Client;
|
|
@@ -25,6 +53,11 @@ export interface ListRequest {
|
|
|
25
53
|
* An Account connection id of the caller's organization.
|
|
26
54
|
*/
|
|
27
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;
|
|
28
61
|
/**
|
|
29
62
|
* An opaque cursor from a previous page's pageInfo.nextCursor or
|
|
30
63
|
* pageInfo.previousCursor.
|
|
@@ -39,5 +72,13 @@ export interface ListRequest {
|
|
|
39
72
|
* another cursor.
|
|
40
73
|
*/
|
|
41
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;
|
|
42
81
|
}
|
|
43
|
-
export type ListResponse =
|
|
82
|
+
export type ListResponse = OficlinicListServicesResultResponse;
|
|
83
|
+
export type SearchRequest = OficlinicSearchServicesBody;
|
|
84
|
+
export type SearchResponse = OficlinicSearchServicesResultResponse;
|
|
@@ -1,18 +1,27 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { OficlinicSearchServicesResultResponseCodec, } from "./models.js";
|
|
4
5
|
export function createClient(options) {
|
|
5
6
|
return bind(new Transport(options));
|
|
6
7
|
}
|
|
7
8
|
export function bind(transport) {
|
|
8
9
|
return {
|
|
9
10
|
list: (request, options) => transport.send(ListOperation, request, options),
|
|
11
|
+
search: (request, options) => transport.send(SearchOperation, request, options),
|
|
10
12
|
};
|
|
11
13
|
}
|
|
12
14
|
const ListOperation = {
|
|
13
15
|
method: "GET",
|
|
14
16
|
route: "/v1/oficlinic/services",
|
|
15
|
-
query: { connectionId: "connectionId", cursor: "cursor", direction: "direction", limit: "limit" },
|
|
17
|
+
query: { connectionId: "connectionId", professionalId: "professionalId", cursor: "cursor", direction: "direction", limit: "limit", agentMode: "agentMode" },
|
|
16
18
|
response: null,
|
|
17
19
|
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
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
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ApiError } from "../../_/index.js";
|
|
2
2
|
export type { RequestOptions } from "../../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
|
-
export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
-
export type { OficlinicListServicesBadGatewayError, OficlinicListServicesBadGatewayFailure, OficlinicListServicesBadRequestError, OficlinicListServicesBadRequestFailure, OficlinicListServicesConflictError, OficlinicListServicesConflictFailure, OficlinicListServicesServiceUnavailableError, OficlinicListServicesServiceUnavailableFailure, OficlinicListServicesTooManyRequestsError, OficlinicListServicesTooManyRequestsFailure, OficlinicListServicesUnprocessableContentError, OficlinicListServicesUnprocessableContentFailure, OficlinicServiceCatalogEntry, OficlinicServiceCatalogPage,
|
|
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";
|
|
@@ -1,5 +1,48 @@
|
|
|
1
|
-
import type { CredentialsRejectedFailure, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
-
import type { OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
|
|
1
|
+
import type { CredentialsRejectedFailure, Empty, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { OficlinicAgentText, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionNotFoundFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* The connection's service index is being built. Try again shortly.
|
|
5
|
+
*/
|
|
6
|
+
export interface OficlinicIndexNotReadyFailure {
|
|
7
|
+
/**
|
|
8
|
+
* The failure code, stable across releases.
|
|
9
|
+
*/
|
|
10
|
+
code: "INDEX_NOT_READY";
|
|
11
|
+
/**
|
|
12
|
+
* No fields.
|
|
13
|
+
*/
|
|
14
|
+
data: Empty;
|
|
15
|
+
/**
|
|
16
|
+
* What went wrong, for people; it never contains input values.
|
|
17
|
+
*/
|
|
18
|
+
message: string;
|
|
19
|
+
/**
|
|
20
|
+
* Whether repeating the same request may succeed.
|
|
21
|
+
*/
|
|
22
|
+
retryable: true;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The connection's service index could not be built. Staff must check the
|
|
26
|
+
* connection and sync the catalog.
|
|
27
|
+
*/
|
|
28
|
+
export interface OficlinicIndexUnavailableFailure {
|
|
29
|
+
/**
|
|
30
|
+
* The failure code, stable across releases.
|
|
31
|
+
*/
|
|
32
|
+
code: "INDEX_UNAVAILABLE";
|
|
33
|
+
/**
|
|
34
|
+
* No fields.
|
|
35
|
+
*/
|
|
36
|
+
data: Empty;
|
|
37
|
+
/**
|
|
38
|
+
* What went wrong, for people; it never contains input values.
|
|
39
|
+
*/
|
|
40
|
+
message: string;
|
|
41
|
+
/**
|
|
42
|
+
* Whether repeating the same request may succeed.
|
|
43
|
+
*/
|
|
44
|
+
retryable: false;
|
|
45
|
+
}
|
|
3
46
|
/**
|
|
4
47
|
* A failed answer.
|
|
5
48
|
*/
|
|
@@ -39,6 +82,19 @@ export interface OficlinicListServicesConflictError {
|
|
|
39
82
|
success: false;
|
|
40
83
|
}
|
|
41
84
|
export type OficlinicListServicesConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
|
|
85
|
+
export type OficlinicListServicesResult = OficlinicServiceCatalogPage | OficlinicAgentText;
|
|
86
|
+
/**
|
|
87
|
+
* A successful answer.
|
|
88
|
+
*/
|
|
89
|
+
export interface OficlinicListServicesResultResponse {
|
|
90
|
+
data: OficlinicListServicesResult;
|
|
91
|
+
error: null;
|
|
92
|
+
/**
|
|
93
|
+
* What every answer carries besides its data or error.
|
|
94
|
+
*/
|
|
95
|
+
metadata: ResponseMetadata;
|
|
96
|
+
success: true;
|
|
97
|
+
}
|
|
42
98
|
/**
|
|
43
99
|
* A failed answer.
|
|
44
100
|
*/
|
|
@@ -78,9 +134,177 @@ export interface OficlinicListServicesUnprocessableContentError {
|
|
|
78
134
|
success: false;
|
|
79
135
|
}
|
|
80
136
|
export type OficlinicListServicesUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
|
|
137
|
+
/**
|
|
138
|
+
* The professional is not an active professional of the connection's indexed
|
|
139
|
+
* directory.
|
|
140
|
+
*/
|
|
141
|
+
export interface OficlinicProfessionalNotFoundFailure {
|
|
142
|
+
/**
|
|
143
|
+
* The failure code, stable across releases.
|
|
144
|
+
*/
|
|
145
|
+
code: "PROFESSIONAL_NOT_FOUND";
|
|
146
|
+
/**
|
|
147
|
+
* No fields.
|
|
148
|
+
*/
|
|
149
|
+
data: Empty;
|
|
150
|
+
/**
|
|
151
|
+
* What went wrong, for people; it never contains input values.
|
|
152
|
+
*/
|
|
153
|
+
message: string;
|
|
154
|
+
/**
|
|
155
|
+
* Whether repeating the same request may succeed.
|
|
156
|
+
*/
|
|
157
|
+
retryable: false;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* A failed answer.
|
|
161
|
+
*/
|
|
162
|
+
export interface OficlinicSearchServicesBadGatewayError {
|
|
163
|
+
data: null;
|
|
164
|
+
error: OficlinicSearchServicesBadGatewayFailure;
|
|
165
|
+
/**
|
|
166
|
+
* What every answer carries besides its data or error.
|
|
167
|
+
*/
|
|
168
|
+
metadata: ResponseMetadata;
|
|
169
|
+
success: false;
|
|
170
|
+
}
|
|
171
|
+
export type OficlinicSearchServicesBadGatewayFailure = OutcomeUnknownFailure | ProviderProtocolChangedFailure;
|
|
172
|
+
/**
|
|
173
|
+
* A failed answer.
|
|
174
|
+
*/
|
|
175
|
+
export interface OficlinicSearchServicesBadRequestError {
|
|
176
|
+
data: null;
|
|
177
|
+
error: OficlinicSearchServicesBadRequestFailure;
|
|
178
|
+
/**
|
|
179
|
+
* What every answer carries besides its data or error.
|
|
180
|
+
*/
|
|
181
|
+
metadata: ResponseMetadata;
|
|
182
|
+
success: false;
|
|
183
|
+
}
|
|
184
|
+
export type OficlinicSearchServicesBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
|
|
185
|
+
export interface OficlinicSearchServicesBody {
|
|
186
|
+
/**
|
|
187
|
+
* Only services whose master-catalog active flag is this value.
|
|
188
|
+
*/
|
|
189
|
+
active?: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* true answers { text }: concise Spanish facts for a messaging or voice
|
|
192
|
+
* agent, with the short ids and the cursor needed to continue. false, the
|
|
193
|
+
* default, answers the structured object.
|
|
194
|
+
*/
|
|
195
|
+
agentMode?: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* true (the default) keeps services configured for at least one active
|
|
198
|
+
* professional; false searches the whole master catalog.
|
|
199
|
+
*/
|
|
200
|
+
configuredOnly?: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* An Account connection id of the caller's organization.
|
|
203
|
+
*/
|
|
204
|
+
connectionId?: string;
|
|
205
|
+
/**
|
|
206
|
+
* An opaque cursor from a previous page's pageInfo.nextCursor or
|
|
207
|
+
* pageInfo.previousCursor.
|
|
208
|
+
*/
|
|
209
|
+
cursor?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
212
|
+
*/
|
|
213
|
+
direction?: "forward" | "backward";
|
|
214
|
+
/**
|
|
215
|
+
* Hard exclusions by service id.
|
|
216
|
+
*/
|
|
217
|
+
excludeServiceIds?: string[];
|
|
218
|
+
/**
|
|
219
|
+
* Hard exclusions: a service whose name or CUPS description has a word
|
|
220
|
+
* starting with any of these terms (accents ignored) is never answered.
|
|
221
|
+
*/
|
|
222
|
+
excludeTerms?: string[];
|
|
223
|
+
/**
|
|
224
|
+
* Also answer, below every direct match, services configured for active
|
|
225
|
+
* professionals whose specialty matches q, marked related_specialty. Not a
|
|
226
|
+
* claim of clinical equivalence.
|
|
227
|
+
*/
|
|
228
|
+
includeRelated?: boolean;
|
|
229
|
+
/**
|
|
230
|
+
* Maximum items returned in one page. Defaults to 10; larger reads require
|
|
231
|
+
* another cursor.
|
|
232
|
+
*/
|
|
233
|
+
limit?: number;
|
|
234
|
+
/**
|
|
235
|
+
* Only services configured for this active professional
|
|
236
|
+
* (GRID_PROCEDIMIENTOS); PROFESSIONAL_NOT_FOUND when the index holds no such
|
|
237
|
+
* active professional.
|
|
238
|
+
*/
|
|
239
|
+
professionalId?: string;
|
|
240
|
+
/**
|
|
241
|
+
* Free text: a service name in Spanish, words of it, or a provider id, code
|
|
242
|
+
* or CUPS code. Without it, the filtered services are listed in the
|
|
243
|
+
* provider's order.
|
|
244
|
+
*/
|
|
245
|
+
q?: string;
|
|
246
|
+
/**
|
|
247
|
+
* Only services configured for an active professional whose specialty
|
|
248
|
+
* contains these words (accents ignored).
|
|
249
|
+
*/
|
|
250
|
+
specialty?: string;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* A failed answer.
|
|
254
|
+
*/
|
|
255
|
+
export interface OficlinicSearchServicesConflictError {
|
|
256
|
+
data: null;
|
|
257
|
+
error: OficlinicSearchServicesConflictFailure;
|
|
258
|
+
/**
|
|
259
|
+
* What every answer carries besides its data or error.
|
|
260
|
+
*/
|
|
261
|
+
metadata: ResponseMetadata;
|
|
262
|
+
success: false;
|
|
263
|
+
}
|
|
264
|
+
export type OficlinicSearchServicesConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicReauthenticationRequiredFailure | OficlinicIndexUnavailableFailure;
|
|
265
|
+
/**
|
|
266
|
+
* A failed answer.
|
|
267
|
+
*/
|
|
268
|
+
export interface OficlinicSearchServicesNotFoundError {
|
|
269
|
+
data: null;
|
|
270
|
+
error: OficlinicSearchServicesNotFoundFailure;
|
|
271
|
+
/**
|
|
272
|
+
* What every answer carries besides its data or error.
|
|
273
|
+
*/
|
|
274
|
+
metadata: ResponseMetadata;
|
|
275
|
+
success: false;
|
|
276
|
+
}
|
|
277
|
+
export type OficlinicSearchServicesNotFoundFailure = OficlinicConnectionNotFoundFailure | OficlinicProfessionalNotFoundFailure;
|
|
278
|
+
export type OficlinicSearchServicesResult = OficlinicServiceSearchPage | OficlinicAgentText;
|
|
279
|
+
/**
|
|
280
|
+
* A successful answer.
|
|
281
|
+
*/
|
|
282
|
+
export interface OficlinicSearchServicesResultResponse {
|
|
283
|
+
data: OficlinicSearchServicesResult;
|
|
284
|
+
error: null;
|
|
285
|
+
/**
|
|
286
|
+
* What every answer carries besides its data or error.
|
|
287
|
+
*/
|
|
288
|
+
metadata: ResponseMetadata;
|
|
289
|
+
success: true;
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* A failed answer.
|
|
293
|
+
*/
|
|
294
|
+
export interface OficlinicSearchServicesServiceUnavailableError {
|
|
295
|
+
data: null;
|
|
296
|
+
error: OficlinicSearchServicesServiceUnavailableFailure;
|
|
297
|
+
/**
|
|
298
|
+
* What every answer carries besides its data or error.
|
|
299
|
+
*/
|
|
300
|
+
metadata: ResponseMetadata;
|
|
301
|
+
success: false;
|
|
302
|
+
}
|
|
303
|
+
export type OficlinicSearchServicesServiceUnavailableFailure = UpstreamUnavailableFailure | OficlinicIndexNotReadyFailure;
|
|
81
304
|
export interface OficlinicServiceCatalogEntry {
|
|
82
305
|
/**
|
|
83
|
-
* The provider's active flag (Activo); null for an unrecognized value
|
|
306
|
+
* The provider's active flag (Activo, t or f); null for an unrecognized value
|
|
307
|
+
* and in a professional's configured list.
|
|
84
308
|
*/
|
|
85
309
|
active: boolean | null;
|
|
86
310
|
/**
|
|
@@ -92,7 +316,8 @@ export interface OficlinicServiceCatalogEntry {
|
|
|
92
316
|
*/
|
|
93
317
|
cupsCode: string | null;
|
|
94
318
|
/**
|
|
95
|
-
* The CUPS description (CUPSDescripcion)
|
|
319
|
+
* The CUPS description (CUPSDescripcion); null in a professional's configured
|
|
320
|
+
* list, which does not carry it.
|
|
96
321
|
*/
|
|
97
322
|
cupsDescription: string | null;
|
|
98
323
|
/**
|
|
@@ -104,7 +329,8 @@ export interface OficlinicServiceCatalogEntry {
|
|
|
104
329
|
*/
|
|
105
330
|
name: string;
|
|
106
331
|
/**
|
|
107
|
-
* The provider's PreparacionEspecial value, unchanged
|
|
332
|
+
* The provider's PreparacionEspecial value, unchanged; null in a
|
|
333
|
+
* professional's configured list.
|
|
108
334
|
*/
|
|
109
335
|
specialPreparation: string | null;
|
|
110
336
|
/**
|
|
@@ -126,15 +352,86 @@ export interface OficlinicServiceCatalogPage {
|
|
|
126
352
|
*/
|
|
127
353
|
pageInfo: PageInfo;
|
|
128
354
|
}
|
|
129
|
-
|
|
130
|
-
* A successful answer.
|
|
131
|
-
*/
|
|
132
|
-
export interface OficlinicServiceCatalogPageResponse {
|
|
133
|
-
data: OficlinicServiceCatalogPage;
|
|
134
|
-
error: null;
|
|
355
|
+
export interface OficlinicServiceSearchPage {
|
|
135
356
|
/**
|
|
136
|
-
*
|
|
357
|
+
* Items admitted by this resource contract within the verified organization.
|
|
137
358
|
*/
|
|
138
|
-
|
|
139
|
-
|
|
359
|
+
data: OficlinicServiceSearchResult[];
|
|
360
|
+
/**
|
|
361
|
+
* Discriminator for a resource list response.
|
|
362
|
+
*/
|
|
363
|
+
object: "list";
|
|
364
|
+
/**
|
|
365
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
366
|
+
*/
|
|
367
|
+
pageInfo: PageInfo;
|
|
368
|
+
}
|
|
369
|
+
export interface OficlinicServiceSearchResult {
|
|
370
|
+
/**
|
|
371
|
+
* The provider's active flag (Activo, t or f); null for an unrecognized value
|
|
372
|
+
* and in a professional's configured list.
|
|
373
|
+
*/
|
|
374
|
+
active: boolean | null;
|
|
375
|
+
/**
|
|
376
|
+
* The provider's own service code (CodProced).
|
|
377
|
+
*/
|
|
378
|
+
code: string | null;
|
|
379
|
+
/**
|
|
380
|
+
* Whether at least one professional the provider lists as active has the
|
|
381
|
+
* service configured (GRID_PROCEDIMIENTOS) in the indexed generation.
|
|
382
|
+
* Configuration is not coverage, an authorization or an open slot.
|
|
383
|
+
*/
|
|
384
|
+
configured: boolean;
|
|
385
|
+
/**
|
|
386
|
+
* The CUPS code (CUPSCodigo).
|
|
387
|
+
*/
|
|
388
|
+
cupsCode: string | null;
|
|
389
|
+
/**
|
|
390
|
+
* The CUPS description (CUPSDescripcion); null in a professional's configured
|
|
391
|
+
* list, which does not carry it.
|
|
392
|
+
*/
|
|
393
|
+
cupsDescription: string | null;
|
|
394
|
+
/**
|
|
395
|
+
* The provider's service id (IdProced).
|
|
396
|
+
*/
|
|
397
|
+
id: string;
|
|
398
|
+
/**
|
|
399
|
+
* When the indexed generation was completed; results never mix generations,
|
|
400
|
+
* and an older one keeps serving while a refresh builds.
|
|
401
|
+
*/
|
|
402
|
+
indexedAt: Temporal.Instant;
|
|
403
|
+
/**
|
|
404
|
+
* code: q is the service's provider id, code or CUPS code. phrase: the name
|
|
405
|
+
* contains q. words: every word (or almost every word of a long q) matched
|
|
406
|
+
* exactly or as a prefix. approximate: some word matched only within a small
|
|
407
|
+
* spelling distance. related_specialty: includeRelated added it because an
|
|
408
|
+
* active professional configured for it has a specialty matching q; it is not
|
|
409
|
+
* an equivalent procedure. filter: no q, listed in the provider's order.
|
|
410
|
+
*/
|
|
411
|
+
match: "code" | "phrase" | "words" | "approximate" | "related_specialty" | "filter";
|
|
412
|
+
/**
|
|
413
|
+
* The service name (DesProced), as the provider spells it.
|
|
414
|
+
*/
|
|
415
|
+
name: string;
|
|
416
|
+
/**
|
|
417
|
+
* How many active professionals have the service configured.
|
|
418
|
+
*/
|
|
419
|
+
professionalCount: number;
|
|
420
|
+
/**
|
|
421
|
+
* For match related_specialty, the matching specialty as the provider spells
|
|
422
|
+
* it; otherwise null.
|
|
423
|
+
*/
|
|
424
|
+
relatedSpecialty: string | null;
|
|
425
|
+
/**
|
|
426
|
+
* The provider's PreparacionEspecial value, unchanged; null in a
|
|
427
|
+
* professional's configured list.
|
|
428
|
+
*/
|
|
429
|
+
specialPreparation: string | null;
|
|
430
|
+
/**
|
|
431
|
+
* The provider's TipoEstudio value, unchanged.
|
|
432
|
+
*/
|
|
433
|
+
studyType: string | null;
|
|
140
434
|
}
|
|
435
|
+
export declare const OficlinicSearchServicesResultResponseCodec: import("../../_/codec.js").Codec;
|
|
436
|
+
export declare const OficlinicServiceSearchPageCodec: import("../../_/codec.js").Codec;
|
|
437
|
+
export declare const OficlinicServiceSearchResultCodec: import("../../_/codec.js").Codec;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
|
|
3
|
+
import { array, instant, object } from "../../_/index.js";
|
|
4
|
+
export const OficlinicSearchServicesResultResponseCodec = object([
|
|
5
|
+
["data", null, () => OficlinicServiceSearchPageCodec],
|
|
6
|
+
]);
|
|
7
|
+
export const OficlinicServiceSearchPageCodec = object([
|
|
8
|
+
["data", null, array(() => OficlinicServiceSearchResultCodec)],
|
|
9
|
+
]);
|
|
10
|
+
export const OficlinicServiceSearchResultCodec = object([
|
|
11
|
+
["indexedAt", null, instant],
|
|
12
|
+
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbol-ai/sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.38.0",
|
|
4
4
|
"description": "The Arbol API for TypeScript and JavaScript, generated by Cloudflare Forge from the platform's public OpenAPI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"arbol",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"packageManager": "bun@1.4.3",
|
|
59
59
|
"arbol": {
|
|
60
60
|
"openapi": {
|
|
61
|
-
"release": "1.20261105.
|
|
62
|
-
"sha256": "
|
|
61
|
+
"release": "1.20261105.142412",
|
|
62
|
+
"sha256": "12f082ea2aa4a683c8d9b2cd0da26addee085672cdc67b386ea5da4596f08152"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|