@arbol-ai/sdk 5.37.0 → 5.38.1

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 (112) hide show
  1. package/dist/comfachoco/affiliations/client.d.ts +3 -1
  2. package/dist/comfachoco/affiliations/index.d.ts +1 -1
  3. package/dist/comfachoco/affiliations/models.d.ts +8 -1
  4. package/dist/oficlinic/affiliateTypes/client.d.ts +55 -0
  5. package/dist/oficlinic/affiliateTypes/client.js +18 -0
  6. package/dist/oficlinic/affiliateTypes/index.d.ts +5 -0
  7. package/dist/oficlinic/affiliateTypes/index.js +4 -0
  8. package/dist/oficlinic/affiliateTypes/models.d.ts +135 -0
  9. package/dist/oficlinic/affiliateTypes/models.js +3 -0
  10. package/dist/oficlinic/appointments/client.d.ts +69 -5
  11. package/dist/oficlinic/appointments/client.js +17 -0
  12. package/dist/oficlinic/appointments/index.d.ts +2 -2
  13. package/dist/oficlinic/appointments/models.d.ts +591 -5
  14. package/dist/oficlinic/appointments/models.js +13 -1
  15. package/dist/oficlinic/bookingDays/client.d.ts +64 -0
  16. package/dist/oficlinic/bookingDays/client.js +18 -0
  17. package/dist/oficlinic/bookingDays/index.d.ts +5 -0
  18. package/dist/oficlinic/bookingDays/index.js +4 -0
  19. package/dist/oficlinic/bookingDays/models.d.ts +142 -0
  20. package/dist/oficlinic/bookingDays/models.js +3 -0
  21. package/dist/oficlinic/bookingProfessionals/client.d.ts +76 -0
  22. package/dist/oficlinic/bookingProfessionals/client.js +19 -0
  23. package/dist/oficlinic/bookingProfessionals/index.d.ts +5 -0
  24. package/dist/oficlinic/bookingProfessionals/index.js +4 -0
  25. package/dist/oficlinic/bookingProfessionals/models.d.ts +159 -0
  26. package/dist/oficlinic/bookingProfessionals/models.js +12 -0
  27. package/dist/oficlinic/bookingRooms/client.d.ts +60 -0
  28. package/dist/oficlinic/bookingRooms/client.js +18 -0
  29. package/dist/oficlinic/bookingRooms/index.d.ts +5 -0
  30. package/dist/oficlinic/bookingRooms/index.js +4 -0
  31. package/dist/oficlinic/bookingRooms/models.d.ts +136 -0
  32. package/dist/oficlinic/bookingRooms/models.js +3 -0
  33. package/dist/oficlinic/bookingSlots/client.d.ts +63 -0
  34. package/dist/oficlinic/bookingSlots/client.js +19 -0
  35. package/dist/oficlinic/bookingSlots/index.d.ts +5 -0
  36. package/dist/oficlinic/bookingSlots/index.js +4 -0
  37. package/dist/oficlinic/bookingSlots/models.d.ts +167 -0
  38. package/dist/oficlinic/bookingSlots/models.js +13 -0
  39. package/dist/oficlinic/cancellationReasons/client.d.ts +49 -0
  40. package/dist/oficlinic/cancellationReasons/client.js +18 -0
  41. package/dist/oficlinic/cancellationReasons/index.d.ts +5 -0
  42. package/dist/oficlinic/cancellationReasons/index.js +4 -0
  43. package/dist/oficlinic/cancellationReasons/models.d.ts +114 -0
  44. package/dist/oficlinic/cancellationReasons/models.js +3 -0
  45. package/dist/oficlinic/client.d.ts +26 -0
  46. package/dist/oficlinic/client.js +65 -0
  47. package/dist/oficlinic/index.d.ts +1 -1
  48. package/dist/oficlinic/models.d.ts +154 -0
  49. package/dist/oficlinic/patients/client.d.ts +2 -1
  50. package/dist/oficlinic/patients/models.d.ts +8 -2
  51. package/dist/oficlinic/payerContracts/client.d.ts +55 -0
  52. package/dist/oficlinic/payerContracts/client.js +18 -0
  53. package/dist/oficlinic/payerContracts/index.d.ts +5 -0
  54. package/dist/oficlinic/payerContracts/index.js +4 -0
  55. package/dist/oficlinic/payerContracts/models.d.ts +154 -0
  56. package/dist/oficlinic/payerContracts/models.js +3 -0
  57. package/dist/oficlinic/payerPlans/client.d.ts +54 -0
  58. package/dist/oficlinic/payerPlans/client.js +18 -0
  59. package/dist/oficlinic/payerPlans/index.d.ts +5 -0
  60. package/dist/oficlinic/payerPlans/index.js +4 -0
  61. package/dist/oficlinic/payerPlans/models.d.ts +138 -0
  62. package/dist/oficlinic/payerPlans/models.js +3 -0
  63. package/dist/oficlinic/payerSubplans/client.d.ts +58 -0
  64. package/dist/oficlinic/payerSubplans/client.js +18 -0
  65. package/dist/oficlinic/payerSubplans/index.d.ts +5 -0
  66. package/dist/oficlinic/payerSubplans/index.js +4 -0
  67. package/dist/oficlinic/payerSubplans/models.d.ts +150 -0
  68. package/dist/oficlinic/payerSubplans/models.js +3 -0
  69. package/dist/oficlinic/payers/client.d.ts +10 -3
  70. package/dist/oficlinic/payers/client.js +1 -1
  71. package/dist/oficlinic/payers/index.d.ts +1 -1
  72. package/dist/oficlinic/payers/models.d.ts +14 -13
  73. package/dist/oficlinic/professionals/client.d.ts +12 -4
  74. package/dist/oficlinic/professionals/client.js +1 -1
  75. package/dist/oficlinic/professionals/index.d.ts +1 -1
  76. package/dist/oficlinic/professionals/models.d.ts +14 -13
  77. package/dist/oficlinic/programs/client.d.ts +54 -0
  78. package/dist/oficlinic/programs/client.js +18 -0
  79. package/dist/oficlinic/programs/index.d.ts +5 -0
  80. package/dist/oficlinic/programs/index.js +4 -0
  81. package/dist/oficlinic/programs/models.d.ts +133 -0
  82. package/dist/oficlinic/programs/models.js +3 -0
  83. package/dist/oficlinic/regimes/client.d.ts +50 -0
  84. package/dist/oficlinic/regimes/client.js +18 -0
  85. package/dist/oficlinic/regimes/index.d.ts +5 -0
  86. package/dist/oficlinic/regimes/index.js +4 -0
  87. package/dist/oficlinic/regimes/models.d.ts +117 -0
  88. package/dist/oficlinic/regimes/models.js +3 -0
  89. package/dist/oficlinic/relationships/client.d.ts +49 -0
  90. package/dist/oficlinic/relationships/client.js +18 -0
  91. package/dist/oficlinic/relationships/index.d.ts +5 -0
  92. package/dist/oficlinic/relationships/index.js +4 -0
  93. package/dist/oficlinic/relationships/models.d.ts +118 -0
  94. package/dist/oficlinic/relationships/models.js +3 -0
  95. package/dist/oficlinic/serviceCatalog/client.d.ts +50 -0
  96. package/dist/oficlinic/serviceCatalog/client.js +27 -0
  97. package/dist/oficlinic/serviceCatalog/index.d.ts +5 -0
  98. package/dist/oficlinic/serviceCatalog/index.js +4 -0
  99. package/dist/oficlinic/serviceCatalog/models.d.ts +126 -0
  100. package/dist/oficlinic/serviceCatalog/models.js +13 -0
  101. package/dist/oficlinic/services/client.d.ts +44 -3
  102. package/dist/oficlinic/services/client.js +10 -1
  103. package/dist/oficlinic/services/index.d.ts +2 -2
  104. package/dist/oficlinic/services/models.d.ts +311 -14
  105. package/dist/oficlinic/services/models.js +10 -1
  106. package/dist/sanitas/affiliations/models.d.ts +7 -2
  107. package/dist/sanitas/connections/client.d.ts +6 -1
  108. package/dist/sanitas/connections/client.js +1 -0
  109. package/dist/sanitas/connections/models.d.ts +7 -2
  110. package/dist/sanitas/index.d.ts +1 -1
  111. package/dist/sanitas/models.d.ts +22 -0
  112. package/package.json +3 -3
