@arbol-ai/sdk 5.26.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.
Files changed (134) hide show
  1. package/README.md +4 -4
  2. package/dist/client.d.ts +0 -4
  3. package/dist/client.js +0 -10
  4. package/dist/index.d.ts +1 -1
  5. package/dist/models.d.ts +0 -282
  6. package/dist/models.js +1 -5
  7. package/dist/visoft/appointments/index.d.ts +1 -1
  8. package/dist/visoft/appointments/models.d.ts +32 -6
  9. package/dist/visoft/availability/models.d.ts +4 -4
  10. package/dist/visoft/contracts/index.d.ts +1 -1
  11. package/dist/visoft/contracts/models.d.ts +16 -3
  12. package/dist/visoft/index.d.ts +1 -1
  13. package/dist/visoft/models.d.ts +67 -2
  14. package/dist/visoft/patients/index.d.ts +1 -1
  15. package/dist/visoft/patients/models.d.ts +35 -6
  16. package/dist/visoft/professionals/models.d.ts +4 -4
  17. package/dist/visoft/serviceCatalogs/models.d.ts +4 -4
  18. package/dist/visoft/services/index.d.ts +1 -1
  19. package/dist/visoft/services/models.d.ts +16 -3
  20. package/package.json +3 -3
  21. package/dist/orsovision/agencies/client.d.ts +0 -51
  22. package/dist/orsovision/agencies/client.js +0 -18
  23. package/dist/orsovision/agencies/index.d.ts +0 -5
  24. package/dist/orsovision/agencies/index.js +0 -4
  25. package/dist/orsovision/agencies/models.d.ts +0 -107
  26. package/dist/orsovision/agencies/models.js +0 -3
  27. package/dist/orsovision/appointments/client.d.ts +0 -39
  28. package/dist/orsovision/appointments/client.js +0 -29
  29. package/dist/orsovision/appointments/index.d.ts +0 -5
  30. package/dist/orsovision/appointments/index.js +0 -4
  31. package/dist/orsovision/appointments/models.d.ts +0 -182
  32. package/dist/orsovision/appointments/models.js +0 -9
  33. package/dist/orsovision/availability/client.d.ts +0 -32
  34. package/dist/orsovision/availability/client.js +0 -19
  35. package/dist/orsovision/availability/index.d.ts +0 -5
  36. package/dist/orsovision/availability/index.js +0 -4
  37. package/dist/orsovision/availability/models.d.ts +0 -228
  38. package/dist/orsovision/availability/models.js +0 -15
  39. package/dist/orsovision/client.d.ts +0 -27
  40. package/dist/orsovision/client.js +0 -50
  41. package/dist/orsovision/clinic/client.d.ts +0 -34
  42. package/dist/orsovision/clinic/client.js +0 -18
  43. package/dist/orsovision/clinic/index.d.ts +0 -5
  44. package/dist/orsovision/clinic/index.js +0 -4
  45. package/dist/orsovision/clinic/models.d.ts +0 -90
  46. package/dist/orsovision/clinic/models.js +0 -3
  47. package/dist/orsovision/contracts/client.d.ts +0 -69
  48. package/dist/orsovision/contracts/client.js +0 -18
  49. package/dist/orsovision/contracts/index.d.ts +0 -5
  50. package/dist/orsovision/contracts/index.js +0 -4
  51. package/dist/orsovision/contracts/models.d.ts +0 -84
  52. package/dist/orsovision/contracts/models.js +0 -3
  53. package/dist/orsovision/index.d.ts +0 -5
  54. package/dist/orsovision/index.js +0 -4
  55. package/dist/orsovision/models.d.ts +0 -66
  56. package/dist/orsovision/models.js +0 -3
  57. package/dist/orsovision/patients/client.d.ts +0 -52
  58. package/dist/orsovision/patients/client.js +0 -34
  59. package/dist/orsovision/patients/index.d.ts +0 -5
  60. package/dist/orsovision/patients/index.js +0 -4
  61. package/dist/orsovision/patients/models.d.ts +0 -287
  62. package/dist/orsovision/patients/models.js +0 -3
  63. package/dist/orsovision/services/client.d.ts +0 -74
  64. package/dist/orsovision/services/client.js +0 -18
  65. package/dist/orsovision/services/index.d.ts +0 -5
  66. package/dist/orsovision/services/index.js +0 -4
  67. package/dist/orsovision/services/models.d.ts +0 -81
  68. package/dist/orsovision/services/models.js +0 -3
  69. package/dist/orsovision/tools/client.d.ts +0 -44
  70. package/dist/orsovision/tools/client.js +0 -18
  71. package/dist/orsovision/tools/index.d.ts +0 -5
  72. package/dist/orsovision/tools/index.js +0 -4
  73. package/dist/orsovision/tools/models.d.ts +0 -102
  74. package/dist/orsovision/tools/models.js +0 -3
  75. package/dist/somos/appointments/client.d.ts +0 -40
  76. package/dist/somos/appointments/client.js +0 -29
  77. package/dist/somos/appointments/index.d.ts +0 -5
  78. package/dist/somos/appointments/index.js +0 -4
  79. package/dist/somos/appointments/models.d.ts +0 -303
  80. package/dist/somos/appointments/models.js +0 -9
  81. package/dist/somos/availability/client.d.ts +0 -33
  82. package/dist/somos/availability/client.js +0 -19
  83. package/dist/somos/availability/index.d.ts +0 -5
  84. package/dist/somos/availability/index.js +0 -4
  85. package/dist/somos/availability/models.d.ts +0 -338
  86. package/dist/somos/availability/models.js +0 -15
  87. package/dist/somos/client.d.ts +0 -29
  88. package/dist/somos/client.js +0 -55
  89. package/dist/somos/clinic/client.d.ts +0 -33
  90. package/dist/somos/clinic/client.js +0 -18
  91. package/dist/somos/clinic/index.d.ts +0 -5
  92. package/dist/somos/clinic/index.js +0 -4
  93. package/dist/somos/clinic/models.d.ts +0 -90
  94. package/dist/somos/clinic/models.js +0 -3
  95. package/dist/somos/contracts/client.d.ts +0 -74
  96. package/dist/somos/contracts/client.js +0 -18
  97. package/dist/somos/contracts/index.d.ts +0 -5
  98. package/dist/somos/contracts/index.js +0 -4
  99. package/dist/somos/contracts/models.d.ts +0 -96
  100. package/dist/somos/contracts/models.js +0 -3
  101. package/dist/somos/groups/client.d.ts +0 -67
  102. package/dist/somos/groups/client.js +0 -18
  103. package/dist/somos/groups/index.d.ts +0 -5
  104. package/dist/somos/groups/index.js +0 -4
  105. package/dist/somos/groups/models.d.ts +0 -117
  106. package/dist/somos/groups/models.js +0 -3
  107. package/dist/somos/index.d.ts +0 -5
  108. package/dist/somos/index.js +0 -4
  109. package/dist/somos/models.d.ts +0 -88
  110. package/dist/somos/models.js +0 -3
  111. package/dist/somos/patients/client.d.ts +0 -51
  112. package/dist/somos/patients/client.js +0 -34
  113. package/dist/somos/patients/index.d.ts +0 -5
  114. package/dist/somos/patients/index.js +0 -4
  115. package/dist/somos/patients/models.d.ts +0 -330
  116. package/dist/somos/patients/models.js +0 -3
  117. package/dist/somos/services/client.d.ts +0 -116
  118. package/dist/somos/services/client.js +0 -26
  119. package/dist/somos/services/index.d.ts +0 -5
  120. package/dist/somos/services/index.js +0 -4
  121. package/dist/somos/services/models.d.ts +0 -261
  122. package/dist/somos/services/models.js +0 -3
  123. package/dist/somos/specialtyRules/client.d.ts +0 -44
  124. package/dist/somos/specialtyRules/client.js +0 -18
  125. package/dist/somos/specialtyRules/index.d.ts +0 -5
  126. package/dist/somos/specialtyRules/index.js +0 -4
  127. package/dist/somos/specialtyRules/models.d.ts +0 -54
  128. package/dist/somos/specialtyRules/models.js +0 -3
  129. package/dist/somos/tools/client.d.ts +0 -44
  130. package/dist/somos/tools/client.js +0 -18
  131. package/dist/somos/tools/index.d.ts +0 -5
  132. package/dist/somos/tools/index.js +0 -4
  133. package/dist/somos/tools/models.d.ts +0 -102
  134. package/dist/somos/tools/models.js +0 -3
