@arbol-ai/sdk 2.19.0 → 3.0.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 +19 -1
- package/dist/client.d.ts +4 -0
- package/dist/client.js +10 -0
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +396 -0
- package/dist/models.js +5 -1
- package/dist/nuevaEps/affiliations/models.d.ts +6 -5
- package/dist/nuevaEps/connections/models.d.ts +18 -18
- package/dist/nuevaEps/index.d.ts +1 -1
- package/dist/nuevaEps/models.d.ts +16 -232
- package/dist/{visoft/tools → orsovision/agencies}/client.d.ts +13 -19
- package/dist/{visoft/tools → orsovision/agencies}/client.js +2 -2
- package/dist/orsovision/agencies/index.d.ts +5 -0
- package/dist/orsovision/agencies/models.d.ts +107 -0
- package/dist/orsovision/appointments/client.d.ts +39 -0
- package/dist/orsovision/appointments/client.js +29 -0
- package/dist/orsovision/appointments/index.d.ts +5 -0
- package/dist/orsovision/appointments/models.d.ts +206 -0
- package/dist/orsovision/appointments/models.js +9 -0
- package/dist/orsovision/availability/client.d.ts +32 -0
- package/dist/orsovision/availability/client.js +19 -0
- package/dist/orsovision/availability/index.d.ts +5 -0
- package/dist/orsovision/availability/models.d.ts +239 -0
- package/dist/orsovision/availability/models.js +15 -0
- package/dist/orsovision/client.d.ts +27 -0
- package/dist/orsovision/client.js +50 -0
- package/dist/orsovision/clinic/client.d.ts +34 -0
- package/dist/{visoft/specialtyRules → orsovision/clinic}/client.js +3 -3
- package/dist/orsovision/clinic/index.d.ts +5 -0
- package/dist/orsovision/clinic/models.d.ts +89 -0
- package/dist/orsovision/contracts/client.d.ts +69 -0
- package/dist/orsovision/contracts/client.js +18 -0
- package/dist/orsovision/contracts/index.d.ts +5 -0
- package/dist/orsovision/contracts/models.d.ts +108 -0
- package/dist/orsovision/index.d.ts +5 -0
- package/dist/orsovision/index.js +4 -0
- package/dist/orsovision/models.d.ts +227 -0
- package/dist/orsovision/patients/client.d.ts +52 -0
- package/dist/orsovision/patients/client.js +34 -0
- package/dist/orsovision/patients/index.d.ts +5 -0
- package/dist/orsovision/patients/models.d.ts +297 -0
- package/dist/orsovision/patients/models.js +3 -0
- package/dist/orsovision/services/client.d.ts +74 -0
- package/dist/orsovision/services/client.js +18 -0
- package/dist/orsovision/services/index.d.ts +5 -0
- package/dist/orsovision/services/index.js +4 -0
- package/dist/orsovision/services/models.d.ts +105 -0
- package/dist/orsovision/services/models.js +3 -0
- package/dist/orsovision/tools/client.d.ts +44 -0
- package/dist/{raiz/roles → orsovision/tools}/client.js +3 -3
- package/dist/orsovision/tools/index.d.ts +5 -0
- package/dist/orsovision/tools/index.js +4 -0
- package/dist/orsovision/tools/models.d.ts +101 -0
- package/dist/orsovision/tools/models.js +3 -0
- package/dist/raiz/client.d.ts +0 -4
- package/dist/raiz/client.js +0 -10
- package/dist/raiz/organization/client.d.ts +40 -40
- package/dist/raiz/organization/client.js +10 -10
- package/dist/raiz/organization/index.d.ts +1 -1
- package/dist/raiz/reports/client.d.ts +3 -3
- package/dist/raiz/reports/client.js +2 -2
- package/dist/raiz/reports/index.d.ts +1 -1
- package/dist/somos/appointments/client.d.ts +40 -0
- package/dist/somos/appointments/client.js +29 -0
- package/dist/somos/appointments/index.d.ts +5 -0
- package/dist/somos/appointments/index.js +4 -0
- package/dist/somos/appointments/models.d.ts +301 -0
- package/dist/somos/appointments/models.js +9 -0
- package/dist/somos/availability/client.d.ts +33 -0
- package/dist/somos/availability/client.js +19 -0
- package/dist/somos/availability/index.d.ts +5 -0
- package/dist/somos/availability/index.js +4 -0
- package/dist/somos/availability/models.d.ts +340 -0
- package/dist/somos/availability/models.js +15 -0
- package/dist/somos/client.d.ts +29 -0
- package/dist/somos/client.js +55 -0
- package/dist/somos/clinic/client.d.ts +33 -0
- package/dist/somos/clinic/client.js +18 -0
- package/dist/somos/clinic/index.d.ts +5 -0
- package/dist/somos/clinic/index.js +4 -0
- package/dist/somos/clinic/models.d.ts +89 -0
- package/dist/somos/clinic/models.js +3 -0
- package/dist/somos/contracts/client.d.ts +74 -0
- package/dist/somos/contracts/client.js +18 -0
- package/dist/somos/contracts/index.d.ts +5 -0
- package/dist/somos/contracts/index.js +4 -0
- package/dist/somos/contracts/models.d.ts +107 -0
- package/dist/somos/contracts/models.js +3 -0
- package/dist/somos/groups/client.d.ts +67 -0
- package/dist/{visoft → somos}/groups/client.js +2 -2
- package/dist/somos/groups/index.d.ts +5 -0
- package/dist/somos/groups/index.js +4 -0
- package/dist/somos/groups/models.d.ts +117 -0
- package/dist/somos/groups/models.js +3 -0
- package/dist/somos/index.d.ts +5 -0
- package/dist/somos/index.js +4 -0
- package/dist/somos/models.d.ts +227 -0
- package/dist/somos/models.js +3 -0
- package/dist/somos/patients/client.d.ts +51 -0
- package/dist/somos/patients/client.js +34 -0
- package/dist/somos/patients/index.d.ts +5 -0
- package/dist/somos/patients/index.js +4 -0
- package/dist/somos/patients/models.d.ts +327 -0
- package/dist/somos/patients/models.js +3 -0
- package/dist/somos/services/client.d.ts +117 -0
- package/dist/somos/services/client.js +26 -0
- package/dist/somos/services/index.d.ts +5 -0
- package/dist/somos/services/index.js +4 -0
- package/dist/somos/services/models.d.ts +272 -0
- package/dist/somos/services/models.js +3 -0
- package/dist/somos/specialtyRules/client.d.ts +44 -0
- package/dist/somos/specialtyRules/client.js +18 -0
- package/dist/somos/specialtyRules/index.d.ts +5 -0
- package/dist/somos/specialtyRules/index.js +4 -0
- package/dist/somos/specialtyRules/models.d.ts +54 -0
- package/dist/somos/specialtyRules/models.js +3 -0
- package/dist/{raiz/roles → somos/tools}/client.d.ts +14 -12
- package/dist/{visoft/agencies → somos/tools}/client.js +3 -3
- package/dist/somos/tools/index.d.ts +5 -0
- package/dist/somos/tools/index.js +4 -0
- package/dist/somos/tools/models.d.ts +101 -0
- package/dist/somos/tools/models.js +3 -0
- package/dist/visoft/appointments/client.d.ts +20 -194
- package/dist/visoft/appointments/client.js +5 -4
- package/dist/visoft/appointments/index.d.ts +1 -0
- package/dist/visoft/appointments/models.d.ts +391 -0
- package/dist/visoft/appointments/models.js +15 -0
- package/dist/visoft/availability/client.d.ts +10 -164
- package/dist/visoft/availability/client.js +9 -9
- package/dist/visoft/availability/index.d.ts +2 -2
- package/dist/visoft/availability/models.d.ts +154 -64
- package/dist/visoft/availability/models.js +10 -8
- package/dist/visoft/client.d.ts +6 -8
- package/dist/visoft/client.js +15 -20
- package/dist/visoft/clinic/client.d.ts +30 -0
- package/dist/visoft/clinic/client.js +18 -0
- package/dist/visoft/{specialtyRules → clinic}/index.d.ts +1 -0
- package/dist/visoft/clinic/index.js +4 -0
- package/dist/visoft/clinic/models.d.ts +13 -0
- package/dist/visoft/clinic/models.js +3 -0
- package/dist/visoft/clinics/client.d.ts +2 -31
- package/dist/visoft/clinics/client.js +1 -8
- package/dist/visoft/clinics/index.d.ts +2 -2
- package/dist/visoft/clinics/models.d.ts +13 -24
- package/dist/visoft/connections/client.d.ts +17 -74
- package/dist/visoft/connections/client.js +10 -11
- package/dist/visoft/connections/index.d.ts +1 -1
- package/dist/visoft/connections/models.d.ts +93 -1
- package/dist/visoft/connections/models.js +6 -0
- package/dist/visoft/contracts/client.d.ts +14 -49
- package/dist/visoft/contracts/client.js +2 -2
- package/dist/visoft/contracts/index.d.ts +1 -1
- package/dist/visoft/contracts/models.d.ts +43 -7
- package/dist/visoft/index.d.ts +1 -1
- package/dist/visoft/models.d.ts +311 -139
- package/dist/visoft/patients/client.d.ts +24 -264
- package/dist/visoft/patients/client.js +7 -6
- package/dist/visoft/patients/index.d.ts +1 -0
- package/dist/visoft/patients/models.d.ts +737 -0
- package/dist/visoft/patients/models.js +15 -0
- package/dist/visoft/professionals/client.d.ts +56 -0
- package/dist/visoft/professionals/client.js +18 -0
- package/dist/visoft/professionals/index.d.ts +5 -0
- package/dist/visoft/professionals/index.js +4 -0
- package/dist/visoft/professionals/models.d.ts +54 -0
- package/dist/visoft/professionals/models.js +3 -0
- package/dist/visoft/serviceCatalogs/client.d.ts +45 -0
- package/dist/visoft/serviceCatalogs/client.js +18 -0
- package/dist/visoft/serviceCatalogs/index.d.ts +5 -0
- package/dist/visoft/serviceCatalogs/index.js +4 -0
- package/dist/visoft/serviceCatalogs/models.d.ts +68 -0
- package/dist/visoft/serviceCatalogs/models.js +3 -0
- package/dist/visoft/services/client.d.ts +25 -61
- package/dist/visoft/services/client.js +2 -2
- package/dist/visoft/services/index.d.ts +1 -1
- package/dist/visoft/services/models.d.ts +52 -15
- package/package.json +9 -3
- package/dist/raiz/members/client.d.ts +0 -102
- package/dist/raiz/members/client.js +0 -35
- package/dist/raiz/members/index.d.ts +0 -5
- package/dist/raiz/members/models.d.ts +0 -48
- package/dist/raiz/members/models.js +0 -10
- package/dist/raiz/roles/index.d.ts +0 -5
- package/dist/raiz/roles/models.d.ts +0 -32
- package/dist/visoft/agencies/client.d.ts +0 -58
- package/dist/visoft/agencies/index.d.ts +0 -5
- package/dist/visoft/agencies/models.d.ts +0 -29
- package/dist/visoft/groups/client.d.ts +0 -69
- package/dist/visoft/groups/index.d.ts +0 -5
- package/dist/visoft/groups/models.d.ts +0 -39
- package/dist/visoft/specialtyRules/client.d.ts +0 -50
- package/dist/visoft/tools/index.d.ts +0 -5
- package/dist/visoft/tools/models.d.ts +0 -37
- /package/dist/{raiz/members → orsovision/agencies}/index.js +0 -0
- /package/dist/{raiz/roles → orsovision/agencies}/models.js +0 -0
- /package/dist/{raiz/roles → orsovision/appointments}/index.js +0 -0
- /package/dist/{visoft/agencies → orsovision/availability}/index.js +0 -0
- /package/dist/{visoft/groups → orsovision/clinic}/index.js +0 -0
- /package/dist/{visoft/agencies → orsovision/clinic}/models.js +0 -0
- /package/dist/{visoft/specialtyRules → orsovision/contracts}/index.js +0 -0
- /package/dist/{visoft/groups → orsovision/contracts}/models.js +0 -0
- /package/dist/{visoft/tools → orsovision}/models.js +0 -0
- /package/dist/{visoft/tools → orsovision/patients}/index.js +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { array, instant, object } from "../../_/index.js";
|
|
4
|
+
export const VisoftAppointmentCodec = object([
|
|
5
|
+
["startsAt", null, instant],
|
|
6
|
+
]);
|
|
7
|
+
export const VisoftPatientHistoryCodec = object([
|
|
8
|
+
["appointments", null, array(() => VisoftAppointmentCodec)],
|
|
9
|
+
]);
|
|
10
|
+
export const VisoftPatientLookupCodec = object([
|
|
11
|
+
["history", null, () => VisoftPatientHistoryCodec],
|
|
12
|
+
]);
|
|
13
|
+
export const VisoftPatientLookupResponseCodec = object([
|
|
14
|
+
["data", null, () => VisoftPatientLookupCodec],
|
|
15
|
+
]);
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { VisoftProfessionalPageResponse } 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 professionals of a service
|
|
12
|
+
*
|
|
13
|
+
* The professionals who attend one service at one of the clinic's cost
|
|
14
|
+
* centres, in ascending id order, as SIIPS's directory lists them. Cached for
|
|
15
|
+
* one hour; refresh reads SIIPS again.
|
|
16
|
+
*/
|
|
17
|
+
list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
18
|
+
}
|
|
19
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
20
|
+
export declare function bind(transport: Transport): Client;
|
|
21
|
+
export interface ListRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
24
|
+
*/
|
|
25
|
+
cursor?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
28
|
+
*/
|
|
29
|
+
direction?: "forward" | "backward";
|
|
30
|
+
/**
|
|
31
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
32
|
+
* another cursor.
|
|
33
|
+
*/
|
|
34
|
+
limit?: number;
|
|
35
|
+
/**
|
|
36
|
+
* The connection to run on. Optional when the organization has one Visoft
|
|
37
|
+
* connection; required when it has several. Another organization's connection
|
|
38
|
+
* is CONNECTION_NOT_FOUND.
|
|
39
|
+
*/
|
|
40
|
+
connectionId?: string;
|
|
41
|
+
/**
|
|
42
|
+
* One of the clinic's cost centres, as visoft.clinic.get lists them. Optional
|
|
43
|
+
* when the clinic has a default one.
|
|
44
|
+
*/
|
|
45
|
+
agencyCode?: string;
|
|
46
|
+
/**
|
|
47
|
+
* The service, by the code a contract's services answer ("CUPS-890208").
|
|
48
|
+
*/
|
|
49
|
+
serviceCode: string;
|
|
50
|
+
/**
|
|
51
|
+
* Read SIIPS again instead of the connection's cache (contracts 12 h,
|
|
52
|
+
* services 6 h, professionals 1 h, a patient 5 min).
|
|
53
|
+
*/
|
|
54
|
+
refresh?: boolean;
|
|
55
|
+
}
|
|
56
|
+
export type ListResponse = VisoftProfessionalPageResponse;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
export function createClient(options) {
|
|
5
|
+
return bind(new Transport(options));
|
|
6
|
+
}
|
|
7
|
+
export function bind(transport) {
|
|
8
|
+
return {
|
|
9
|
+
list: (request, options) => transport.send(ListOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const ListOperation = {
|
|
13
|
+
method: "GET",
|
|
14
|
+
route: "/v1/visoft/professionals",
|
|
15
|
+
query: { cursor: "cursor", direction: "direction", limit: "limit", connectionId: "connectionId", agencyCode: "agencyCode", serviceCode: "serviceCode", refresh: "refresh" },
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "../../_/index.js";
|
|
2
|
+
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
+
export type { VisoftListProfessionalsBadGatewayError, VisoftListProfessionalsBadGatewayFailure, VisoftListProfessionalsUnprocessableContentError, VisoftListProfessionalsUnprocessableContentFailure, VisoftProfessionalPage, VisoftProfessionalPageResponse, } from "./models.js";
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { CredentialsRejectedFailure, OutcomeUnknownFailure, PageInfo, ProviderUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { VisoftAgencyNotServedFailure, VisoftProfessional, VisoftResponseMetadata } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface VisoftListProfessionalsBadGatewayError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: VisoftListProfessionalsBadGatewayFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: VisoftResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type VisoftListProfessionalsBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure;
|
|
16
|
+
/**
|
|
17
|
+
* A failed answer.
|
|
18
|
+
*/
|
|
19
|
+
export interface VisoftListProfessionalsUnprocessableContentError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: VisoftListProfessionalsUnprocessableContentFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: VisoftResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type VisoftListProfessionalsUnprocessableContentFailure = CredentialsRejectedFailure | VisoftAgencyNotServedFailure;
|
|
29
|
+
export interface VisoftProfessionalPage {
|
|
30
|
+
/**
|
|
31
|
+
* Items admitted by this resource contract within the verified organization.
|
|
32
|
+
*/
|
|
33
|
+
data: VisoftProfessional[];
|
|
34
|
+
/**
|
|
35
|
+
* Discriminator for a resource list response.
|
|
36
|
+
*/
|
|
37
|
+
object: "list";
|
|
38
|
+
/**
|
|
39
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
40
|
+
*/
|
|
41
|
+
pageInfo: PageInfo;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* A successful answer.
|
|
45
|
+
*/
|
|
46
|
+
export interface VisoftProfessionalPageResponse {
|
|
47
|
+
data: VisoftProfessionalPage;
|
|
48
|
+
error: null;
|
|
49
|
+
/**
|
|
50
|
+
* What every answer carries besides its data or error.
|
|
51
|
+
*/
|
|
52
|
+
metadata: VisoftResponseMetadata;
|
|
53
|
+
success: true;
|
|
54
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { VisoftServiceCatalogResponse } 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 a contract's service catalog
|
|
12
|
+
*
|
|
13
|
+
* Every service of one of the clinic's contracts at a cost centre, in one
|
|
14
|
+
* answer, as SIIPS lists them: for a backend that searches the whole catalog
|
|
15
|
+
* itself. A contract may list hundreds of services; people and agents page
|
|
16
|
+
* with visoft.services.list instead. Cached for 6 hours; refresh reads SIIPS
|
|
17
|
+
* again.
|
|
18
|
+
*/
|
|
19
|
+
get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
|
|
20
|
+
}
|
|
21
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
22
|
+
export declare function bind(transport: Transport): Client;
|
|
23
|
+
export interface GetRequest {
|
|
24
|
+
/**
|
|
25
|
+
* The connection to run on. Optional when the organization has one Visoft
|
|
26
|
+
* connection; required when it has several. Another organization's connection
|
|
27
|
+
* is CONNECTION_NOT_FOUND.
|
|
28
|
+
*/
|
|
29
|
+
connectionId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* One of the clinic's cost centres, as visoft.clinic.get lists them. Optional
|
|
32
|
+
* when the clinic has a default one.
|
|
33
|
+
*/
|
|
34
|
+
agencyCode?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The contract, by the code visoft.contracts.list answers.
|
|
37
|
+
*/
|
|
38
|
+
contractCode: string;
|
|
39
|
+
/**
|
|
40
|
+
* Read SIIPS again instead of the connection's cache (contracts 12 h,
|
|
41
|
+
* services 6 h, professionals 1 h, a patient 5 min).
|
|
42
|
+
*/
|
|
43
|
+
refresh?: boolean;
|
|
44
|
+
}
|
|
45
|
+
export type GetResponse = VisoftServiceCatalogResponse;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
export function createClient(options) {
|
|
5
|
+
return bind(new Transport(options));
|
|
6
|
+
}
|
|
7
|
+
export function bind(transport) {
|
|
8
|
+
return {
|
|
9
|
+
get: (request, options) => transport.send(GetOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const GetOperation = {
|
|
13
|
+
method: "GET",
|
|
14
|
+
route: "/v1/visoft/service-catalogs",
|
|
15
|
+
query: { connectionId: "connectionId", agencyCode: "agencyCode", contractCode: "contractCode", refresh: "refresh" },
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "../../_/index.js";
|
|
2
|
+
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, GetRequest, GetResponse, } from "./client.js";
|
|
5
|
+
export type { VisoftGetServiceCatalogBadGatewayError, VisoftGetServiceCatalogBadGatewayFailure, VisoftGetServiceCatalogNotFoundError, VisoftGetServiceCatalogNotFoundFailure, VisoftGetServiceCatalogUnprocessableContentError, VisoftGetServiceCatalogUnprocessableContentFailure, VisoftServiceCatalog, VisoftServiceCatalogResponse, } from "./models.js";
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { ConnectionNotFoundFailure, CredentialsRejectedFailure, OutcomeUnknownFailure, ProviderUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { VisoftAgencyNotServedFailure, VisoftContractNotFoundFailure, VisoftContractService, VisoftResponseMetadata } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface VisoftGetServiceCatalogBadGatewayError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: VisoftGetServiceCatalogBadGatewayFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: VisoftResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type VisoftGetServiceCatalogBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure;
|
|
16
|
+
/**
|
|
17
|
+
* A failed answer.
|
|
18
|
+
*/
|
|
19
|
+
export interface VisoftGetServiceCatalogNotFoundError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: VisoftGetServiceCatalogNotFoundFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: VisoftResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type VisoftGetServiceCatalogNotFoundFailure = ConnectionNotFoundFailure | VisoftContractNotFoundFailure;
|
|
29
|
+
/**
|
|
30
|
+
* A failed answer.
|
|
31
|
+
*/
|
|
32
|
+
export interface VisoftGetServiceCatalogUnprocessableContentError {
|
|
33
|
+
data: null;
|
|
34
|
+
error: VisoftGetServiceCatalogUnprocessableContentFailure;
|
|
35
|
+
/**
|
|
36
|
+
* What every answer carries besides its data or error.
|
|
37
|
+
*/
|
|
38
|
+
metadata: VisoftResponseMetadata;
|
|
39
|
+
success: false;
|
|
40
|
+
}
|
|
41
|
+
export type VisoftGetServiceCatalogUnprocessableContentFailure = CredentialsRejectedFailure | VisoftAgencyNotServedFailure;
|
|
42
|
+
export interface VisoftServiceCatalog {
|
|
43
|
+
/**
|
|
44
|
+
* The cost centre the contract is listed under.
|
|
45
|
+
*/
|
|
46
|
+
agencyCode: string;
|
|
47
|
+
/**
|
|
48
|
+
* The contract.
|
|
49
|
+
*/
|
|
50
|
+
contractCode: string;
|
|
51
|
+
/**
|
|
52
|
+
* Every service of the contract, in SIIPS's order. Possibly empty: some
|
|
53
|
+
* contracts list none.
|
|
54
|
+
*/
|
|
55
|
+
services: VisoftContractService[];
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* A successful answer.
|
|
59
|
+
*/
|
|
60
|
+
export interface VisoftServiceCatalogResponse {
|
|
61
|
+
data: VisoftServiceCatalog;
|
|
62
|
+
error: null;
|
|
63
|
+
/**
|
|
64
|
+
* What every answer carries besides its data or error.
|
|
65
|
+
*/
|
|
66
|
+
metadata: VisoftResponseMetadata;
|
|
67
|
+
success: true;
|
|
68
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
3
|
-
import type { VisoftContractServicePage } from "./models.js";
|
|
2
|
+
import type { VisoftContractServicePageResponse } from "./models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -11,61 +10,17 @@ export interface Client {
|
|
|
11
10
|
/**
|
|
12
11
|
* List a contract's services
|
|
13
12
|
*
|
|
14
|
-
* The services
|
|
15
|
-
* order
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* next and data.details what it offers instead; it is never an outage. The
|
|
20
|
-
* connection's clinic sets this tool's rules, parameters and accepted values:
|
|
21
|
-
* visoft.tools.list answers them for the connection, and every call is
|
|
22
|
-
* checked against them.
|
|
13
|
+
* The services one of the clinic's contracts covers at a cost centre, in
|
|
14
|
+
* ascending code order; q keeps those whose code or name contains each of its
|
|
15
|
+
* words, ignoring case and accents. Cached for 6 hours; refresh reads SIIPS
|
|
16
|
+
* again. A service in the catalog is not a bookable slot:
|
|
17
|
+
* visoft.availability.lookup says when one is free.
|
|
23
18
|
*/
|
|
24
19
|
list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
25
20
|
}
|
|
26
21
|
export declare function createClient(options: ClientOptions): Client;
|
|
27
22
|
export declare function bind(transport: Transport): Client;
|
|
28
23
|
export interface ListRequest {
|
|
29
|
-
/**
|
|
30
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
31
|
-
* meaning, accepted values and whether it is required.
|
|
32
|
-
*/
|
|
33
|
-
code: string;
|
|
34
|
-
/**
|
|
35
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
36
|
-
* meaning, accepted values and whether it is required.
|
|
37
|
-
*/
|
|
38
|
-
agency?: string;
|
|
39
|
-
/**
|
|
40
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
41
|
-
* meaning, accepted values and whether it is required.
|
|
42
|
-
*/
|
|
43
|
-
search?: string;
|
|
44
|
-
/**
|
|
45
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
46
|
-
* meaning, accepted values and whether it is required.
|
|
47
|
-
*/
|
|
48
|
-
refresh?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
51
|
-
* meaning, accepted values and whether it is required.
|
|
52
|
-
*/
|
|
53
|
-
specialty?: string;
|
|
54
|
-
/**
|
|
55
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
56
|
-
* meaning, accepted values and whether it is required.
|
|
57
|
-
*/
|
|
58
|
-
intent?: string;
|
|
59
|
-
/**
|
|
60
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
61
|
-
* meaning, accepted values and whether it is required.
|
|
62
|
-
*/
|
|
63
|
-
modality?: string;
|
|
64
|
-
/**
|
|
65
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
66
|
-
* meaning, accepted values and whether it is required.
|
|
67
|
-
*/
|
|
68
|
-
authorizationService?: string;
|
|
69
24
|
/**
|
|
70
25
|
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
71
26
|
*/
|
|
@@ -82,18 +37,27 @@ export interface ListRequest {
|
|
|
82
37
|
/**
|
|
83
38
|
* The connection to run on. Optional when the organization has one Visoft
|
|
84
39
|
* connection; required when it has several. Another organization's connection
|
|
85
|
-
* is
|
|
40
|
+
* is CONNECTION_NOT_FOUND.
|
|
86
41
|
*/
|
|
87
42
|
connectionId?: string;
|
|
88
43
|
/**
|
|
89
|
-
*
|
|
90
|
-
* default
|
|
44
|
+
* One of the clinic's cost centres, as visoft.clinic.get lists them. Optional
|
|
45
|
+
* when the clinic has a default one.
|
|
91
46
|
*/
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
47
|
+
agencyCode?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The contract, by the code visoft.contracts.list answers.
|
|
50
|
+
*/
|
|
51
|
+
contractCode: string;
|
|
52
|
+
/**
|
|
53
|
+
* Words the service's code or name must contain, each of them, ignoring case
|
|
54
|
+
* and accents ("logoaudiometria", "890208").
|
|
55
|
+
*/
|
|
56
|
+
q?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Read SIIPS again instead of the connection's cache (contracts 12 h,
|
|
59
|
+
* services 6 h, professionals 1 h, a patient 5 min).
|
|
60
|
+
*/
|
|
61
|
+
refresh?: boolean;
|
|
99
62
|
}
|
|
63
|
+
export type ListResponse = VisoftContractServicePageResponse;
|
|
@@ -12,7 +12,7 @@ export function bind(transport) {
|
|
|
12
12
|
const ListOperation = {
|
|
13
13
|
method: "GET",
|
|
14
14
|
route: "/v1/visoft/services",
|
|
15
|
-
query: {
|
|
15
|
+
query: { cursor: "cursor", direction: "direction", limit: "limit", connectionId: "connectionId", agencyCode: "agencyCode", contractCode: "contractCode", q: "q", refresh: "refresh" },
|
|
16
16
|
response: null,
|
|
17
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
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
18
|
};
|
|
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
|
|
|
2
2
|
export type { RequestOptions } from "../../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
4
|
export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
-
export type {
|
|
5
|
+
export type { VisoftContractServicePage, VisoftContractServicePageResponse, VisoftListServicesBadGatewayError, VisoftListServicesNotFoundError, VisoftListServicesNotFoundFailure, VisoftListServicesUnprocessableContentError, VisoftListServicesUnprocessableContentFailure, } from "./models.js";
|
|
@@ -1,18 +1,5 @@
|
|
|
1
|
-
import type { PageInfo } from "../../models.js";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The service, as visoft.availability.list takes it.
|
|
5
|
-
*/
|
|
6
|
-
code: string;
|
|
7
|
-
/**
|
|
8
|
-
* The service's name in the clinic's catalog.
|
|
9
|
-
*/
|
|
10
|
-
name: string;
|
|
11
|
-
/**
|
|
12
|
-
* The contract's price, when the catalog states one.
|
|
13
|
-
*/
|
|
14
|
-
price: number | null;
|
|
15
|
-
}
|
|
1
|
+
import type { ConnectionNotFoundFailure, CredentialsRejectedFailure, ListServicesBadGatewayFailure, PageInfo } from "../../models.js";
|
|
2
|
+
import type { VisoftAgencyNotServedFailure, VisoftContractNotFoundFailure, VisoftContractService, VisoftResponseMetadata } from "../models.js";
|
|
16
3
|
export interface VisoftContractServicePage {
|
|
17
4
|
/**
|
|
18
5
|
* Items admitted by this resource contract within the verified organization.
|
|
@@ -27,3 +14,53 @@ export interface VisoftContractServicePage {
|
|
|
27
14
|
*/
|
|
28
15
|
pageInfo: PageInfo;
|
|
29
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* A successful answer.
|
|
19
|
+
*/
|
|
20
|
+
export interface VisoftContractServicePageResponse {
|
|
21
|
+
data: VisoftContractServicePage;
|
|
22
|
+
error: null;
|
|
23
|
+
/**
|
|
24
|
+
* What every answer carries besides its data or error.
|
|
25
|
+
*/
|
|
26
|
+
metadata: VisoftResponseMetadata;
|
|
27
|
+
success: true;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* A failed answer.
|
|
31
|
+
*/
|
|
32
|
+
export interface VisoftListServicesBadGatewayError {
|
|
33
|
+
data: null;
|
|
34
|
+
error: ListServicesBadGatewayFailure;
|
|
35
|
+
/**
|
|
36
|
+
* What every answer carries besides its data or error.
|
|
37
|
+
*/
|
|
38
|
+
metadata: VisoftResponseMetadata;
|
|
39
|
+
success: false;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* A failed answer.
|
|
43
|
+
*/
|
|
44
|
+
export interface VisoftListServicesNotFoundError {
|
|
45
|
+
data: null;
|
|
46
|
+
error: VisoftListServicesNotFoundFailure;
|
|
47
|
+
/**
|
|
48
|
+
* What every answer carries besides its data or error.
|
|
49
|
+
*/
|
|
50
|
+
metadata: VisoftResponseMetadata;
|
|
51
|
+
success: false;
|
|
52
|
+
}
|
|
53
|
+
export type VisoftListServicesNotFoundFailure = ConnectionNotFoundFailure | VisoftContractNotFoundFailure;
|
|
54
|
+
/**
|
|
55
|
+
* A failed answer.
|
|
56
|
+
*/
|
|
57
|
+
export interface VisoftListServicesUnprocessableContentError {
|
|
58
|
+
data: null;
|
|
59
|
+
error: VisoftListServicesUnprocessableContentFailure;
|
|
60
|
+
/**
|
|
61
|
+
* What every answer carries besides its data or error.
|
|
62
|
+
*/
|
|
63
|
+
metadata: VisoftResponseMetadata;
|
|
64
|
+
success: false;
|
|
65
|
+
}
|
|
66
|
+
export type VisoftListServicesUnprocessableContentFailure = CredentialsRejectedFailure | VisoftAgencyNotServedFailure;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbol-ai/sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.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",
|
|
@@ -29,6 +29,12 @@
|
|
|
29
29
|
".": {
|
|
30
30
|
"types": "./dist/index.d.ts",
|
|
31
31
|
"import": "./dist/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./_": null,
|
|
34
|
+
"./_/*": null,
|
|
35
|
+
"./*": {
|
|
36
|
+
"types": "./dist/*/index.d.ts",
|
|
37
|
+
"import": "./dist/*/index.js"
|
|
32
38
|
}
|
|
33
39
|
},
|
|
34
40
|
"publishConfig": {
|
|
@@ -50,8 +56,8 @@
|
|
|
50
56
|
"packageManager": "bun@1.4.3",
|
|
51
57
|
"arbol": {
|
|
52
58
|
"openapi": {
|
|
53
|
-
"release": "1.
|
|
54
|
-
"sha256": "
|
|
59
|
+
"release": "1.20261031.152613",
|
|
60
|
+
"sha256": "31b562a46a1814fea08ae43b56c1930f4e37e30db6bdc413edde3cd4cc1ba9cf"
|
|
55
61
|
}
|
|
56
62
|
}
|
|
57
63
|
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type { ResponseMetadata } from "../../models.js";
|
|
3
|
-
import type { RaizEmailAddress } from "../models.js";
|
|
4
|
-
import { type RaizMember, type RaizMemberPage } from "./models.js";
|
|
5
|
-
export interface ClientOptions extends BaseClientOptions {
|
|
6
|
-
/**
|
|
7
|
-
* The URL the paths of the API are relative to.
|
|
8
|
-
*/
|
|
9
|
-
baseUrl: string;
|
|
10
|
-
}
|
|
11
|
-
export interface Client {
|
|
12
|
-
/**
|
|
13
|
-
* Invite a team member
|
|
14
|
-
*
|
|
15
|
-
* Give a person access with Raíz roles (names from `list_roles`). Someone
|
|
16
|
-
* already in the organization gets the roles at once (`active`); anyone else
|
|
17
|
-
* receives an email invitation (`invited`) that opens the Dashboard. Fails
|
|
18
|
-
* with MEMBER_EXISTS when the email already has access or a pending
|
|
19
|
-
* invitation, and MEMBER_ROLE_INVALID for a role you cannot give.
|
|
20
|
-
*/
|
|
21
|
-
create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* List team members
|
|
24
|
-
*
|
|
25
|
-
* List the people with access to Raíz in this organization, then pending
|
|
26
|
-
* invitations (`status: invited`). Each shows their roles and whether you may
|
|
27
|
-
* change them (`editable`); roles from other Arbol products are visible but
|
|
28
|
-
* protected. Filter with `status`.
|
|
29
|
-
*/
|
|
30
|
-
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
31
|
-
/**
|
|
32
|
-
* Change a member's roles
|
|
33
|
-
*
|
|
34
|
-
* Replace a member's Raíz roles with the complete set given: roles not listed
|
|
35
|
-
* are removed, other products' roles stay. Fails with MEMBER_SELF_CHANGE for
|
|
36
|
-
* your own access, MEMBER_PROTECTED for owners, Arbol staff or someone whose
|
|
37
|
-
* roles you could not give, and INVALID_STATE for an invitation (revoke it
|
|
38
|
-
* and invite again).
|
|
39
|
-
*/
|
|
40
|
-
update(request: UpdateRequest, options?: RequestOptions): Promise<UpdateResponse>;
|
|
41
|
-
}
|
|
42
|
-
export declare function createClient(options: ClientOptions): Client;
|
|
43
|
-
export declare function bind(transport: Transport): Client;
|
|
44
|
-
export interface CreateRequest {
|
|
45
|
-
/**
|
|
46
|
-
* Email address.
|
|
47
|
-
*/
|
|
48
|
-
email: RaizEmailAddress;
|
|
49
|
-
/**
|
|
50
|
-
* The Raíz roles to give, from `listRoles` (`assignable`).
|
|
51
|
-
*/
|
|
52
|
-
roles: string[];
|
|
53
|
-
}
|
|
54
|
-
export interface CreateResponse {
|
|
55
|
-
data: RaizMember;
|
|
56
|
-
error: null;
|
|
57
|
-
metadata: ResponseMetadata;
|
|
58
|
-
success: true;
|
|
59
|
-
}
|
|
60
|
-
export interface ListRequest {
|
|
61
|
-
/**
|
|
62
|
-
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
63
|
-
*/
|
|
64
|
-
cursor?: string;
|
|
65
|
-
/**
|
|
66
|
-
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
67
|
-
*/
|
|
68
|
-
direction?: "forward" | "backward";
|
|
69
|
-
/**
|
|
70
|
-
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
71
|
-
* another cursor.
|
|
72
|
-
*/
|
|
73
|
-
limit?: number;
|
|
74
|
-
/**
|
|
75
|
-
* Only members (`active`) or only invitations (`invited`).
|
|
76
|
-
*/
|
|
77
|
-
status?: "active" | "invited";
|
|
78
|
-
}
|
|
79
|
-
export interface ListResponse {
|
|
80
|
-
data: RaizMemberPage;
|
|
81
|
-
error: null;
|
|
82
|
-
metadata: ResponseMetadata;
|
|
83
|
-
success: true;
|
|
84
|
-
}
|
|
85
|
-
export interface UpdateRequest {
|
|
86
|
-
/**
|
|
87
|
-
* A member's id, or a pending invitation's id (`uinv_…`). Opaque: pass it
|
|
88
|
-
* back as given.
|
|
89
|
-
*/
|
|
90
|
-
memberId: string;
|
|
91
|
-
/**
|
|
92
|
-
* The complete new set of Raíz roles: roles not listed are revoked. Other
|
|
93
|
-
* products' roles are kept. To revoke every Raíz role, delete the member.
|
|
94
|
-
*/
|
|
95
|
-
roles: string[];
|
|
96
|
-
}
|
|
97
|
-
export interface UpdateResponse {
|
|
98
|
-
data: RaizMember;
|
|
99
|
-
error: null;
|
|
100
|
-
metadata: ResponseMetadata;
|
|
101
|
-
success: true;
|
|
102
|
-
}
|