@@ -1,38 +1,103 @@
1
1
  // Code generated by forge. DO NOT EDIT.
2
2
  /* eslint-disable */
3
3
  import { Transport } from "../_/index.js";
4
+ import { bind as bindAffiliateTypes, } from "./affiliateTypes/client.js";
4
5
  import { bind as bindAppointments, } from "./appointments/client.js";
6
+ import { bind as bindBookingDays, } from "./bookingDays/client.js";
7
+ import { bind as bindBookingProfessionals, } from "./bookingProfessionals/client.js";
8
+ import { bind as bindBookingRooms, } from "./bookingRooms/client.js";
9
+ import { bind as bindBookingSlots, } from "./bookingSlots/client.js";
10
+ import { bind as bindCancellationReasons, } from "./cancellationReasons/client.js";
5
11
  import { bind as bindConnections, } from "./connections/client.js";
6
12
  import { bind as bindPatients, } from "./patients/client.js";
13
+ import { bind as bindPayerContracts, } from "./payerContracts/client.js";
14
+ import { bind as bindPayerPlans, } from "./payerPlans/client.js";
15
+ import { bind as bindPayerSubplans, } from "./payerSubplans/client.js";
7
16
  import { bind as bindPayers, } from "./payers/client.js";
8
17
  import { bind as bindProfessionals, } from "./professionals/client.js";
