@arbol-ai/sdk 5.25.0 → 5.27.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/README.md +4 -4
- package/dist/client.d.ts +0 -4
- package/dist/client.js +0 -10
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +0 -282
- package/dist/models.js +1 -5
- package/dist/raiz/conversations/client.d.ts +34 -9
- package/dist/raiz/conversations/client.js +2 -2
- package/dist/raiz/conversations/models.d.ts +3 -0
- package/dist/visoft/appointments/index.d.ts +1 -1
- package/dist/visoft/appointments/models.d.ts +32 -6
- package/dist/visoft/availability/models.d.ts +4 -4
- package/dist/visoft/contracts/index.d.ts +1 -1
- package/dist/visoft/contracts/models.d.ts +16 -3
- package/dist/visoft/index.d.ts +1 -1
- package/dist/visoft/models.d.ts +67 -2
- package/dist/visoft/patients/index.d.ts +1 -1
- package/dist/visoft/patients/models.d.ts +35 -6
- package/dist/visoft/professionals/models.d.ts +4 -4
- package/dist/visoft/serviceCatalogs/models.d.ts +4 -4
- package/dist/visoft/services/index.d.ts +1 -1
- package/dist/visoft/services/models.d.ts +16 -3
- package/package.json +3 -3
- package/dist/orsovision/agencies/client.d.ts +0 -51
- package/dist/orsovision/agencies/client.js +0 -18
- package/dist/orsovision/agencies/index.d.ts +0 -5
- package/dist/orsovision/agencies/index.js +0 -4
- package/dist/orsovision/agencies/models.d.ts +0 -107
- package/dist/orsovision/agencies/models.js +0 -3
- package/dist/orsovision/appointments/client.d.ts +0 -39
- package/dist/orsovision/appointments/client.js +0 -29
- package/dist/orsovision/appointments/index.d.ts +0 -5
- package/dist/orsovision/appointments/index.js +0 -4
- package/dist/orsovision/appointments/models.d.ts +0 -182
- package/dist/orsovision/appointments/models.js +0 -9
- package/dist/orsovision/availability/client.d.ts +0 -32
- package/dist/orsovision/availability/client.js +0 -19
- package/dist/orsovision/availability/index.d.ts +0 -5
- package/dist/orsovision/availability/index.js +0 -4
- package/dist/orsovision/availability/models.d.ts +0 -228
- package/dist/orsovision/availability/models.js +0 -15
- package/dist/orsovision/client.d.ts +0 -27
- package/dist/orsovision/client.js +0 -50
- package/dist/orsovision/clinic/client.d.ts +0 -34
- package/dist/orsovision/clinic/client.js +0 -18
- package/dist/orsovision/clinic/index.d.ts +0 -5
- package/dist/orsovision/clinic/index.js +0 -4
- package/dist/orsovision/clinic/models.d.ts +0 -90
- package/dist/orsovision/clinic/models.js +0 -3
- package/dist/orsovision/contracts/client.d.ts +0 -69
- package/dist/orsovision/contracts/client.js +0 -18
- package/dist/orsovision/contracts/index.d.ts +0 -5
- package/dist/orsovision/contracts/index.js +0 -4
- package/dist/orsovision/contracts/models.d.ts +0 -84
- package/dist/orsovision/contracts/models.js +0 -3
- package/dist/orsovision/index.d.ts +0 -5
- package/dist/orsovision/index.js +0 -4
- package/dist/orsovision/models.d.ts +0 -66
- package/dist/orsovision/models.js +0 -3
- package/dist/orsovision/patients/client.d.ts +0 -52
- package/dist/orsovision/patients/client.js +0 -34
- package/dist/orsovision/patients/index.d.ts +0 -5
- package/dist/orsovision/patients/index.js +0 -4
- package/dist/orsovision/patients/models.d.ts +0 -287
- package/dist/orsovision/patients/models.js +0 -3
- package/dist/orsovision/services/client.d.ts +0 -74
- package/dist/orsovision/services/client.js +0 -18
- package/dist/orsovision/services/index.d.ts +0 -5
- package/dist/orsovision/services/index.js +0 -4
- package/dist/orsovision/services/models.d.ts +0 -81
- package/dist/orsovision/services/models.js +0 -3
- package/dist/orsovision/tools/client.d.ts +0 -44
- package/dist/orsovision/tools/client.js +0 -18
- package/dist/orsovision/tools/index.d.ts +0 -5
- package/dist/orsovision/tools/index.js +0 -4
- package/dist/orsovision/tools/models.d.ts +0 -102
- package/dist/orsovision/tools/models.js +0 -3
- package/dist/somos/appointments/client.d.ts +0 -40
- package/dist/somos/appointments/client.js +0 -29
- package/dist/somos/appointments/index.d.ts +0 -5
- package/dist/somos/appointments/index.js +0 -4
- package/dist/somos/appointments/models.d.ts +0 -303
- package/dist/somos/appointments/models.js +0 -9
- package/dist/somos/availability/client.d.ts +0 -33
- package/dist/somos/availability/client.js +0 -19
- package/dist/somos/availability/index.d.ts +0 -5
- package/dist/somos/availability/index.js +0 -4
- package/dist/somos/availability/models.d.ts +0 -338
- package/dist/somos/availability/models.js +0 -15
- package/dist/somos/client.d.ts +0 -29
- package/dist/somos/client.js +0 -55
- package/dist/somos/clinic/client.d.ts +0 -33
- package/dist/somos/clinic/client.js +0 -18
- package/dist/somos/clinic/index.d.ts +0 -5
- package/dist/somos/clinic/index.js +0 -4
- package/dist/somos/clinic/models.d.ts +0 -90
- package/dist/somos/clinic/models.js +0 -3
- package/dist/somos/contracts/client.d.ts +0 -74
- package/dist/somos/contracts/client.js +0 -18
- package/dist/somos/contracts/index.d.ts +0 -5
- package/dist/somos/contracts/index.js +0 -4
- package/dist/somos/contracts/models.d.ts +0 -96
- package/dist/somos/contracts/models.js +0 -3
- package/dist/somos/groups/client.d.ts +0 -67
- package/dist/somos/groups/client.js +0 -18
- package/dist/somos/groups/index.d.ts +0 -5
- package/dist/somos/groups/index.js +0 -4
- package/dist/somos/groups/models.d.ts +0 -117
- package/dist/somos/groups/models.js +0 -3
- package/dist/somos/index.d.ts +0 -5
- package/dist/somos/index.js +0 -4
- package/dist/somos/models.d.ts +0 -88
- package/dist/somos/models.js +0 -3
- package/dist/somos/patients/client.d.ts +0 -51
- package/dist/somos/patients/client.js +0 -34
- package/dist/somos/patients/index.d.ts +0 -5
- package/dist/somos/patients/index.js +0 -4
- package/dist/somos/patients/models.d.ts +0 -330
- package/dist/somos/patients/models.js +0 -3
- package/dist/somos/services/client.d.ts +0 -116
- package/dist/somos/services/client.js +0 -26
- package/dist/somos/services/index.d.ts +0 -5
- package/dist/somos/services/index.js +0 -4
- package/dist/somos/services/models.d.ts +0 -261
- package/dist/somos/services/models.js +0 -3
- package/dist/somos/specialtyRules/client.d.ts +0 -44
- package/dist/somos/specialtyRules/client.js +0 -18
- package/dist/somos/specialtyRules/index.d.ts +0 -5
- package/dist/somos/specialtyRules/index.js +0 -4
- package/dist/somos/specialtyRules/models.d.ts +0 -54
- package/dist/somos/specialtyRules/models.js +0 -3
- package/dist/somos/tools/client.d.ts +0 -44
- package/dist/somos/tools/client.js +0 -18
- package/dist/somos/tools/index.d.ts +0 -5
- package/dist/somos/tools/index.js +0 -4
- package/dist/somos/tools/models.d.ts +0 -102
- package/dist/somos/tools/models.js +0 -3
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, OutcomeUnknownFailure, ProviderUnavailableFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
-
import type { OrsovisionClinicNotServedFailure, OrsovisionOrsovisionNotConfiguredFailure, OrsovisionToolNotAvailableFailure } from "../models.js";
|
|
3
|
-
export interface OrsovisionClinic {
|
|
4
|
-
/**
|
|
5
|
-
* The clinic's SIIPS address.
|
|
6
|
-
*/
|
|
7
|
-
clinicalSystem: string;
|
|
8
|
-
/**
|
|
9
|
-
* The clinic, as the connection names it: orsovision.
|
|
10
|
-
*/
|
|
11
|
-
id: string;
|
|
12
|
-
/**
|
|
13
|
-
* The clinic's name.
|
|
14
|
-
*/
|
|
15
|
-
name: string;
|
|
16
|
-
/**
|
|
17
|
-
* The clinic's IANA timezone: every date and time the clinical operations
|
|
18
|
-
* answer is local to it.
|
|
19
|
-
*/
|
|
20
|
-
timezone: string;
|
|
21
|
-
/**
|
|
22
|
-
* The version of the clinic's tool definitions (orsovision.tools.list): it
|
|
23
|
-
* changes whenever a tool's parameters or instructions do.
|
|
24
|
-
*/
|
|
25
|
-
toolsVersion: number;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* A successful answer.
|
|
29
|
-
*/
|
|
30
|
-
export interface OrsovisionClinicResponse {
|
|
31
|
-
data: OrsovisionClinic;
|
|
32
|
-
error: null;
|
|
33
|
-
/**
|
|
34
|
-
* What every answer carries besides its data or error.
|
|
35
|
-
*/
|
|
36
|
-
metadata: ResponseMetadata;
|
|
37
|
-
success: true;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* A failed answer.
|
|
41
|
-
*/
|
|
42
|
-
export interface OrsovisionGetClinicBadGatewayError {
|
|
43
|
-
data: null;
|
|
44
|
-
error: OrsovisionGetClinicBadGatewayFailure;
|
|
45
|
-
/**
|
|
46
|
-
* What every answer carries besides its data or error.
|
|
47
|
-
*/
|
|
48
|
-
metadata: ResponseMetadata;
|
|
49
|
-
success: false;
|
|
50
|
-
}
|
|
51
|
-
export type OrsovisionGetClinicBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure;
|
|
52
|
-
/**
|
|
53
|
-
* A failed answer.
|
|
54
|
-
*/
|
|
55
|
-
export interface OrsovisionGetClinicConflictError {
|
|
56
|
-
data: null;
|
|
57
|
-
error: OrsovisionGetClinicConflictFailure;
|
|
58
|
-
/**
|
|
59
|
-
* What every answer carries besides its data or error.
|
|
60
|
-
*/
|
|
61
|
-
metadata: ResponseMetadata;
|
|
62
|
-
success: false;
|
|
63
|
-
}
|
|
64
|
-
export type OrsovisionGetClinicConflictFailure = ConnectionNotConfiguredFailure | OrsovisionClinicNotServedFailure;
|
|
65
|
-
/**
|
|
66
|
-
* A failed answer.
|
|
67
|
-
*/
|
|
68
|
-
export interface OrsovisionGetClinicNotFoundError {
|
|
69
|
-
data: null;
|
|
70
|
-
error: OrsovisionGetClinicNotFoundFailure;
|
|
71
|
-
/**
|
|
72
|
-
* What every answer carries besides its data or error.
|
|
73
|
-
*/
|
|
74
|
-
metadata: ResponseMetadata;
|
|
75
|
-
success: false;
|
|
76
|
-
}
|
|
77
|
-
export type OrsovisionGetClinicNotFoundFailure = ConnectionNotFoundFailure | OrsovisionToolNotAvailableFailure;
|
|
78
|
-
/**
|
|
79
|
-
* A failed answer.
|
|
80
|
-
*/
|
|
81
|
-
export interface OrsovisionGetClinicServiceUnavailableError {
|
|
82
|
-
data: null;
|
|
83
|
-
error: OrsovisionGetClinicServiceUnavailableFailure;
|
|
84
|
-
/**
|
|
85
|
-
* What every answer carries besides its data or error.
|
|
86
|
-
*/
|
|
87
|
-
metadata: ResponseMetadata;
|
|
88
|
-
success: false;
|
|
89
|
-
}
|
|
90
|
-
export type OrsovisionGetClinicServiceUnavailableFailure = UpstreamUnavailableFailure | OrsovisionOrsovisionNotConfiguredFailure;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type { OrsovisionContractPageResponse } 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 the clinic's contracts
|
|
12
|
-
*
|
|
13
|
-
* The chain's current agreements (plans and payers) at one of its locations,
|
|
14
|
-
* in ascending code order. A name that matches no agreement is TOOL_REFUSED
|
|
15
|
-
* (CONTRACT_NOT_FOUND) with the closest names in details.didYouMean, to offer
|
|
16
|
-
* the person. Preserve the returned identifiers; a failed lookup never proves
|
|
17
|
-
* a patient lacks coverage. A refusal is TOOL_REFUSED: data.reason says why,
|
|
18
|
-
* data.guidance what to do next and data.details what it offers instead; it
|
|
19
|
-
* is never an outage. Orsovision's tool pack sets this tool's rules,
|
|
20
|
-
* parameters and accepted values (orsovision.tools.list answers them), and
|
|
21
|
-
* every call is checked against them.
|
|
22
|
-
*/
|
|
23
|
-
list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
24
|
-
}
|
|
25
|
-
export declare function createClient(options: ClientOptions): Client;
|
|
26
|
-
export declare function bind(transport: Transport): Client;
|
|
27
|
-
export interface ListRequest {
|
|
28
|
-
/**
|
|
29
|
-
* Código de sede elegido en list_agencies. Los códigos de contrato no son
|
|
30
|
-
* portables entre sedes.
|
|
31
|
-
*/
|
|
32
|
-
agency: string;
|
|
33
|
-
/**
|
|
34
|
-
* Texto opcional de plan, aseguradora, convenio o pago particular para acotar
|
|
35
|
-
* el catálogo de la sede.
|
|
36
|
-
*/
|
|
37
|
-
q?: string;
|
|
38
|
-
/**
|
|
39
|
-
* true solo si la persona afirma que un convenio falta o acaba de
|
|
40
|
-
* habilitarse; relee el catálogo del sistema clínico en vez del caché de 12
|
|
41
|
-
* h.
|
|
42
|
-
*/
|
|
43
|
-
refresh?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
46
|
-
*/
|
|
47
|
-
cursor?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
50
|
-
*/
|
|
51
|
-
direction?: "forward" | "backward";
|
|
52
|
-
/**
|
|
53
|
-
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
54
|
-
* another cursor.
|
|
55
|
-
*/
|
|
56
|
-
limit?: number;
|
|
57
|
-
/**
|
|
58
|
-
* The Visoft connection to run on, as Account lists it (con_…). Optional when
|
|
59
|
-
* the organization has one; required when it has several. Another
|
|
60
|
-
* organization's connection is CONNECTION_NOT_FOUND.
|
|
61
|
-
*/
|
|
62
|
-
connectionId?: string;
|
|
63
|
-
/**
|
|
64
|
-
* The channel the conversation happens on: voice, whatsapp or web (the
|
|
65
|
-
* default).
|
|
66
|
-
*/
|
|
67
|
-
channel?: "voice" | "web" | "whatsapp";
|
|
68
|
-
}
|
|
69
|
-
export type ListResponse = OrsovisionContractPageResponse;
|
|
@@ -1,18 +0,0 @@
|
|
|
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/orsovision/contracts",
|
|
15
|
-
query: { agency: "agency", q: "q", refresh: "refresh", cursor: "cursor", direction: "direction", limit: "limit", connectionId: "connectionId", channel: "channel" },
|
|
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
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
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 { OrsovisionContract, OrsovisionContractPage, OrsovisionContractPageResponse, OrsovisionListContractsConflictError, OrsovisionListContractsConflictFailure, OrsovisionListContractsNotFoundError, OrsovisionListContractsNotFoundFailure, OrsovisionListContractsServiceUnavailableError, OrsovisionListContractsServiceUnavailableFailure, } from "./models.js";
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
-
import type { OrsovisionClinicNotServedFailure, OrsovisionOrsovisionNotConfiguredFailure, OrsovisionToolNotAvailableFailure } from "../models.js";
|
|
3
|
-
export interface OrsovisionContract {
|
|
4
|
-
/**
|
|
5
|
-
* The contract, as orsovision.services.list and
|
|
6
|
-
* orsovision.availability.lookup take it.
|
|
7
|
-
*/
|
|
8
|
-
code: string;
|
|
9
|
-
/**
|
|
10
|
-
* The only specialties this contract schedules, when the clinic splits a
|
|
11
|
-
* payer into several contracts: another specialty is in a sibling contract of
|
|
12
|
-
* the same payer.
|
|
13
|
-
*/
|
|
14
|
-
covers?: string[];
|
|
15
|
-
/**
|
|
16
|
-
* The contract's name: the payer or plan, to say to the person.
|
|
17
|
-
*/
|
|
18
|
-
name: string;
|
|
19
|
-
}
|
|
20
|
-
export interface OrsovisionContractPage {
|
|
21
|
-
/**
|
|
22
|
-
* Items admitted by this resource contract within the verified organization.
|
|
23
|
-
*/
|
|
24
|
-
data: OrsovisionContract[];
|
|
25
|
-
/**
|
|
26
|
-
* Discriminator for a resource list response.
|
|
27
|
-
*/
|
|
28
|
-
object: "list";
|
|
29
|
-
/**
|
|
30
|
-
* Opaque navigation cursors for this page’s stable keyset order.
|
|
31
|
-
*/
|
|
32
|
-
pageInfo: PageInfo;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* A successful answer.
|
|
36
|
-
*/
|
|
37
|
-
export interface OrsovisionContractPageResponse {
|
|
38
|
-
data: OrsovisionContractPage;
|
|
39
|
-
error: null;
|
|
40
|
-
/**
|
|
41
|
-
* What every answer carries besides its data or error.
|
|
42
|
-
*/
|
|
43
|
-
metadata: ResponseMetadata;
|
|
44
|
-
success: true;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* A failed answer.
|
|
48
|
-
*/
|
|
49
|
-
export interface OrsovisionListContractsConflictError {
|
|
50
|
-
data: null;
|
|
51
|
-
error: OrsovisionListContractsConflictFailure;
|
|
52
|
-
/**
|
|
53
|
-
* What every answer carries besides its data or error.
|
|
54
|
-
*/
|
|
55
|
-
metadata: ResponseMetadata;
|
|
56
|
-
success: false;
|
|
57
|
-
}
|
|
58
|
-
export type OrsovisionListContractsConflictFailure = ConnectionNotConfiguredFailure | OrsovisionClinicNotServedFailure;
|
|
59
|
-
/**
|
|
60
|
-
* A failed answer.
|
|
61
|
-
*/
|
|
62
|
-
export interface OrsovisionListContractsNotFoundError {
|
|
63
|
-
data: null;
|
|
64
|
-
error: OrsovisionListContractsNotFoundFailure;
|
|
65
|
-
/**
|
|
66
|
-
* What every answer carries besides its data or error.
|
|
67
|
-
*/
|
|
68
|
-
metadata: ResponseMetadata;
|
|
69
|
-
success: false;
|
|
70
|
-
}
|
|
71
|
-
export type OrsovisionListContractsNotFoundFailure = ConnectionNotFoundFailure | OrsovisionToolNotAvailableFailure;
|
|
72
|
-
/**
|
|
73
|
-
* A failed answer.
|
|
74
|
-
*/
|
|
75
|
-
export interface OrsovisionListContractsServiceUnavailableError {
|
|
76
|
-
data: null;
|
|
77
|
-
error: OrsovisionListContractsServiceUnavailableFailure;
|
|
78
|
-
/**
|
|
79
|
-
* What every answer carries besides its data or error.
|
|
80
|
-
*/
|
|
81
|
-
metadata: ResponseMetadata;
|
|
82
|
-
success: false;
|
|
83
|
-
}
|
|
84
|
-
export type OrsovisionListContractsServiceUnavailableFailure = UpstreamUnavailableFailure | OrsovisionOrsovisionNotConfiguredFailure;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { ApiError } from "../_/index.js";
|
|
2
|
-
export type { RequestOptions } from "../_/index.js";
|
|
3
|
-
export { createClient } from "./client.js";
|
|
4
|
-
export type { Client, ClientOptions, } from "./client.js";
|
|
5
|
-
export type { OrsovisionClinicNotServedFailure, OrsovisionOrsovisionNotConfiguredFailure, OrsovisionToolNotAvailableFailure, } from "./models.js";
|
package/dist/orsovision/index.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import type { Empty } from "../models.js";
|
|
2
|
-
/**
|
|
3
|
-
* The connection signs in to another clinic's SIIPS: this backend serves
|
|
4
|
-
* Orsovision's alone.
|
|
5
|
-
*/
|
|
6
|
-
export interface OrsovisionClinicNotServedFailure {
|
|
7
|
-
/**
|
|
8
|
-
* The failure code, stable across releases.
|
|
9
|
-
*/
|
|
10
|
-
code: "CLINIC_NOT_SERVED";
|
|
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: false;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* This backend is not configured to sign its references.
|
|
26
|
-
*/
|
|
27
|
-
export interface OrsovisionOrsovisionNotConfiguredFailure {
|
|
28
|
-
/**
|
|
29
|
-
* The failure code, stable across releases.
|
|
30
|
-
*/
|
|
31
|
-
code: "ORSOVISION_NOT_CONFIGURED";
|
|
32
|
-
/**
|
|
33
|
-
* No fields.
|
|
34
|
-
*/
|
|
35
|
-
data: Empty;
|
|
36
|
-
/**
|
|
37
|
-
* What went wrong, for people; it never contains input values.
|
|
38
|
-
*/
|
|
39
|
-
message: string;
|
|
40
|
-
/**
|
|
41
|
-
* Whether repeating the same request may succeed.
|
|
42
|
-
*/
|
|
43
|
-
retryable: false;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* This tool is unavailable for the clinic; use only the tools
|
|
47
|
-
* orsovision.tools.list answers.
|
|
48
|
-
*/
|
|
49
|
-
export interface OrsovisionToolNotAvailableFailure {
|
|
50
|
-
/**
|
|
51
|
-
* The failure code, stable across releases.
|
|
52
|
-
*/
|
|
53
|
-
code: "TOOL_NOT_AVAILABLE";
|
|
54
|
-
/**
|
|
55
|
-
* No fields.
|
|
56
|
-
*/
|
|
57
|
-
data: Empty;
|
|
58
|
-
/**
|
|
59
|
-
* What went wrong, for people; it never contains input values.
|
|
60
|
-
*/
|
|
61
|
-
message: string;
|
|
62
|
-
/**
|
|
63
|
-
* Whether repeating the same request may succeed.
|
|
64
|
-
*/
|
|
65
|
-
retryable: false;
|
|
66
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type { ToolResultResponse } from "../../models.js";
|
|
3
|
-
import type { OrsovisionCorrectPatientBody, OrsovisionCreatePatientBody, OrsovisionLookupPatientBody } from "./models.js";
|
|
4
|
-
export interface ClientOptions extends BaseClientOptions {
|
|
5
|
-
/**
|
|
6
|
-
* The URL the paths of the API are relative to.
|
|
7
|
-
*/
|
|
8
|
-
baseUrl: string;
|
|
9
|
-
}
|
|
10
|
-
export interface Client {
|
|
11
|
-
/**
|
|
12
|
-
* Correct a patient's details
|
|
13
|
-
*
|
|
14
|
-
* Update only the patient fields the person explicitly corrected and
|
|
15
|
-
* confirmed; omit unchanged fields. Never repeat an update whose outcome is
|
|
16
|
-
* unknown. Orsovision's tool pack sets this tool's rules, parameters and
|
|
17
|
-
* accepted values (orsovision.tools.list answers them), and every call is
|
|
18
|
-
* checked against them.
|
|
19
|
-
*/
|
|
20
|
-
correct(request: CorrectRequest, options?: RequestOptions): Promise<CorrectResponse>;
|
|
21
|
-
/**
|
|
22
|
-
* Register a patient
|
|
23
|
-
*
|
|
24
|
-
* Register a patient only after a lookup confirmed it is not found and the
|
|
25
|
-
* person explicitly confirmed the required details. Never repeat a
|
|
26
|
-
* registration whose outcome is unknown. Orsovision's tool pack sets this
|
|
27
|
-
* tool's rules, parameters and accepted values (orsovision.tools.list answers
|
|
28
|
-
* them), and every call is checked against them.
|
|
29
|
-
*/
|
|
30
|
-
create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
|
|
31
|
-
/**
|
|
32
|
-
* Look up a patient
|
|
33
|
-
*
|
|
34
|
-
* The patient's profile, recent and upcoming appointments (each upcoming one
|
|
35
|
-
* with its cancellation reference), by exact document number, after the
|
|
36
|
-
* clinic's identity and consent checks. found:false is an expected answer:
|
|
37
|
-
* confirm the document and offer to register the patient. Reuse what the
|
|
38
|
-
* patient already confirmed and avoid unrelated patient data. Orsovision's
|
|
39
|
-
* tool pack sets this tool's rules, parameters and accepted values
|
|
40
|
-
* (orsovision.tools.list answers them), and every call is checked against
|
|
41
|
-
* them.
|
|
42
|
-
*/
|
|
43
|
-
lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
|
|
44
|
-
}
|
|
45
|
-
export declare function createClient(options: ClientOptions): Client;
|
|
46
|
-
export declare function bind(transport: Transport): Client;
|
|
47
|
-
export type CorrectRequest = OrsovisionCorrectPatientBody;
|
|
48
|
-
export type CorrectResponse = ToolResultResponse;
|
|
49
|
-
export type CreateRequest = OrsovisionCreatePatientBody;
|
|
50
|
-
export type CreateResponse = ToolResultResponse;
|
|
51
|
-
export type LookupRequest = OrsovisionLookupPatientBody;
|
|
52
|
-
export type LookupResponse = ToolResultResponse;
|
|
@@ -1,34 +0,0 @@
|
|
|
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
|
-
correct: (request, options) => transport.send(CorrectOperation, request, options),
|
|
10
|
-
create: (request, options) => transport.send(CreateOperation, request, options),
|
|
11
|
-
lookup: (request, options) => transport.send(LookupOperation, request, options),
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
const CorrectOperation = {
|
|
15
|
-
method: "POST",
|
|
16
|
-
route: "/v1/orsovision/patients/correct",
|
|
17
|
-
body: "flat",
|
|
18
|
-
response: null,
|
|
19
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
20
|
-
};
|
|
21
|
-
const CreateOperation = {
|
|
22
|
-
method: "POST",
|
|
23
|
-
route: "/v1/orsovision/patients",
|
|
24
|
-
body: "flat",
|
|
25
|
-
response: null,
|
|
26
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
27
|
-
};
|
|
28
|
-
const LookupOperation = {
|
|
29
|
-
method: "POST",
|
|
30
|
-
route: "/v1/orsovision/patients/lookup",
|
|
31
|
-
body: "flat",
|
|
32
|
-
response: null,
|
|
33
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
34
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { ApiError } from "../../_/index.js";
|
|
2
|
-
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
-
export { createClient } from "./client.js";
|
|
4
|
-
export type { Client, ClientOptions, CorrectRequest, CorrectResponse, CreateRequest, CreateResponse, LookupRequest, LookupResponse, } from "./client.js";
|
|
5
|
-
export type { OrsovisionCorrectPatientBadGatewayError, OrsovisionCorrectPatientBadGatewayFailure, OrsovisionCorrectPatientBody, OrsovisionCorrectPatientConflictError, OrsovisionCorrectPatientConflictFailure, OrsovisionCorrectPatientNotFoundError, OrsovisionCorrectPatientNotFoundFailure, OrsovisionCorrectPatientServiceUnavailableError, OrsovisionCorrectPatientServiceUnavailableFailure, OrsovisionCreatePatientBadGatewayError, OrsovisionCreatePatientBadGatewayFailure, OrsovisionCreatePatientBody, OrsovisionCreatePatientConflictError, OrsovisionCreatePatientConflictFailure, OrsovisionCreatePatientNotFoundError, OrsovisionCreatePatientNotFoundFailure, OrsovisionCreatePatientServiceUnavailableError, OrsovisionCreatePatientServiceUnavailableFailure, OrsovisionLookupPatientBody, OrsovisionLookupPatientConflictError, OrsovisionLookupPatientConflictFailure, OrsovisionLookupPatientNotFoundError, OrsovisionLookupPatientNotFoundFailure, OrsovisionLookupPatientServiceUnavailableError, OrsovisionLookupPatientServiceUnavailableFailure, } from "./models.js";
|