@arbol-ai/sdk 5.36.0 → 5.38.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 (149) hide show
  1. package/dist/client.d.ts +4 -0
  2. package/dist/client.js +10 -0
  3. package/dist/comfachoco/affiliations/client.d.ts +3 -1
  4. package/dist/comfachoco/affiliations/index.d.ts +1 -1
  5. package/dist/comfachoco/affiliations/models.d.ts +13 -6
  6. package/dist/comfachoco/connections/models.d.ts +11 -11
  7. package/dist/comfachoco/index.d.ts +1 -1
  8. package/dist/comfachoco/models.d.ts +0 -63
  9. package/dist/index.d.ts +1 -1
  10. package/dist/models.d.ts +63 -0
  11. package/dist/oficlinic/affiliateTypes/client.d.ts +55 -0
  12. package/dist/oficlinic/affiliateTypes/client.js +18 -0
  13. package/dist/oficlinic/affiliateTypes/index.d.ts +5 -0
  14. package/dist/oficlinic/affiliateTypes/index.js +4 -0
  15. package/dist/oficlinic/affiliateTypes/models.d.ts +135 -0
  16. package/dist/oficlinic/affiliateTypes/models.js +3 -0
  17. package/dist/oficlinic/appointments/client.d.ts +91 -0
  18. package/dist/oficlinic/appointments/client.js +35 -0
  19. package/dist/oficlinic/appointments/index.d.ts +5 -0
  20. package/dist/oficlinic/appointments/index.js +4 -0
  21. package/dist/oficlinic/appointments/models.d.ts +777 -0
  22. package/dist/oficlinic/appointments/models.js +15 -0
  23. package/dist/oficlinic/bookingDays/client.d.ts +64 -0
  24. package/dist/oficlinic/bookingDays/client.js +18 -0
  25. package/dist/oficlinic/bookingDays/index.d.ts +5 -0
  26. package/dist/oficlinic/bookingDays/index.js +4 -0
  27. package/dist/oficlinic/bookingDays/models.d.ts +142 -0
  28. package/dist/oficlinic/bookingDays/models.js +3 -0
  29. package/dist/oficlinic/bookingProfessionals/client.d.ts +76 -0
  30. package/dist/oficlinic/bookingProfessionals/client.js +19 -0
  31. package/dist/oficlinic/bookingProfessionals/index.d.ts +5 -0
  32. package/dist/oficlinic/bookingProfessionals/index.js +4 -0
  33. package/dist/oficlinic/bookingProfessionals/models.d.ts +159 -0
  34. package/dist/oficlinic/bookingProfessionals/models.js +12 -0
  35. package/dist/oficlinic/bookingRooms/client.d.ts +60 -0
  36. package/dist/oficlinic/bookingRooms/client.js +18 -0
  37. package/dist/oficlinic/bookingRooms/index.d.ts +5 -0
  38. package/dist/oficlinic/bookingRooms/index.js +4 -0
  39. package/dist/oficlinic/bookingRooms/models.d.ts +136 -0
  40. package/dist/oficlinic/bookingRooms/models.js +3 -0
  41. package/dist/oficlinic/bookingSlots/client.d.ts +63 -0
  42. package/dist/oficlinic/bookingSlots/client.js +19 -0
  43. package/dist/oficlinic/bookingSlots/index.d.ts +5 -0
  44. package/dist/oficlinic/bookingSlots/index.js +4 -0
  45. package/dist/oficlinic/bookingSlots/models.d.ts +167 -0
  46. package/dist/oficlinic/bookingSlots/models.js +13 -0
  47. package/dist/oficlinic/cancellationReasons/client.d.ts +49 -0
  48. package/dist/oficlinic/cancellationReasons/client.js +18 -0
  49. package/dist/oficlinic/cancellationReasons/index.d.ts +5 -0
  50. package/dist/oficlinic/cancellationReasons/index.js +4 -0
  51. package/dist/oficlinic/cancellationReasons/models.d.ts +114 -0
  52. package/dist/oficlinic/cancellationReasons/models.js +3 -0
  53. package/dist/oficlinic/client.d.ts +49 -0
  54. package/dist/oficlinic/client.js +105 -0
  55. package/dist/oficlinic/connections/client.d.ts +45 -0
  56. package/dist/oficlinic/connections/client.js +25 -0
  57. package/dist/oficlinic/connections/index.d.ts +5 -0
  58. package/dist/oficlinic/connections/index.js +4 -0
  59. package/dist/oficlinic/connections/models.d.ts +40 -0
  60. package/dist/oficlinic/connections/models.js +10 -0
  61. package/dist/oficlinic/index.d.ts +5 -0
  62. package/dist/oficlinic/index.js +4 -0
  63. package/dist/oficlinic/models.d.ts +403 -0
  64. package/dist/oficlinic/models.js +3 -0
  65. package/dist/oficlinic/patients/client.d.ts +27 -0
  66. package/dist/oficlinic/patients/client.js +19 -0
  67. package/dist/oficlinic/patients/index.d.ts +5 -0
  68. package/dist/oficlinic/patients/index.js +4 -0
  69. package/dist/oficlinic/patients/models.d.ts +134 -0
  70. package/dist/oficlinic/patients/models.js +13 -0
  71. package/dist/oficlinic/payerContracts/client.d.ts +55 -0
  72. package/dist/oficlinic/payerContracts/client.js +18 -0
  73. package/dist/oficlinic/payerContracts/index.d.ts +5 -0
  74. package/dist/oficlinic/payerContracts/index.js +4 -0
  75. package/dist/oficlinic/payerContracts/models.d.ts +154 -0
  76. package/dist/oficlinic/payerContracts/models.js +3 -0
  77. package/dist/oficlinic/payerPlans/client.d.ts +54 -0
  78. package/dist/oficlinic/payerPlans/client.js +18 -0
  79. package/dist/oficlinic/payerPlans/index.d.ts +5 -0
  80. package/dist/oficlinic/payerPlans/index.js +4 -0
  81. package/dist/oficlinic/payerPlans/models.d.ts +138 -0
  82. package/dist/oficlinic/payerPlans/models.js +3 -0
  83. package/dist/oficlinic/payerSubplans/client.d.ts +58 -0
  84. package/dist/oficlinic/payerSubplans/client.js +18 -0
  85. package/dist/oficlinic/payerSubplans/index.d.ts +5 -0
  86. package/dist/oficlinic/payerSubplans/index.js +4 -0
  87. package/dist/oficlinic/payerSubplans/models.d.ts +150 -0
  88. package/dist/oficlinic/payerSubplans/models.js +3 -0
  89. package/dist/oficlinic/payers/client.d.ts +50 -0
  90. package/dist/oficlinic/payers/client.js +18 -0
  91. package/dist/oficlinic/payers/index.d.ts +5 -0
  92. package/dist/oficlinic/payers/index.js +4 -0
  93. package/dist/oficlinic/payers/models.d.ts +139 -0
  94. package/dist/oficlinic/payers/models.js +3 -0
  95. package/dist/oficlinic/professionals/client.d.ts +51 -0
  96. package/dist/oficlinic/professionals/client.js +18 -0
  97. package/dist/oficlinic/professionals/index.d.ts +5 -0
  98. package/dist/oficlinic/professionals/index.js +4 -0
  99. package/dist/oficlinic/professionals/models.d.ts +125 -0
  100. package/dist/oficlinic/professionals/models.js +3 -0
  101. package/dist/oficlinic/programs/client.d.ts +54 -0
  102. package/dist/oficlinic/programs/client.js +18 -0
  103. package/dist/oficlinic/programs/index.d.ts +5 -0
  104. package/dist/oficlinic/programs/index.js +4 -0
  105. package/dist/oficlinic/programs/models.d.ts +133 -0
  106. package/dist/oficlinic/programs/models.js +3 -0
  107. package/dist/oficlinic/regimes/client.d.ts +50 -0
  108. package/dist/oficlinic/regimes/client.js +18 -0
  109. package/dist/oficlinic/regimes/index.d.ts +5 -0
  110. package/dist/oficlinic/regimes/index.js +4 -0
  111. package/dist/oficlinic/regimes/models.d.ts +117 -0
  112. package/dist/oficlinic/regimes/models.js +3 -0
  113. package/dist/oficlinic/relationships/client.d.ts +49 -0
  114. package/dist/oficlinic/relationships/client.js +18 -0
  115. package/dist/oficlinic/relationships/index.d.ts +5 -0
  116. package/dist/oficlinic/relationships/index.js +4 -0
  117. package/dist/oficlinic/relationships/models.d.ts +118 -0
  118. package/dist/oficlinic/relationships/models.js +3 -0
  119. package/dist/oficlinic/serviceCatalog/client.d.ts +50 -0
  120. package/dist/oficlinic/serviceCatalog/client.js +27 -0
  121. package/dist/oficlinic/serviceCatalog/index.d.ts +5 -0
  122. package/dist/oficlinic/serviceCatalog/index.js +4 -0
  123. package/dist/oficlinic/serviceCatalog/models.d.ts +126 -0
  124. package/dist/oficlinic/serviceCatalog/models.js +13 -0
  125. package/dist/oficlinic/services/client.d.ts +84 -0
  126. package/dist/oficlinic/services/client.js +27 -0
  127. package/dist/oficlinic/services/index.d.ts +5 -0
  128. package/dist/oficlinic/services/index.js +4 -0
  129. package/dist/oficlinic/services/models.d.ts +437 -0
  130. package/dist/oficlinic/services/models.js +12 -0
  131. package/dist/sanitas/affiliations/client.d.ts +22 -0
  132. package/dist/sanitas/affiliations/client.js +19 -0
  133. package/dist/sanitas/affiliations/index.d.ts +5 -0
  134. package/dist/sanitas/affiliations/index.js +4 -0
  135. package/dist/sanitas/affiliations/models.d.ts +86 -0
  136. package/dist/sanitas/affiliations/models.js +9 -0
  137. package/dist/sanitas/client.d.ts +15 -0
  138. package/dist/sanitas/client.js +20 -0
  139. package/dist/sanitas/connections/client.d.ts +25 -0
  140. package/dist/sanitas/connections/client.js +18 -0
  141. package/dist/sanitas/connections/index.d.ts +5 -0
  142. package/dist/sanitas/connections/index.js +4 -0
  143. package/dist/sanitas/connections/models.d.ts +74 -0
  144. package/dist/sanitas/connections/models.js +9 -0
  145. package/dist/sanitas/index.d.ts +5 -0
  146. package/dist/sanitas/index.js +4 -0
  147. package/dist/sanitas/models.d.ts +220 -0
  148. package/dist/sanitas/models.js +3 -0
  149. package/package.json +3 -3