18
+ import { bind as bindPrograms, } from "./programs/client.js";
19
+ import { bind as bindRegimes, } from "./regimes/client.js";
20
+ import { bind as bindRelationships, } from "./relationships/client.js";
21
+ import { bind as bindServiceCatalog, } from "./serviceCatalog/client.js";
9
22
  import { bind as bindServices, } from "./services/client.js";
10
23
  export function createClient(options) {
11
24
  return bind(new Transport(options));
12
25
  }
13
26
  export function bind(transport) {
27
+ let affiliateTypesClient;
14
28
  let appointmentsClient;
29
+ let bookingDaysClient;
30
+ let bookingProfessionalsClient;
31
+ let bookingRoomsClient;
32
+ let bookingSlotsClient;
33
+ let cancellationReasonsClient;
15
34
  let connectionsClient;
16
35
  let patientsClient;
36
+ let payerContractsClient;
37
+ let payerPlansClient;
38
+ let payerSubplansClient;
17
39
  let payersClient;
18
40
  let professionalsClient;
41
+ let programsClient;
42
+ let regimesClient;
43
+ let relationshipsClient;
44
+ let serviceCatalogClient;
19
45
  let servicesClient;
20
46
  return {
47
+ get affiliateTypes() {
48
+ return (affiliateTypesClient ??= bindAffiliateTypes(transport));
49
+ },
21
50
  get appointments() {
22
51
  return (appointmentsClient ??= bindAppointments(transport));
23
52
  },
53
+ get bookingDays() {
54
+ return (bookingDaysClient ??= bindBookingDays(transport));
55
+ },
56
+ get bookingProfessionals() {
57
+ return (bookingProfessionalsClient ??= bindBookingProfessionals(transport));
58
+ },
59
+ get bookingRooms() {
60
+ return (bookingRoomsClient ??= bindBookingRooms(transport));
61
+ },
62
+ get bookingSlots() {
63
+ return (bookingSlotsClient ??= bindBookingSlots(transport));
64
+ },
65
+ get cancellationReasons() {
66
+ return (cancellationReasonsClient ??= bindCancellationReasons(transport));
67
+ },
24
68
  get connections() {
25
69
  return (connectionsClient ??= bindConnections(transport));
26
70
  },
27
71
  get patients() {
28
72
  return (patientsClient ??= bindPatients(transport));
29
73
  },
74
+ get payerContracts() {
75
+ return (payerContractsClient ??= bindPayerContracts(transport));
76
+ },
77
+ get payerPlans() {
78
+ return (payerPlansClient ??= bindPayerPlans(transport));
79
+ },
80
+ get payerSubplans() {
81
+ return (payerSubplansClient ??= bindPayerSubplans(transport));
82
+ },
30
83
  get payers() {
31
84
  return (payersClient ??= bindPayers(transport));
32
85
  },
33
86
  get professionals() {
34
87
  return (professionalsClient ??= bindProfessionals(transport));
35
88
  },
89
+ get programs() {
90
+ return (programsClient ??= bindPrograms(transport));
91
+ },
92
+ get regimes() {
93
+ return (regimesClient ??= bindRegimes(transport));
94
+ },
95
+ get relationships() {
96
+ return (relationshipsClient ??= bindRelationships(transport));
97
+ },
98
+ get serviceCatalog() {
99
+ return (serviceCatalogClient ??= bindServiceCatalog(transport));
100
+ },
36
101
  get services() {
37
102
  return (servicesClient ??= bindServices(transport));
38
103
  },
@@ -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, } from "./client.js";
5
- export type { OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionNotFoundError, OficlinicConnectionNotFoundFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicPatientRecordMismatchFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure, } from "./models.js";
5
+ export type { OficlinicAgentText, OficlinicBookingOptionNotFoundFailure, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionNotFoundError, OficlinicConnectionNotFoundFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicPatientRecordMismatchFailure, OficlinicPayerNotFoundFailure, OficlinicPayerOptionNotFoundFailure, OficlinicProgramUnitsNotSupportedFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSelectionExpiredError, OficlinicSelectionExpiredFailure, OficlinicSelectionNotAvailableFailure, OficlinicSignInOutcomeUnknownFailure, } from "./models.js";
@@ -1,4 +1,33 @@
1
1
  import type { Empty, ResponseMetadata } from "../models.js";
2
+ export interface OficlinicAgentText {
3
+ /**
4
+ * Concise Spanish facts of the answer, with the ids and cursor to continue.
5
+ * Pending or unknown outcomes are stated as such.
6
+ */
7
+ text: string;
8
+ }
9
+ /**
10
+ * The program, attention type, regime, affiliate type, relationship or
11
+ * cancellation reason is not one the provider lists.
12
+ */
13
+ export interface OficlinicBookingOptionNotFoundFailure {
14
+ /**
15
+ * The failure code, stable across releases.
16
+ */
17
+ code: "BOOKING_OPTION_NOT_FOUND";
18
+ /**
19
+ * No fields.
20
+ */
21
+ data: Empty;
22
+ /**
23
+ * What went wrong, for people; it never contains input values.
24
+ */
25
+ message: string;
26
+ /**
27
+ * Whether repeating the same request may succeed.
28
+ */
29
+ retryable: false;
30
+ }
2
31
  /**
3
32
  * Another operation is using this connection or signing in for the
4
33
  * organization.
@@ -183,6 +212,71 @@ export interface OficlinicPatientRecordMismatchFailure {
183
212
  */
184
213
  retryable: false;
185
214
  }
