@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
@@ -0,0 +1,64 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { OficlinicListBookingDaysResultResponse } 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 days
12
+ *
13
+ * List the agenda days e-Oficlinic offers for one professional and room of
14
+ * the flow, for the flow's payer and service (LISTAR_AGENDAS_DISPONIBLES).
15
+ * The room must be one list_booking_rooms offered for that professional in
16
+ * the same flow. An empty list is the provider's answer for this exact
17
+ * combination alone, never for the whole clinic. Read-only: nothing is
18
+ * locked. Pass pageInfo.nextCursor with the same filters for more. agentMode
19
+ * 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
+ * The availability flow id every booking list item carries (flowId). It
32
+ * expires 30 minutes after the first list.
33
+ */
34
+ flowId: string;
35
+ /**
36
+ * A professional id list_booking_professionals offered in the flow.
37
+ */
38
+ professionalId: string;
39
+ /**
40
+ * A room id list_booking_rooms offered for the professional in the flow.
41
+ */
42
+ roomId: string;
43
+ /**
44
+ * An opaque cursor from a previous page's pageInfo.nextCursor or
45
+ * pageInfo.previousCursor.
46
+ */
47
+ cursor?: string;
48
+ /**
49
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
50
+ */
51
+ direction?: "forward" | "backward";
52
+ /**
53
+ * Maximum items returned in one page. Defaults to 25; larger reads require
54
+ * another cursor.
55
+ */
56
+ limit?: number;
57
+ /**
58
+ * true answers { text }: concise Spanish facts for a messaging or voice
59
+ * agent, with the short ids and the cursor needed to continue. false, the
60
+ * default, answers the structured object.
61
+ */
62
+ agentMode?: boolean;
63
+ }
64
+ export type ListResponse = OficlinicListBookingDaysResultResponse;
@@ -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/booking-days",
15
+ query: { connectionId: "connectionId", flowId: "flowId", professionalId: "professionalId", roomId: "roomId", cursor: "cursor", direction: "direction", limit: "limit", agentMode: "agentMode" },
16
+ response: null,
17
+ 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 },
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 { OficlinicBookingDay, OficlinicBookingDayPage, OficlinicListBookingDaysBadGatewayError, OficlinicListBookingDaysBadGatewayFailure, OficlinicListBookingDaysBadRequestError, OficlinicListBookingDaysBadRequestFailure, OficlinicListBookingDaysConflictError, OficlinicListBookingDaysConflictFailure, OficlinicListBookingDaysNotFoundError, OficlinicListBookingDaysNotFoundFailure, OficlinicListBookingDaysResult, OficlinicListBookingDaysResultResponse, OficlinicListBookingDaysServiceUnavailableError, OficlinicListBookingDaysServiceUnavailableFailure, OficlinicListBookingDaysTooManyRequestsError, OficlinicListBookingDaysTooManyRequestsFailure, OficlinicListBookingDaysUnprocessableContentError, OficlinicListBookingDaysUnprocessableContentFailure, } 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,142 @@
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 OficlinicBookingDay {
4
+ /**
5
+ * The provider's Disponibles count; null when not a count.
6
+ */
7
+ availableCount: number | null;
8
+ /**
9
+ * The day (agendaFecha); null when the provider's format is not recognized.
10
+ */
11
+ date: string | null;
12
+ /**
13
+ * The availability flow this item belongs to: pass it to the next booking
14
+ * list and to the booking itself.
15
+ */
16
+ flowId: string;
17
+ /**
18
+ * The provider's agenda id for the day (agendaID): pass it as dayId for its
19
+ * slots.
20
+ */
21
+ id: string;
22
+ professionalId: string;
23
+ roomId: string;
24
+ }
25
+ export interface OficlinicBookingDayPage {
26
+ /**
27
+ * Items admitted by this resource contract within the verified organization.
28
+ */
29
+ data: OficlinicBookingDay[];
30
+ /**
31
+ * Discriminator for a resource list response.
32
+ */
33
+ object: "list";
34
+ /**
35
+ * Opaque navigation cursors for this page’s stable keyset order.
36
+ */
37
+ pageInfo: PageInfo;
38
+ }
39
+ /**
40
+ * A failed answer.
41
+ */
42
+ export interface OficlinicListBookingDaysBadGatewayError {
43
+ data: null;
44
+ error: OficlinicListBookingDaysBadGatewayFailure;
45
+ /**
46
+ * What every answer carries besides its data or error.
47
+ */
48
+ metadata: ResponseMetadata;
49
+ success: false;
50
+ }
51
+ export type OficlinicListBookingDaysBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure;
52
+ /**
53
+ * A failed answer.
54
+ */
55
+ export interface OficlinicListBookingDaysBadRequestError {
56
+ data: null;
57
+ error: OficlinicListBookingDaysBadRequestFailure;
58
+ /**
59
+ * What every answer carries besides its data or error.
60
+ */
61
+ metadata: ResponseMetadata;
62
+ success: false;
63
+ }
64
+ export type OficlinicListBookingDaysBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
65
+ /**
66
+ * A failed answer.
67
+ */
68
+ export interface OficlinicListBookingDaysConflictError {
69
+ data: null;
70
+ error: OficlinicListBookingDaysConflictFailure;
71
+ /**
72
+ * What every answer carries besides its data or error.
73
+ */
74
+ metadata: ResponseMetadata;
75
+ success: false;
76
+ }
77
+ export type OficlinicListBookingDaysConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure | OficlinicSelectionNotAvailableFailure;
78
+ /**
79
+ * A failed answer.
80
+ */
81
+ export interface OficlinicListBookingDaysNotFoundError {
82
+ data: null;
83
+ error: OficlinicListBookingDaysNotFoundFailure;
84
+ /**
85
+ * What every answer carries besides its data or error.
86
+ */
87
+ metadata: ResponseMetadata;
88
+ success: false;
89
+ }
90
+ export type OficlinicListBookingDaysNotFoundFailure = OficlinicConnectionNotFoundFailure | OficlinicPayerNotFoundFailure;
91
+ export type OficlinicListBookingDaysResult = OficlinicBookingDayPage | OficlinicAgentText;
92
+ /**
93
+ * A successful answer.
94
+ */
95
+ export interface OficlinicListBookingDaysResultResponse {
96
+ data: OficlinicListBookingDaysResult;
97
+ error: null;
98
+ /**
99
+ * What every answer carries besides its data or error.
100
+ */
101
+ metadata: ResponseMetadata;
102
+ success: true;
103
+ }
104
+ /**
105
+ * A failed answer.
106
+ */
107
+ export interface OficlinicListBookingDaysServiceUnavailableError {
108
+ data: null;
109
+ error: OficlinicListBookingDaysServiceUnavailableFailure;
110
+ /**
111
+ * What every answer carries besides its data or error.
112
+ */
113
+ metadata: ResponseMetadata;
114
+ success: false;
115
+ }
116
+ export type OficlinicListBookingDaysServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
117
+ /**
118
+ * A failed answer.
119
+ */
120
+ export interface OficlinicListBookingDaysTooManyRequestsError {
121
+ data: null;
122
+ error: OficlinicListBookingDaysTooManyRequestsFailure;
123
+ /**
124
+ * What every answer carries besides its data or error.
125
+ */
126
+ metadata: ResponseMetadata;
127
+ success: false;
128
+ }
129
+ export type OficlinicListBookingDaysTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
130
+ /**
131
+ * A failed answer.
132
+ */
133
+ export interface OficlinicListBookingDaysUnprocessableContentError {
134
+ data: null;
135
+ error: OficlinicListBookingDaysUnprocessableContentFailure;
136
+ /**
137
+ * What every answer carries besides its data or error.
138
+ */
139
+ metadata: ResponseMetadata;
140
+ success: false;
141
+ }
142
+ export type OficlinicListBookingDaysUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -0,0 +1,76 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import { type OficlinicListBookingProfessionalsResultResponse } 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 professionals
12
+ *
13
+ * List the professionals e-Oficlinic schedules for one service
14
+ * (LISTAR_PROFESIONALES_AGENDA) and open an availability flow for that payer,
15
+ * service, program and attention type; every item carries the flowId the next
16
+ * steps take (list_booking_rooms, list_booking_days, list_booking_slots, then
17
+ * create_appointment). The flow keeps, server-side, the provider's own flow
18
+ * identifier its booking screen generates; no slot is locked or reserved by
19
+ * listing. The payer must be one list_payers answers, or PAYER_NOT_FOUND. The
20
+ * program and attention type come from list_programs, or
21
+ * BOOKING_OPTION_NOT_FOUND; an attention type whose source unit count is not
22
+ * exactly one answers PROGRAM_UNITS_NOT_SUPPORTED, since multi-unit programs
23
+ * are not supported. The flow expires 30 minutes after this first list. Use a
24
+ * configured service id (search_services, or list_services with
25
+ * professionalId). An empty list means the provider schedules no professional
26
+ * for that service now. Pass pageInfo.nextCursor with the same filters for
27
+ * more. agentMode true answers concise Spanish text instead.
28
+ */
29
+ list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
30
+ }
31
+ export declare function createClient(options: ClientOptions): Client;
32
+ export declare function bind(transport: Transport): Client;
33
+ export interface ListRequest {
34
+ /**
35
+ * An Account connection id of the caller's organization.
36
+ */
37
+ connectionId?: string;
38
+ /**
39
+ * A payer id from list_payers.
40
+ */
41
+ payerId: string;
42
+ /**
43
+ * A service id, such as one search_services answers.
44
+ */
45
+ serviceId: string;
46
+ /**
47
+ * A program id from list_programs.
48
+ */
49
+ programId: string;
50
+ /**
51
+ * An attention type id the program lists in list_programs, with bookable
52
+ * true.
53
+ */
54
+ attentionTypeId: string;
55
+ /**
56
+ * An opaque cursor from a previous page's pageInfo.nextCursor or
57
+ * pageInfo.previousCursor.
58
+ */
59
+ cursor?: string;
60
+ /**
61
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
62
+ */
63
+ direction?: "forward" | "backward";
64
+ /**
65
+ * Maximum items returned in one page. Defaults to 25; larger reads require
66
+ * another cursor.
67
+ */
68
+ limit?: number;
69
+ /**
70
+ * true answers { text }: concise Spanish facts for a messaging or voice
71
+ * agent, with the short ids and the cursor needed to continue. false, the
72
+ * default, answers the structured object.
73
+ */
74
+ agentMode?: boolean;
75
+ }
76
+ export type ListResponse = OficlinicListBookingProfessionalsResultResponse;
@@ -0,0 +1,19 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "../../_/index.js";
4
+ import { OficlinicListBookingProfessionalsResultResponseCodec, } 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-professionals",
16
+ query: { connectionId: "connectionId", payerId: "payerId", serviceId: "serviceId", programId: "programId", attentionTypeId: "attentionTypeId", cursor: "cursor", direction: "direction", limit: "limit", agentMode: "agentMode" },
17
+ response: OficlinicListBookingProfessionalsResultResponseCodec,
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 { OficlinicBookingProfessional, OficlinicBookingProfessionalPage, OficlinicListBookingProfessionalsBadGatewayError, OficlinicListBookingProfessionalsBadGatewayFailure, OficlinicListBookingProfessionalsBadRequestError, OficlinicListBookingProfessionalsBadRequestFailure, OficlinicListBookingProfessionalsConflictError, OficlinicListBookingProfessionalsConflictFailure, OficlinicListBookingProfessionalsNotFoundError, OficlinicListBookingProfessionalsNotFoundFailure, OficlinicListBookingProfessionalsResult, OficlinicListBookingProfessionalsResultResponse, OficlinicListBookingProfessionalsServiceUnavailableError, OficlinicListBookingProfessionalsServiceUnavailableFailure, OficlinicListBookingProfessionalsTooManyRequestsError, OficlinicListBookingProfessionalsTooManyRequestsFailure, OficlinicListBookingProfessionalsUnprocessableContentError, OficlinicListBookingProfessionalsUnprocessableContentFailure, } 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,159 @@
1
+ import type { CredentialsRejectedFailure, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { OficlinicAgentText, OficlinicBookingOptionNotFoundFailure, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionNotFoundFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicPayerNotFoundFailure, OficlinicProgramUnitsNotSupportedFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSelectionNotAvailableFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
3
+ export interface OficlinicBookingProfessional {
4
+ /**
5
+ * The one-unit attention type of the program the flow was opened for.
6
+ */
7
+ attentionTypeId: string;
8
+ /**
9
+ * When the flow expires.
10
+ */
11
+ flowExpiresAt: Temporal.Instant;
12
+ /**
13
+ * The availability flow this item belongs to: pass it to the next booking
14
+ * list and to the booking itself.
15
+ */
16
+ flowId: string;
17
+ /**
18
+ * The provider's professional id (profesionalID).
19
+ */
20
+ id: string;
21
+ /**
22
+ * The professional's name (profesionalDescripcion).
23
+ */
24
+ name: string;
25
+ /**
26
+ * The payer the flow was opened for.
27
+ */
28
+ payerId: string;
29
+ /**
30
+ * The program the flow was opened for.
31
+ */
32
+ programId: string;
33
+ /**
34
+ * The service the flow was opened for.
35
+ */
36
+ serviceId: string;
37
+ specialty: string | null;
38
+ }
39
+ export interface OficlinicBookingProfessionalPage {
40
+ /**
41
+ * Items admitted by this resource contract within the verified organization.
42
+ */
43
+ data: OficlinicBookingProfessional[];
44
+ /**
45
+ * Discriminator for a resource list response.
46
+ */
47
+ object: "list";
48
+ /**
49
+ * Opaque navigation cursors for this page’s stable keyset order.
50
+ */
51
+ pageInfo: PageInfo;
52
+ }
53
+ /**
54
+ * A failed answer.
55
+ */
56
+ export interface OficlinicListBookingProfessionalsBadGatewayError {
57
+ data: null;
58
+ error: OficlinicListBookingProfessionalsBadGatewayFailure;
59
+ /**
60
+ * What every answer carries besides its data or error.
61
+ */
62
+ metadata: ResponseMetadata;
63
+ success: false;
64
+ }
65
+ export type OficlinicListBookingProfessionalsBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure;
66
+ /**
67
+ * A failed answer.
68
+ */
69
+ export interface OficlinicListBookingProfessionalsBadRequestError {
70
+ data: null;
71
+ error: OficlinicListBookingProfessionalsBadRequestFailure;
72
+ /**
73
+ * What every answer carries besides its data or error.
74
+ */
75
+ metadata: ResponseMetadata;
76
+ success: false;
77
+ }
78
+ export type OficlinicListBookingProfessionalsBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
79
+ /**
80
+ * A failed answer.
81
+ */
82
+ export interface OficlinicListBookingProfessionalsConflictError {
83
+ data: null;
84
+ error: OficlinicListBookingProfessionalsConflictFailure;
85
+ /**
86
+ * What every answer carries besides its data or error.
87
+ */
88
+ metadata: ResponseMetadata;
89
+ success: false;
90
+ }
91
+ export type OficlinicListBookingProfessionalsConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure | OficlinicSelectionNotAvailableFailure;
92
+ /**
93
+ * A failed answer.
94
+ */
95
+ export interface OficlinicListBookingProfessionalsNotFoundError {
96
+ data: null;
97
+ error: OficlinicListBookingProfessionalsNotFoundFailure;
98
+ /**
99
+ * What every answer carries besides its data or error.
100
+ */
101
+ metadata: ResponseMetadata;
102
+ success: false;
103
+ }
104
+ export type OficlinicListBookingProfessionalsNotFoundFailure = OficlinicConnectionNotFoundFailure | OficlinicPayerNotFoundFailure | OficlinicBookingOptionNotFoundFailure;
105
+ export type OficlinicListBookingProfessionalsResult = OficlinicBookingProfessionalPage | OficlinicAgentText;
106
+ /**
107
+ * A successful answer.
108
+ */
109
+ export interface OficlinicListBookingProfessionalsResultResponse {
110
+ data: OficlinicListBookingProfessionalsResult;
111
+ error: null;
112
+ /**
113
+ * What every answer carries besides its data or error.
114
+ */
115
+ metadata: ResponseMetadata;
116
+ success: true;
117
+ }
118
+ /**
119
+ * A failed answer.
120
+ */
121
+ export interface OficlinicListBookingProfessionalsServiceUnavailableError {
122
+ data: null;
123
+ error: OficlinicListBookingProfessionalsServiceUnavailableFailure;
124
+ /**
125
+ * What every answer carries besides its data or error.
126
+ */
127
+ metadata: ResponseMetadata;
128
+ success: false;
129
+ }
130
+ export type OficlinicListBookingProfessionalsServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
131
+ /**
132
+ * A failed answer.
133
+ */
134
+ export interface OficlinicListBookingProfessionalsTooManyRequestsError {
135
+ data: null;
136
+ error: OficlinicListBookingProfessionalsTooManyRequestsFailure;
137
+ /**
138
+ * What every answer carries besides its data or error.
139
+ */
140
+ metadata: ResponseMetadata;
141
+ success: false;
142
+ }
143
+ export type OficlinicListBookingProfessionalsTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
144
+ /**
145
+ * A failed answer.
146
+ */
147
+ export interface OficlinicListBookingProfessionalsUnprocessableContentError {
148
+ data: null;
149
+ error: OficlinicListBookingProfessionalsUnprocessableContentFailure;
150
+ /**
151
+ * What every answer carries besides its data or error.
152
+ */
153
+ metadata: ResponseMetadata;
154
+ success: false;
155
+ }
156
+ export type OficlinicListBookingProfessionalsUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure | OficlinicProgramUnitsNotSupportedFailure;
157
+ export declare const OficlinicBookingProfessionalCodec: import("../../_/codec.js").Codec;
158
+ export declare const OficlinicBookingProfessionalPageCodec: import("../../_/codec.js").Codec;
159
+ export declare const OficlinicListBookingProfessionalsResultResponseCodec: import("../../_/codec.js").Codec;
@@ -0,0 +1,12 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { array, instant, object } from "../../_/index.js";
4
+ export const OficlinicBookingProfessionalCodec = object([
5
+ ["flowExpiresAt", null, instant],
6
+ ]);
7
+ export const OficlinicBookingProfessionalPageCodec = object([
8
+ ["data", null, array(() => OficlinicBookingProfessionalCodec)],
9
+ ]);
10
+ export const OficlinicListBookingProfessionalsResultResponseCodec = object([
11
+ ["data", null, () => OficlinicBookingProfessionalPageCodec],
12
+ ]);
@@ -0,0 +1,60 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { OficlinicListBookingRoomsResultResponse } 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 rooms
12
+ *
13
+ * List the rooms where e-Oficlinic schedules one professional for the flow's
14
+ * service (LISTAR_CONSULTORIOSxPROFE_AGENDA). The professional must be one
15
+ * list_booking_professionals offered in the same flow, or
16
+ * SELECTION_NOT_AVAILABLE; an expired or unknown flow answers
17
+ * SELECTION_EXPIRED. Read-only: nothing is locked. Pass pageInfo.nextCursor
18
+ * with the same filters for more. agentMode true answers concise Spanish text
19
+ * 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
+ * The availability flow id every booking list item carries (flowId). It
32
+ * expires 30 minutes after the first list.
33
+ */
34
+ flowId: string;
35
+ /**
36
+ * A professional id list_booking_professionals offered in the flow.
37
+ */
38
+ professionalId: string;
39
+ /**
40
+ * An opaque cursor from a previous page's pageInfo.nextCursor or
41
+ * pageInfo.previousCursor.
42
+ */
43
+ cursor?: string;
44
+ /**
45
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
46
+ */
47
+ direction?: "forward" | "backward";
48
+ /**
49
+ * Maximum items returned in one page. Defaults to 25; larger reads require
50
+ * another cursor.
51
+ */
52
+ limit?: number;
53
+ /**
54
+ * true answers { text }: concise Spanish facts for a messaging or voice
55
+ * agent, with the short ids and the cursor needed to continue. false, the
56
+ * default, answers the structured object.
57
+ */
58
+ agentMode?: boolean;
59
+ }
60
+ export type ListResponse = OficlinicListBookingRoomsResultResponse;
@@ -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/booking-rooms",
15
+ query: { connectionId: "connectionId", flowId: "flowId", professionalId: "professionalId", cursor: "cursor", direction: "direction", limit: "limit", agentMode: "agentMode" },
16
+ response: null,
17
+ 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 },
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 { OficlinicBookingRoom, OficlinicBookingRoomPage, OficlinicListBookingRoomsBadGatewayError, OficlinicListBookingRoomsBadGatewayFailure, OficlinicListBookingRoomsBadRequestError, OficlinicListBookingRoomsBadRequestFailure, OficlinicListBookingRoomsConflictError, OficlinicListBookingRoomsConflictFailure, OficlinicListBookingRoomsNotFoundError, OficlinicListBookingRoomsNotFoundFailure, OficlinicListBookingRoomsResult, OficlinicListBookingRoomsResultResponse, OficlinicListBookingRoomsServiceUnavailableError, OficlinicListBookingRoomsServiceUnavailableFailure, OficlinicListBookingRoomsTooManyRequestsError, OficlinicListBookingRoomsTooManyRequestsFailure, OficlinicListBookingRoomsUnprocessableContentError, OficlinicListBookingRoomsUnprocessableContentFailure, } 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";