@@ -1,182 +0,0 @@
1
- import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
- import type { OrsovisionClinicNotServedFailure, OrsovisionOrsovisionNotConfiguredFailure, OrsovisionToolNotAvailableFailure } from "../models.js";
3
- export interface OrsovisionCancelAppointmentBody {
4
- /**
5
- * El cancelToken de la cita a cancelar, copiado literal de
6
- * upcomingAppointments[] en un patient_context fresco. Nunca otro
7
- * identificador ni un token guardado de turnos viejos.
8
- */
9
- cancelToken: string;
10
- /**
11
- * The channel the conversation happens on: voice, whatsapp or web (the
12
- * default).
13
- */
14
- channel?: "voice" | "web" | "whatsapp";
15
- /**
16
- * The Visoft connection to run on, as Account lists it (con_…). Optional when
17
- * the organization has one; required when it has several. Another
18
- * organization's connection is CONNECTION_NOT_FOUND.
19
- */
20
- connectionId?: string;
21
- /**
22
- * Deprecated: use `startsAt`. Answered until 2027-01-28.
23
- *
24
- * @deprecated
25
- */
26
- date?: string;
27
- /**
28
- * Documento confirmado del paciente dueño de la cita; solo dígitos.
29
- */
30
- documentNumber: string;
31
- /**
32
- * The appointment's moment, as an RFC 3339 instant with its offset, exactly
33
- * as an answer gave it in startsAt (for example "2026-11-04T08:50:00-05:00").
34
- * Send it in place of the former date and time; sent beside them, they must
35
- * name the same moment.
36
- */
37
- startsAt?: Temporal.Instant;
38
- /**
39
- * Deprecated: use `startsAt`. Answered until 2027-01-28.
40
- *
41
- * @deprecated
42
- */
43
- time?: string;
44
- }
45
- /**
46
- * A failed answer.
47
- */
48
- export interface OrsovisionCancelAppointmentConflictError {
49
- data: null;
50
- error: OrsovisionCancelAppointmentConflictFailure;
51
- /**
52
- * What every answer carries besides its data or error.
53
- */
54
- metadata: ResponseMetadata;
55
- success: false;
56
- }
57
- export type OrsovisionCancelAppointmentConflictFailure = ConnectionNotConfiguredFailure | OrsovisionClinicNotServedFailure;
58
- /**
59
- * A failed answer.
60
- */
61
- export interface OrsovisionCancelAppointmentNotFoundError {
62
- data: null;
63
- error: OrsovisionCancelAppointmentNotFoundFailure;
64
- /**
65
- * What every answer carries besides its data or error.
66
- */
67
- metadata: ResponseMetadata;
68
- success: false;
69
- }
70
- export type OrsovisionCancelAppointmentNotFoundFailure = ConnectionNotFoundFailure | OrsovisionToolNotAvailableFailure;
71
- /**
72
- * A failed answer.
73
- */
74
- export interface OrsovisionCancelAppointmentServiceUnavailableError {
75
- data: null;
76
- error: OrsovisionCancelAppointmentServiceUnavailableFailure;
77
- /**
78
- * What every answer carries besides its data or error.
79
- */
80
- metadata: ResponseMetadata;
81
- success: false;
82
- }
83
- export type OrsovisionCancelAppointmentServiceUnavailableFailure = UpstreamUnavailableFailure | OrsovisionOrsovisionNotConfiguredFailure;
84
- export interface OrsovisionCreateAppointmentBody {
85
- /**
86
- * The channel the conversation happens on: voice, whatsapp or web (the
87
- * default).
88
- */
89
- channel?: "voice" | "web" | "whatsapp";
90
- /**
91
- * The Visoft connection to run on, as Account lists it (con_…). Optional when
92
- * the organization has one; required when it has several. Another
93
- * organization's connection is CONNECTION_NOT_FOUND.
94
- */
95
- connectionId?: string;
96
- /**
97
- * Deprecated: use `startsAt`. Answered until 2027-01-28.
98
- *
99
- * @deprecated
100
- */
101
- date?: string;
102
- /**
103
- * Documento del paciente para quien se consultó la disponibilidad.
104
- */
105
- documentNumber: string;
106
- /**
107
- * Tipo de documento de patient_context.
108
- */
109
- documentType?: string;
110
- /**
111
- * true SOLO si la persona quiere explícitamente una segunda cita del mismo
112
- * servicio que ya tiene (una serie de sesiones). Sin series, un duplicado se
113
- * rechaza con APPOINTMENT_ALREADY_EXISTS: nunca agendes dos primeras
114
- * valoraciones.
115
- */
116
- series?: boolean;
117
- /**
118
- * The appointment's moment, as an RFC 3339 instant with its offset, exactly
119
- * as an answer gave it in startsAt (for example "2026-11-04T08:50:00-05:00").
120
- * Send it in place of the former date and time; sent beside them, they must
121
- * name the same moment.
122
- */
123
- startsAt?: Temporal.Instant;
124
- /**
125
- * Deprecated: use `startsAt`. Answered until 2027-01-28.
126
- *
127
- * @deprecated
128
- */
129
- time?: string;
130
- /**
131
- * El token del horario elegido, copiado literal de data[].token de
132
- * appointment_availability. Nunca lo alteres, recortes ni reconstruyas, y
133
- * nunca lo leas en voz alta.
134
- */
135
- token: string;
136
- /**
137
- * Normalmente omítelo (viene en el token); usa solo un valor confirmado por
138
- * el flujo de agendamiento.
139
- */
140
- visitType?: string;
141
- }
142
- /**
143
- * A failed answer.
144
- */
145
- export interface OrsovisionCreateAppointmentConflictError {
146
- data: null;
147
- error: OrsovisionCreateAppointmentConflictFailure;
148
- /**
149
- * What every answer carries besides its data or error.
150
- */
151
- metadata: ResponseMetadata;
152
- success: false;
153
- }
154
- export type OrsovisionCreateAppointmentConflictFailure = ConnectionNotConfiguredFailure | OrsovisionClinicNotServedFailure;
155
- /**
156
- * A failed answer.
157
- */
158
- export interface OrsovisionCreateAppointmentNotFoundError {
159
- data: null;
160
- error: OrsovisionCreateAppointmentNotFoundFailure;
161
- /**
162
- * What every answer carries besides its data or error.
163
- */
164
- metadata: ResponseMetadata;
165
- success: false;
166
- }
167
- export type OrsovisionCreateAppointmentNotFoundFailure = ConnectionNotFoundFailure | OrsovisionToolNotAvailableFailure;
168
- /**
169
- * A failed answer.
170
- */
171
- export interface OrsovisionCreateAppointmentServiceUnavailableError {
172
- data: null;
173
- error: OrsovisionCreateAppointmentServiceUnavailableFailure;
174
- /**
175
- * What every answer carries besides its data or error.
176
- */
177
- metadata: ResponseMetadata;
178
- success: false;
179
- }
180
- export type OrsovisionCreateAppointmentServiceUnavailableFailure = UpstreamUnavailableFailure | OrsovisionOrsovisionNotConfiguredFailure;
181
- export declare const OrsovisionCancelAppointmentBodyCodec: import("../../_/codec.js").Codec;
182
- export declare const OrsovisionCreateAppointmentBodyCodec: import("../../_/codec.js").Codec;
@@ -1,9 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- import { instant, object } from "../../_/index.js";
4
- export const OrsovisionCancelAppointmentBodyCodec = object([
5
- ["startsAt", null, instant],
6
- ]);
7
- export const OrsovisionCreateAppointmentBodyCodec = object([
8
- ["startsAt", null, instant],
9
- ]);
@@ -1,32 +0,0 @@
1
- import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import { type OrsovisionAvailabilitySlotPageResponse, type OrsovisionListAvailabilityBody } 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
- * Find available appointments
12
- *
13
- * Real available appointments for a service under a contract, one slot per
14
- * item in chronological order, each with its professional and the booking
15
- * reference (token) orsovision.appointments.create takes. limit is how many
16
- * slots to offer (three in a conversation); for more, call again with the
17
- * same arguments and pageInfo.nextCursor. window: requested; extended, the
18
- * dates asked for had none; alternative, the time preference had none (say
19
- * those first). A completed search without slots is TOOL_REFUSED
20
- * (NO_AVAILABILITY); never search again without the person's filters. This
21
- * read never books anything. A refusal is TOOL_REFUSED: data.reason says why,
22
- * data.guidance what to do next and data.details what it offers instead; it
23
- * is never an outage. Orsovision's tool pack sets this tool's rules,
24
- * parameters and accepted values (orsovision.tools.list answers them), and
25
- * every call is checked against them.
26
- */
27
- lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
28
- }
29
- export declare function createClient(options: ClientOptions): Client;
30
- export declare function bind(transport: Transport): Client;
31
- export type LookupRequest = OrsovisionListAvailabilityBody;
32
- export type LookupResponse = OrsovisionAvailabilitySlotPageResponse;
@@ -1,19 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- import { Transport, } from "../../_/index.js";
4
- import { OrsovisionAvailabilitySlotPageResponseCodec, } from "./models.js";
5
- export function createClient(options) {
6
- return bind(new Transport(options));
7
- }
8
- export function bind(transport) {
9
- return {
10
- lookup: (request, options) => transport.send(LookupOperation, request, options),
11
- };
12
- }
13
- const LookupOperation = {
14
- method: "POST",
15
- route: "/v1/orsovision/availability/lookup",
16
- body: "flat",
17
- response: OrsovisionAvailabilitySlotPageResponseCodec,
18
- 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 },
19
- };
@@ -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, LookupRequest, LookupResponse, } from "./client.js";
5
- export type { OrsovisionAvailabilitySlot, OrsovisionAvailabilitySlotPage, OrsovisionAvailabilitySlotPageResponse, OrsovisionListAvailabilityBadGatewayError, OrsovisionListAvailabilityBadGatewayFailure, OrsovisionListAvailabilityBody, OrsovisionListAvailabilityConflictError, OrsovisionListAvailabilityConflictFailure, OrsovisionListAvailabilityNotFoundError, OrsovisionListAvailabilityNotFoundFailure, OrsovisionListAvailabilityServiceUnavailableError, OrsovisionListAvailabilityServiceUnavailableFailure, } from "./models.js";
@@ -1,4 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- export { ApiError } from "../../_/index.js";
4
- export { createClient } from "./client.js";
@@ -1,228 +0,0 @@
1
- import { type AvailabilityBookingInput, type ConnectionNotConfiguredFailure, type ConnectionNotFoundFailure, type OutcomeUnknownFailure, type PageInfo, type ProviderUnavailableFailure, type ResponseMetadata, type UpstreamUnavailableFailure } from "../../models.js";
2
- import type { OrsovisionClinicNotServedFailure, OrsovisionOrsovisionNotConfiguredFailure, OrsovisionToolNotAvailableFailure } from "../models.js";
3
- export interface OrsovisionAvailabilitySlot {
4
- /**
5
- * The professional's agenda, when they run several.
6
- */
7
- agenda?: string;
8
- /**
9
- * Copy these exact arguments to orsovision.appointments.create only after the
10
- * person confirms this slot and service; add the confirmed documentNumber.
11
- * Retain separately confirmed consent. Never replace the service or contract
12
- * with a fresh EPS guess.
13
- */
14
- bookingInput?: AvailabilityBookingInput;
15
- /**
16
- * Deprecated: use `startsAt`. Answered until 2027-01-28.
17
- *
18
- * @deprecated
19
- */
20
- date: Temporal.PlainDate;
21
- /**
22
- * The day as it is said to the person.
23
- */
24
- dateSpoken: string;
25
- fonoGroup?: string;
26
- /**
27
- * The professional, as a later search names them (medic).
28
- */
29
- medicId: string;
30
- /**
31
- * The professional's name: this slot is theirs and no one else's.
32
- */
33
- medicName: string;
34
- modality?: string;
35
- /**
36
- * For a pair of consecutive exams: whether the next slot with the same
37
- * professional is free too.
38
- */
39
- pairable?: boolean;
40
- /**
41
- * The room, when the clinic schedules by room.
42
- */
43
- sala?: string;
44
- /**
45
- * The slot's specialty, as the clinic's agenda names it.
46
- */
47
- specialty: string;
48
- /**
49
- * The slot's moment, with the clinic's offset: what
50
- * orsovision.appointments.create books.
51
- */
52
- startsAt: Temporal.Instant;
53
- /**
54
- * Deprecated: use `startsAt`. Answered until 2027-01-28.
55
- *
56
- * @deprecated
57
- */
58
- time: string;
59
- toGroup?: string;
60
- /**
61
- * The booking reference orsovision.appointments.create takes, unchanged; null
62
- * when the slot cannot be booked by reference.
63
- */
64
- token: string | null;
65
- /**
66
- * The day's weekday.
67
- */
68
- weekday: string;
69
- /**
70
- * requested: inside the dates and times asked for. extended: the dates asked
71
- * for had none, so the search went on to the nearest. alternative: inside
72
- * those dates but outside the time preference, which had none.
73
- */
74
- window: "requested" | "extended" | "alternative";
75
- }
76
- export interface OrsovisionAvailabilitySlotPage {
77
- /**
78
- * Items admitted by this resource contract within the verified organization.
79
- */
80
- data: OrsovisionAvailabilitySlot[];
81
- /**
82
- * Discriminator for a resource list response.
83
- */
84
- object: "list";
85
- /**
86
- * Opaque navigation cursors for this page’s stable keyset order.
87
- */
88
- pageInfo: PageInfo;
89
- }
90
- /**
91
- * A successful answer.
92
- */
93
- export interface OrsovisionAvailabilitySlotPageResponse {
94
- data: OrsovisionAvailabilitySlotPage;
95
- error: null;
96
- /**
97
- * What every answer carries besides its data or error.
98
- */
99
- metadata: ResponseMetadata;
100
- success: true;
101
- }
102
- /**
103
- * A failed answer.
104
- */
105
- export interface OrsovisionListAvailabilityBadGatewayError {
106
- data: null;
107
- error: OrsovisionListAvailabilityBadGatewayFailure;
108
- /**
109
- * What every answer carries besides its data or error.
110
- */
111
- metadata: ResponseMetadata;
112
- success: false;
113
- }
114
- export type OrsovisionListAvailabilityBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure;
115
- export interface OrsovisionListAvailabilityBody {
116
- /**
117
- * Código de sede elegido y confirmado con la persona.
118
- */
119
- agency: string;
120
- /**
121
- * The channel the conversation happens on: voice, whatsapp or web (the
122
- * default).
123
- */
124
- channel?: "voice" | "web" | "whatsapp";
125
- /**
126
- * The Visoft connection to run on, as Account lists it (con_…). Optional when
127
- * the organization has one; required when it has several. Another
128
- * organization's connection is CONNECTION_NOT_FOUND.
129
- */
130
- connectionId?: string;
131
- /**
132
- * Código de contrato de list_contracts para esta misma sede.
133
- */
134
- contract: string;
135
- /**
136
- * Opaque cursor returned by pageInfo; omit it to request the first page.
137
- */
138
- cursor?: string;
139
- /**
140
- * Un día exacto YYYY-MM-DD cuando la persona nombró la fecha. Omítelo para
141
- * buscar con from/to; nunca uses una ventana de un día en su lugar.
142
- */
143
- date?: string;
144
- /**
145
- * Direction to traverse the stable keyset ordering from the supplied cursor.
146
- */
147
- direction?: "forward" | "backward";
148
- /**
149
- * Opcional. Envíalo para que el servidor resuelva contrato y servicio desde
150
- * el historial del paciente; omítelo si ya pasas contract y service. Leer la
151
- * agenda no necesita paciente.
152
- */
153
- documentNumber?: string;
154
- /**
155
- * Inicio de la ventana YYYY-MM-DD (mañana por defecto). Usa from/to cuando la
156
- * persona no dio fecha exacta.
157
- */
158
- from?: string;
159
- /**
160
- * Maximum items returned in one page. Defaults to 25; larger reads require
161
- * another cursor.
162
- */
163
- limit?: number;
164
- /**
165
- * Id del profesional devuelto por una disponibilidad anterior. Omítelo si la
166
- * persona acepta cualquier profesional; si pidió uno, consérvalo en TODAS las
167
- * búsquedas siguientes y no lo quites sin su aceptación.
168
- */
169
- medic?: string;
170
- /**
171
- * true solo si un profesional recién agregado no aparece; relee el directorio
172
- * (caché de 1 h). Los cupos libres SIEMPRE se leen en vivo: refresh no
173
- * 'actualiza' horarios.
174
- */
175
- refresh?: boolean;
176
- /**
177
- * Código de servicio AGENDABLE de get_contract_services para esta misma sede
178
- * y contrato; nunca un producto óptico.
179
- */
180
- service: string;
181
- /**
182
- * Fin de la ventana YYYY-MM-DD (from + 30 días por defecto). Para una fecha
183
- * exacta pasa date, nunca una ventana de un día.
184
- */
185
- to?: string;
186
- }
187
- /**
188
- * A failed answer.
189
- */
190
- export interface OrsovisionListAvailabilityConflictError {
191
- data: null;
192
- error: OrsovisionListAvailabilityConflictFailure;
193
- /**
194
- * What every answer carries besides its data or error.
195
- */
196
- metadata: ResponseMetadata;
197
- success: false;
198
- }
199
- export type OrsovisionListAvailabilityConflictFailure = ConnectionNotConfiguredFailure | OrsovisionClinicNotServedFailure;
200
- /**
201
- * A failed answer.
202
- */
203
- export interface OrsovisionListAvailabilityNotFoundError {
204
- data: null;
205
- error: OrsovisionListAvailabilityNotFoundFailure;
206
- /**
207
- * What every answer carries besides its data or error.
208
- */
209
- metadata: ResponseMetadata;
210
- success: false;
211
- }
212
- export type OrsovisionListAvailabilityNotFoundFailure = ConnectionNotFoundFailure | OrsovisionToolNotAvailableFailure;
213
- /**
214
- * A failed answer.
215
- */
216
- export interface OrsovisionListAvailabilityServiceUnavailableError {
217
- data: null;
218
- error: OrsovisionListAvailabilityServiceUnavailableFailure;
219
- /**
220
- * What every answer carries besides its data or error.
221
- */
222
- metadata: ResponseMetadata;
223
- success: false;
224
- }
225
- export type OrsovisionListAvailabilityServiceUnavailableFailure = UpstreamUnavailableFailure | OrsovisionOrsovisionNotConfiguredFailure;
226
- export declare const OrsovisionAvailabilitySlotCodec: import("../../_/codec.js").Codec;
227
- export declare const OrsovisionAvailabilitySlotPageCodec: import("../../_/codec.js").Codec;
228
- export declare const OrsovisionAvailabilitySlotPageResponseCodec: import("../../_/codec.js").Codec;
@@ -1,15 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- import { array, date, instant, object } from "../../_/index.js";
4
- import { AvailabilityBookingInputCodec, } from "../../models.js";
5
- export const OrsovisionAvailabilitySlotCodec = object([
6
- ["bookingInput", null, () => AvailabilityBookingInputCodec],
7
- ["date", null, date],
8
- ["startsAt", null, instant],
9
- ]);
10
- export const OrsovisionAvailabilitySlotPageCodec = object([
11
- ["data", null, array(() => OrsovisionAvailabilitySlotCodec)],
12
- ]);
13
- export const OrsovisionAvailabilitySlotPageResponseCodec = object([
14
- ["data", null, () => OrsovisionAvailabilitySlotPageCodec],
15
- ]);
@@ -1,27 +0,0 @@
1
- import { type BaseClientOptions, Transport } from "../_/index.js";
2
- import { type Client as AgenciesClient } from "./agencies/client.js";
3
- import { type Client as AppointmentsClient } from "./appointments/client.js";
4
- import { type Client as AvailabilityClient } from "./availability/client.js";
5
- import { type Client as ClinicClient } from "./clinic/client.js";
6
- import { type Client as ContractsClient } from "./contracts/client.js";
7
- import { type Client as PatientsClient } from "./patients/client.js";
8
- import { type Client as ServicesClient } from "./services/client.js";
9
- import { type Client as ToolsClient } from "./tools/client.js";
10
- export interface ClientOptions extends BaseClientOptions {
11
- /**
12
- * The URL the paths of the API are relative to.
13
- */
14
- baseUrl: string;
15
- }
16
- export interface Client {
17
- readonly agencies: AgenciesClient;
18
- readonly appointments: AppointmentsClient;
19
- readonly availability: AvailabilityClient;
20
- readonly clinic: ClinicClient;
21
- readonly contracts: ContractsClient;
22
- readonly patients: PatientsClient;
23
- readonly services: ServicesClient;
24
- readonly tools: ToolsClient;
25
- }
26
- export declare function createClient(options: ClientOptions): Client;
27
- export declare function bind(transport: Transport): Client;
@@ -1,50 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- import { Transport } from "../_/index.js";
4
- import { bind as bindAgencies, } from "./agencies/client.js";
5
- import { bind as bindAppointments, } from "./appointments/client.js";
6
- import { bind as bindAvailability, } from "./availability/client.js";
7
- import { bind as bindClinic, } from "./clinic/client.js";
8
- import { bind as bindContracts, } from "./contracts/client.js";
9
- import { bind as bindPatients, } from "./patients/client.js";
10
- import { bind as bindServices, } from "./services/client.js";
11
- import { bind as bindTools, } from "./tools/client.js";
12
- export function createClient(options) {
13
- return bind(new Transport(options));
14
- }
15
- export function bind(transport) {
16
- let agenciesClient;
17
- let appointmentsClient;
18
- let availabilityClient;
19
- let clinicClient;
20
- let contractsClient;
21
- let patientsClient;
22
- let servicesClient;
23
- let toolsClient;
24
- return {
25
- get agencies() {
26
- return (agenciesClient ??= bindAgencies(transport));
27
- },
28
- get appointments() {
29
- return (appointmentsClient ??= bindAppointments(transport));
30
- },
31
- get availability() {
32
- return (availabilityClient ??= bindAvailability(transport));
33
- },
34
- get clinic() {
35
- return (clinicClient ??= bindClinic(transport));
36
- },
37
- get contracts() {
38
- return (contractsClient ??= bindContracts(transport));
39
- },
40
- get patients() {
41
- return (patientsClient ??= bindPatients(transport));
42
- },
43
- get services() {
44
- return (servicesClient ??= bindServices(transport));
45
- },
46
- get tools() {
47
- return (toolsClient ??= bindTools(transport));
48
- },
49
- };
50
- }
@@ -1,34 +0,0 @@
1
- import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { OrsovisionClinicResponse } from "./models.js";
3
- export interface ClientOptions extends BaseClientOptions {
4
- /**
5
- * The URL the paths of the API are relative to.
6
- */
7
- baseUrl: string;
8
- }
9
- export interface Client {
10
- /**
11
- * Get the clinic
12
- *
13
- * The clinic of the connection a call names, or of the organization's only
14
- * one: its name, its SIIPS address, its timezone (every date and time the
15
- * clinical operations answer is local to it) and the version of its tool
16
- * definitions (orsovision.tools.list). An Agent reads it first in a
17
- * conversation, to know the clinic and its time. A connection of another
18
- * clinic is CLINIC_NOT_SERVED; another organization's is
19
- * CONNECTION_NOT_FOUND. Contains no patient data and performs no clinical
20
- * login.
21
- */
22
- get(request?: GetRequest, options?: RequestOptions): Promise<GetResponse>;
23
- }
24
- export declare function createClient(options: ClientOptions): Client;
25
- export declare function bind(transport: Transport): Client;
26
- export interface GetRequest {
27
- /**
28
- * The Visoft connection to run on, as Account lists it (con_…). Optional when
29
- * the organization has one; required when it has several. Another
30
- * organization's connection is CONNECTION_NOT_FOUND.
31
- */
32
- connectionId?: string;
33
- }
34
- export type GetResponse = OrsovisionClinicResponse;
@@ -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
- get: (request, options) => transport.send(GetOperation, request, options),
10
- };
11
- }
12
- const GetOperation = {
13
- method: "GET",
14
- route: "/v1/orsovision/clinic",
15
- query: { connectionId: "connectionId" },
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, GetRequest, GetResponse, } from "./client.js";
5
- export type { OrsovisionClinic, OrsovisionClinicResponse, OrsovisionGetClinicBadGatewayError, OrsovisionGetClinicBadGatewayFailure, OrsovisionGetClinicConflictError, OrsovisionGetClinicConflictFailure, OrsovisionGetClinicNotFoundError, OrsovisionGetClinicNotFoundFailure, OrsovisionGetClinicServiceUnavailableError, OrsovisionGetClinicServiceUnavailableFailure, } from "./models.js";
@@ -1,4 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- export { ApiError } from "../../_/index.js";
4
- export { createClient } from "./client.js";