215
+ /**
216
+ * The payer is not configured for the connection's company and IPS.
217
+ */
218
+ export interface OficlinicPayerNotFoundFailure {
219
+ /**
220
+ * The failure code, stable across releases.
221
+ */
222
+ code: "PAYER_NOT_FOUND";
223
+ /**
224
+ * No fields.
225
+ */
226
+ data: Empty;
227
+ /**
228
+ * What went wrong, for people; it never contains input values.
229
+ */
230
+ message: string;
231
+ /**
232
+ * Whether repeating the same request may succeed.
233
+ */
234
+ retryable: false;
235
+ }
236
+ /**
237
+ * The plan, subplan or contract is not one the provider lists for the payer, or
238
+ * the contract is inactive.
239
+ */
240
+ export interface OficlinicPayerOptionNotFoundFailure {
241
+ /**
242
+ * The failure code, stable across releases.
243
+ */
244
+ code: "PAYER_OPTION_NOT_FOUND";
245
+ /**
246
+ * No fields.
247
+ */
248
+ data: Empty;
249
+ /**
250
+ * What went wrong, for people; it never contains input values.
251
+ */
252
+ message: string;
253
+ /**
254
+ * Whether repeating the same request may succeed.
255
+ */
256
+ retryable: false;
257
+ }
258
+ /**
259
+ * The attention type's source unit count is not exactly one, and this service
260
+ * books one-unit programs only.
261
+ */
262
+ export interface OficlinicProgramUnitsNotSupportedFailure {
263
+ /**
264
+ * The failure code, stable across releases.
265
+ */
266
+ code: "PROGRAM_UNITS_NOT_SUPPORTED";
267
+ /**
268
+ * No fields.
269
+ */
270
+ data: Empty;
271
+ /**
272
+ * What went wrong, for people; it never contains input values.
273
+ */
274
+ message: string;
275
+ /**
276
+ * Whether repeating the same request may succeed.
277
+ */
278
+ retryable: false;
279
+ }
186
280
  /**
187
281
  * The provider session does not belong to the connection's user and selected
188
282
  * context.
@@ -226,6 +320,66 @@ export interface OficlinicReauthenticationRequiredFailure {
226
320
  */
