@arbol-ai/sdk 5.52.0 → 5.53.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/oficlinic/client.d.ts +2 -0
- package/dist/oficlinic/client.js +5 -0
- package/dist/oficlinic/salaryRanges/client.d.ts +54 -0
- package/dist/oficlinic/salaryRanges/client.js +18 -0
- package/dist/oficlinic/salaryRanges/index.d.ts +5 -0
- package/dist/oficlinic/salaryRanges/index.js +4 -0
- package/dist/oficlinic/salaryRanges/models.d.ts +139 -0
- package/dist/oficlinic/salaryRanges/models.js +3 -0
- package/package.json +3 -3
|
@@ -17,6 +17,7 @@ import { type Client as ProfessionalsClient } from "./professionals/client.js";
|
|
|
17
17
|
import { type Client as ProgramsClient } from "./programs/client.js";
|
|
18
18
|
import { type Client as RegimesClient } from "./regimes/client.js";
|
|
19
19
|
import { type Client as RelationshipsClient } from "./relationships/client.js";
|
|
20
|
+
import { type Client as SalaryRangesClient } from "./salaryRanges/client.js";
|
|
20
21
|
import { type Client as ServiceCatalogClient } from "./serviceCatalog/client.js";
|
|
21
22
|
import { type Client as ServicesClient } from "./services/client.js";
|
|
22
23
|
export interface ClientOptions extends BaseClientOptions {
|
|
@@ -44,6 +45,7 @@ export interface Client {
|
|
|
44
45
|
readonly programs: ProgramsClient;
|
|
45
46
|
readonly regimes: RegimesClient;
|
|
46
47
|
readonly relationships: RelationshipsClient;
|
|
48
|
+
readonly salaryRanges: SalaryRangesClient;
|
|
47
49
|
readonly serviceCatalog: ServiceCatalogClient;
|
|
48
50
|
readonly services: ServicesClient;
|
|
49
51
|
}
|
package/dist/oficlinic/client.js
CHANGED
|
@@ -19,6 +19,7 @@ import { bind as bindProfessionals, } from "./professionals/client.js";
|
|
|
19
19
|
import { bind as bindPrograms, } from "./programs/client.js";
|
|
20
20
|
import { bind as bindRegimes, } from "./regimes/client.js";
|
|
21
21
|
import { bind as bindRelationships, } from "./relationships/client.js";
|
|
22
|
+
import { bind as bindSalaryRanges, } from "./salaryRanges/client.js";
|
|
22
23
|
import { bind as bindServiceCatalog, } from "./serviceCatalog/client.js";
|
|
23
24
|
import { bind as bindServices, } from "./services/client.js";
|
|
24
25
|
export function createClient(options) {
|
|
@@ -43,6 +44,7 @@ export function bind(transport) {
|
|
|
43
44
|
let programsClient;
|
|
44
45
|
let regimesClient;
|
|
45
46
|
let relationshipsClient;
|
|
47
|
+
let salaryRangesClient;
|
|
46
48
|
let serviceCatalogClient;
|
|
47
49
|
let servicesClient;
|
|
48
50
|
return {
|
|
@@ -100,6 +102,9 @@ export function bind(transport) {
|
|
|
100
102
|
get relationships() {
|
|
101
103
|
return (relationshipsClient ??= bindRelationships(transport));
|
|
102
104
|
},
|
|
105
|
+
get salaryRanges() {
|
|
106
|
+
return (salaryRangesClient ??= bindSalaryRanges(transport));
|
|
107
|
+
},
|
|
103
108
|
get serviceCatalog() {
|
|
104
109
|
return (serviceCatalogClient ??= bindServiceCatalog(transport));
|
|
105
110
|
},
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { OficlinicListSalaryRangesResultResponse } 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 salary ranges
|
|
12
|
+
*
|
|
13
|
+
* List the salary ranges that the e-Oficlinic registration form offers for
|
|
14
|
+
* one listed regime. The provider's code can identify a clinic-confirmed
|
|
15
|
+
* classification for scheduling. The catalog amount does not establish the
|
|
16
|
+
* patient's classification, service tariff or amount due. Pass
|
|
17
|
+
* pageInfo.nextCursor with the same regimeId for more. agentMode true answers
|
|
18
|
+
* concise Spanish text instead.
|
|
19
|
+
*/
|
|
20
|
+
list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
21
|
+
}
|
|
22
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
23
|
+
export declare function bind(transport: Transport): Client;
|
|
24
|
+
export interface ListRequest {
|
|
25
|
+
/**
|
|
26
|
+
* An Account connection id of the caller's organization.
|
|
27
|
+
*/
|
|
28
|
+
connectionId?: string;
|
|
29
|
+
/**
|
|
30
|
+
* A regime id from list_regimes.
|
|
31
|
+
*/
|
|
32
|
+
regimeId: string;
|
|
33
|
+
/**
|
|
34
|
+
* An opaque cursor from a previous page's pageInfo.nextCursor or
|
|
35
|
+
* pageInfo.previousCursor.
|
|
36
|
+
*/
|
|
37
|
+
cursor?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
40
|
+
*/
|
|
41
|
+
direction?: "forward" | "backward";
|
|
42
|
+
/**
|
|
43
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
44
|
+
* another cursor.
|
|
45
|
+
*/
|
|
46
|
+
limit?: number;
|
|
47
|
+
/**
|
|
48
|
+
* true answers { text }: concise Spanish facts for a messaging or voice
|
|
49
|
+
* agent, with the short ids and the cursor needed to continue. false, the
|
|
50
|
+
* default, answers the structured object.
|
|
51
|
+
*/
|
|
52
|
+
agentMode?: boolean;
|
|
53
|
+
}
|
|
54
|
+
export type ListResponse = OficlinicListSalaryRangesResultResponse;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
export function createClient(options) {
|
|
5
|
+
return bind(new Transport(options));
|
|
6
|
+
}
|
|
7
|
+
export function bind(transport) {
|
|
8
|
+
return {
|
|
9
|
+
list: (request, options) => transport.send(ListOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const ListOperation = {
|
|
13
|
+
method: "GET",
|
|
14
|
+
route: "/v1/oficlinic/salary-ranges",
|
|
15
|
+
query: { connectionId: "connectionId", regimeId: "regimeId", cursor: "cursor", direction: "direction", limit: "limit", agentMode: "agentMode" },
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "../../_/index.js";
|
|
2
|
+
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
+
export type { OficlinicListSalaryRangesBadGatewayError, OficlinicListSalaryRangesBadGatewayFailure, OficlinicListSalaryRangesBadRequestError, OficlinicListSalaryRangesBadRequestFailure, OficlinicListSalaryRangesConflictError, OficlinicListSalaryRangesConflictFailure, OficlinicListSalaryRangesNotFoundError, OficlinicListSalaryRangesNotFoundFailure, OficlinicListSalaryRangesResult, OficlinicListSalaryRangesResultResponse, OficlinicListSalaryRangesServiceUnavailableError, OficlinicListSalaryRangesServiceUnavailableFailure, OficlinicListSalaryRangesTooManyRequestsError, OficlinicListSalaryRangesTooManyRequestsFailure, OficlinicListSalaryRangesUnprocessableContentError, OficlinicListSalaryRangesUnprocessableContentFailure, OficlinicSalaryRange, OficlinicSalaryRangePage, } from "./models.js";
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import type { CredentialsRejectedFailure, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { OficlinicAgentText, OficlinicBookingOptionNotFoundFailure, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionNotFoundFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface OficlinicListSalaryRangesBadGatewayError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: OficlinicListSalaryRangesBadGatewayFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type OficlinicListSalaryRangesBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure;
|
|
16
|
+
/**
|
|
17
|
+
* A failed answer.
|
|
18
|
+
*/
|
|
19
|
+
export interface OficlinicListSalaryRangesBadRequestError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: OficlinicListSalaryRangesBadRequestFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type OficlinicListSalaryRangesBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
|
|
29
|
+
/**
|
|
30
|
+
* A failed answer.
|
|
31
|
+
*/
|
|
32
|
+
export interface OficlinicListSalaryRangesConflictError {
|
|
33
|
+
data: null;
|
|
34
|
+
error: OficlinicListSalaryRangesConflictFailure;
|
|
35
|
+
/**
|
|
36
|
+
* What every answer carries besides its data or error.
|
|
37
|
+
*/
|
|
38
|
+
metadata: ResponseMetadata;
|
|
39
|
+
success: false;
|
|
40
|
+
}
|
|
41
|
+
export type OficlinicListSalaryRangesConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
|
|
42
|
+
/**
|
|
43
|
+
* A failed answer.
|
|
44
|
+
*/
|
|
45
|
+
export interface OficlinicListSalaryRangesNotFoundError {
|
|
46
|
+
data: null;
|
|
47
|
+
error: OficlinicListSalaryRangesNotFoundFailure;
|
|
48
|
+
/**
|
|
49
|
+
* What every answer carries besides its data or error.
|
|
50
|
+
*/
|
|
51
|
+
metadata: ResponseMetadata;
|
|
52
|
+
success: false;
|
|
53
|
+
}
|
|
54
|
+
export type OficlinicListSalaryRangesNotFoundFailure = OficlinicConnectionNotFoundFailure | OficlinicBookingOptionNotFoundFailure;
|
|
55
|
+
export type OficlinicListSalaryRangesResult = OficlinicSalaryRangePage | OficlinicAgentText;
|
|
56
|
+
/**
|
|
57
|
+
* A successful answer.
|
|
58
|
+
*/
|
|
59
|
+
export interface OficlinicListSalaryRangesResultResponse {
|
|
60
|
+
data: OficlinicListSalaryRangesResult;
|
|
61
|
+
error: null;
|
|
62
|
+
/**
|
|
63
|
+
* What every answer carries besides its data or error.
|
|
64
|
+
*/
|
|
65
|
+
metadata: ResponseMetadata;
|
|
66
|
+
success: true;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* A failed answer.
|
|
70
|
+
*/
|
|
71
|
+
export interface OficlinicListSalaryRangesServiceUnavailableError {
|
|
72
|
+
data: null;
|
|
73
|
+
error: OficlinicListSalaryRangesServiceUnavailableFailure;
|
|
74
|
+
/**
|
|
75
|
+
* What every answer carries besides its data or error.
|
|
76
|
+
*/
|
|
77
|
+
metadata: ResponseMetadata;
|
|
78
|
+
success: false;
|
|
79
|
+
}
|
|
80
|
+
export type OficlinicListSalaryRangesServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
|
|
81
|
+
/**
|
|
82
|
+
* A failed answer.
|
|
83
|
+
*/
|
|
84
|
+
export interface OficlinicListSalaryRangesTooManyRequestsError {
|
|
85
|
+
data: null;
|
|
86
|
+
error: OficlinicListSalaryRangesTooManyRequestsFailure;
|
|
87
|
+
/**
|
|
88
|
+
* What every answer carries besides its data or error.
|
|
89
|
+
*/
|
|
90
|
+
metadata: ResponseMetadata;
|
|
91
|
+
success: false;
|
|
92
|
+
}
|
|
93
|
+
export type OficlinicListSalaryRangesTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
|
|
94
|
+
/**
|
|
95
|
+
* A failed answer.
|
|
96
|
+
*/
|
|
97
|
+
export interface OficlinicListSalaryRangesUnprocessableContentError {
|
|
98
|
+
data: null;
|
|
99
|
+
error: OficlinicListSalaryRangesUnprocessableContentFailure;
|
|
100
|
+
/**
|
|
101
|
+
* What every answer carries besides its data or error.
|
|
102
|
+
*/
|
|
103
|
+
metadata: ResponseMetadata;
|
|
104
|
+
success: false;
|
|
105
|
+
}
|
|
106
|
+
export type OficlinicListSalaryRangesUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
|
|
107
|
+
export interface OficlinicSalaryRange {
|
|
108
|
+
/**
|
|
109
|
+
* The provider's salary range code (Codigo).
|
|
110
|
+
*/
|
|
111
|
+
id: string;
|
|
112
|
+
/**
|
|
113
|
+
* The range's name (Descripcion).
|
|
114
|
+
*/
|
|
115
|
+
name: string;
|
|
116
|
+
/**
|
|
117
|
+
* The regime the provider listed this range for.
|
|
118
|
+
*/
|
|
119
|
+
regimeId: string;
|
|
120
|
+
/**
|
|
121
|
+
* The catalog's VlrCuotaModeradora, not the amount due for a specific patient
|
|
122
|
+
* or service.
|
|
123
|
+
*/
|
|
124
|
+
sourceModeratorFee: string | null;
|
|
125
|
+
}
|
|
126
|
+
export interface OficlinicSalaryRangePage {
|
|
127
|
+
/**
|
|
128
|
+
* Items admitted by this resource contract within the verified organization.
|
|
129
|
+
*/
|
|
130
|
+
data: OficlinicSalaryRange[];
|
|
131
|
+
/**
|
|
132
|
+
* Discriminator for a resource list response.
|
|
133
|
+
*/
|
|
134
|
+
object: "list";
|
|
135
|
+
/**
|
|
136
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
137
|
+
*/
|
|
138
|
+
pageInfo: PageInfo;
|
|
139
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbol-ai/sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.53.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.20261111.
|
|
62
|
-
"sha256": "
|
|
61
|
+
"release": "1.20261111.193208",
|
|
62
|
+
"sha256": "f24022d0de10fcdd240fa99570ed7c239769cc5231f2977de31da1593d1bab3f"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|