@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,136 @@
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, OficlinicSelectionNotAvailableFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
3
+ export interface OficlinicBookingRoom {
4
+ /**
5
+ * The availability flow this item belongs to: pass it to the next booking
6
+ * list and to the booking itself.
7
+ */
8
+ flowId: string;
9
+ /**
10
+ * The provider's room code (Codigo).
11
+ */
12
+ id: string;
13
+ /**
14
+ * The room's name (Descripcion).
15
+ */
16
+ name: string;
17
+ professionalId: string;
18
+ }
19
+ export interface OficlinicBookingRoomPage {
20
+ /**
21
+ * Items admitted by this resource contract within the verified organization.
22
+ */
23
+ data: OficlinicBookingRoom[];
24
+ /**
25
+ * Discriminator for a resource list response.
26
+ */
27
+ object: "list";
28
+ /**
29
+ * Opaque navigation cursors for this page’s stable keyset order.
30
+ */
31
+ pageInfo: PageInfo;
32
+ }
33
+ /**
34
+ * A failed answer.
35
+ */
36
+ export interface OficlinicListBookingRoomsBadGatewayError {
37
+ data: null;
38
+ error: OficlinicListBookingRoomsBadGatewayFailure;
39
+ /**
40
+ * What every answer carries besides its data or error.
41
+ */
42
+ metadata: ResponseMetadata;
43
+ success: false;
44
+ }
45
+ export type OficlinicListBookingRoomsBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure;
46
+ /**
47
+ * A failed answer.
48
+ */
49
+ export interface OficlinicListBookingRoomsBadRequestError {
50
+ data: null;
51
+ error: OficlinicListBookingRoomsBadRequestFailure;
52
+ /**
53
+ * What every answer carries besides its data or error.
54
+ */
55
+ metadata: ResponseMetadata;
56
+ success: false;
57
+ }
58
+ export type OficlinicListBookingRoomsBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
59
+ /**
60
+ * A failed answer.
61
+ */
62
+ export interface OficlinicListBookingRoomsConflictError {
63
+ data: null;
64
+ error: OficlinicListBookingRoomsConflictFailure;
65
+ /**
66
+ * What every answer carries besides its data or error.
67
+ */
68
+ metadata: ResponseMetadata;
69
+ success: false;
70
+ }
71
+ export type OficlinicListBookingRoomsConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure | OficlinicSelectionNotAvailableFailure;
72
+ /**
73
+ * A failed answer.
74
+ */
75
+ export interface OficlinicListBookingRoomsNotFoundError {
76
+ data: null;
77
+ error: OficlinicListBookingRoomsNotFoundFailure;
78
+ /**
79
+ * What every answer carries besides its data or error.
80
+ */
81
+ metadata: ResponseMetadata;
82
+ success: false;
83
+ }
84
+ export type OficlinicListBookingRoomsNotFoundFailure = OficlinicConnectionNotFoundFailure | OficlinicPayerNotFoundFailure;
85
+ export type OficlinicListBookingRoomsResult = OficlinicBookingRoomPage | OficlinicAgentText;
86
+ /**
87
+ * A successful answer.
88
+ */
89
+ export interface OficlinicListBookingRoomsResultResponse {
90
+ data: OficlinicListBookingRoomsResult;
91
+ error: null;
92
+ /**
93
+ * What every answer carries besides its data or error.
94
+ */
95
+ metadata: ResponseMetadata;
96
+ success: true;
97
+ }
98
+ /**
99
+ * A failed answer.
100
+ */
101
+ export interface OficlinicListBookingRoomsServiceUnavailableError {
102
+ data: null;
103
+ error: OficlinicListBookingRoomsServiceUnavailableFailure;
104
+ /**
105
+ * What every answer carries besides its data or error.
106
+ */
107
+ metadata: ResponseMetadata;
108
+ success: false;
109
+ }
110
+ export type OficlinicListBookingRoomsServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
111
+ /**
112
+ * A failed answer.
113
+ */
114
+ export interface OficlinicListBookingRoomsTooManyRequestsError {
115
+ data: null;
116
+ error: OficlinicListBookingRoomsTooManyRequestsFailure;
117
+ /**
118
+ * What every answer carries besides its data or error.
119
+ */
120
+ metadata: ResponseMetadata;
121
+ success: false;
122
+ }
123
+ export type OficlinicListBookingRoomsTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
124
+ /**
125
+ * A failed answer.
126
+ */
127
+ export interface OficlinicListBookingRoomsUnprocessableContentError {
128
+ data: null;
129
+ error: OficlinicListBookingRoomsUnprocessableContentFailure;
130
+ /**
131
+ * What every answer carries besides its data or error.
132
+ */
133
+ metadata: ResponseMetadata;
134
+ success: false;
135
+ }
136
+ export type OficlinicListBookingRoomsUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -0,0 +1,63 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import { type OficlinicListBookingSlotsResultResponse } 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 booking slots
12
+ *
13
+ * List the slots e-Oficlinic shows for one agenda day of the flow, for the
14
+ * flow's payer and its one-unit attention type, as its booking screen shows
15
+ * them (LISTAR_HORARIOS_AGENDAS_DISPONIBLES with the screen's display
16
+ * filter). The day must be one list_booking_days offered in the same flow.
17
+ * startsAt and endsAt come from the source's exact time range, and are null
18
+ * rather than guessed when it is unrecognized. Observed live for one agenda;
19
+ * the rows observed had no Estado, so status is usually null. Read-only:
20
+ * nothing is locked or reserved. Book one with create_appointment and its id
21
+ * as slotId. Pass pageInfo.nextCursor with the same filters for more.
22
+ * agentMode true answers concise Spanish text instead.
23
+ */
24
+ list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
25
+ }
26
+ export declare function createClient(options: ClientOptions): Client;
27
+ export declare function bind(transport: Transport): Client;
28
+ export interface ListRequest {
29
+ /**
30
+ * An Account connection id of the caller's organization.
31
+ */
32
+ connectionId?: string;
33
+ /**
34
+ * The availability flow id every booking list item carries (flowId). It
35
+ * expires 30 minutes after the first list.
36
+ */
37
+ flowId: string;
38
+ /**
39
+ * A day id (the agenda id) list_booking_days offered in the flow.
40
+ */
41
+ dayId: string;
42
+ /**
43
+ * An opaque cursor from a previous page's pageInfo.nextCursor or
44
+ * pageInfo.previousCursor.
45
+ */
46
+ cursor?: string;
47
+ /**
48
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
49
+ */
50
+ direction?: "forward" | "backward";
51
+ /**
52
+ * Maximum items returned in one page. Defaults to 50; larger reads require
53
+ * another cursor.
54
+ */
55
+ limit?: number;
56
+ /**
57
+ * true answers { text }: concise Spanish facts for a messaging or voice
58
+ * agent, with the short ids and the cursor needed to continue. false, the
59
+ * default, answers the structured object.
60
+ */
61
+ agentMode?: boolean;
62
+ }
63
+ export type ListResponse = OficlinicListBookingSlotsResultResponse;
@@ -0,0 +1,19 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "../../_/index.js";
4
+ import { OficlinicListBookingSlotsResultResponseCodec, } from "./models.js";
5
+ export function createClient(options) {
6
+ return bind(new Transport(options));
7
+ }
8
+ export function bind(transport) {
9
+ return {
10
+ list: (request, options) => transport.send(ListOperation, request, options),
11
+ };
12
+ }
13
+ const ListOperation = {
14
+ method: "GET",
15
+ route: "/v1/oficlinic/booking-slots",
16
+ query: { connectionId: "connectionId", flowId: "flowId", dayId: "dayId", cursor: "cursor", direction: "direction", limit: "limit", agentMode: "agentMode" },
17
+ response: OficlinicListBookingSlotsResultResponseCodec,
18
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "410": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
19
+ };
@@ -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 { OficlinicBookingSlot, OficlinicBookingSlotPage, OficlinicListBookingSlotsBadGatewayError, OficlinicListBookingSlotsBadGatewayFailure, OficlinicListBookingSlotsBadRequestError, OficlinicListBookingSlotsBadRequestFailure, OficlinicListBookingSlotsConflictError, OficlinicListBookingSlotsConflictFailure, OficlinicListBookingSlotsNotFoundError, OficlinicListBookingSlotsNotFoundFailure, OficlinicListBookingSlotsResult, OficlinicListBookingSlotsResultResponse, OficlinicListBookingSlotsServiceUnavailableError, OficlinicListBookingSlotsServiceUnavailableFailure, OficlinicListBookingSlotsTooManyRequestsError, OficlinicListBookingSlotsTooManyRequestsFailure, OficlinicListBookingSlotsUnprocessableContentError, OficlinicListBookingSlotsUnprocessableContentFailure, } 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,167 @@
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, OficlinicSelectionNotAvailableFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
3
+ export interface OficlinicBookingSlot {
4
+ date: string | null;
5
+ dayId: string;
6
+ /**
7
+ * The exact IdCita end time on the agenda date; no duration is inferred from
8
+ * the label.
9
+ */
10
+ endsAt: Temporal.Instant | null;
11
+ /**
12
+ * The availability flow this item belongs to: pass it to the next booking
13
+ * list and to the booking itself.
14
+ */
15
+ flowId: string;
16
+ /**
17
+ * The provider's GrupoCita identifier.
18
+ */
19
+ groupId: number;
20
+ /**
21
+ * The provider's slot id (citaID): pass it as slotId to book.
22
+ */
23
+ id: string;
24
+ /**
25
+ * The slot as the provider describes it (citaDescripcion), usually its time.
26
+ */
27
+ label: string | null;
28
+ /**
29
+ * The provider's citaGrupoPrioritario flag; it is not an availability
30
+ * verdict.
31
+ */
32
+ priorityGroup: boolean;
33
+ /**
34
+ * The exact IdCita start time on the agenda date, in America/Bogota; null if
35
+ * unrecognized.
36
+ */
37
+ startsAt: Temporal.Instant | null;
38
+ /**
39
+ * The provider's Estado value, unchanged; its values are not verified yet.
40
+ */
41
+ status: string | null;
42
+ /**
43
+ * The provider's citaAsignarWeb flag; it does not gate staff bookings.
44
+ */
45
+ webBookable: boolean;
46
+ }
47
+ export interface OficlinicBookingSlotPage {
48
+ /**
49
+ * Items admitted by this resource contract within the verified organization.
50
+ */
51
+ data: OficlinicBookingSlot[];
52
+ /**
53
+ * Discriminator for a resource list response.
54
+ */
55
+ object: "list";
56
+ /**
57
+ * Opaque navigation cursors for this page’s stable keyset order.
58
+ */
59
+ pageInfo: PageInfo;
60
+ }
61
+ /**
62
+ * A failed answer.
63
+ */
64
+ export interface OficlinicListBookingSlotsBadGatewayError {
65
+ data: null;
66
+ error: OficlinicListBookingSlotsBadGatewayFailure;
67
+ /**
68
+ * What every answer carries besides its data or error.
69
+ */
70
+ metadata: ResponseMetadata;
71
+ success: false;
72
+ }
73
+ export type OficlinicListBookingSlotsBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure;
74
+ /**
75
+ * A failed answer.
76
+ */
77
+ export interface OficlinicListBookingSlotsBadRequestError {
78
+ data: null;
79
+ error: OficlinicListBookingSlotsBadRequestFailure;
80
+ /**
81
+ * What every answer carries besides its data or error.
82
+ */
83
+ metadata: ResponseMetadata;
84
+ success: false;
85
+ }
86
+ export type OficlinicListBookingSlotsBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
87
+ /**
88
+ * A failed answer.
89
+ */
90
+ export interface OficlinicListBookingSlotsConflictError {
91
+ data: null;
92
+ error: OficlinicListBookingSlotsConflictFailure;
93
+ /**
94
+ * What every answer carries besides its data or error.
95
+ */
96
+ metadata: ResponseMetadata;
97
+ success: false;
98
+ }
99
+ export type OficlinicListBookingSlotsConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure | OficlinicSelectionNotAvailableFailure;
100
+ /**
101
+ * A failed answer.
102
+ */
103
+ export interface OficlinicListBookingSlotsNotFoundError {
104
+ data: null;
105
+ error: OficlinicListBookingSlotsNotFoundFailure;
106
+ /**
107
+ * What every answer carries besides its data or error.
108
+ */
109
+ metadata: ResponseMetadata;
110
+ success: false;
111
+ }
112
+ export type OficlinicListBookingSlotsNotFoundFailure = OficlinicConnectionNotFoundFailure | OficlinicPayerNotFoundFailure;
113
+ export type OficlinicListBookingSlotsResult = OficlinicBookingSlotPage | OficlinicAgentText;
114
+ /**
115
+ * A successful answer.
116
+ */
117
+ export interface OficlinicListBookingSlotsResultResponse {
118
+ data: OficlinicListBookingSlotsResult;
119
+ error: null;
120
+ /**
121
+ * What every answer carries besides its data or error.
122
+ */
123
+ metadata: ResponseMetadata;
124
+ success: true;
125
+ }
126
+ /**
127
+ * A failed answer.
128
+ */
129
+ export interface OficlinicListBookingSlotsServiceUnavailableError {
130
+ data: null;
131
+ error: OficlinicListBookingSlotsServiceUnavailableFailure;
132
+ /**
133
+ * What every answer carries besides its data or error.
134
+ */
135
+ metadata: ResponseMetadata;
136
+ success: false;
137
+ }
138
+ export type OficlinicListBookingSlotsServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
139
+ /**
140
+ * A failed answer.
141
+ */
142
+ export interface OficlinicListBookingSlotsTooManyRequestsError {
143
+ data: null;
144
+ error: OficlinicListBookingSlotsTooManyRequestsFailure;
145
+ /**
146
+ * What every answer carries besides its data or error.
147
+ */
148
+ metadata: ResponseMetadata;
149
+ success: false;
150
+ }
151
+ export type OficlinicListBookingSlotsTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
152
+ /**
153
+ * A failed answer.
154
+ */
155
+ export interface OficlinicListBookingSlotsUnprocessableContentError {
156
+ data: null;
157
+ error: OficlinicListBookingSlotsUnprocessableContentFailure;
158
+ /**
159
+ * What every answer carries besides its data or error.
160
+ */
161
+ metadata: ResponseMetadata;
162
+ success: false;
163
+ }
164
+ export type OficlinicListBookingSlotsUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
165
+ export declare const OficlinicBookingSlotCodec: import("../../_/codec.js").Codec;
166
+ export declare const OficlinicBookingSlotPageCodec: import("../../_/codec.js").Codec;
167
+ export declare const OficlinicListBookingSlotsResultResponseCodec: import("../../_/codec.js").Codec;
@@ -0,0 +1,13 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { array, instant, object } from "../../_/index.js";
4
+ export const OficlinicBookingSlotCodec = object([
5
+ ["endsAt", null, instant],
6
+ ["startsAt", null, instant],
7
+ ]);
8
+ export const OficlinicBookingSlotPageCodec = object([
9
+ ["data", null, array(() => OficlinicBookingSlotCodec)],
10
+ ]);
11
+ export const OficlinicListBookingSlotsResultResponseCodec = object([
12
+ ["data", null, () => OficlinicBookingSlotPageCodec],
13
+ ]);
@@ -0,0 +1,49 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { OficlinicListCancellationReasonsResultResponse } 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 cancellation reasons
12
+ *
13
+ * List the cancellation reasons e-Oficlinic offers (cbmotivocancelainasiste),
14
+ * in the provider's order. The source gives them no id: pass one exactly as
15
+ * cancellation.reason of reschedule_appointment, which refuses any other text
16
+ * with BOOKING_OPTION_NOT_FOUND. Pass pageInfo.nextCursor as cursor for more.
17
+ * agentMode true answers concise Spanish text instead.
18
+ */
19
+ list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
20
+ }
21
+ export declare function createClient(options: ClientOptions): Client;
22
+ export declare function bind(transport: Transport): Client;
23
+ export interface ListRequest {
24
+ /**
25
+ * An Account connection id of the caller's organization.
26
+ */
27
+ connectionId?: string;
28
+ /**
29
+ * An opaque cursor from a previous page's pageInfo.nextCursor or
30
+ * pageInfo.previousCursor.
31
+ */
32
+ cursor?: string;
33
+ /**
34
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
35
+ */
36
+ direction?: "forward" | "backward";
37
+ /**
38
+ * Maximum items returned in one page. Defaults to 50; larger reads require
39
+ * another cursor.
40
+ */
41
+ limit?: number;
42
+ /**
43
+ * true answers { text }: concise Spanish facts for a messaging or voice
44
+ * agent, with the short ids and the cursor needed to continue. false, the
45
+ * default, answers the structured object.
46
+ */
47
+ agentMode?: boolean;
48
+ }
49
+ export type ListResponse = OficlinicListCancellationReasonsResultResponse;
@@ -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/cancellation-reasons",
15
+ query: { connectionId: "connectionId", 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 { OficlinicCancellationReason, OficlinicCancellationReasonPage, OficlinicListCancellationReasonsBadGatewayError, OficlinicListCancellationReasonsBadGatewayFailure, OficlinicListCancellationReasonsBadRequestError, OficlinicListCancellationReasonsBadRequestFailure, OficlinicListCancellationReasonsConflictError, OficlinicListCancellationReasonsConflictFailure, OficlinicListCancellationReasonsResult, OficlinicListCancellationReasonsResultResponse, OficlinicListCancellationReasonsServiceUnavailableError, OficlinicListCancellationReasonsServiceUnavailableFailure, OficlinicListCancellationReasonsTooManyRequestsError, OficlinicListCancellationReasonsTooManyRequestsFailure, OficlinicListCancellationReasonsUnprocessableContentError, OficlinicListCancellationReasonsUnprocessableContentFailure, } 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,114 @@
1
+ import type { CredentialsRejectedFailure, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { OficlinicAgentText, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
3
+ export interface OficlinicCancellationReason {
4
+ /**
5
+ * The reason as the provider lists it: pass it exactly as
6
+ * cancellation.reason.
7
+ */
8
+ reason: string;
9
+ }
10
+ export interface OficlinicCancellationReasonPage {
11
+ /**
12
+ * Items admitted by this resource contract within the verified organization.
13
+ */
14
+ data: OficlinicCancellationReason[];
15
+ /**
16
+ * Discriminator for a resource list response.
17
+ */
18
+ object: "list";
19
+ /**
20
+ * Opaque navigation cursors for this page’s stable keyset order.
21
+ */
22
+ pageInfo: PageInfo;
23
+ }
24
+ /**
25
+ * A failed answer.
26
+ */
27
+ export interface OficlinicListCancellationReasonsBadGatewayError {
28
+ data: null;
29
+ error: OficlinicListCancellationReasonsBadGatewayFailure;
30
+ /**
31
+ * What every answer carries besides its data or error.
32
+ */
33
+ metadata: ResponseMetadata;
34
+ success: false;
35
+ }
36
+ export type OficlinicListCancellationReasonsBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure;
37
+ /**
38
+ * A failed answer.
39
+ */
40
+ export interface OficlinicListCancellationReasonsBadRequestError {
41
+ data: null;
42
+ error: OficlinicListCancellationReasonsBadRequestFailure;
43
+ /**
44
+ * What every answer carries besides its data or error.
45
+ */
46
+ metadata: ResponseMetadata;
47
+ success: false;
48
+ }
49
+ export type OficlinicListCancellationReasonsBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
50
+ /**
51
+ * A failed answer.
52
+ */
53
+ export interface OficlinicListCancellationReasonsConflictError {
54
+ data: null;
55
+ error: OficlinicListCancellationReasonsConflictFailure;
56
+ /**
57
+ * What every answer carries besides its data or error.
58
+ */
59
+ metadata: ResponseMetadata;
60
+ success: false;
61
+ }
62
+ export type OficlinicListCancellationReasonsConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
63
+ export type OficlinicListCancellationReasonsResult = OficlinicCancellationReasonPage | OficlinicAgentText;
64
+ /**
65
+ * A successful answer.
66
+ */
67
+ export interface OficlinicListCancellationReasonsResultResponse {
68
+ data: OficlinicListCancellationReasonsResult;
69
+ error: null;
70
+ /**
71
+ * What every answer carries besides its data or error.
72
+ */
73
+ metadata: ResponseMetadata;
74
+ success: true;
75
+ }
76
+ /**
77
+ * A failed answer.
78
+ */
79
+ export interface OficlinicListCancellationReasonsServiceUnavailableError {
80
+ data: null;
81
+ error: OficlinicListCancellationReasonsServiceUnavailableFailure;
82
+ /**
83
+ * What every answer carries besides its data or error.
84
+ */
85
+ metadata: ResponseMetadata;
86
+ success: false;
87
+ }
88
+ export type OficlinicListCancellationReasonsServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
89
+ /**
90
+ * A failed answer.
91
+ */
92
+ export interface OficlinicListCancellationReasonsTooManyRequestsError {
93
+ data: null;
94
+ error: OficlinicListCancellationReasonsTooManyRequestsFailure;
95
+ /**
96
+ * What every answer carries besides its data or error.
97
+ */
98
+ metadata: ResponseMetadata;
99
+ success: false;
100
+ }
101
+ export type OficlinicListCancellationReasonsTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
102
+ /**
103
+ * A failed answer.
104
+ */
105
+ export interface OficlinicListCancellationReasonsUnprocessableContentError {
106
+ data: null;
107
+ error: OficlinicListCancellationReasonsUnprocessableContentFailure;
108
+ /**
109
+ * What every answer carries besides its data or error.
110
+ */
111
+ metadata: ResponseMetadata;
112
+ success: false;
113
+ }
114
+ export type OficlinicListCancellationReasonsUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -0,0 +1,49 @@
1
+ import { type BaseClientOptions, Transport } from "../_/index.js";
2
+ import { type Client as AffiliateTypesClient } from "./affiliateTypes/client.js";
3
+ import { type Client as AppointmentsClient } from "./appointments/client.js";
4
+ import { type Client as BookingDaysClient } from "./bookingDays/client.js";
5
+ import { type Client as BookingProfessionalsClient } from "./bookingProfessionals/client.js";
6
+ import { type Client as BookingRoomsClient } from "./bookingRooms/client.js";
7
+ import { type Client as BookingSlotsClient } from "./bookingSlots/client.js";
8
+ import { type Client as CancellationReasonsClient } from "./cancellationReasons/client.js";
9
+ import { type Client as ConnectionsClient } from "./connections/client.js";
10
+ import { type Client as PatientsClient } from "./patients/client.js";
11
+ import { type Client as PayerContractsClient } from "./payerContracts/client.js";
12
+ import { type Client as PayerPlansClient } from "./payerPlans/client.js";
13
+ import { type Client as PayerSubplansClient } from "./payerSubplans/client.js";
14
+ import { type Client as PayersClient } from "./payers/client.js";
15
+ import { type Client as ProfessionalsClient } from "./professionals/client.js";
16
+ import { type Client as ProgramsClient } from "./programs/client.js";
17
+ import { type Client as RegimesClient } from "./regimes/client.js";
18
+ import { type Client as RelationshipsClient } from "./relationships/client.js";
19
+ import { type Client as ServiceCatalogClient } from "./serviceCatalog/client.js";
20
+ import { type Client as ServicesClient } from "./services/client.js";
21
+ export interface ClientOptions extends BaseClientOptions {
22
+ /**
23
+ * The URL the paths of the API are relative to.
24
+ */
25
+ baseUrl: string;
26
+ }
27
+ export interface Client {
28
+ readonly affiliateTypes: AffiliateTypesClient;
29
+ readonly appointments: AppointmentsClient;
30
+ readonly bookingDays: BookingDaysClient;
31
+ readonly bookingProfessionals: BookingProfessionalsClient;
32
+ readonly bookingRooms: BookingRoomsClient;
33
+ readonly bookingSlots: BookingSlotsClient;
34
+ readonly cancellationReasons: CancellationReasonsClient;
35
+ readonly connections: ConnectionsClient;
36
+ readonly patients: PatientsClient;
37
+ readonly payerContracts: PayerContractsClient;
38
+ readonly payerPlans: PayerPlansClient;
39
+ readonly payerSubplans: PayerSubplansClient;
40
+ readonly payers: PayersClient;
41
+ readonly professionals: ProfessionalsClient;
42
+ readonly programs: ProgramsClient;
43
+ readonly regimes: RegimesClient;
44
+ readonly relationships: RelationshipsClient;
45
+ readonly serviceCatalog: ServiceCatalogClient;
46
+ readonly services: ServicesClient;
47
+ }
48
+ export declare function createClient(options: ClientOptions): Client;
49
+ export declare function bind(transport: Transport): Client;