@@ -0,0 +1,91 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import { type OficlinicCreateAppointmentBody, type OficlinicCreateAppointmentResultResponse, type OficlinicLookupAppointmentsBody, type OficlinicLookupAppointmentsResultResponse, type OficlinicRescheduleAppointmentBody, type OficlinicRescheduleAppointmentResultResponse } 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
+ * Create an appointment
12
+ *
13
+ * Book one appointment in e-Oficlinic (ASIGNAR_CITAS) for a slot that
14
+ * list_booking_slots offered in an availability flow. Requires confirm true
15
+ * and an idempotencyKey. Before anything is written, the patient is resolved
16
+ * by citizenship card; the program and attention type must be the flow's, and
17
+ * the source must still count exactly one unit for them; the regime,
18
+ * affiliate type and relationship must be listed by the provider; the payer,
19
+ * plan, subplan and contract must be listed by the provider for the
20
+ * connection; the service must be configured for the slot's professional; and
21
+ * a fresh read must still show the slot. The classification, billing and
22
+ * referral values are the clinic's own provider codes, which the caller
23
+ * supplies explicitly: this service never guesses them, never derives them
24
+ * from a program and never loads the clinic's tariff matrix. The intent and a
25
+ * fence on the slot are recorded before the single provider request, which is
26
+ * never resent. Success means the provider answered a strictly positive
27
+ * appointment number, the source's own creation signal (verification
28
+ * provider_acknowledgement; this path has no live receipt yet).
29
+ * OUTCOME_UNKNOWN means the appointment may exist: do not book again; check
30
+ * lookup_appointments with status assigned and ask staff.
31
+ * WRITE_TARGET_UNRESOLVED means another key's write to this slot has no final
32
+ * outcome, so nothing was sent. WRITE_LEDGER_FULL means the connection's
33
+ * ledger refused a new write and nothing was sent. Repeating the same
34
+ * idempotencyKey and request answers the recorded outcome. One-slot, one-unit
35
+ * bookings only. agentMode true answers concise Spanish text instead.
36
+ */
37
+ create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
38
+ /**
39
+ * Lookup appointments
40
+ *
41
+ * Look up one patient's e-Oficlinic appointment history by status: assigned,
42
+ * cancelled, absence (no-show) or legalized (attendance registered). The
43
+ * patient is resolved by citizenship card number first, sent in the body;
44
+ * PATIENT_NOT_FOUND answers only the provider explicit negative, and every
45
+ * row must name the resolved patient. Staff usernames and free-text
46
+ * observations are never returned. serviceNumber is the appointment's CAS,
47
+ * which reschedule_appointment takes for an assigned appointment. Mapped from
48
+ * the provider's source: a live positive answer has not been verified yet.
49
+ * Read-only. Pass pageInfo.nextCursor as cursor for more. agentMode true
50
+ * answers concise Spanish text instead.
51
+ */
52
+ lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
53
+ /**
54
+ * Reschedule an appointment
55
+ *
56
+ * Reschedule one assigned e-Oficlinic appointment. The provider has no
57
+ * individual reschedule (its REPROGRAMAR_AGENDA moves a professional's whole
58
+ * agenda and is never used), so this is a saga, never atomic: the original
59
+ * must be an upcoming assigned appointment of the patient resolved by
60
+ * citizenship card (its CAS, serviceNumber in lookup_appointments); the
61
+ * cancellation reason must be exactly one list_cancellation_reasons answers;
62
+ * the new slot is booked first exactly as create_appointment books it; only
63
+ * after the provider acknowledged the new booking is the original cancelled
64
+ * (CANECELAR_CITAS) with the given reason and observations. If the new
65
+ * booking fails, nothing changes; if its outcome is unknown, OUTCOME_UNKNOWN
66
+ * answers and the original is never cancelled. Once the new booking is
67
+ * acknowledged the answer reports each phase: completed when the cancellation
68
+ * was confirmed too, partial otherwise (cancellation pending, unknown or not
69
+ * possible), when the patient may hold both appointments. pending continues
70
+ * when the same request is repeated with the same idempotencyKey, which
71
+ * resumes the cancellation alone; nothing is ever resent. The slot and the
72
+ * original are fenced from the first dispatch: WRITE_TARGET_UNRESOLVED means
73
+ * another key's write to either has no final outcome, and nothing was sent.
74
+ * agentMode true answers concise Spanish text instead.
75
+ */
76
+ reschedule(request: RescheduleRequest, options?: RequestOptions): Promise<RescheduleResponse>;
77
+ }
78
+ export declare function createClient(options: ClientOptions): Client;
79
+ export declare function bind(transport: Transport): Client;
80
+ export type CreateRequest = OficlinicCreateAppointmentBody;
81
+ export type CreateResponse = OficlinicCreateAppointmentResultResponse;
82
+ export type LookupRequest = OficlinicLookupAppointmentsBody;
83
+ export type LookupResponse = OficlinicLookupAppointmentsResultResponse;
84
+ export type RescheduleRequest = {
85
+ /**
86
+ * The original appointment's CAS: serviceNumber of an assigned appointment
87
+ * from lookup_appointments.
88
+ */
89
+ appointmentId: string;
90
+ } & OficlinicRescheduleAppointmentBody;
91
+ export type RescheduleResponse = OficlinicRescheduleAppointmentResultResponse;
@@ -0,0 +1,35 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "../../_/index.js";
4
+ import { OficlinicCreateAppointmentResultResponseCodec, OficlinicRescheduleAppointmentResultResponseCodec, } from "./models.js";
5
+ export function createClient(options) {
6
+ return bind(new Transport(options));
7
+ }
8
+ export function bind(transport) {
9
+ return {
10
+ create: (request, options) => transport.send(CreateOperation, request, options),
11
+ lookup: (request, options) => transport.send(LookupOperation, request, options),
12
+ reschedule: (request, options) => transport.send(RescheduleOperation, request, options),
13
+ };
14
+ }
15
+ const CreateOperation = {
16
+ method: "POST",
17
+ route: "/v1/oficlinic/appointments",
18
+ body: "flat",
19
+ response: OficlinicCreateAppointmentResultResponseCodec,
20
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "410": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
21
+ };
22
+ const LookupOperation = {
23
+ method: "POST",
24
+ route: "/v1/oficlinic/appointments/lookup",
25
+ body: "flat",
26
+ response: null,
27
+ 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 },
28
+ };
29
+ const RescheduleOperation = {
30
+ method: "POST",
31
+ route: "/v1/oficlinic/appointments/{appointmentId}/reschedule",
32
+ body: "flat",
33
+ response: OficlinicRescheduleAppointmentResultResponseCodec,
34
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "410": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
35
+ };
@@ -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, CreateRequest, CreateResponse, LookupRequest, LookupResponse, RescheduleRequest, RescheduleResponse, } from "./client.js";
5
+ export type { OficlinicAppointment, OficlinicAppointmentBooking, OficlinicAppointmentNotFoundFailure, OficlinicAppointmentNotReschedulableFailure, OficlinicAppointmentPage, OficlinicAppointmentReschedule, OficlinicCreateAppointmentBadGatewayError, OficlinicCreateAppointmentBadGatewayFailure, OficlinicCreateAppointmentBody, OficlinicCreateAppointmentConflictError, OficlinicCreateAppointmentConflictFailure, OficlinicCreateAppointmentNotFoundError, OficlinicCreateAppointmentNotFoundFailure, OficlinicCreateAppointmentResult, OficlinicCreateAppointmentResultResponse, OficlinicCreateAppointmentServiceUnavailableError, OficlinicCreateAppointmentServiceUnavailableFailure, OficlinicCreateAppointmentTooManyRequestsError, OficlinicCreateAppointmentTooManyRequestsFailure, OficlinicCreateAppointmentUnprocessableContentError, OficlinicCreateAppointmentUnprocessableContentFailure, OficlinicIdempotencyKeyReusedFailure, OficlinicLookupAppointmentsBadGatewayError, OficlinicLookupAppointmentsBadGatewayFailure, OficlinicLookupAppointmentsBadRequestError, OficlinicLookupAppointmentsBadRequestFailure, OficlinicLookupAppointmentsBody, OficlinicLookupAppointmentsConflictError, OficlinicLookupAppointmentsConflictFailure, OficlinicLookupAppointmentsNotFoundError, OficlinicLookupAppointmentsNotFoundFailure, OficlinicLookupAppointmentsResult, OficlinicLookupAppointmentsResultResponse, OficlinicLookupAppointmentsServiceUnavailableError, OficlinicLookupAppointmentsServiceUnavailableFailure, OficlinicLookupAppointmentsTooManyRequestsError, OficlinicLookupAppointmentsTooManyRequestsFailure, OficlinicLookupAppointmentsUnprocessableContentError, OficlinicLookupAppointmentsUnprocessableContentFailure, OficlinicPatientNotFoundFailure, OficlinicRescheduleAppointmentBadGatewayError, OficlinicRescheduleAppointmentBadGatewayFailure, OficlinicRescheduleAppointmentBody, OficlinicRescheduleAppointmentConflictError, OficlinicRescheduleAppointmentConflictFailure, OficlinicRescheduleAppointmentNotFoundError, OficlinicRescheduleAppointmentNotFoundFailure, OficlinicRescheduleAppointmentResult, OficlinicRescheduleAppointmentResultResponse, OficlinicRescheduleAppointmentServiceUnavailableError, OficlinicRescheduleAppointmentServiceUnavailableFailure, OficlinicRescheduleAppointmentTooManyRequestsError, OficlinicRescheduleAppointmentTooManyRequestsFailure, OficlinicRescheduleAppointmentUnprocessableContentError, OficlinicRescheduleAppointmentUnprocessableContentFailure, OficlinicServiceNotAvailableFailure, OficlinicWriteLedgerFullFailure, OficlinicWriteTargetUnresolvedFailure, } 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";