227
321
  retryable: false;
228
322
  }
323
+ /**
324
+ * A failed answer.
325
+ */
326
+ export interface OficlinicSelectionExpiredError {
327
+ data: null;
328
+ /**
329
+ * The availability flow expired or does not exist. List booking professionals
330
+ * again.
331
+ */
332
+ error: OficlinicSelectionExpiredFailure;
333
+ /**
334
+ * What every answer carries besides its data or error.
335
+ */
336
+ metadata: ResponseMetadata;
337
+ success: false;
338
+ }
339
+ /**
340
+ * The availability flow expired or does not exist. List booking professionals
341
+ * again.
342
+ */
343
+ export interface OficlinicSelectionExpiredFailure {
344
+ /**
345
+ * The failure code, stable across releases.
346
+ */
347
+ code: "SELECTION_EXPIRED";
348
+ /**
349
+ * No fields.
350
+ */
351
+ data: Empty;
352
+ /**
353
+ * What went wrong, for people; it never contains input values.
354
+ */
355
+ message: string;
356
+ /**
357
+ * Whether repeating the same request may succeed.
358
+ */
359
+ retryable: false;
360
+ }
361
+ /**
362
+ * The professional, room, day or slot is not offered in this availability flow,
363
+ * or is no longer offered.
364
+ */
365
+ export interface OficlinicSelectionNotAvailableFailure {
366
+ /**
367
+ * The failure code, stable across releases.
368
+ */
369
+ code: "SELECTION_NOT_AVAILABLE";
370
+ /**
371
+ * No fields.
372
+ */
373
+ data: Empty;
374
+ /**
375
+ * What went wrong, for people; it never contains input values.
376
+ */
377
+ message: string;
378
+ /**
379
+ * Whether repeating the same request may succeed.
380
+ */
381
+ retryable: false;
382
+ }
229
383
  /**
230
384
  * The provider did not confirm a sign-in. It is not repeated automatically.
231
385
  */
@@ -16,7 +16,8 @@ export interface Client {
16
16
  * only when the provider returned a record with the requested document;
17
17
  * not_found answers only the provider explicit negative. Any failure is not
18
18
  * evidence that the patient is absent. This does not verify payer rights or
19
- * the identity of the person presenting the document.
19
+ * the identity of the person presenting the document. agentMode true answers
20
+ * concise Spanish text instead.
20
21
  */
21
22
  lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
22
23
  }
@@ -1,5 +1,5 @@
1
1
  import type { CredentialsRejectedFailure, OutcomeUnknownFailure, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
- import type { OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicLoginCoolingDownFailure, OficlinicPatientRecordMismatchFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
2
+ import type { OficlinicAgentText, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicLoginCoolingDownFailure, OficlinicPatientRecordMismatchFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
3
3
  /**
4
4
  * A failed answer.
5
5
  */
@@ -14,6 +14,12 @@ export interface OficlinicLookupPatientBadGatewayError {
14
14
  }
15
15
  export type OficlinicLookupPatientBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure | OficlinicPatientRecordMismatchFailure;
16
16
  export interface OficlinicLookupPatientBody {
17
+ /**
18
+ * true answers { text }: concise Spanish facts for a messaging or voice
19
+ * agent, with the short ids and the cursor needed to continue. false, the
20
+ * default, answers the structured object.
21
+ */
22
+ agentMode?: boolean;
17
23
  /**
18
24
  * An Account connection id of the caller's organization.
19
25
  */
@@ -41,7 +47,7 @@ export interface OficlinicLookupPatientConflictError {
41
47
  success: false;
42
48
  }
43
49
  export type OficlinicLookupPatientConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
44
- export type OficlinicLookupPatientResult = OficlinicPatientFound | OficlinicPatientNotFound;
50
+ export type OficlinicLookupPatientResult = OficlinicPatientFound | OficlinicPatientNotFound | OficlinicAgentText;
45
51
  /**
46
52
  * A successful answer.
47
53
  */
@@ -0,0 +1,55 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { OficlinicListPayerContractsResultResponse } 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 payer contracts
12
+ *
13
+ * List the contracts e-Oficlinic holds for one payer of the connection, in
14
+ * the provider's order, as its booking screen loads them
15
+ * (cbclientescontrato): id, names, number, validity days and active flag.
16
+ * Financial and internal contract fields are never returned. The payer must
17
+ * be one list_payers answers, or PAYER_NOT_FOUND. A contract is not proof of
18
+ * coverage for a patient. Pass pageInfo.nextCursor with the same payerId for
19
+ * more. agentMode true answers concise Spanish text instead.
20
+ */
21
+ list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
22
+ }
23
+ export declare function createClient(options: ClientOptions): Client;
24
+ export declare function bind(transport: Transport): Client;
25
+ export interface ListRequest {
26
+ /**
27
+ * An Account connection id of the caller's organization.
28
+ */
29
+ connectionId?: string;
30
+ /**
31
+ * A payer id from list_payers.
32
+ */
33
+ payerId: string;
34
+ /**
35
+ * An opaque cursor from a previous page's pageInfo.nextCursor or
36
+ * pageInfo.previousCursor.
37
+ */
38
+ cursor?: string;
39
+ /**
40
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
41
+ */
42
+ direction?: "forward" | "backward";
43
+ /**
44
+ * Maximum items returned in one page. Defaults to 25; larger reads require
45
+ * another cursor.
46
+ */
47
+ limit?: number;
48
+ /**
49
+ * true answers { text }: concise Spanish facts for a messaging or voice
50
+ * agent, with the short ids and the cursor needed to continue. false, the
51
+ * default, answers the structured object.
52
+ */
53
+ agentMode?: boolean;
54
+ }
55
+ export type ListResponse = OficlinicListPayerContractsResultResponse;
@@ -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/payer-contracts",
15
+ query: { connectionId: "connectionId", payerId: "payerId", 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 { OficlinicListPayerContractsBadGatewayError, OficlinicListPayerContractsBadGatewayFailure, OficlinicListPayerContractsBadRequestError, OficlinicListPayerContractsBadRequestFailure, OficlinicListPayerContractsConflictError, OficlinicListPayerContractsConflictFailure, OficlinicListPayerContractsNotFoundError, OficlinicListPayerContractsNotFoundFailure, OficlinicListPayerContractsResult, OficlinicListPayerContractsResultResponse, OficlinicListPayerContractsServiceUnavailableError, OficlinicListPayerContractsServiceUnavailableFailure, OficlinicListPayerContractsTooManyRequestsError, OficlinicListPayerContractsTooManyRequestsFailure, OficlinicListPayerContractsUnprocessableContentError, OficlinicListPayerContractsUnprocessableContentFailure, OficlinicPayerContract, OficlinicPayerContractPage, } from "./models.js";
@@ -0,0 +1,4 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export { ApiError } from "../../_/index.js";
4
+ export { createClient } from "./client.js";
@@ -0,0 +1,154 @@
1
+ import type { CredentialsRejectedFailure, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { OficlinicAgentText, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionNotFoundFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicPayerNotFoundFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
3
+ /**
4
+ * A failed answer.
5
+ */
6
+ export interface OficlinicListPayerContractsBadGatewayError {
7
+ data: null;
8
+ error: OficlinicListPayerContractsBadGatewayFailure;
9
+ /**
10
+ * What every answer carries besides its data or error.
11
+ */
12
+ metadata: ResponseMetadata;
13
+ success: false;
14
+ }
15
+ export type OficlinicListPayerContractsBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure;
16
+ /**
17
+ * A failed answer.
18
+ */
19
+ export interface OficlinicListPayerContractsBadRequestError {
20
+ data: null;
21
+ error: OficlinicListPayerContractsBadRequestFailure;
22
+ /**
23
+ * What every answer carries besides its data or error.
24
+ */
25
+ metadata: ResponseMetadata;
26
+ success: false;
27
+ }
28
+ export type OficlinicListPayerContractsBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
29
+ /**
30
+ * A failed answer.
31
+ */
32
+ export interface OficlinicListPayerContractsConflictError {
33
+ data: null;
34
+ error: OficlinicListPayerContractsConflictFailure;
35
+ /**
36
+ * What every answer carries besides its data or error.
37
+ */
38
+ metadata: ResponseMetadata;
39
+ success: false;
40
+ }
41
+ export type OficlinicListPayerContractsConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
42
+ /**
43
+ * A failed answer.
44
+ */
45
+ export interface OficlinicListPayerContractsNotFoundError {
46
+ data: null;
47
+ error: OficlinicListPayerContractsNotFoundFailure;
48
+ /**
49
+ * What every answer carries besides its data or error.
50
+ */
51
+ metadata: ResponseMetadata;
52
+ success: false;
53
+ }
54
+ export type OficlinicListPayerContractsNotFoundFailure = OficlinicConnectionNotFoundFailure | OficlinicPayerNotFoundFailure;
55
+ export type OficlinicListPayerContractsResult = OficlinicPayerContractPage | OficlinicAgentText;
56
+ /**
57
+ * A successful answer.
58
+ */
59
+ export interface OficlinicListPayerContractsResultResponse {
60
+ data: OficlinicListPayerContractsResult;
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 OficlinicListPayerContractsServiceUnavailableError {
72
+ data: null;
73
+ error: OficlinicListPayerContractsServiceUnavailableFailure;
74
+ /**
75
+ * What every answer carries besides its data or error.
76
+ */
77
+ metadata: ResponseMetadata;
78
+ success: false;
79
+ }
80
+ export type OficlinicListPayerContractsServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
81
+ /**
82
+ * A failed answer.
83
+ */
84
+ export interface OficlinicListPayerContractsTooManyRequestsError {
85
+ data: null;
86
+ error: OficlinicListPayerContractsTooManyRequestsFailure;
87
+ /**
88
+ * What every answer carries besides its data or error.
89
+ */
90
+ metadata: ResponseMetadata;
91
+ success: false;
92
+ }
93
+ export type OficlinicListPayerContractsTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
94
+ /**
95
+ * A failed answer.
96
+ */
97
+ export interface OficlinicListPayerContractsUnprocessableContentError {
98
+ data: null;
99
+ error: OficlinicListPayerContractsUnprocessableContentFailure;
100
+ /**
101
+ * What every answer carries besides its data or error.
102
+ */
103
+ metadata: ResponseMetadata;
104
+ success: false;
105
+ }
106
+ export type OficlinicListPayerContractsUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
107
+ export interface OficlinicPayerContract {
108
+ /**
109
+ * The provider's Activo flag; null for an unrecognized value.
110
+ */
111
+ active: boolean | null;
112
+ /**
113
+ * The provider's Contrato value.
114
+ */
115
+ code: string | null;
116
+ /**
117
+ * The first day (FecDesde); null when blank or in an unrecognized format.
118
+ */
119
+ from: string | null;
120
+ /**
121
+ * The provider's contract id (IdContrato).
122
+ */
123
+ id: string;
124
+ /**
125
+ * The contract's description (Descripcion), or its Contrato value when blank.
126
+ */
127
+ name: string;
128
+ /**
129
+ * The contract number (NroContrato).
130
+ */
131
+ number: string | null;
132
+ /**
133
+ * The payer the contract was listed for.
134
+ */
135
+ payerId: string;
136
+ /**
137
+ * The last day (FecHasta); null when blank or in an unrecognized format.
138
+ */
139
+ to: string | null;
140
+ }
141
+ export interface OficlinicPayerContractPage {
142
+ /**
143
+ * Items admitted by this resource contract within the verified organization.
144
+ */
145
+ data: OficlinicPayerContract[];
146
+ /**
147
+ * Discriminator for a resource list response.
148
+ */
149
+ object: "list";
150
+ /**
151
+ * Opaque navigation cursors for this page’s stable keyset order.
152
+ */
153
+ pageInfo: PageInfo;
154
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -0,0 +1,54 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { OficlinicListPayerPlansResultResponse } 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 payer plans
12
+ *
13
+ * List the plans e-Oficlinic offers for one payer of the connection, in the
14
+ * provider's order, as its booking screen loads them (cbclientesplan). The
15
+ * payer must be one list_payers answers for the connection, or
16
+ * PAYER_NOT_FOUND. A booking takes one of these plans. Pass
17
+ * pageInfo.nextCursor with the same payerId 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 payer id from list_payers.
31
+ */
32
+ payerId: 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 = OficlinicListPayerPlansResultResponse;
@@ -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/payer-plans",
15
+ query: { connectionId: "connectionId", payerId: "payerId", 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 { OficlinicListPayerPlansBadGatewayError, OficlinicListPayerPlansBadGatewayFailure, OficlinicListPayerPlansBadRequestError, OficlinicListPayerPlansBadRequestFailure, OficlinicListPayerPlansConflictError, OficlinicListPayerPlansConflictFailure, OficlinicListPayerPlansNotFoundError, OficlinicListPayerPlansNotFoundFailure, OficlinicListPayerPlansResult, OficlinicListPayerPlansResultResponse, OficlinicListPayerPlansServiceUnavailableError, OficlinicListPayerPlansServiceUnavailableFailure, OficlinicListPayerPlansTooManyRequestsError, OficlinicListPayerPlansTooManyRequestsFailure, OficlinicListPayerPlansUnprocessableContentError, OficlinicListPayerPlansUnprocessableContentFailure, OficlinicPayerPlan, OficlinicPayerPlanPage, } from "./models.js";
@@ -0,0 +1,4 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export { ApiError } from "../../_/index.js";
4
+ export { createClient } from "./client.js";